public class CmisServiceImpl extends AbstractCmisService
Modifier and Type | Field and Description |
---|---|
private CallContext |
_context |
private CmisServiceFactory |
_factory |
private boolean |
_isAuthenticated |
private CmisRepository |
_repository |
Constructor and Description |
---|
CmisServiceImpl(CallContext context,
CmisServiceFactory factory)
CmisServiceImpl implementation
|
Modifier and Type | Method and Description |
---|---|
private UserIdentity |
authenticate(CallContext context,
String projectName,
CmisServiceFactory factory) |
private Project |
authenticateAndGetProject(String encodedProjectId) |
String |
createDocument(String repositoryId,
Properties properties,
String folderId,
ContentStream contentStream,
VersioningState versioningState,
List<String> policies,
Acl addAces,
Acl removeAces,
ExtensionsData extension) |
String |
createFolder(String repositoryId,
Properties properties,
String folderId,
List<String> policies,
Acl addAces,
Acl removeAces,
ExtensionsData extension) |
void |
deleteObjectOrCancelCheckOut(String repositoryId,
String objectId,
Boolean allVersions,
ExtensionsData extension) |
FailedToDeleteData |
deleteTree(String repositoryId,
String folderId,
Boolean allVersions,
UnfileObject unfileObjects,
Boolean continueOnFailure,
ExtensionsData extension) |
CallContext |
getCallContext()
Gets the call context.
|
ObjectInFolderList |
getChildren(String repositoryId,
String folderId,
String filter,
String orderBy,
Boolean includeAllowableActions,
IncludeRelationships includeRelationships,
String renditionFilter,
Boolean includePathSegment,
BigInteger maxItems,
BigInteger skipCount,
ExtensionsData extension) |
ContentStream |
getContentStream(String repositoryId,
String objectId,
String streamId,
BigInteger offset,
BigInteger length,
ExtensionsData extension) |
ObjectData |
getFolderParent(String repositoryId,
String folderId,
String filter,
ExtensionsData extension) |
ObjectData |
getObject(String repositoryId,
String objectId,
String filter,
Boolean includeAllowableActions,
IncludeRelationships includeRelationships,
String renditionFilter,
Boolean includePolicyIds,
Boolean includeAcl,
ExtensionsData extension) |
ObjectData |
getObjectByPath(String repositoryId,
String path,
String filter,
Boolean includeAllowableActions,
IncludeRelationships includeRelationships,
String renditionFilter,
Boolean includePolicyIds,
Boolean includeAcl,
ExtensionsData extension) |
List<ObjectParentData> |
getObjectParents(String repositoryId,
String objectId,
String filter,
Boolean includeAllowableActions,
IncludeRelationships includeRelationships,
String renditionFilter,
Boolean includeRelativePathSegment,
ExtensionsData extension) |
private Project |
getProject(String projectId,
CmisServiceFactory factory) |
List<RepositoryInfo> |
getRepositoryInfos(ExtensionsData extension) |
TypeDefinitionList |
getTypeChildren(String repositoryId,
String typeId,
Boolean includePropertyDefinitions,
BigInteger maxItems,
BigInteger skipCount,
ExtensionsData extension) |
TypeDefinition |
getTypeDefinition(String repositoryId,
String typeId,
ExtensionsData extension) |
private boolean |
isDocumentModuleActivated(Project project) |
void |
moveObject(String repositoryId,
Holder<String> objectId,
String targetFolderId,
String sourceFolderId,
ExtensionsData extension) |
void |
setCallContext(CallContext context)
Sets the call context.
|
void |
setContentStream(String repositoryId,
Holder<String> objectId,
Boolean overwriteFlag,
Holder<String> changeToken,
ContentStream contentStream,
ExtensionsData extension) |
void |
updateProperties(String repositoryId,
Holder<String> objectId,
Holder<String> changeToken,
Properties properties,
ExtensionsData extension) |
addObjectInfo, addObjectToFolder, appendContentStream, applyAcl, applyAcl, applyPolicy, bulkUpdateProperties, cancelCheckOut, checkIn, checkOut, clearObjectInfos, close, create, createDocumentFromSource, createItem, createPolicy, createRelationship, createType, deleteContentStream, deleteObject, deleteType, getAcl, getAllowableActions, getAllVersions, getAppliedPolicies, getBooleanProperty, getCheckedOutDocs, getContentChanges, getDateTimeProperty, getDescendants, getFolderTree, getIdProperty, getIntegerProperty, getObjectInfo, getObjectInfoIntern, getObjectOfLatestVersion, getObjectRelationships, getProperties, getPropertiesOfLatestVersion, getRenditions, getRepositoryInfo, getStringProperty, getTypeDescendants, query, removeObjectFromFolder, removePolicy, updateType
private CmisServiceFactory _factory
private CallContext _context
private CmisRepository _repository
private boolean _isAuthenticated
public CmisServiceImpl(CallContext context, CmisServiceFactory factory)
context
- the call contextfactory
- the factory used to build thisprivate Project authenticateAndGetProject(String encodedProjectId)
public List<RepositoryInfo> getRepositoryInfos(ExtensionsData extension)
getRepositoryInfos
in interface RepositoryService
getRepositoryInfos
in class AbstractCmisService
public TypeDefinitionList getTypeChildren(String repositoryId, String typeId, Boolean includePropertyDefinitions, BigInteger maxItems, BigInteger skipCount, ExtensionsData extension)
getTypeChildren
in interface RepositoryService
getTypeChildren
in class AbstractCmisService
public TypeDefinition getTypeDefinition(String repositoryId, String typeId, ExtensionsData extension)
getTypeDefinition
in interface RepositoryService
getTypeDefinition
in class AbstractCmisService
public ObjectInFolderList getChildren(String repositoryId, String folderId, String filter, String orderBy, Boolean includeAllowableActions, IncludeRelationships includeRelationships, String renditionFilter, Boolean includePathSegment, BigInteger maxItems, BigInteger skipCount, ExtensionsData extension)
getChildren
in interface NavigationService
getChildren
in class AbstractCmisService
public List<ObjectParentData> getObjectParents(String repositoryId, String objectId, String filter, Boolean includeAllowableActions, IncludeRelationships includeRelationships, String renditionFilter, Boolean includeRelativePathSegment, ExtensionsData extension)
getObjectParents
in interface NavigationService
getObjectParents
in class AbstractCmisService
public ObjectData getObject(String repositoryId, String objectId, String filter, Boolean includeAllowableActions, IncludeRelationships includeRelationships, String renditionFilter, Boolean includePolicyIds, Boolean includeAcl, ExtensionsData extension)
getObject
in interface ObjectService
getObject
in class AbstractCmisService
public ContentStream getContentStream(String repositoryId, String objectId, String streamId, BigInteger offset, BigInteger length, ExtensionsData extension)
getContentStream
in interface ObjectService
getContentStream
in class AbstractCmisService
public ObjectData getObjectByPath(String repositoryId, String path, String filter, Boolean includeAllowableActions, IncludeRelationships includeRelationships, String renditionFilter, Boolean includePolicyIds, Boolean includeAcl, ExtensionsData extension)
getObjectByPath
in interface ObjectService
getObjectByPath
in class AbstractCmisService
public String createFolder(String repositoryId, Properties properties, String folderId, List<String> policies, Acl addAces, Acl removeAces, ExtensionsData extension)
createFolder
in interface ObjectService
createFolder
in class AbstractCmisService
public String createDocument(String repositoryId, Properties properties, String folderId, ContentStream contentStream, VersioningState versioningState, List<String> policies, Acl addAces, Acl removeAces, ExtensionsData extension)
createDocument
in interface ObjectService
createDocument
in class AbstractCmisService
public void deleteObjectOrCancelCheckOut(String repositoryId, String objectId, Boolean allVersions, ExtensionsData extension)
deleteObjectOrCancelCheckOut
in interface CmisService
deleteObjectOrCancelCheckOut
in class AbstractCmisService
public FailedToDeleteData deleteTree(String repositoryId, String folderId, Boolean allVersions, UnfileObject unfileObjects, Boolean continueOnFailure, ExtensionsData extension)
deleteTree
in interface ObjectService
deleteTree
in class AbstractCmisService
public ObjectData getFolderParent(String repositoryId, String folderId, String filter, ExtensionsData extension)
getFolderParent
in interface NavigationService
getFolderParent
in class AbstractCmisService
public void updateProperties(String repositoryId, Holder<String> objectId, Holder<String> changeToken, Properties properties, ExtensionsData extension)
updateProperties
in interface ObjectService
updateProperties
in class AbstractCmisService
public void setContentStream(String repositoryId, Holder<String> objectId, Boolean overwriteFlag, Holder<String> changeToken, ContentStream contentStream, ExtensionsData extension)
setContentStream
in interface ObjectService
setContentStream
in class AbstractCmisService
public void moveObject(String repositoryId, Holder<String> objectId, String targetFolderId, String sourceFolderId, ExtensionsData extension)
moveObject
in interface ObjectService
moveObject
in class AbstractCmisService
private UserIdentity authenticate(CallContext context, String projectName, CmisServiceFactory factory)
private Project getProject(String projectId, CmisServiceFactory factory)
public void setCallContext(CallContext context)
context
- contextpublic CallContext getCallContext()
private boolean isDocumentModuleActivated(Project project)