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, updateTypeprivate 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 RepositoryServicegetRepositoryInfos in class AbstractCmisServicepublic TypeDefinitionList getTypeChildren(String repositoryId, String typeId, Boolean includePropertyDefinitions, BigInteger maxItems, BigInteger skipCount, ExtensionsData extension)
getTypeChildren in interface RepositoryServicegetTypeChildren in class AbstractCmisServicepublic TypeDefinition getTypeDefinition(String repositoryId, String typeId, ExtensionsData extension)
getTypeDefinition in interface RepositoryServicegetTypeDefinition in class AbstractCmisServicepublic 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 NavigationServicegetChildren in class AbstractCmisServicepublic List<ObjectParentData> getObjectParents(String repositoryId, String objectId, String filter, Boolean includeAllowableActions, IncludeRelationships includeRelationships, String renditionFilter, Boolean includeRelativePathSegment, ExtensionsData extension)
getObjectParents in interface NavigationServicegetObjectParents in class AbstractCmisServicepublic ObjectData getObject(String repositoryId, String objectId, String filter, Boolean includeAllowableActions, IncludeRelationships includeRelationships, String renditionFilter, Boolean includePolicyIds, Boolean includeAcl, ExtensionsData extension)
getObject in interface ObjectServicegetObject in class AbstractCmisServicepublic ContentStream getContentStream(String repositoryId, String objectId, String streamId, BigInteger offset, BigInteger length, ExtensionsData extension)
getContentStream in interface ObjectServicegetContentStream in class AbstractCmisServicepublic ObjectData getObjectByPath(String repositoryId, String path, String filter, Boolean includeAllowableActions, IncludeRelationships includeRelationships, String renditionFilter, Boolean includePolicyIds, Boolean includeAcl, ExtensionsData extension)
getObjectByPath in interface ObjectServicegetObjectByPath in class AbstractCmisServicepublic String createFolder(String repositoryId, Properties properties, String folderId, List<String> policies, Acl addAces, Acl removeAces, ExtensionsData extension)
createFolder in interface ObjectServicecreateFolder in class AbstractCmisServicepublic String createDocument(String repositoryId, Properties properties, String folderId, ContentStream contentStream, VersioningState versioningState, List<String> policies, Acl addAces, Acl removeAces, ExtensionsData extension)
createDocument in interface ObjectServicecreateDocument in class AbstractCmisServicepublic void deleteObjectOrCancelCheckOut(String repositoryId, String objectId, Boolean allVersions, ExtensionsData extension)
deleteObjectOrCancelCheckOut in interface CmisServicedeleteObjectOrCancelCheckOut in class AbstractCmisServicepublic FailedToDeleteData deleteTree(String repositoryId, String folderId, Boolean allVersions, UnfileObject unfileObjects, Boolean continueOnFailure, ExtensionsData extension)
deleteTree in interface ObjectServicedeleteTree in class AbstractCmisServicepublic ObjectData getFolderParent(String repositoryId, String folderId, String filter, ExtensionsData extension)
getFolderParent in interface NavigationServicegetFolderParent in class AbstractCmisServicepublic void updateProperties(String repositoryId, Holder<String> objectId, Holder<String> changeToken, Properties properties, ExtensionsData extension)
updateProperties in interface ObjectServiceupdateProperties in class AbstractCmisServicepublic void setContentStream(String repositoryId, Holder<String> objectId, Boolean overwriteFlag, Holder<String> changeToken, ContentStream contentStream, ExtensionsData extension)
setContentStream in interface ObjectServicesetContentStream in class AbstractCmisServicepublic void moveObject(String repositoryId, Holder<String> objectId, String targetFolderId, String sourceFolderId, ExtensionsData extension)
moveObject in interface ObjectServicemoveObject in class AbstractCmisServiceprivate 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)