hello , I'm trying to create a new role(consumerCollaborator) i succeed for that but i want to disable action download for this user but i not found any solution for this for the default role i use the evaluator is ok, but for my customRole is not ok can you help me please thanks
First, you should know that touching that Alfresco JAR file and the files within it is not the preferred way to extend Alfresco. You are making it painful for yourself and others to maintain that installation going forward. Instead, you should read about the standard extension mechanisms in Alfresco which are fairly well documented.
Aside from that, it looks like you've defined a new evaluator called "evaluator.doclib.action.isSiteNew". Can you show me the Spring bean that defines that evaluator?
Please provide your spring context file and Share module extension file and any error messages you are seeing as well as steps you have tried to resolve the problem.
I do modification in 1: sitePermissionDefinitions.xml { <?xml version='1.0' encoding='UTF-8'?> <!DOCTYPE permissions >
<permissions> <!– Namespaces used in type references –> <namespaces> <namespace uri="http://www.alfresco.org/model/system/1.0" prefix="sys"/> <namespace uri="http://www.alfresco.org/model/content/1.0" prefix="cm"/> <namespace uri="http://www.alfresco.org/model/site/1.0" prefix="st"/> </namespaces> <!– ============================================ –> <!– Permissions specific to the wiki integration –> <!– ============================================ –> <permissionSet type="st:site" expose="selected"> <permissionGroup name="SiteManager" allowFullControl="true" expose="true" /> <permissionGroup name="SiteCollaborator" allowFullControl="false" expose="true"> <includePermissionGroup permissionGroup="Collaborator" type="cm:cmobject" /> </permissionGroup> <permissionGroup name="SiteContributor" allowFullControl="false" expose="true"> <includePermissionGroup permissionGroup="Contributor" type="cm:cmobject" /> </permissionGroup> <permissionGroup name="SiteConsumer" allowFullControl="false" expose="true"> <includePermissionGroup permissionGroup="Consumer" type="cm:cmobject" /> <includePermissionGroup permissionGroup="ReadPermissions" type="sys:base" /> </permissionGroup> <!– new groupe permission –> <permissionGroup name="SiteNew" allowFullControl="false" expose="true"> <includePermissionGroup permissionGroup="New" type="cm:cmobject" /> </permissionGroup> </permissionSet>
</permissions>
} 2: in permissionDefinitions.xml i creat a permissiongroupe NEW like { <permissionGroup name="New" allowFullControl="false" expose="true" > <includePermissionGroup permissionGroup="Consumer" type="cm:cmobject"/> <includePermissionGroup permissionGroup="AddChildren" type="sys:base"/> <includePermissionGroup permissionGroup="ReadPermissions" type="sys:base" /> </permissionGroup> } 3: i replace this jar in alfresco and restart service a new role SiteNew is created when invite user for join site
and for disable action in share-config-custom.xml I add <config evaluator="string-compare" condition="DocLibActions"> <actions> <action id="document-download" type="link" label="actions.document.download"> <param name="href">{downloadUrl}</param> <evaluator>evaluator.doclib.action.downloadBrowser</evaluator> <evaluator negate="false">evaluator.doclib.action.isSiteNew</evaluator> </action> </actions> </config> 4: but this not work but if i do for siteCollaborator work fine
attached file are permissionDefinition.xml and SitePermissionDefinitions
First, you should know that touching that Alfresco JAR file and the files within it is not the preferred way to extend Alfresco. You are making it painful for yourself and others to maintain that installation going forward. Instead, you should read about the standard extension mechanisms in Alfresco which are fairly well documented.
Aside from that, it looks like you've defined a new evaluator called "evaluator.doclib.action.isSiteNew". Can you show me the Spring bean that defines that evaluator?
yes, for me i try to create a new amp but is not worked from this link http://smasue.github.io/add-custom-role and i find this solution (edit in jar) in formus because that i changed in JAR about"evaluator.doclib.action.isSiteNew" i try it, i'm not create a new evaluator i said that i hava any solution about desable action for my newrole .
for that i'm trying to cantact you to help me about. thanks,