org.wso2.carbon.registry.rest.api
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
public class RegistryRestSuper
- extends Object
|
Method Summary |
protected int |
getBegin()
|
protected int |
getEnd()
|
protected int |
getPageSize()
|
protected String |
getResourcePath(List<javax.ws.rs.core.PathSegment> path)
This method calculates the string literal of the requested path of the
resource. |
protected String |
getTenantID()
|
protected org.wso2.carbon.registry.core.session.UserRegistry |
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. |
protected void |
setBegin(int begin)
|
protected void |
setEnd(int end)
|
protected void |
setPageSize(int pageSize)
|
protected void |
setUserRegistry(org.wso2.carbon.registry.core.session.UserRegistry userRegistry)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RegistryRestSuper
public RegistryRestSuper()
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()
Copyright © 2015 WSO2. All rights reserved.