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
public class ShardImpl extends ClientImpl implements BaseShard, Serializable
ShardImpl- Author:
- sochoa
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidchangeShard(String uuid, long shardId)Change shard.List<Shard>getShards()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 Detail
-
ShardImpl
public ShardImpl(String host)
ShardImpl
-
-
Method Detail
-
setAuthorizationToken
protected void setAuthorizationToken(String authorizationToken)
setAuthenticationToken
-
getShards
public List<Shard> getShards() throws WebserviceException, RepositoryException, DatabaseException, AccessDeniedException, UnknownException
Description 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, UnknownExceptionDescription 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
-
-