<style>
body {font:small/1.2em arial,helvetica,clean,sans-serif;font:x-small;margin-top: 10px; margin-right: 10px; margin-bottom: 0px; margin-left: 10px;min-width:500px;}
</style>
<table width="100%" border="0" cellpadding="1" cellspacing="1">
<tr Style="font-size:130%;font-weight:bold;color:#0000FF;"><td>Space/Document</td><td>Permission</td><td>Group/User</td><td>Role</td><td>Inherits</td></tr>
<#– Handle documents and spaces, if its not a document it must be a space –>
<#if document?exists>
<@listpermissions node=document/>
<#else>
<@listpermissions node=space/>
</#if>
</table>
<#macro listpermissions node>
<tr><td colspan="5"><hr/></td></tr>
<#if node.permissions?size != 0> <#– Check we have permissions set on this node –>
<#list node.permissions as permit>
<tr><td>${node.displayPath}/${node.name}</td><#list permit?split(";") as x><td>${x}</td></#list><td>${node.inheritsPermissions?string}</td></tr>
</#list>
<#else> <#– Node inherits,has no permissions of its own –>
<tr><td>${node.displayPath}/${node.name}</td><td></td><td></td><td></td><td>${node.inheritsPermissions?string}</td></tr>
</#if>
<#if node.inheritsPermissions = true> <#– Stop if node does not inherit –>
<#if node.parent?exists> <#– Stop when we've run out of nodes –>
<@listpermissions node=node.parent/> <#– Recurse –>
</#if>
</#if>
</#macro>
Voir http://wiki.alfresco.com/wiki/Template_Guide pour comprendre l'exemple et savoir l'utiliser.
"Une erreur est survenue lors de la génération du modèle 'get(permissions) failed on instance of org.alfresco.repo.template.TemplateNode'.
Est-ce normal (logique) ?Content from pre 2016 and from language groups that have been closed.
Content is read-only.
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.