Class Property
java.lang.Object
org.wso2.carbon.registry.rest.api.RegistryRestSuper
org.wso2.carbon.registry.rest.api.Property
This is to handle the REST verbs GET,POST,DELETE related to property.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionjavax.ws.rs.core.ResponseaddProperty(String resourcePath, String name, String value, String JWTToken) This method add array of JSON property model for the specified resourcejavax.ws.rs.core.ResponsedeleteProperty(String resourcePath, String name, String JWTToken) This method delete the specified property of the resourcejavax.ws.rs.core.ResponsegetProperty(String resourcePath, String propertyName, String JWTToken) Method retrieves the specified property for the given resourceMethods inherited from class org.wso2.carbon.registry.rest.api.RegistryRestSuper
getBegin, getEnd, getPageSize, getResourcePath, getTenantID, getUserRegistry, getUserRegistry, setBegin, setEnd, setPageSize, setUserRegistry
-
Constructor Details
-
Property
public Property()
-
-
Method Details
-
getProperty
public javax.ws.rs.core.Response getProperty(String resourcePath, String propertyName, @HeaderParam("X-JWT-Assertion") String JWTToken) Method retrieves the specified property for the given resource- Parameters:
resourcePath- - Resource path in the registry spacepropertyName- - Name of the property to be fetched- Returns:
- - JSON property model element. HTTP 200 OK.
-
addProperty
public javax.ws.rs.core.Response addProperty(String resourcePath, String name, String value, @HeaderParam("X-JWT-Assertion") String JWTToken) This method add array of JSON property model for the specified resource- Parameters:
resourcePath- - resource pathname- - property namevalue- - property value- Returns:
- Response - HTTP 204 No Content.
-
deleteProperty
public javax.ws.rs.core.Response deleteProperty(String resourcePath, String name, @HeaderParam("X-JWT-Assertion") String JWTToken) This method delete the specified property of the resource- Parameters:
resourcePath- - path of the resourcename- - property name to be deleted- Returns:
- Response - array of property model. HTTP 204 No Content.
-