mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@10722 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
95 lines
2.9 KiB
Java
95 lines
2.9 KiB
Java
|
|
package org.alfresco.repo.cmis.ws;
|
|
|
|
import javax.xml.bind.annotation.XmlEnum;
|
|
import javax.xml.bind.annotation.XmlEnumValue;
|
|
|
|
|
|
/**
|
|
* <p>Java class for allowableActionsEnum.
|
|
*
|
|
* <p>The following schema fragment specifies the expected content contained within this class.
|
|
* <p>
|
|
* <pre>
|
|
* <simpleType name="allowableActionsEnum">
|
|
* <restriction base="{http://www.w3.org/2001/XMLSchema}string">
|
|
* <enumeration value="delete"/>
|
|
* <enumeration value="updateProperties"/>
|
|
* <enumeration value="checkOut"/>
|
|
* <enumeration value="cancelCheckOut"/>
|
|
* <enumeration value="checkIn"/>
|
|
* <enumeration value="deleteVersion"/>
|
|
* <enumeration value="addToFolder"/>
|
|
* <enumeration value="removeFromFolder"/>
|
|
* <enumeration value="setContent"/>
|
|
* <enumeration value="deleteContent"/>
|
|
* <enumeration value="getAllVersions"/>
|
|
* <enumeration value="getChilderen"/>
|
|
* <enumeration value="getParents"/>
|
|
* <enumeration value="getRelationships"/>
|
|
* <enumeration value="getProperties"/>
|
|
* <enumeration value="viewContent"/>
|
|
* <enumeration value="move"/>
|
|
* </restriction>
|
|
* </simpleType>
|
|
* </pre>
|
|
*
|
|
*/
|
|
@XmlEnum
|
|
public enum AllowableActionsEnum {
|
|
|
|
@XmlEnumValue("addToFolder")
|
|
ADD_TO_FOLDER("addToFolder"),
|
|
@XmlEnumValue("cancelCheckOut")
|
|
CANCEL_CHECK_OUT("cancelCheckOut"),
|
|
@XmlEnumValue("checkIn")
|
|
CHECK_IN("checkIn"),
|
|
@XmlEnumValue("checkOut")
|
|
CHECK_OUT("checkOut"),
|
|
@XmlEnumValue("delete")
|
|
DELETE("delete"),
|
|
@XmlEnumValue("deleteContent")
|
|
DELETE_CONTENT("deleteContent"),
|
|
@XmlEnumValue("deleteVersion")
|
|
DELETE_VERSION("deleteVersion"),
|
|
@XmlEnumValue("getAllVersions")
|
|
GET_ALL_VERSIONS("getAllVersions"),
|
|
@XmlEnumValue("getChilderen")
|
|
GET_CHILDEREN("getChilderen"),
|
|
@XmlEnumValue("getParents")
|
|
GET_PARENTS("getParents"),
|
|
@XmlEnumValue("getProperties")
|
|
GET_PROPERTIES("getProperties"),
|
|
@XmlEnumValue("getRelationships")
|
|
GET_RELATIONSHIPS("getRelationships"),
|
|
@XmlEnumValue("move")
|
|
MOVE("move"),
|
|
@XmlEnumValue("removeFromFolder")
|
|
REMOVE_FROM_FOLDER("removeFromFolder"),
|
|
@XmlEnumValue("setContent")
|
|
SET_CONTENT("setContent"),
|
|
@XmlEnumValue("updateProperties")
|
|
UPDATE_PROPERTIES("updateProperties"),
|
|
@XmlEnumValue("viewContent")
|
|
VIEW_CONTENT("viewContent");
|
|
private final String value;
|
|
|
|
AllowableActionsEnum(String v) {
|
|
value = v;
|
|
}
|
|
|
|
public String value() {
|
|
return value;
|
|
}
|
|
|
|
public static AllowableActionsEnum fromValue(String v) {
|
|
for (AllowableActionsEnum c: AllowableActionsEnum.values()) {
|
|
if (c.value.equals(v)) {
|
|
return c;
|
|
}
|
|
}
|
|
throw new IllegalArgumentException(v.toString());
|
|
}
|
|
|
|
}
|