org.pentaho.commons.util.repository
Interface IObjectService

All Known Implementing Classes:
BiPlatformRepositoryClientObjectService

public interface IObjectService


Method Summary
 String createDocument(String repositoryId, String typeId, CmisProperties properties, String folderId, ContentStream contentStream, VersioningState versioningState)
           
 String createFolder(String repositoryId, String typeId, CmisProperties properties, String folderId)
           
 String createPolicy(String repositoryId, String typeId, CmisProperties properties, String folderId)
           
 String createRelationship(String repositoryId, String typeId, CmisProperties properties, String sourceObjectId, String targetObjectId)
           
 void deleteContentStream(String repositoryId, String documentId)
           
 void deleteObject(String repositoryId, String objectId)
           
 List<String> deleteTree(String repositoryId, String folderId, UnfileNonfolderObjects unfileNonfolderObjects, boolean continueOnFailure)
           
 AllowableActions getAllowableActions(String repositoryId, String objectId)
           
 ContentStream getContentStream(String repositoryId, String documentId)
           
 CmisObject getProperties(String repositoryId, String objectId, ReturnVersion returnVersion, String filter, boolean includeAllowableActions, boolean includeRelationships)
           
 void moveObject(String repositoryId, String objectId, String targetFolderId, String sourceFolderId)
           
 String setContentStream(String repositoryId, String documentId, boolean overwriteFlag, ContentStream contentStream)
           
 void updateProperties(String repositoryId, String objectId, String changeToken, CmisProperties properties)
           
 

Method Detail

createDocument

String createDocument(String repositoryId,
                      String typeId,
                      CmisProperties properties,
                      String folderId,
                      ContentStream contentStream,
                      VersioningState versioningState)
                      throws StorageException,
                             InvalidArgumentException,
                             ConstraintViolationException,
                             RuntimeException,
                             UpdateConflictException,
                             StreamNotSupportedException,
                             OperationNotSupportedException,
                             PermissionDeniedException,
                             TypeNotFoundException,
                             FolderNotValidException
Throws:
StorageException
InvalidArgumentException
ConstraintViolationException
RuntimeException
UpdateConflictException
StreamNotSupportedException
OperationNotSupportedException
PermissionDeniedException
TypeNotFoundException
FolderNotValidException

createFolder

String createFolder(String repositoryId,
                    String typeId,
                    CmisProperties properties,
                    String folderId)
                    throws StorageException,
                           InvalidArgumentException,
                           ConstraintViolationException,
                           RuntimeException,
                           UpdateConflictException,
                           StreamNotSupportedException,
                           OperationNotSupportedException,
                           PermissionDeniedException,
                           TypeNotFoundException,
                           FolderNotValidException
Throws:
StorageException
InvalidArgumentException
ConstraintViolationException
RuntimeException
UpdateConflictException
StreamNotSupportedException
OperationNotSupportedException
PermissionDeniedException
TypeNotFoundException
FolderNotValidException

createRelationship

String createRelationship(String repositoryId,
                          String typeId,
                          CmisProperties properties,
                          String sourceObjectId,
                          String targetObjectId)
                          throws OperationNotSupportedException
Throws:
OperationNotSupportedException

createPolicy

String createPolicy(String repositoryId,
                    String typeId,
                    CmisProperties properties,
                    String folderId)
                    throws OperationNotSupportedException
Throws:
OperationNotSupportedException

getAllowableActions

AllowableActions getAllowableActions(String repositoryId,
                                     String objectId)
                                     throws OperationNotSupportedException
Throws:
OperationNotSupportedException

getProperties

CmisObject getProperties(String repositoryId,
                         String objectId,
                         ReturnVersion returnVersion,
                         String filter,
                         boolean includeAllowableActions,
                         boolean includeRelationships)
                         throws OperationNotSupportedException
Throws:
OperationNotSupportedException

getContentStream

ContentStream getContentStream(String repositoryId,
                               String documentId)
                               throws OperationNotSupportedException
Throws:
OperationNotSupportedException

updateProperties

void updateProperties(String repositoryId,
                      String objectId,
                      String changeToken,
                      CmisProperties properties)
                      throws OperationNotSupportedException
Throws:
OperationNotSupportedException

moveObject

void moveObject(String repositoryId,
                String objectId,
                String targetFolderId,
                String sourceFolderId)
                throws OperationNotSupportedException
Throws:
OperationNotSupportedException

deleteObject

void deleteObject(String repositoryId,
                  String objectId)
                  throws OperationNotSupportedException
Throws:
OperationNotSupportedException

deleteTree

List<String> deleteTree(String repositoryId,
                        String folderId,
                        UnfileNonfolderObjects unfileNonfolderObjects,
                        boolean continueOnFailure)
                        throws OperationNotSupportedException
Throws:
OperationNotSupportedException

setContentStream

String setContentStream(String repositoryId,
                        String documentId,
                        boolean overwriteFlag,
                        ContentStream contentStream)
                        throws OperationNotSupportedException
Throws:
OperationNotSupportedException

deleteContentStream

void deleteContentStream(String repositoryId,
                         String documentId)
                         throws OperationNotSupportedException
Throws:
OperationNotSupportedException