Class RegistryRestSuper
- java.lang.Object
-
- org.wso2.carbon.registry.rest.api.RegistryRestSuper
-
-
Constructor Summary
Constructors Constructor Description RegistryRestSuper()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected intgetBegin()protected intgetEnd()protected intgetPageSize()protected StringgetResourcePath(List<javax.ws.rs.core.PathSegment> path)This method calculates the string literal of the requested path of the resource.protected StringgetTenantID()protected org.wso2.carbon.registry.core.session.UserRegistrygetUserRegistry()protected 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)
-
-
-
Method Detail
-
getUserRegistry
protected org.wso2.carbon.registry.core.Registry getUserRegistry(String username, int tenantID)
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
protected String getResourcePath(List<javax.ws.rs.core.PathSegment> path)
This method calculates the string literal of the requested path of the resource.- Parameters:
path- list of path segment (eg: <_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
protected String getTenantID()
-
-