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.
<!– Action for adding content - quick upload –> <action-group id="add_content_menu"> <style>white-space:nowrap</style> <action idref="add_adm_content" hide="true" /> </action-group> <!– Actions Menu for Create in Browse screen –> <action-group id="browse_create_menu" hide="true"> <action idref="create_content" hide="true" /> <action idref="create_form" hide="true" /> <action idref="create_web_form" hide="true" /> <action idref="create_website_wizard" hide="true" /> <action idref="create_project" hide="true" /> <action idref="create_space" hide="true" /> <action idref="create_space_wizard" hide="true" /> </action-group>
<action id="youraction"> <evaluator>org.alfresco.web.action.evaluator.YourEvaluator</evaluator>
public class YourEvaluator extends BaseActionEvaluator{ public boolean evaluate(Node node) { DictionaryService dd = Repository.getServiceRegistry( FacesContext.getCurrentInstance()).getDictionaryService(); //the logic goes here! return dd.isSubClass(node.getType(), ContentModel.TYPE_CONTENT) && ((node.hasPermission(PermissionService.CHECK_OUT) && (node.isLocked() == false && node.hasAspect(ContentModel.ASPECT_WORKING_COPY) == false) && node.hasAspect(ContentModel.ASPECT_MULTILINGUAL_EMPTY_TRANSLATION) == false)); }}