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

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

public class Association
extends RegistryRestSuper

This class is to handle the association related REST verbs POST and DELETE.


Constructor Summary
Association()
           
 
Method Summary
 javax.ws.rs.core.Response addAssociation(String sourcePath, String targetPath, String type, String JWTToken)
          This method to add the association sent as query param in the request.
 javax.ws.rs.core.Response deleteAssociation(String sourcePath, String targetPath, String type, String JWTToken)
          This method delete the association sent as query param in the request.
 
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

Association

public Association()
Method Detail

addAssociation

public javax.ws.rs.core.Response addAssociation(String sourcePath,
                                                String targetPath,
                                                String type,
                                                @HeaderParam(value="X-JWT-Assertion")
                                                String JWTToken)
This method to add the association sent as query param in the request.

Parameters:
sourcePath - - path of the source resource.
targetPath - - path of the target resource.
Returns:
array of association model.HTTP 204 No Content.

deleteAssociation

public javax.ws.rs.core.Response deleteAssociation(String sourcePath,
                                                   String targetPath,
                                                   String type,
                                                   @HeaderParam(value="X-JWT-Assertion")
                                                   String JWTToken)
This method delete the association sent as query param in the request.

Parameters:
sourcePath - - path of the source resource.
targetPath - - path of the target resource.
Returns:
array of association model.HTTP 204 No Content.


Copyright © 2015 WSO2. All rights reserved.