org.wso2.carbon.registry.rest.api
Class Property
java.lang.Object
org.wso2.carbon.registry.rest.api.RegistryRestSuper
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.
|
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 |
Property
public Property()
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 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(value="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(value="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.
Copyright © 2015 WSO2. All rights reserved.