Package com.openkm.sdk4j.impl
Class ShardImpl
java.lang.Object
com.openkm.sdk4j.impl.ClientImpl
com.openkm.sdk4j.impl.ShardImpl
- All Implemented Interfaces:
BaseShard,Serializable
ShardImpl
- Author:
- sochoa
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidchangeShard(String uuid, long shardId) Change shard.Gets shards.protected voidsetAuthorizationToken(String authorizationToken) setAuthenticationTokenvoidsetCurrentShard(long shardId) Sets current shard.Methods inherited from class com.openkm.sdk4j.impl.ClientImpl
getClient, getWebTarget, setAuthorizationHeader, setJsessionIdHeader
-
Constructor Details
-
ShardImpl
ShardImpl
-
-
Method Details
-
setAuthorizationToken
setAuthenticationToken -
getShards
public List<Shard> getShards() throws WebserviceException, RepositoryException, DatabaseException, AccessDeniedException, UnknownExceptionDescription copied from interface:BaseShardGets shards.- Specified by:
getShardsin interfaceBaseShard- Returns:
- the shards
- Throws:
WebserviceException- the webservice exceptionRepositoryException- the repository exceptionDatabaseException- the database exceptionAccessDeniedException- the access denied exceptionUnknownException- the unknown exception
-
setCurrentShard
public void setCurrentShard(long shardId) throws WebserviceException, RepositoryException, DatabaseException, AccessDeniedException, UnknownException Description copied from interface:BaseShardSets current shard.- Specified by:
setCurrentShardin interfaceBaseShard- Parameters:
shardId- the shard id- Throws:
WebserviceException- the webservice exceptionRepositoryException- the repository exceptionDatabaseException- the database exceptionAccessDeniedException- the access denied exceptionUnknownException- the unknown exception
-
changeShard
public void changeShard(String uuid, long shardId) throws WebserviceException, RepositoryException, DatabaseException, AccessDeniedException, UnknownException Description copied from interface:BaseShardChange shard.- Specified by:
changeShardin interfaceBaseShard- 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
-