Class Properties
- java.lang.Object
-
- org.wso2.carbon.registry.rest.api.RegistryRestSuper
-
- org.wso2.carbon.registry.rest.api.PaginationCalculation<PropertyModel>
-
- org.wso2.carbon.registry.rest.api.Properties
-
@Path("/properties") public class Properties extends PaginationCalculation<PropertyModel>This class handle the properties related to the REST verbs GET,POST and DELETE.
-
-
Constructor Summary
Constructors Constructor Description Properties()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.ws.rs.core.ResponseaddProperties(String resourcePath, PropertyModel[] addProperty, String JWTToken)This method add array of JSON property model for the specified resourceprotected javax.ws.rs.core.ResponsegetPaginatedResults(PropertyModel[] propertyModels, int start, int size, String sortBy, String sortOrder)javax.ws.rs.core.ResponsegetProperties(String resourcePath, int start, int size, String JWTToken)This method get the properties on the requested resource.-
Methods inherited from class org.wso2.carbon.registry.rest.api.RegistryRestSuper
getBegin, getEnd, getPageSize, getResourcePath, getTenantID, getUserRegistry, getUserRegistry, setBegin, setEnd, setPageSize, setUserRegistry
-
-
-
-
Method Detail
-
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 pathaddProperty- - 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:
getPaginatedResultsin classPaginationCalculation<PropertyModel>
-
-