alfresco-community-repo/source/java/org/alfresco/cmis/CMISAllowedActionEnum.java
David Caruana 21da34d30a CMIS Allowable Actions REST binding (part 1)
- add getAllowableActions()
- update getProperties(), getChildren() with includeAllowableActions flag
- testAllowableActions()

TODO:
- add includeAllowableActions flag for all other required methods
- Abdera extension to parse allowable actions

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@13834 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-04-03 21:19:31 +00:00

85 lines
2.9 KiB
Java

/*
* 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
{
CAN_DELETE("canDelete"),
CAN_UPDATE_PROPERTIES("canUpdateProperties"),
CAN_GET_PROPERTIES("canGetProperties"),
CAN_GET_RELATIONSHIPS("canGetRelationships"),
CAN_GET_PARENTS("canGetParents"),
CAN_GET_FOLDER_PARENT("canGetFolderParent"),
CAN_GET_DESCENDANTS("canGetDescendants"),
CAN_MOVE("canMove"),
CAN_DELETE_VERSION("canDeleteVersion"),
CAN_DELETE_CONTENT("canDeleteContent"),
CAN_CHECKOUT("canCheckout"),
CAN_CANCEL_CHECKOUT("canCancelCheckout"),
CAN_CHECKIN("canCheckin"),
CAN_SET_CONTENT("canSetContent"),
CAN_GET_ALL_VERSIONS("canGetAllVersions"),
CAN_ADD_TO_FOLDER("canAddToFolder"),
CAN_REMOVE_FROM_FOLDER("canRemoveFromFolder"),
CAN_VIEW_CONTENT("canViewContent"),
CAN_ADD_POLICY("canAddPolicy"),
CAN_GET_APPLIED_POLICIES("canGetAppliedPolicies"),
CAN_REMOVE_POLICY("canRemovePolicy"),
CAN_GET_CHILDREN("canGetChildren"),
CAN_CREATE_DOCUMENT("canCreateDocument"),
CAN_CREATE_FOLDER("canCreateFolder"),
CAN_CREATE_RELATIONSHIP("canCreateRelationship"),
CAN_CREATE_POLICY("canCreatePolicy"),
CAN_DELETE_TREE("canDeleteTree");
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<CMISAllowedActionEnum> FACTORY = new EnumFactory<CMISAllowedActionEnum>(CMISAllowedActionEnum.class);
}