This project has retired. For details please refer to its Attic page.
CmisSpi 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.bindings.spi;
20  
21  import org.apache.chemistry.opencmis.commons.spi.AclService;
22  import org.apache.chemistry.opencmis.commons.spi.DiscoveryService;
23  import org.apache.chemistry.opencmis.commons.spi.MultiFilingService;
24  import org.apache.chemistry.opencmis.commons.spi.NavigationService;
25  import org.apache.chemistry.opencmis.commons.spi.ObjectService;
26  import org.apache.chemistry.opencmis.commons.spi.PolicyService;
27  import org.apache.chemistry.opencmis.commons.spi.RelationshipService;
28  import org.apache.chemistry.opencmis.commons.spi.RepositoryService;
29  import org.apache.chemistry.opencmis.commons.spi.VersioningService;
30  
31  /**
32   * CMIS SPI interface.
33   */
34  public interface CmisSpi {
35      /**
36       * Gets a Repository Service interface object.
37       */
38      RepositoryService getRepositoryService();
39  
40      /**
41       * Gets a Navigation Service interface object.
42       */
43      NavigationService getNavigationService();
44  
45      /**
46       * Gets an Object Service interface object.
47       */
48      ObjectService getObjectService();
49  
50      /**
51       * Gets a Versioning Service interface object.
52       */
53      VersioningService getVersioningService();
54  
55      /**
56       * Gets a Relationship Service interface object.
57       */
58      RelationshipService getRelationshipService();
59  
60      /**
61       * Gets a Discovery Service interface object.
62       */
63      DiscoveryService getDiscoveryService();
64  
65      /**
66       * Gets a Multifiling Service interface object.
67       */
68      MultiFilingService getMultiFilingService();
69  
70      /**
71       * Gets an ACL Service interface object.
72       */
73      AclService getAclService();
74  
75      /**
76       * Gets a Policy Service interface object.
77       */
78      PolicyService getPolicyService();
79  
80      /**
81       * Clears all caches of the current session.
82       */
83      void clearAllCaches();
84  
85      /**
86       * Clears all caches of the current session that are related to the given
87       * repository.
88       * 
89       * @param repositoryId
90       *            the repository id
91       */
92      void clearRepositoryCache(String repositoryId);
93  
94      /**
95       * Releases all resources assigned to this SPI instance.
96       */
97      void close();
98  }