<?xml version='1.0' encoding='UTF-8'?>

<Properties version="4.1">
	<Property name="xslt.base64Zipped">true</Property>
	<Property name="xslt.ignoreInput">false</Property>
	<Property name="xslt.params" type="List" />
	<Property name="xslt.saveAtServer">true</Property>
	<Property name="xslt.source">&lt;?xml version="1.0" encoding="UTF-8"?>
&lt;user>&lt;id>bpcadmin&lt;/id>&lt;loginName>bpcadmin&lt;/loginName>&lt;name>Timo Virt&lt;/name>&lt;eMailAddress/>&lt;active>true&lt;/active>&lt;locale>de_DE&lt;/locale>&lt;language>de&lt;/language>&lt;country>DE&lt;/country>&lt;organizations>&lt;organization>&lt;id>example&lt;/id>&lt;name/>&lt;/organization>&lt;organization>&lt;id>ckfest&lt;/id>&lt;name/>&lt;/organization>&lt;organization>&lt;id>cktest&lt;/id>&lt;name/>&lt;configuration>&lt;permissionMappings/>&lt;/configuration>&lt;/organization>&lt;organization>&lt;id>DEFAULT&lt;/id>&lt;name/>&lt;/organization>&lt;organization>&lt;id>Test Organisations&lt;/id>&lt;name/>&lt;/organization>&lt;/organizations>&lt;roles>&lt;role>VAM-internal-developer&lt;/role>&lt;role>aRealmRole&lt;/role>&lt;role>BGroß&lt;/role>&lt;role>aClientRole&lt;/role>&lt;role>bpcuser&lt;/role>&lt;role>VAM_organization_example&lt;/role>&lt;role>bKlein&lt;/role>&lt;role>offline_access&lt;/role>&lt;role>bpcadmiN&lt;/role>&lt;role>VAM-developer-internal&lt;/role>&lt;role>VAM_organization_ckfest&lt;/role>&lt;role>VAM_organization_cktest&lt;/role>&lt;role>uma_authorization&lt;/role>&lt;role>halloQuan&lt;/role>&lt;role>fullmetaljacket&lt;/role>&lt;/roles>&lt;/user></Property>
	<Property name="xslt.sourceVariables" type="Map">
		<Property name="ISFileSize">981</Property>
		<Property name="ISCurrentTime" type="Long">1606748510981</Property>
		<Property name="ISWorkflowName">VAM_api_main_attachUser</Property>
		<Property name="ISModuleName">VAM_api_joiner</Property>
		<Property name="ISModuleId">822</Property>
		<Property name="ISProcessId">102673</Property>
		<Property name="ISUserName">VAM</Property>
		<Property name="ISServerName">dev04.virtimo.net</Property>
		<Property name="ISNodeName">100.78.0.66</Property>
		<Property name="ISGlobalProcessId">102673</Property>
		<Property name="ISInvokingWorkflow">VAM_api_main_api</Property>
		<Property name="ISInvokingModule">VAM_api_wfc_attachUser</Property>
		<Property name="var.organizationId">cktest</Property>
		<Property name="var.session" type="XmlDocument">&lt;?xml version="1.0" encoding="UTF-8"?>
&lt;session>&lt;configuration>&lt;api>&lt;database>&lt;type>postgresql&lt;/type>&lt;default>&lt;alertTimeout>20&lt;/alertTimeout>&lt;queryTimeout>60&lt;/queryTimeout>&lt;/default>&lt;/database>&lt;entity>&lt;validate>false&lt;/validate>&lt;/entity>&lt;response>&lt;debuggingInformation>false&lt;/debuggingInformation>&lt;format>false&lt;/format>&lt;validate>true&lt;/validate>&lt;/response>&lt;user>&lt;maxAge>P0DT2H0M5S&lt;/maxAge>&lt;/user>&lt;technicalUser>&lt;loginName>sys&lt;/loginName>&lt;/technicalUser>&lt;alerting>&lt;recipient>&lt;eMailAddress>kaufhold@virtimo.de &lt;/eMailAddress>&lt;/recipient>&lt;mail>&lt;host>smtp.googlemail.com&lt;/host>&lt;sender>&lt;eMailAddress>jochen@virtimo.net &lt;/eMailAddress>&lt;/sender>&lt;debuggingInformation>true&lt;/debuggingInformation>&lt;/mail>&lt;/alerting>&lt;backend>&lt;bpc>&lt;hosts>&lt;item>&lt;key>dev04.virtimo.net:8191&lt;/key>&lt;url>http://localhost:8191/cxf/bpc-core/authentication&lt;/url>&lt;/item>&lt;item>&lt;key>dev04.virtimo.net:38181&lt;/key>&lt;url>http://localhost:38181/cxf/bpc-core/authentication&lt;/url>&lt;/item>&lt;item>&lt;key>mpm-dev.virtimo.net:8181&lt;/key>&lt;url>http://mpm-dev.virtimo.net:8181/cxf/bpc-core/authentication&lt;/url>&lt;/item>&lt;/hosts>&lt;/bpc>&lt;/backend>&lt;/api>&lt;am>&lt;entity>&lt;validate>false&lt;/validate>&lt;/entity>&lt;technicalUser>&lt;loginName>sys&lt;/loginName>&lt;/technicalUser>&lt;/am>&lt;userGroupName>VAM&lt;/userGroupName>&lt;/configuration>&lt;startTimestamp>1606748509789&lt;/startTimestamp>&lt;/session></Property>
		<Property name="var.userContext" type="XmlDocument">&lt;?xml version="1.0" encoding="UTF-8"?>
