This project has retired. For details please refer to its Attic page.
CmisServiceValidator 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.inmemory.storedobj.api;
20  
21  import org.apache.chemistry.opencmis.commons.data.Acl;
22  import org.apache.chemistry.opencmis.commons.data.ExtensionsData;
23  import org.apache.chemistry.opencmis.commons.enums.AclPropagation;
24  import org.apache.chemistry.opencmis.commons.enums.RelationshipDirection;
25  import org.apache.chemistry.opencmis.commons.enums.UnfileObject;
26  import org.apache.chemistry.opencmis.commons.server.CallContext;
27  import org.apache.chemistry.opencmis.commons.spi.Holder;
28  
29  public interface CmisServiceValidator {
30  
31      void getRepositoryInfos(CallContext context, ExtensionsData extension);
32  
33      void getRepositoryInfo(CallContext context, String repositoryId, ExtensionsData extension);
34  
35      void getTypeChildren(CallContext context, String repositoryId, String typeId,
36              ExtensionsData extension);
37  
38      void getTypeDescendants(CallContext context, String repositoryId, String typeId,
39              ExtensionsData extension);
40  
41      void getTypeDefinition(CallContext context, String repositoryId, String typeId,
42              ExtensionsData extension);
43  
44      StoredObject getChildren(CallContext context, String repositoryId, String folderId, ExtensionsData extension);
45  
46      StoredObject getDescendants(CallContext context, String repositoryId, String folderId,
47              ExtensionsData extension);
48  
49      StoredObject getFolderTree(CallContext context, String repositoryId, String folderId,
50              ExtensionsData extension);
51  
52      StoredObject getObjectParents(CallContext context, String repositoryId, String objectId,
53              ExtensionsData extension);
54  
55      StoredObject getFolderParent(CallContext context, String repositoryId, String folderId,
56              ExtensionsData extension);
57  
58      StoredObject getCheckedOutDocs(CallContext context, String repositoryId, String folderId,
59              ExtensionsData extension);
60  
61      StoredObject createDocument(CallContext context, String repositoryId, String folderId,
62              ExtensionsData extension);
63  
64      StoredObject createDocumentFromSource(CallContext context, String repositoryId, String sourceId,
65              String folderId, ExtensionsData extension);
66  
67      StoredObject createFolder(CallContext context, String repositoryId, String folderId,
68              ExtensionsData extension);
69  
70      // relationship has no parent, returns source and target object
71      StoredObject[] createRelationship(CallContext context, String repositoryId, String sourceId, 
72      		 String targetId, ExtensionsData extension);
73  
74      StoredObject createPolicy(CallContext context, String repositoryId, String folderId,
75              ExtensionsData extension);
76  
77      StoredObject getAllowableActions(CallContext context, String repositoryId, String objectId,
78              ExtensionsData extension);
79  
80      StoredObject getObject(CallContext context, String repositoryId, String objectId,
81              ExtensionsData extension);
82  
83      StoredObject getProperties(CallContext context, String repositoryId, String objectId,
84              ExtensionsData extension);
85  
86      StoredObject getRenditions(CallContext context, String repositoryId, String objectId,
87              ExtensionsData extension);
88  
89      StoredObject getObjectByPath(CallContext context, String repositoryId, String path,
90              ExtensionsData extension);
91  
92      StoredObject getContentStream(CallContext context, String repositoryId, String objectId,
93              String streamId, ExtensionsData extension);
94  
95      StoredObject updateProperties(CallContext context, String repositoryId, Holder<String> objectId,
96              ExtensionsData extension);
97  
98      StoredObject[] moveObject(CallContext context, String repositoryId, Holder<String> objectId,
99              String targetFolderId, String sourceFolderId, ExtensionsData extension);
100 
101     StoredObject deleteObject(CallContext context, String repositoryId, String objectId,
102             Boolean allVersions, ExtensionsData extension);
103 
104     StoredObject deleteTree(CallContext context, String repositoryId, String folderId,
105             Boolean allVersions, UnfileObject unfileObjects, ExtensionsData extension);
106 
107     StoredObject setContentStream(CallContext context, String repositoryId, Holder<String> objectId,
108             Boolean overwriteFlag, ExtensionsData extension);
109 
110     StoredObject deleteContentStream(CallContext context, String repositoryId, Holder<String> objectId,
111             ExtensionsData extension);
112 
113     StoredObject checkOut(CallContext context, String repositoryId, Holder<String> objectId,
114             ExtensionsData extension, Holder<Boolean> contentCopied);
115 
116     StoredObject cancelCheckOut(CallContext context, String repositoryId, String objectId,
117             ExtensionsData extension);
118 
119     StoredObject checkIn(CallContext context, String repositoryId, Holder<String> objectId,
120             Acl addAces, Acl removeAces, ExtensionsData extension);
121 
122     StoredObject getObjectOfLatestVersion(CallContext context, String repositoryId, String objectId,
123             String versionSeriesId, ExtensionsData extension);
124 
125     StoredObject getPropertiesOfLatestVersion(CallContext context, String repositoryId,
126             String objectId, String versionSeriesId, ExtensionsData extension);
127 
128     StoredObject getAllVersions(CallContext context, String repositoryId, String objectId,
129             String versionSeriesId, ExtensionsData extension);
130 
131     void query(CallContext context, String repositoryId, ExtensionsData extension);
132 
133     void getContentChanges(CallContext context, String repositoryId, ExtensionsData extension);
134 
135     StoredObject[] addObjectToFolder(CallContext context, String repositoryId, String objectId,
136             String folderId, Boolean allVersions, ExtensionsData extension);
137 
138     StoredObject[] removeObjectFromFolder(CallContext context, String repositoryId, String objectId,
139             String folderId, ExtensionsData extension);
140 
141     StoredObject getObjectRelationships(CallContext context, String repositoryId, String objectId,
142             RelationshipDirection relationshipDirection, String typeId, ExtensionsData extension);
143 
144     StoredObject getAcl(CallContext context, String repositoryId, String objectId,
145             ExtensionsData extension);
146 
147     StoredObject applyAcl(CallContext context, String repositoryId, String objectId,
148             AclPropagation aclPropagation, ExtensionsData extension);
149 
150     StoredObject[] applyPolicy(CallContext context, String repositoryId, String policyId,
151             String objectId, ExtensionsData extension);
152 
153     StoredObject[] removePolicy(CallContext context, String repositoryId, String policyId,
154             String objectId, ExtensionsData extension);
155 
156     StoredObject getAppliedPolicies(CallContext context, String repositoryId, String objectId,
157             ExtensionsData extension);
158 
159     StoredObject create(CallContext context, String repositoryId, String folderId,
160             ExtensionsData extension);
161 
162 //    StoredObject deleteObjectOrCancelCheckOut(CallContext context, String repositoryId,
163 //            String objectId, ExtensionsData extension);
164 
165     StoredObject applyAcl(CallContext context, String repositoryId, String objectId);
166 
167  }