This project has retired. For details please refer to its
Attic page.
Action xref
1/*2 * Licensed to the Apache Software Foundation (ASF) under one3 * or more contributor license agreements. See the NOTICE file4 * distributed with this work for additional information5 * regarding copyright ownership. The ASF licenses this file6 * to you under the Apache License, Version 2.0 (the7 * "License"); you may not use this file except in compliance8 * with the License. You may obtain a copy of the License at9 *10 * http://www.apache.org/licenses/LICENSE-2.011 *12 * Unless required by applicable law or agreed to in writing,13 * software distributed under the License is distributed on an14 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY15 * KIND, either express or implied. See the License for the16 * specific language governing permissions and limitations17 * under the License.18 */19package org.apache.chemistry.opencmis.commons.enums;
2021public enum Action {
2223 CAN_DELETE_OBJECT("canDeleteObject"), //24 CAN_UPDATE_PROPERTIES("canUpdateProperties"), //25 CAN_GET_PROPERTIES("canGetProperties"), //26 CAN_GET_OBJECT_RELATIONSHIPS("canGetObjectRelationships"), //27 CAN_GET_OBJECT_PARENTS("canGetObjectParents"), //28 CAN_GET_FOLDER_PARENT("canGetFolderParent"), //29 CAN_GET_FOLDER_TREE("canGetFolderTree"), //30 CAN_GET_DESCENDANTS("canGetDescendants"), //31 CAN_MOVE_OBJECT("canMoveObject"), //32 CAN_DELETE_CONTENT_STREAM("canDeleteContentStream"), //33 CAN_CHECK_OUT("canCheckOut"), //34 CAN_CANCEL_CHECK_OUT("canCancelCheckOut"), //35 CAN_CHECK_IN("canCheckIn"), //36 CAN_SET_CONTENT_STREAM("canSetContentStream"), //37 CAN_GET_ALL_VERSIONS("canGetAllVersions"), //38 CAN_ADD_OBJECT_TO_FOLDER("canAddObjectToFolder"), //39 CAN_REMOVE_OBJECT_FROM_FOLDER("canRemoveObjectFromFolder"), //40 CAN_GET_CONTENT_STREAM("canGetContentStream"), //41 CAN_APPLY_POLICY("canApplyPolicy"), //42 CAN_GET_APPLIED_POLICIES("canGetAppliedPolicies"), //43 CAN_REMOVE_POLICY("canRemovePolicy"), //44 CAN_GET_CHILDREN("canGetChildren"), //45 CAN_CREATE_DOCUMENT("canCreateDocument"), //46 CAN_CREATE_FOLDER("canCreateFolder"), //47 CAN_CREATE_RELATIONSHIP("canCreateRelationship"), //48 CAN_DELETE_TREE("canDeleteTree"), //49 CAN_GET_RENDITIONS("canGetRenditions"), //50 CAN_GET_ACL("canGetACL"), //51 CAN_APPLY_ACL("canApplyACL");
5253privatefinal String value;
5455Action(String v) {
56 value = v;
57 }
5859public String value() {
60return value;
61 }
6263publicstaticAction fromValue(String v) {
64for (Action c : Action.values()) {
65if (c.value.equals(v)) {
66return c;
67 }
68 }
69thrownew IllegalArgumentException(v);
70 }
71 }