This project has retired. For details please refer to its Attic page.
Action xref

1   /*
2    * Licensed to the Apache Software Foundation (ASF) under one
3    * or more contributor license agreements.  See the NOTICE file
4    * distributed with this work for additional information
5    * regarding copyright ownership.  The ASF licenses this file
6    * to you under the Apache License, Version 2.0 (the
7    * "License"); you may not use this file except in compliance
8    * with the License.  You may obtain a copy of the License at
9    *
10   * http://www.apache.org/licenses/LICENSE-2.0
11   *
12   * Unless required by applicable law or agreed to in writing,
13   * software distributed under the License is distributed on an
14   * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15   * KIND, either express or implied.  See the License for the
16   * specific language governing permissions and limitations
17   * under the License.
18   */
19  package org.apache.chemistry.opencmis.commons.enums;
20  
21  public enum Action {
22  
23      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");
52  
53      private final String value;
54  
55      Action(String v) {
56          value = v;
57      }
58  
59      public String value() {
60          return value;
61      }
62  
63      public static Action fromValue(String v) {
64          for (Action c : Action.values()) {
65              if (c.value.equals(v)) {
66                  return c;
67              }
68          }
69          throw new IllegalArgumentException(v);
70      }
71  }