This project has retired. For details please refer to its Attic page.
TransientFolder 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  import java.util.Map;
23  
24  import org.apache.chemistry.opencmis.commons.data.Ace;
25  import org.apache.chemistry.opencmis.commons.data.ContentStream;
26  import org.apache.chemistry.opencmis.commons.enums.UnfileObject;
27  import org.apache.chemistry.opencmis.commons.enums.VersioningState;
28  
29  public interface TransientFolder extends TransientFileableCmisObject, FolderProperties {
30  
31      Document createDocument(Map<String, ?> properties, ContentStream contentStream, VersioningState versioningState,
32              List<Policy> policies, List<Ace> addAces, List<Ace> removeAces, OperationContext context);
33  
34      Document createDocument(Map<String, ?> properties, ContentStream contentStream, VersioningState versioningState);
35  
36      Document createDocumentFromSource(ObjectId source, Map<String, ?> properties, VersioningState versioningState,
37              List<Policy> policies, List<Ace> addAces, List<Ace> removeAces, OperationContext context);
38  
39      Document createDocumentFromSource(ObjectId source, Map<String, ?> properties, VersioningState versioningState);
40  
41      Folder createFolder(Map<String, ?> properties, List<Policy> policies, List<Ace> addAces, List<Ace> removeAces,
42              OperationContext context);
43  
44      Folder createFolder(Map<String, ?> properties);
45  
46      Policy createPolicy(Map<String, ?> properties, List<Policy> policies, List<Ace> addAces, List<Ace> removeAces,
47              OperationContext context);
48  
49      Policy createPolicy(Map<String, ?> properties);
50  
51      void deleteTree(boolean allversions, UnfileObject unfile, boolean continueOnFailure);
52  
53      List<Tree<FileableCmisObject>> getFolderTree(int depth);
54  
55      List<Tree<FileableCmisObject>> getFolderTree(int depth, OperationContext context);
56  
57      List<Tree<FileableCmisObject>> getDescendants(int depth);
58  
59      List<Tree<FileableCmisObject>> getDescendants(int depth, OperationContext context);
60  
61      ItemIterable<CmisObject> getChildren();
62  
63      ItemIterable<CmisObject> getChildren(OperationContext context);
64  
65      boolean isRootFolder();
66  
67      Folder getFolderParent();
68  
69      String getPath();
70  
71      ItemIterable<Document> getCheckedOutDocs();
72  
73      ItemIterable<Document> getCheckedOutDocs(OperationContext context);
74  
75      void setAllowedChildObjectTypes(List<ObjectType> types);
76  }