/* * Copyright (C) 2005-2007 Alfresco Software Limited. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * As a special exception to the terms and conditions of version 2.0 of * the GPL, you may redistribute this Program in connection with Free/Libre * and Open Source Software ("FLOSS") applications as described in Alfresco's * FLOSS exception. You should have recieved a copy of the text describing * the FLOSS exception, and it is also available here: * http://www.alfresco.com/legal/licensing" */ package org.alfresco.cmis; /** * CMIS Allowed Action Enum * * @author davidc */ public enum CMISAllowedActionEnum implements EnumLabel { // navigation services CAN_GET_DESCENDANTS("canGetDescendants"), CAN_GET_FOLDER_TREE("canGetFolderTree"), CAN_GET_CHILDREN("canGetChildren"), CAN_GET_FOLDER_PARENT("canGetFolderParent"), CAN_GET_OBJECT_PARENTS("canGetObjectParents"), // object services CAN_CREATE_DOCUMENT("canCreateDocument"), CAN_CREATE_FOLDER("canCreateFolder"), CAN_CREATE_RELATIONSHIP("canCreateRelationship"), CAN_CREATE_POLICY("canCreatePolicy"), CAN_GET_PROPERTIES("canGetProperties"), CAN_GET_RENDITIONS("canGetRenditions"), CAN_GET_CONTENT_STREAM("canGetContentStream"), CAN_UPDATE_PROPERTIES("canUpdateProperties"), CAN_MOVE_OBJECT("canMoveObject"), CAN_DELETE_OBJECT("canDeleteObject"), CAN_SET_CONTENT_STREAM("canSetContentStream"), CAN_DELETE_CONTENT_STREAM("canDeleteContentStream"), // multi-filing services CAN_ADD_OBJECT_TO_FOLDER("canAddObjectToFolder"), CAN_REMOVE_OBJECT_FROM_FOLDER("canRemoveObjectFromFolder"), // versioning services CAN_CHECKOUT("canCheckOut"), CAN_CANCEL_CHECKOUT("canCancelCheckOut"), CAN_CHECKIN("canCheckIn"), CAN_GET_ALL_VERSIONS("canGetAllVersions"), // relationship services CAN_GET_OBJECT_RELATIONSHIPS("canGetObjectRelationships"), // policy services CAN_APPLY_POLICY("canApplyPolicy"), CAN_REMOVE_POLICY("canRemovePolicy"), CAN_GET_APPLIED_POLICIES("canGetAppliedPolicies"), // acl services CAN_GET_ACL("canGetACL"), CAN_APPLY_ACL("canApplyACL"); private String label; /** * Construct * * @param label */ CMISAllowedActionEnum(String label) { this.label = label; } /* (non-Javadoc) * @see org.alfresco.cmis.EnumLabel#label() */ public String getLabel() { return label; } public static EnumFactory FACTORY = new EnumFactory(CMISAllowedActionEnum.class); }