Class IbisObjectService

  • All Implemented Interfaces:
    org.apache.chemistry.opencmis.commons.spi.ObjectService

    public class IbisObjectService
    extends Object
    implements org.apache.chemistry.opencmis.commons.spi.ObjectService
    Wrapper that delegates when a matching CmisEvent is present.
    Author:
    Niels
    • Constructor Summary

      Constructors 
      Constructor Description
      IbisObjectService​(org.apache.chemistry.opencmis.commons.spi.ObjectService objectService, org.apache.chemistry.opencmis.commons.server.CallContext callContext)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void appendContentStream​(String repositoryId, org.apache.chemistry.opencmis.commons.spi.Holder<String> objectId, org.apache.chemistry.opencmis.commons.spi.Holder<String> changeToken, org.apache.chemistry.opencmis.commons.data.ContentStream contentStream, boolean isLastChunk, org.apache.chemistry.opencmis.commons.data.ExtensionsData extension)  
      List<org.apache.chemistry.opencmis.commons.data.BulkUpdateObjectIdAndChangeToken> bulkUpdateProperties​(String repositoryId, List<org.apache.chemistry.opencmis.commons.data.BulkUpdateObjectIdAndChangeToken> objectIdsAndChangeTokens, org.apache.chemistry.opencmis.commons.data.Properties properties, List<String> addSecondaryTypeIds, List<String> removeSecondaryTypeIds, org.apache.chemistry.opencmis.commons.data.ExtensionsData extension)  
      String createDocument​(String repositoryId, org.apache.chemistry.opencmis.commons.data.Properties properties, String folderId, org.apache.chemistry.opencmis.commons.data.ContentStream contentStream, org.apache.chemistry.opencmis.commons.enums.VersioningState versioningState, List<String> policies, org.apache.chemistry.opencmis.commons.data.Acl addAces, org.apache.chemistry.opencmis.commons.data.Acl removeAces, org.apache.chemistry.opencmis.commons.data.ExtensionsData extension)  
      String createDocumentFromSource​(String repositoryId, String sourceId, org.apache.chemistry.opencmis.commons.data.Properties properties, String folderId, org.apache.chemistry.opencmis.commons.enums.VersioningState versioningState, List<String> policies, org.apache.chemistry.opencmis.commons.data.Acl addAces, org.apache.chemistry.opencmis.commons.data.Acl removeAces, org.apache.chemistry.opencmis.commons.data.ExtensionsData extension)  
      String createFolder​(String repositoryId, org.apache.chemistry.opencmis.commons.data.Properties properties, String folderId, List<String> policies, org.apache.chemistry.opencmis.commons.data.Acl addAces, org.apache.chemistry.opencmis.commons.data.Acl removeAces, org.apache.chemistry.opencmis.commons.data.ExtensionsData extension)  
      String createItem​(String repositoryId, org.apache.chemistry.opencmis.commons.data.Properties properties, String folderId, List<String> policies, org.apache.chemistry.opencmis.commons.data.Acl addAces, org.apache.chemistry.opencmis.commons.data.Acl removeAces, org.apache.chemistry.opencmis.commons.data.ExtensionsData extension)  
      String createPolicy​(String repositoryId, org.apache.chemistry.opencmis.commons.data.Properties properties, String folderId, List<String> policies, org.apache.chemistry.opencmis.commons.data.Acl addAces, org.apache.chemistry.opencmis.commons.data.Acl removeAces, org.apache.chemistry.opencmis.commons.data.ExtensionsData extension)  
      String createRelationship​(String repositoryId, org.apache.chemistry.opencmis.commons.data.Properties properties, List<String> policies, org.apache.chemistry.opencmis.commons.data.Acl addAces, org.apache.chemistry.opencmis.commons.data.Acl removeAces, org.apache.chemistry.opencmis.commons.data.ExtensionsData extension)  
      void deleteContentStream​(String repositoryId, org.apache.chemistry.opencmis.commons.spi.Holder<String> objectId, org.apache.chemistry.opencmis.commons.spi.Holder<String> changeToken, org.apache.chemistry.opencmis.commons.data.ExtensionsData extension)  
      void deleteObject​(String repositoryId, String objectId, Boolean allVersions, org.apache.chemistry.opencmis.commons.data.ExtensionsData extension)  
      org.apache.chemistry.opencmis.commons.data.FailedToDeleteData deleteTree​(String repositoryId, String folderId, Boolean allVersions, org.apache.chemistry.opencmis.commons.enums.UnfileObject unfileObjects, Boolean continueOnFailure, org.apache.chemistry.opencmis.commons.data.ExtensionsData extension)  
      org.apache.chemistry.opencmis.commons.data.AllowableActions getAllowableActions​(String repositoryId, String objectId, org.apache.chemistry.opencmis.commons.data.ExtensionsData extension)  
      org.apache.chemistry.opencmis.commons.data.ContentStream getContentStream​(String repositoryId, String objectId, String streamId, BigInteger offset, BigInteger length, org.apache.chemistry.opencmis.commons.data.ExtensionsData extension)  
      org.apache.chemistry.opencmis.commons.data.ObjectData getObject​(String repositoryId, String objectId, String filter, Boolean includeAllowableActions, org.apache.chemistry.opencmis.commons.enums.IncludeRelationships includeRelationships, String renditionFilter, Boolean includePolicyIds, Boolean includeAcl, org.apache.chemistry.opencmis.commons.data.ExtensionsData extensions)  
      org.apache.chemistry.opencmis.commons.data.ObjectData getObjectByPath​(String repositoryId, String path, String filter, Boolean includeAllowableActions, org.apache.chemistry.opencmis.commons.enums.IncludeRelationships includeRelationships, String renditionFilter, Boolean includePolicyIds, Boolean includeAcl, org.apache.chemistry.opencmis.commons.data.ExtensionsData extension)  
      org.apache.chemistry.opencmis.commons.data.Properties getProperties​(String repositoryId, String objectId, String filter, org.apache.chemistry.opencmis.commons.data.ExtensionsData extension)  
      List<org.apache.chemistry.opencmis.commons.data.RenditionData> getRenditions​(String repositoryId, String objectId, String renditionFilter, BigInteger maxItems, BigInteger skipCount, org.apache.chemistry.opencmis.commons.data.ExtensionsData extension)  
      void moveObject​(String repositoryId, org.apache.chemistry.opencmis.commons.spi.Holder<String> objectId, String targetFolderId, String sourceFolderId, org.apache.chemistry.opencmis.commons.data.ExtensionsData extension)  
      void setContentStream​(String repositoryId, org.apache.chemistry.opencmis.commons.spi.Holder<String> objectId, Boolean overwriteFlag, org.apache.chemistry.opencmis.commons.spi.Holder<String> changeToken, org.apache.chemistry.opencmis.commons.data.ContentStream contentStream, org.apache.chemistry.opencmis.commons.data.ExtensionsData extension)  
      void updateProperties​(String repositoryId, org.apache.chemistry.opencmis.commons.spi.Holder<String> objectId, org.apache.chemistry.opencmis.commons.spi.Holder<String> changeToken, org.apache.chemistry.opencmis.commons.data.Properties properties, org.apache.chemistry.opencmis.commons.data.ExtensionsData extension)  
    • Constructor Detail

      • IbisObjectService

        public IbisObjectService​(org.apache.chemistry.opencmis.commons.spi.ObjectService objectService,
                                 org.apache.chemistry.opencmis.commons.server.CallContext callContext)
    • Method Detail

      • createDocument

        public String createDocument​(String repositoryId,
                                     org.apache.chemistry.opencmis.commons.data.Properties properties,
                                     String folderId,
                                     org.apache.chemistry.opencmis.commons.data.ContentStream contentStream,
                                     org.apache.chemistry.opencmis.commons.enums.VersioningState versioningState,
                                     List<String> policies,
                                     org.apache.chemistry.opencmis.commons.data.Acl addAces,
                                     org.apache.chemistry.opencmis.commons.data.Acl removeAces,
                                     org.apache.chemistry.opencmis.commons.data.ExtensionsData extension)
        Specified by:
        createDocument in interface org.apache.chemistry.opencmis.commons.spi.ObjectService
      • createDocumentFromSource

        public String createDocumentFromSource​(String repositoryId,
                                               String sourceId,
                                               org.apache.chemistry.opencmis.commons.data.Properties properties,
                                               String folderId,
                                               org.apache.chemistry.opencmis.commons.enums.VersioningState versioningState,
                                               List<String> policies,
                                               org.apache.chemistry.opencmis.commons.data.Acl addAces,
                                               org.apache.chemistry.opencmis.commons.data.Acl removeAces,
                                               org.apache.chemistry.opencmis.commons.data.ExtensionsData extension)
        Specified by:
        createDocumentFromSource in interface org.apache.chemistry.opencmis.commons.spi.ObjectService
      • createFolder

        public String createFolder​(String repositoryId,
                                   org.apache.chemistry.opencmis.commons.data.Properties properties,
                                   String folderId,
                                   List<String> policies,
                                   org.apache.chemistry.opencmis.commons.data.Acl addAces,
                                   org.apache.chemistry.opencmis.commons.data.Acl removeAces,
                                   org.apache.chemistry.opencmis.commons.data.ExtensionsData extension)
        Specified by:
        createFolder in interface org.apache.chemistry.opencmis.commons.spi.ObjectService
      • createRelationship

        public String createRelationship​(String repositoryId,
                                         org.apache.chemistry.opencmis.commons.data.Properties properties,
                                         List<String> policies,
                                         org.apache.chemistry.opencmis.commons.data.Acl addAces,
                                         org.apache.chemistry.opencmis.commons.data.Acl removeAces,
                                         org.apache.chemistry.opencmis.commons.data.ExtensionsData extension)
        Specified by:
        createRelationship in interface org.apache.chemistry.opencmis.commons.spi.ObjectService
      • createPolicy

        public String createPolicy​(String repositoryId,
                                   org.apache.chemistry.opencmis.commons.data.Properties properties,
                                   String folderId,
                                   List<String> policies,
                                   org.apache.chemistry.opencmis.commons.data.Acl addAces,
                                   org.apache.chemistry.opencmis.commons.data.Acl removeAces,
                                   org.apache.chemistry.opencmis.commons.data.ExtensionsData extension)
        Specified by:
        createPolicy in interface org.apache.chemistry.opencmis.commons.spi.ObjectService
      • createItem

        public String createItem​(String repositoryId,
                                 org.apache.chemistry.opencmis.commons.data.Properties properties,
                                 String folderId,
                                 List<String> policies,
                                 org.apache.chemistry.opencmis.commons.data.Acl addAces,
                                 org.apache.chemistry.opencmis.commons.data.Acl removeAces,
                                 org.apache.chemistry.opencmis.commons.data.ExtensionsData extension)
        Specified by:
        createItem in interface org.apache.chemistry.opencmis.commons.spi.ObjectService
      • getAllowableActions

        public org.apache.chemistry.opencmis.commons.data.AllowableActions getAllowableActions​(String repositoryId,
                                                                                               String objectId,
                                                                                               org.apache.chemistry.opencmis.commons.data.ExtensionsData extension)
        Specified by:
        getAllowableActions in interface org.apache.chemistry.opencmis.commons.spi.ObjectService
      • getObject

        public org.apache.chemistry.opencmis.commons.data.ObjectData getObject​(String repositoryId,
                                                                               String objectId,
                                                                               String filter,
                                                                               Boolean includeAllowableActions,
                                                                               org.apache.chemistry.opencmis.commons.enums.IncludeRelationships includeRelationships,
                                                                               String renditionFilter,
                                                                               Boolean includePolicyIds,
                                                                               Boolean includeAcl,
                                                                               org.apache.chemistry.opencmis.commons.data.ExtensionsData extensions)
        Specified by:
        getObject in interface org.apache.chemistry.opencmis.commons.spi.ObjectService
      • getProperties

        public org.apache.chemistry.opencmis.commons.data.Properties getProperties​(String repositoryId,
                                                                                   String objectId,
                                                                                   String filter,
                                                                                   org.apache.chemistry.opencmis.commons.data.ExtensionsData extension)
        Specified by:
        getProperties in interface org.apache.chemistry.opencmis.commons.spi.ObjectService
      • getRenditions

        public List<org.apache.chemistry.opencmis.commons.data.RenditionData> getRenditions​(String repositoryId,
                                                                                            String objectId,
                                                                                            String renditionFilter,
                                                                                            BigInteger maxItems,
                                                                                            BigInteger skipCount,
                                                                                            org.apache.chemistry.opencmis.commons.data.ExtensionsData extension)
        Specified by:
        getRenditions in interface org.apache.chemistry.opencmis.commons.spi.ObjectService
      • getObjectByPath

        public org.apache.chemistry.opencmis.commons.data.ObjectData getObjectByPath​(String repositoryId,
                                                                                     String path,
                                                                                     String filter,
                                                                                     Boolean includeAllowableActions,
                                                                                     org.apache.chemistry.opencmis.commons.enums.IncludeRelationships includeRelationships,
                                                                                     String renditionFilter,
                                                                                     Boolean includePolicyIds,
                                                                                     Boolean includeAcl,
                                                                                     org.apache.chemistry.opencmis.commons.data.ExtensionsData extension)
        Specified by:
        getObjectByPath in interface org.apache.chemistry.opencmis.commons.spi.ObjectService
      • updateProperties

        public void updateProperties​(String repositoryId,
                                     org.apache.chemistry.opencmis.commons.spi.Holder<String> objectId,
                                     org.apache.chemistry.opencmis.commons.spi.Holder<String> changeToken,
                                     org.apache.chemistry.opencmis.commons.data.Properties properties,
                                     org.apache.chemistry.opencmis.commons.data.ExtensionsData extension)
        Specified by:
        updateProperties in interface org.apache.chemistry.opencmis.commons.spi.ObjectService
      • bulkUpdateProperties

        public List<org.apache.chemistry.opencmis.commons.data.BulkUpdateObjectIdAndChangeToken> bulkUpdateProperties​(String repositoryId,
                                                                                                                      List<org.apache.chemistry.opencmis.commons.data.BulkUpdateObjectIdAndChangeToken> objectIdsAndChangeTokens,
                                                                                                                      org.apache.chemistry.opencmis.commons.data.Properties properties,
                                                                                                                      List<String> addSecondaryTypeIds,
                                                                                                                      List<String> removeSecondaryTypeIds,
                                                                                                                      org.apache.chemistry.opencmis.commons.data.ExtensionsData extension)
        Specified by:
        bulkUpdateProperties in interface org.apache.chemistry.opencmis.commons.spi.ObjectService
      • moveObject

        public void moveObject​(String repositoryId,
                               org.apache.chemistry.opencmis.commons.spi.Holder<String> objectId,
                               String targetFolderId,
                               String sourceFolderId,
                               org.apache.chemistry.opencmis.commons.data.ExtensionsData extension)
        Specified by:
        moveObject in interface org.apache.chemistry.opencmis.commons.spi.ObjectService
      • deleteObject

        public void deleteObject​(String repositoryId,
                                 String objectId,
                                 Boolean allVersions,
                                 org.apache.chemistry.opencmis.commons.data.ExtensionsData extension)
        Specified by:
        deleteObject in interface org.apache.chemistry.opencmis.commons.spi.ObjectService
      • deleteTree

        public org.apache.chemistry.opencmis.commons.data.FailedToDeleteData deleteTree​(String repositoryId,
                                                                                        String folderId,
                                                                                        Boolean allVersions,
                                                                                        org.apache.chemistry.opencmis.commons.enums.UnfileObject unfileObjects,
                                                                                        Boolean continueOnFailure,
                                                                                        org.apache.chemistry.opencmis.commons.data.ExtensionsData extension)
        Specified by:
        deleteTree in interface org.apache.chemistry.opencmis.commons.spi.ObjectService
      • getContentStream

        public org.apache.chemistry.opencmis.commons.data.ContentStream getContentStream​(String repositoryId,
                                                                                         String objectId,
                                                                                         String streamId,
                                                                                         BigInteger offset,
                                                                                         BigInteger length,
                                                                                         org.apache.chemistry.opencmis.commons.data.ExtensionsData extension)
        Specified by:
        getContentStream in interface org.apache.chemistry.opencmis.commons.spi.ObjectService
      • setContentStream

        public void setContentStream​(String repositoryId,
                                     org.apache.chemistry.opencmis.commons.spi.Holder<String> objectId,
                                     Boolean overwriteFlag,
                                     org.apache.chemistry.opencmis.commons.spi.Holder<String> changeToken,
                                     org.apache.chemistry.opencmis.commons.data.ContentStream contentStream,
                                     org.apache.chemistry.opencmis.commons.data.ExtensionsData extension)
        Specified by:
        setContentStream in interface org.apache.chemistry.opencmis.commons.spi.ObjectService
      • deleteContentStream

        public void deleteContentStream​(String repositoryId,
                                        org.apache.chemistry.opencmis.commons.spi.Holder<String> objectId,
                                        org.apache.chemistry.opencmis.commons.spi.Holder<String> changeToken,
                                        org.apache.chemistry.opencmis.commons.data.ExtensionsData extension)
        Specified by:
        deleteContentStream in interface org.apache.chemistry.opencmis.commons.spi.ObjectService
      • appendContentStream

        public void appendContentStream​(String repositoryId,
                                        org.apache.chemistry.opencmis.commons.spi.Holder<String> objectId,
                                        org.apache.chemistry.opencmis.commons.spi.Holder<String> changeToken,
                                        org.apache.chemistry.opencmis.commons.data.ContentStream contentStream,
                                        boolean isLastChunk,
                                        org.apache.chemistry.opencmis.commons.data.ExtensionsData extension)
        Specified by:
        appendContentStream in interface org.apache.chemistry.opencmis.commons.spi.ObjectService