Package com.openkm.sdk4j.definition
Interface BaseShard
-
- All Known Implementing Classes:
ShardImpl
public interface BaseShardBaseShard- Author:
- sochoa
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidchangeShard(String uuid, long shardId)Change shard.List<Shard>getShards()Gets shards.voidsetCurrentShard(long shardId)Sets current shard.
-
-
-
Method Detail
-
getShards
List<Shard> getShards() throws WebserviceException, RepositoryException, DatabaseException, AccessDeniedException, UnknownException
Gets 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, UnknownExceptionSets 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
-
-