This project has retired. For details please refer to its Attic page.
PermissionMapping 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.data;
20  
21  import java.io.Serializable;
22  import java.util.List;
23  
24  public interface PermissionMapping extends Serializable, ExtensionsData {
25      String CAN_GET_DESCENDENTS_FOLDER = "canGetDescendents.Folder";
26      String CAN_GET_CHILDREN_FOLDER = "canGetChildren.Folder";
27      String CAN_GET_PARENTS_FOLDER = "canGetParents.Folder";
28      String CAN_GET_FOLDER_PARENT_OBJECT = "canGetFolderParent.Object";
29      String CAN_CREATE_DOCUMENT_FOLDER = "canCreateDocument.Folder";
30      String CAN_CREATE_FOLDER_FOLDER = "canCreateFolder.Folder";
31      String CAN_CREATE_RELATIONSHIP_SOURCE = "canCreateRelationship.Source";
32      String CAN_CREATE_RELATIONSHIP_TARGET = "canCreateRelationship.Target";
33      String CAN_GET_PROPERTIES_OBJECT = "canGetProperties.Object";
34      String CAN_VIEW_CONTENT_OBJECT = "canViewContent.Object";
35      String CAN_UPDATE_PROPERTIES_OBJECT = "canUpdateProperties.Object";
36      String CAN_MOVE_OBJECT = "canMove.Object";
37      String CAN_MOVE_TARGET = "canMove.Target";
38      String CAN_MOVE_SOURCE = "canMove.Source";
39      String CAN_DELETE_OBJECT = "canDelete.Object";
40      String CAN_DELETE_TREE_FOLDER = "canDeleteTree.Folder";
41      String CAN_SET_CONTENT_DOCUMENT = "canSetContent.Document";
42      String CAN_DELETE_CONTENT_DOCUMENT = "canDeleteContent.Document";
43      String CAN_ADD_TO_FOLDER_OBJECT = "canAddToFolder.Object";
44      String CAN_ADD_TO_FOLDER_FOLDER = "canAddToFolder.Folder";
45      String CAN_REMOVE_FROM_FOLDER_OBJECT = "canRemoveFromFolder.Object";
46      String CAN_REMOVE_FROM_FOLDER_FOLDER = "canRemoveFromFolder.Folder";
47      String CAN_CHECKOUT_DOCUMENT = "canCheckout.Document";
48      String CAN_CANCEL_CHECKOUT_DOCUMENT = "canCancelCheckout.Document";
49      String CAN_CHECKIN_DOCUMENT = "canCheckin.Document";
50      String CAN_GET_ALL_VERSIONS_VERSION_SERIES = "canGetAllVersions.VersionSeries";
51      String CAN_GET_OBJECT_RELATIONSHIPS_OBJECT = "canGetObjectRelationships.Object";
52      String CAN_ADD_POLICY_OBJECT = "canAddPolicy.Object";
53      String CAN_ADD_POLICY_POLICY = "canAddPolicy.Policy";
54      String CAN_REMOVE_POLICY_OBJECT = "canRemovePolicy.Object";
55      String CAN_REMOVE_POLICY_POLICY = "canRemovePolicy.Policy";
56      String CAN_GET_APPLIED_POLICIES_OBJECT = "canGetAppliedPolicies.Object";
57      String CAN_GET_ACL_OBJECT = "canGetACL.Object";
58      String CAN_APPLY_ACL_OBJECT = "canApplyACL.Object";
59  
60      String getKey();
61  
62      List<String> getPermissions();
63  
64  }