Package com.openkm.sdk4j.definition
Interface BaseShard
- All Known Implementing Classes:
ShardImpl
public interface BaseShard
BaseShard
- Author:
- sochoa
-
Method Summary
Modifier and TypeMethodDescriptionvoidchangeShard(String uuid, long shardId) Change shard.Gets shards.voidsetCurrentShard(long shardId) Sets current shard.
-
Method Details
-
getShards
List<Shard> getShards() throws WebserviceException, RepositoryException, DatabaseException, AccessDeniedException, UnknownExceptionGets shards.- Returns:
- the shards
- Throws:
WebserviceException- the webservice exceptionRepositoryException- the repository exceptionDatabaseException- the database exceptionAccessDeniedException- the access denied exceptionUnknownException- the unknown exception
-
setCurrentShard
void setCurrentShard(long shardId) throws WebserviceException, RepositoryException, DatabaseException, AccessDeniedException, UnknownException Sets current shard.- Parameters:
shardId- the shard id- Throws:
WebserviceException- the webservice exceptionRepositoryException- the repository exceptionDatabaseException- the database exceptionAccessDeniedException- the access denied exceptionUnknownException- the unknown exception
-
changeShard
void changeShard(String uuid, long shardId) throws WebserviceException, RepositoryException, DatabaseException, AccessDeniedException, UnknownException Change shard.- Parameters:
uuid- the uuidshardId- the shard id- Throws:
WebserviceException- the webservice exceptionRepositoryException- the repository exceptionDatabaseException- the database exceptionAccessDeniedException- the access denied exceptionUnknownException- the unknown exception
-