Class Properties


@Path("/properties") public class Properties extends PaginationCalculation<PropertyModel>
This class handle the properties related to the REST verbs GET,POST and DELETE.
  • Constructor Details

    • Properties

      public Properties()
  • Method Details

    • getProperties

      public javax.ws.rs.core.Response getProperties(String resourcePath, int start, int size, @HeaderParam("X-JWT-Assertion") String JWTToken)
      This method get the properties on the requested resource.
      Parameters:
      resourcePath - - Path of the resource in the registry.
      start - - Starting page number.
      size - - Number of records to be retrieved.
      Returns:
      - array of properties, HTTP 200 OK.
    • addProperties

      public javax.ws.rs.core.Response addProperties(String resourcePath, PropertyModel[] addProperty, @HeaderParam("X-JWT-Assertion") String JWTToken)
      This method add array of JSON property model for the specified resource
      Parameters:
      resourcePath - - Resource path
      addProperty - - Array of PropertyModel objects
      Returns:
      - HTTP 204 No Content.
    • getPaginatedResults

      protected javax.ws.rs.core.Response getPaginatedResults(PropertyModel[] propertyModels, int start, int size, String sortBy, String sortOrder)
      Specified by:
      getPaginatedResults in class PaginationCalculation<PropertyModel>