Package com.sap.ecm.api
Interface EcmService
public interface EcmService
See the javadoc in
EcmFactory
.- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionconnect
(String uniqueName, String key, String destination, Map<String, String> openCmisProperties, List<String> additionalPrincipals) connectForTenant
(String uniqueName, String key, String tenantId, String user) connectForTenant
(String uniqueName, String key, String tenantId, String user, Map<String, String> openCmisProperties) connectForTenant
(String uniqueName, String key, String tenantId, String user, Map<String, String> openCmisProperties, List<String> additionalPrincipals) connectForUser
(String uniqueName, String key, String user) connectForUser
(String uniqueName, String key, String destination, String user) connectForUser
(String uniqueName, String key, String destination, String user, Map<String, String> openCmisProperties) connectForUser
(String uniqueName, String key, String destination, String user, Map<String, String> openCmisProperties, List<String> additionalPrincipals) createRepository
(RepositoryOptions options) createRepository
(RepositoryOptions options, String destination) void
deleteRepository
(String uniqueName, String repositoryKey) void
deleteRepository
(String uniqueName, String repositoryKey, String destination) void
forceDeleteRepository
(String uniqueName, String repositoryKey) Deletes the tenant repository of the current tenant (consuming account) including all data contained within.void
forceDeleteRepositoryForAllTenants
(String uniqueName, String repositoryKey) Deletes a repository and all contained tenant repositories including all data inside.void
forceDeleteRepositoryForTenant
(String uniqueName, String repositoryKey, String tenantId) Deletes the tenant repository of the given tenant ID including all data contained within.
-
Method Details
-
connect
- Throws:
ServiceException
CmisObjectNotFoundException
- See Also:
-
connect
Session connect(String uniqueName, String key, String destination) throws ServiceException, CmisObjectNotFoundException -
connect
Session connect(String uniqueName, String key, String destination, Map<String, String> openCmisProperties) throws ServiceException, CmisObjectNotFoundException -
connect
-
connectForUser
Session connectForUser(String uniqueName, String key, String user) throws ServiceException, CmisObjectNotFoundException -
connectForUser
Session connectForUser(String uniqueName, String key, String destination, String user) throws ServiceException, CmisObjectNotFoundException -
connectForUser
Session connectForUser(String uniqueName, String key, String destination, String user, Map<String, String> openCmisProperties) throws ServiceException, CmisObjectNotFoundException -
connectForUser
-
connectForTenant
Session connectForTenant(String uniqueName, String key, String tenantId, String user) throws ServiceException, CmisObjectNotFoundException -
connectForTenant
Session connectForTenant(String uniqueName, String key, String tenantId, String user, Map<String, String> openCmisProperties) throws ServiceException, CmisObjectNotFoundException -
connectForTenant
-
createRepository
String createRepository(RepositoryOptions options) throws ServiceException, RepositoryAlreadyExistsException -
createRepository
String createRepository(RepositoryOptions options, String destination) throws ServiceException, RepositoryAlreadyExistsException -
deleteRepository
void deleteRepository(String uniqueName, String repositoryKey) throws ServiceException, CmisObjectNotFoundException, RepositoryNotEmptyException -
deleteRepository
void deleteRepository(String uniqueName, String repositoryKey, String destination) throws ServiceException, CmisObjectNotFoundException, RepositoryNotEmptyException -
forceDeleteRepository
void forceDeleteRepository(String uniqueName, String repositoryKey) throws ServiceException, CmisObjectNotFoundException Deletes the tenant repository of the current tenant (consuming account) including all data contained within. This happens even if the repository is not empty and can lead to data loss.- Parameters:
uniqueName
- The unique name of the repository to delete the current tenant fromrepositoryKey
- Authentication key for the repository- Throws:
ServiceException
- Generic exception that encapsulates root causesCmisObjectNotFoundException
- Thrown if the specified repository does not exist- See Also:
-
forceDeleteRepositoryForTenant
void forceDeleteRepositoryForTenant(String uniqueName, String repositoryKey, String tenantId) throws ServiceException, CmisObjectNotFoundException Deletes the tenant repository of the given tenant ID including all data contained within. This happens even if the repository is not empty and can lead to data loss.- Parameters:
uniqueName
- The unique name of the repository to delete the specified tenant fromrepositoryKey
- Authentication key for the repositorytenantId
- tenant id of the tenant that is to be deleted from the specified repository- Throws:
ServiceException
- Generic exception that encapsulates root causesCmisObjectNotFoundException
- Thrown if the specified repository does not exist- See Also:
-
forceDeleteRepositoryForAllTenants
void forceDeleteRepositoryForAllTenants(String uniqueName, String repositoryKey) throws ServiceException, CmisObjectNotFoundException Deletes a repository and all contained tenant repositories including all data inside. This happens even if the repository is not empty and can lead to data loss.- Parameters:
uniqueName
- The unique name of the repository to delete all tenants fromrepositoryKey
- Authentication key for the repository- Throws:
ServiceException
- Generic exception that encapsulates root causesCmisObjectNotFoundException
- Thrown if the specified repository does not exist- See Also:
-
EcmFactory#forceDeleteRepositoryForAllTenants(String, String, String)
-