As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
J'ai aussi essayé de lui ajouter l'attribut hide="true" dans le action-group ou elle se trouve mais ça n'a pas fonctionné non plus
<config evaluator="node-type" condition="mcm:resource"> <action-group id="document_browse"> <show-link>false</show-link> <style-class>inlineAction</style-class> <!– New style edit online/offline actions –> <action idref="upload_new_version" hide="true"/> <action idref="edit_doc_online_webdav" hide="true"/> <action idref="edit_doc_online_cifs" hide="true"/> <action idref="edit_doc_online_http" hide="true"/> <action idref="edit_doc_offline" hide="true"/> <action idref="done_editing_doc" hide="true"/> <action idref="cancel_editing_doc" hide="true"/> <action idref="preview_doc" hide="true" /> <action idref="delete_doc" hide="true"/> <action idref="download_doc" /> <action idref="details_doc" /> <!–these actions are not in the default document_browse action-group but they still appear in the list of documents action so we hide them –> <action idref="cut_node" hide="true" /> <action idref="copy_node" hide="true" /> </action-group> <action-group id="document_browse_menu"> <action idref="preview_doc" hide="true" /> <action idref="update_doc" hide="true" /> <action idref="approve_doc" hide="true" /> <action idref="reject_doc" hide="true" /> <action idref="cut_node" hide="true" /> <action idref="copy_node" hide="true" /> <action idref="preview_doc" hide="true" /> </action-group> <action-group id="doc_details_actions"> <!– New style edit online/offline actions –> <action idref="upload_new_version" hide="true" /> <action idref="edit_doc_online_http" hide="true" /> <action idref="edit_doc_online_webdav" hide="true" /> <action idref="edit_doc_online_cifs" hide="true" /> <action idref="edit_doc_offline" hide="true" /> <action idref="done_editing_doc" hide="true" /> <action idref="cancel_editing_doc" hide="true" /> <action idref="approve_doc_details" hide="true" /> <action idref="reject_doc_details" hide="true" /> <action idref="update_doc" hide="true" /> <action idref="cut_node" hide="true" /> <action idref="copy_node" hide="true" /> <action idref="delete_doc" hide="true" /> <action idref="unlock_doc" hide="true" /> <action idref="take_ownership_doc" hide="true" /> <action idref="manage_content_users" hide="true" /> <action idref="preview_doc" hide="true" /> <action idref="run_action" hide="true" /> <action idref="make_doc_multilingual" hide="true" /> <action idref="add_translation" hide="true" /> <action idref="add_translation_wc" hide="true" /> <action idref="ml_details" hide="true" /> <action idref="create_shortcut" /> <action idref="download_doc" /> </action-group> </config>
<config evaluator="node-type" condition="mcm:resource" replace="true"> etc …
<alfresco-config> <!– mcm:resource configuration –> <config evaluator="node-type" condition="mcm:resource"> <actions> <action-group id="document_browse"> <show-link>false</show-link> <style-class>inlineAction</style-class> <action idref="upload_new_version" hide="true"/> <action idref="edit_doc_online_webdav" hide="true"/> <action idref="edit_doc_online_cifs" hide="true"/> <action idref="edit_doc_online_http" hide="true"/> <action idref="edit_doc_offline" hide="true"/> <action idref="done_editing_doc" hide="true"/> <action idref="cancel_editing_doc" hide="true"/> <action idref="preview_doc" hide="true" /> <action idref="delete_doc" hide="true"/> <action idref="cut_node" hide="true" /> <action idref="copy_node" hide="true" /> <action idref="download_doc" /> <action idref="details_doc" /> </action-group> <action-group id="document_browse_menu"> <action idref="preview_doc" hide="true" /> <action idref="update_doc" hide="true" /> <action idref="approve_doc" hide="true" /> <action idref="reject_doc" hide="true" /> <action idref="cut_node" hide="true" /> <action idref="copy_node" hide="true" /> <action idref="preview_doc" hide="true" /> </action-group> <action-group id="doc_details_actions"> <action idref="upload_new_version" hide="true" /> <action idref="edit_doc_online_http" hide="true" /> <action idref="edit_doc_online_webdav" hide="true" /> <action idref="edit_doc_online_cifs" hide="true" /> <action idref="edit_doc_offline" hide="true" /> <action idref="done_editing_doc" hide="true" /> <action idref="cancel_editing_doc" hide="true" /> <action idref="approve_doc_details" hide="true" /> <action idref="reject_doc_details" hide="true" /> <action idref="update_doc" hide="true" /> <action idref="cut_node" hide="true" /> <action idref="copy_node" hide="true" /> <action idref="delete_doc" hide="true" /> <action idref="unlock_doc" hide="true" /> <action idref="take_ownership_doc" hide="true" /> <action idref="manage_content_users" hide="true" /> <action idref="make_doc_multilingual" hide="true" /> <action idref="add_translation" hide="true" /> <action idref="add_translation_wc" hide="true" /> <action idref="ml_details" hide="true" /> <action idref="preview_doc" hide="true" /> <action idref="run_action" hide="true" /> <action idref="start_workflow" hide="true" /> <action idref="create_shortcut" /> <action idref="download_doc" /> <action idref="create_forum_node" /> <action idref="discuss_node" /> </action-group> </actions> </config> </alfresco-config>
pouvez-vuos réessayer en précisant : <config evaluator="node-type" condition="mcm:resource" replace="true"> etc …
Mais est-il possible de surcharger la configuration d'une action déjà existante?
Failed to create new space due to error: 07110006 Access Denied. You do not have the appropriate permissions to perform this operation.
ServiceRegistry serviceRegistry = (ServiceRegistry) context.getBean(ServiceRegistry.SERVICE_REGISTRY); permService = serviceRegistry.getPermissionService(); NodeRef nodeRef = JCRNodeRef.getNodeRef(customCompanyHome); permService.setPermission(nodeRef, PermissionService.ALL_AUTHORITIES, PermissionService.CONTRIBUTOR, true); permService.setPermission(nodeRef, PermissionService.ALL_AUTHORITIES, PermissionService.WRITE, true);
NodeRef nodeRef = JCRNodeRef.getNodeRef(newAlfNode); permService.setInheritParentPermissions(nodeRef, true);