package com.libreecm.commonAPI.model.enums;
public enum Event {

	 // important: do not change the order of these values!
    /** @cmis 1.0 */
    DELETE_OBJECT ("DeleteObject"), //
    /** @cmis 1.0 */
    UPDATE_PROPERTIES ("UpdateProperties"), //
    /** @cmis 1.0 */
    GET_FOLDER_TREE ("GetFolderTree"), //
    /** @cmis 1.0 */
    GET_PROPERTIES ("GetProperties"), //
    /** @cmis 1.0 */
    GET_OBJECT_RELATIONSHIPS ("GetObjectRelationships"), //
    /** @cmis 1.0 */
    GET_OBJECT_PARENTS ("GetObjectParents"), //
    /** @cmis 1.0 */
    GET_FOLDER_PARENT ("GetFolderParent"), //
    /** @cmis 1.0 */
    GET_DESCENDANTS ("GetDescendants"), //
    /** @cmis 1.0 */
    MOVE_OBJECT ("MoveObject"), //
    /** @cmis 1.0 */
    DELETE_CONTENT_STREAM ("DeleteContentStream"), //
    /** @cmis 1.0 */
    CHECK_OUT ("CheckOut"), //
    /** @cmis 1.0 */
    CANCEL_CHECK_OUT ("CancelCheckOut"), //
    /** @cmis 1.0 */
    CHECK_IN ("CheckIn"), //
    /** @cmis 1.0 */
    SET_CONTENT_STREAM ("SetContentStream"), //
    /** @cmis 1.0 */
    GET_ALL_VERSIONS ("GetAllVersions"), //
    /** @cmis 1.0 */
    ADD_OBJECT_TO_FOLDER ("AddObjectToFolder"), //
    /** @cmis 1.0 */
    REMOVE_OBJECT_FROM_FOLDER ("RemoveObjectFromFolder"), //
    /** @cmis 1.0 */
    GET_CONTENT_STREAM ("GetContentStream"), //
    /** @cmis 1.0 */
    APPLY_POLICY ("ApplyPolicy"), //
    /** @cmis 1.0 */
    GET_APPLIED_POLICIES ("GetAppliedPolicies"), //
    /** @cmis 1.0 */
    REMOVE_POLICY ("RemovePolicy"), //
    /** @cmis 1.0 */
    GET_CHILDREN ("GetChildren"), //
    /** @cmis 1.0 */
    CREATE_DOCUMENT ("CreateDocument"), //
    /** @cmis 1.0 */
    CREATE_FOLDER ("CreateFolder"), //
    /** @cmis 1.0 */
    CREATE_RELATIONSHIP ("CreateRelationship"), //
    /** @cmis 1.1 */
    CREATE_ITEM ("CreateItem"), //
    /** @cmis 1.0 */
    DELETE_TREE ("DeleteTree"), //
    /** @cmis 1.0 */
    GET_RENDITIONS ("GetRenditions"), //
    /** @cmis 1.0 */
    GET_ACL ("GetACL"), //
    /** @cmis 1.0 */
    APPLY_ACL ("ApplyACL");

    private final String value;

    Event(String v) {
        value = v;
    }

    public String value() {
        return value;
    }

    public static Event fromValue(String v) {
        for (Event c : Event.values()) {
            if (c.value.equals(v)) {
                return c;
            }
        }
        throw new IllegalArgumentException(v);
    }

}