&lt;userContext>&lt;cookie>GUEST_LANGUAGE_ID=de_DE; JSESSIONID=node01e5cej9rnsdsi2tnh3pz470g9159.node0; oidc.userInfoJWT=eyJhbGciOiJIUzUxMiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICIyODA0MTg3MS00M2EzLTQ0NDAtYWUyZS1hNGFiZTM1NDViMzIifQ.eyJzdWIiOiI3ZmEwMWYxYS0wNzY5LTQ4Y2UtOTQzMS1hODU4Yjk5Y2ExN2EiLCJicGNfb3JnYW5pc2F0aW9ucyI6WyJhZG1pbnMiLCJ1c2VycyJdLCJhZGRyZXNzIjp7fSwiZW1haWxfdmVyaWZpZWQiOnRydWUsImJwY19yb2xlcyI6WyJicGNhZG1pbiIsImJwY3VzZXIiLCJhQ2xpZW50Um9sZSJdLCJpc3MiOiJodHRwOi8vZGV2MDYudmlydGltby5uZXQ6ODA5MS9hdXRoL3JlYWxtcy9icGMiLCJwcmVmZXJyZWRfdXNlcm5hbWUiOiJicGNhZG1pbiIsImxvY2FsZSI6ImRlIiwiZ2l2ZW5fbmFtZSI6IlRpbW8iLCJhdWQiOiJicGMtY29yZSIsImJwYy1yb2xsZW5fdXNlcl9yZWFsbV9yb2xlc190b2tlbl9uYW1lIjpbImFSZWFsbVJvbGUiLCJvZmZsaW5lX2FjY2VzcyIsImJwY2FkbWluIiwiYktsZWluIiwiQkdyb8OfIiwidW1hX2F1dGhvcml6YXRpb24iLCJmdWxsbWV0YWxqYWNrZXQiXSwibmFtZSI6IlRpbW8gVmlydCIsImZhbWlseV9uYW1lIjoiVmlydCIsImVtYWlsIjoiYnBjYWRtaW5AZXhhbXBsZS5jb20ifQ.SDuDDpgb2ZQ5rO61ryyWw47EH7QYncHt0to6fteTZ6PYH1W6x9uA3A4tdO74pogBZbpQuX4Swo1sj797WzUARw; oidc=d36df486-8072-471d-9803-97e62c094649&lt;/cookie>&lt;host>dev04.virtimo.net:38181&lt;/host>&lt;/userContext></Property>
		<Property name="var.log" type="XmlDocument">&lt;?xml version="1.0" encoding="UTF-8"?>
&lt;log>&lt;entries/>&lt;/log></Property>
		<Property name="var.datastream" type="InternalDocument" documentSize="47">H4sIAAAAAAAA/7Oxr8jNUShLLSrOzM+zVTLUM1BSSM1Lzk/JzEu3VQoNcdO1ULK347JJzS0oqdS3AwCGqPsjLwAAAA==</Property>
		<Property name="var.backend">bpc</Property>
		<Property name="var.storage">VAM_users</Property>
		<Property name="var.loginName">bpcadmin</Property>
	</Property>
	<Property name="xslt.stylesheet" type="XmlDocument">&lt;?xml version="1.0" encoding="UTF-8"?>
