Class RegistryRestSuper
java.lang.Object
org.wso2.carbon.registry.rest.api.RegistryRestSuper
- Direct Known Subclasses:
Artifact,Association,Comment,Copy,MetaData,Move,PaginationCalculation,Property,Rate,Rating,Revision
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected intgetBegin()protected intgetEnd()protected intprotected StringgetResourcePath(List<javax.ws.rs.core.PathSegment> path) This method calculates the string literal of the requested path of the resource.protected Stringprotected org.wso2.carbon.registry.core.session.UserRegistryprotected org.wso2.carbon.registry.core.RegistrygetUserRegistry(String username, int tenantID) This method creates the registry instance belongs to the particular user to isolate from other users among the tenant.protected voidsetBegin(int begin) protected voidsetEnd(int end) protected voidsetPageSize(int pageSize) protected voidsetUserRegistry(org.wso2.carbon.registry.core.session.UserRegistry userRegistry)
-
Constructor Details
-
RegistryRestSuper
public RegistryRestSuper()
-
-
Method Details
-
getUserRegistry
This method creates the registry instance belongs to the particular user to isolate from other users among the tenant.- Parameters:
username- username of the authorized enduser belongs to the access tokentenantID- tenantID of the authorized enduser belongs to the access token- Returns:
- user registry instance
-
getResourcePath
This method calculates the string literal of the requested path of the resource.- Parameters:
path- list of path segment (eg: invalid input: '<'_system,governance,sample.xml>- Returns:
- concatenated string representation of the path variable
-
getUserRegistry
protected org.wso2.carbon.registry.core.session.UserRegistry getUserRegistry() -
setUserRegistry
protected void setUserRegistry(org.wso2.carbon.registry.core.session.UserRegistry userRegistry) -
getPageSize
protected int getPageSize() -
setPageSize
protected void setPageSize(int pageSize) -
getBegin
protected int getBegin() -
setBegin
protected void setBegin(int begin) -
getEnd
protected int getEnd() -
setEnd
protected void setEnd(int end) -
getTenantID
-