09-12-2006 11:50 AM
09-13-2006 05:34 AM
<evaluator>org.alfresco.web.action.evaluator.YourEvaluator</evaluator>
09-18-2006 05:29 AM
09-18-2006 11:18 AM
node.hasPermission(PermissionService.CANCEL_CHECK_OUT)
node.hasPermission("Validation")
09-19-2006 07:17 AM
<permissions>
……
<permissionSet type="sys:base" expose="all" >
……
<permissionGroup name="CreateContent" expose="true" allowFullControl="false" />
<permissionGroup name="CreateMySpaceWizard" expose="true" allowFullControl="false" />
……
<permission name="CreateChildren" expose="true" >
<grantedToGroup permissionGroup="AddChildren" />
<grantedToGroup permissionGroup="CreateContent" />
</permission>
……
</permissionSet>
<permissionSet type="cm:cmobject" expose="selected">
……
<permissionGroup name="Reader" allowFullControl="false" expose="true" >
<includePermissionGroup permissionGroup="Read" type="sys:base" />
</permissionGroup>
<permissionGroup name="Part" allowFullControl="false" expose="true" >
<includePermissionGroup type="sys:base" permissionGroup="CreateContent" />
<includePermissionGroup type="cm:cmobject" permissionGroup="Reader"/>
<includePermissionGroup type="sys:base" permissionGroup="Write"/>
<includePermissionGroup type="cm:lockable" permissionGroup="CheckOut"/>
</permissionGroup>
<permissionGroup name="Cons" allowFullControl="false" expose="true" >
<includePermissionGroup type="sys:base" permissionGroup="CreateContent" />
<includePermissionGroup type="sys:base" permissionGroup="AddChildren" />
<includePermissionGroup type="sys:base" permissionGroup="CreateMySpaceWizard" />
<includePermissionGroup type="cm:cmobject" permissionGroup="Reader"/>
<includePermissionGroup type="sys:base" permissionGroup="Write"/>
<includePermissionGroup type="cm:lockable" permissionGroup="CheckOut"/>
</permissionGroup>
</permissionSet>
<permissionSet type="cm:content" expose="selected">
……
<permissionGroup name="Reader" extends="true" expose="true"/>
<permissionGroup name="Part" extends="true" expose="true"/>
<permissionGroup name="Cons" extends="true" expose="true"/>
</permissionSet>
</permissions>
<cm:folder view:childName="${spaces.company_home.childname}">
<view:acl view:inherit="false">
<view:ace view:access="ALLOWED">
<view:authority>GROUP_EVERYONE</view:authority>
<view:permission>Consumer</view:permission>
</view:ace>
</view:acl>
<app:uifacets />
<cm:name>${spaces.company_home.name}</cm:name>
<app:icon>space-icon-default</app:icon>
<cm:title>${spaces.company_home.name}</cm:title>
<cm:description>${spaces.company_home.description}</cm:description>
<cm:contains>
……….
<cm:folder view:childName="${spaces.services.childname}">
<app:uifacets />
<cm:name>${spaces.services.name}</cm:name>
<app:icon>space-icon-default</app:icon>
<cm:title>${spaces.services.name}</cm:title>
<cm:description>${spaces.services.description}</cm:description>
<cm:contains>
<cm:folder view:childName="${spaces.serviceTypeA.childname}">
<view:acl view:inherit="false">
<view:ace view:access="ALLOWED">
<view:authority>user1</view:authority>
<view:permission>Cons</view:permission>
</view:ace>
<view:ace view:access="ALLOWED">
<view:authority>user2</view:authority>
<view:permission>Part</view:permission>
</view:ace>
<view:ace view:access="ALLOWED">
<view:authority>user3</view:authority>
<view:permission>Reader</view:permission>
</view:ace>
</view:acl>
<app:uifacets />
<cm:name>${spaces.services.serviceTypeA.name}</cm:name>
<app:icon>space-icon-default</app:icon>
<cm:title>${spaces.services.serviceTypeA.name}</cm:title>
<cm:description>${spaces.services.serviceTypeA.description}</cm:description>
</cm:folder>
</cm:contains>
</cm:folder>
</cm:contains>
</cm:folder>
<action id="CreateMySpaceWizard">
<permissions>
<permission allow="true">CreateMySpaceWizard</permission>
</permissions>
<evaluator>com.alfresco.oval.impl.evaluator.CreateMySpaceWizardEvaluator</evaluator>
<label-id>CreateMySpaceWizard</label-id>
<image>/images/icons/create_space.gif</image>
<action>wizard:CreateMySpaceWizard</action>
</action>
<action-group id="browse_create_menu">
………
<action idref="CreateMySpaceWizard" />
</action-group>
public boolean evaluate(Node node)
{
FacesContext fc = FacesContext.getCurrentInstance();
DictionaryService dd = Repository.getServiceRegistry(fc).getDictionaryService();
boolean result = false;
if ( (dd.isSubClass(node.getType(), ContentModel.TYPE_FOLDER)) &&
(node.hasPermission("CreateMySpaceWizard")) )
{
result = true;
}
return result;
}
09-20-2006 04:23 AM
<permissionGroup name="CreateMySpaceWizard" expose="true" allowFullControl="false" />
<permission name="CreateChildren" expose="true" >
<grantedToGroup permissionGroup="AddChildren" />
<grantedToGroup permissionGroup="CreateContent" />
<grantedToGroup permissionGroup="CreateMySpaceWizard" />
</permission>
09-20-2006 07:17 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.