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
  • Constructor Details

    • RegistryRestSuper

      public RegistryRestSuper()
  • Method Details

    • 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 token
      tenantID - 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: 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

      protected String getTenantID()