11-16-2007 04:27 AM
11-16-2007 07:04 AM
11-16-2007 07:31 AM
<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.
11-16-2007 07:55 AM
"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) ?11-16-2007 07:59 AM
11-16-2007 11:06 AM
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.