&lt;xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" exclude-result-prefixes="#all" version="2.0">
  &lt;xsl:output method="xml" encoding="UTF-8"/>&lt;xsl:variable name="var.allPermissions" as="element()*">&lt;permissions>&lt;permission context="organization" method="getConfiguration"/>&lt;permission context="organization" method="setConfiguration"/>&lt;permission context="organization" method="setName"/>
        
      &lt;permission context="asset" method="create"/>&lt;permission context="asset" method="update"/>  
      &lt;permission context="asset" method="delete"/>&lt;permission context="asset" method="getActionAttributes"/>  
      &lt;permission context="asset" method="executeAction"/>  
      &lt;permission method="get" context="asset"/>&lt;permission context="asset" method="query"/>  
        
        
        
        
        
        
        
        
        
        
      &lt;permission context="query" method="create"/>&lt;permission context="query" method="update"/>  
      &lt;permission context="query" method="delete"/>  
      &lt;permission context="query" method="get"/>  
      &lt;permission context="query" method="query"/>  
        
      &lt;permission context="template" method="create"/>&lt;permission context="template" method="update"/>  
      &lt;permission context="template" method="delete"/>  
      &lt;permission context="template" method="get"/>&lt;permission context="template" method="query"/>&lt;permission context="template" method="getActionAttributes"/>&lt;permission context="template" method="executeAction"/>  
        
        
        
        
      
        
        
      
       
       
    &lt;/permissions>&lt;/xsl:variable>&lt;xsl:variable name="var.defaultPermissions" as="element()">&lt;mappings> 
  &lt;mapping> 
    &lt;role>VAM-administrator&lt;/role>&lt;xsl:copy-of select="$var.allPermissions"/>  
     
  &lt;/mapping>&lt;mapping> 
    &lt;role>VAM-query-administrator&lt;/role>&lt;permissions>
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
      &lt;permission context="query" method="create"/>&lt;permission context="query" method="update"/>  
      &lt;permission context="query" method="delete"/>  
      &lt;permission context="query" method="get"/>  
      &lt;permission context="query" method="query"/>  
        
        
        
        
        
        
        
        
      
        
        
      
       
       
    &lt;/permissions>  
     
  &lt;/mapping>&lt;mapping> 
    &lt;role>VAM-readonly-administrator&lt;/role>&lt;permissions>&lt;permission context="organization" method="getConfiguration"/>
        
        
        
        
      &lt;permission context="asset" method="get"/>&lt;permission context="asset" method="query"/>  
        
        
        
        
        
        
        
        
        
        
        
        
      &lt;permission context="query" method="get"/>  
      &lt;permission context="query" method="query"/>  
        
        
        
      &lt;permission context="template" method="get"/>&lt;permission context="template" method="query"/>  
        
        
        
        
      
        
        
      
       
       
    &lt;/permissions>  
     
  &lt;/mapping>&lt;mapping> 
    &lt;role>VAM-user&lt;/role>&lt;permissions>
        
      &lt;permission context="asset" method="create"/>&lt;permission context="asset" method="update"/>  
      &lt;permission context="asset" method="delete"/>&lt;permission context="asset" method="getActionAttributes"/>  
      &lt;permission context="asset" method="executeAction"/>  
      &lt;permission context="asset" method="get"/>&lt;permission context="asset" method="query"/>  
        
        
        
        
        
        
        
        
        
        
      &lt;permission context="query" method="create"/>&lt;permission context="query" method="update"/>  
      &lt;permission context="query" method="delete"/>  
      &lt;permission context="query" method="get"/>  
      &lt;permission context="query" method="query"/>  
        
        
        
      &lt;permission context="template" method="get"/>&lt;permission context="template" method="query"/>&lt;permission context="template" method="getActionAttributes"/>&lt;permission context="template" method="executeAction"/>  
        
        
        
        
      
        
        
      
       
       
    &lt;/permissions>  
     
  &lt;/mapping> 
&lt;/mappings>&lt;/xsl:variable>
  &lt;xsl:template match="/*">&lt;user>&lt;xsl:variable name="var.roles" as="element()*">&lt;xsl:copy-of select="roles/role"/>&lt;role>VAM-user&lt;/role>&lt;/xsl:variable&gt;&lt;xsl:copy-of select="*[not(self::organizations)]"/>&lt;organizations>&lt;xsl:for-each select="organizations/*">&lt;xsl:copy>&lt;xsl:copy-of select="*"/>&lt;permissions>&lt;xsl:for-each-group select="if ($var.roles = 'VAM-administrator') then $var.allPermissions/* else (configuration/permissionMappings, $var.defaultPermissions)[1]/*[role = $var.roles]/ permissions/*" group-by="concat(@context, '@@@', @method)">&lt;permission>&lt;context>&lt;xsl:value-of select="@context"/>&lt;/context>&lt;method>&lt;xsl:value-of select="@method"/>&lt;/method>&lt;/permission>&lt;/xsl:for-each-group>&lt;/permissions>&lt;/xsl:copy>&lt;/xsl:for-each>&lt;/organizations>&lt;/user>
  &lt;/xsl:template>
&lt;/xsl:stylesheet></Property>
	<Property name="xslt.target"></Property>
	<Property name="xslt.transformer">net.sf.saxon.TransformerFactoryImpl</Property>
</Properties>