This project has retired. For details please refer to its Attic page.
TransientCmisObject 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.client.api;
20  
21  import java.util.List;
22  
23  import org.apache.chemistry.opencmis.commons.data.Acl;
24  import org.apache.chemistry.opencmis.commons.data.AllowableActions;
25  import org.apache.chemistry.opencmis.commons.data.CmisExtensionElement;
26  import org.apache.chemistry.opencmis.commons.enums.AclPropagation;
27  import org.apache.chemistry.opencmis.commons.enums.ExtensionLevel;
28  
29  public interface TransientCmisObject extends ObjectId, CmisObjectProperties {
30  
31      // properties
32  
33      void setName(String name);
34  
35      <T> void setPropertyValue(String id, Object value);
36  
37      // read-only
38  
39      AllowableActions getAllowableActions();
40  
41      List<Relationship> getRelationships();
42  
43      List<Rendition> getRenditions();
44  
45      // ACL
46  
47      void addAce(String principalId, List<String> permissions, AclPropagation aclPropagation);
48  
49      void removeAce(String principalId, List<String> permissions, AclPropagation aclPropagation);
50  
51      Acl getOriginalAcl();
52  
53      // policies
54  
55      void applyPolicy(Policy... policyIds);
56  
57      void removePolicy(Policy... policyIds);
58  
59      List<Policy> getPolicies();
60  
61      // delete
62  
63      void delete(boolean allVersions);
64  
65      // extensions
66  
67      List<CmisExtensionElement> getInputExtensions(ExtensionLevel level);
68  
69      List<CmisExtensionElement> getOutputExtensions(ExtensionLevel level);
70  
71      void setOutputExtensions(ExtensionLevel level, List<CmisExtensionElement> extensions);
72  
73      // save
74  
75      boolean isMarkedForDelete();
76  
77      boolean isModified();
78  
79      void reset();
80  
81      void refreshAndReset();
82  
83      ObjectId save();
84  
85      // shared object
86  
87      CmisObject getCmisObject();
88  }