org.wso2.carbon.registry.rest.api
Class Property

java.lang.Object
  extended by org.wso2.carbon.registry.rest.api.RegistryRestSuper
      extended by org.wso2.carbon.registry.rest.api.Property

public class Property
extends RegistryRestSuper

This is to handle the REST verbs GET,POST,DELETE related to property.


Constructor Summary
Property()
           
 
Method Summary
 javax.ws.rs.core.Response addProperty(String resourcePath, String name, String value, String JWTToken)
          This method add array of JSON property model for the specified resource
 javax.ws.rs.core.Response deleteProperty(String resourcePath, String name, String JWTToken)
          This method delete the specified property of the resource
 javax.ws.rs.core.Response getProperty(String resourcePath, String propertyName, String JWTToken)
          Method retrieves the specified property for the given resource
 
Methods inherited from class org.wso2.carbon.registry.rest.api.RegistryRestSuper
getBegin, getEnd, getPageSize, getResourcePath, getTenantID, getUserRegistry, getUserRegistry, setBegin, setEnd, setPageSize, setUserRegistry
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Property

public Property()
Method Detail

getProperty

public javax.ws.rs.core.Response getProperty(String resourcePath,
                                             String propertyName,
                                             @HeaderParam(value="X-JWT-Assertion")
                                             String JWTToken)
Method retrieves the specified property for the given resource

Parameters:
resourcePath - - Resource path in the registry space
propertyName - - 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(value="X-JWT-Assertion")
                                             String JWTToken)
This method add array of JSON property model for the specified resource

Parameters:
resourcePath - - resource path
name - - property name
value - - property value
Returns:
Response - HTTP 204 No Content.

deleteProperty

public javax.ws.rs.core.Response deleteProperty(String resourcePath,
                                                String name,
                                                @HeaderParam(value="X-JWT-Assertion")
                                                String JWTToken)
This method delete the specified property of the resource

Parameters:
resourcePath - - path of the resource
name - - property name to be deleted
Returns:
Response - array of property model. HTTP 204 No Content.


Copyright © 2015 WSO2. All rights reserved.