public class Associations extends PaginationCalculation<org.wso2.carbon.registry.core.Association>
| Constructor and Description |
|---|
Associations() |
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
addAssociations(String sourcePath,
AssociationModel[] association,
String JWTToken)
This method add the array of association sent as payload with the request for the given source
|
javax.ws.rs.core.Response |
getAssociations(String sourcePath,
String type,
int start,
int size,
String JWTToken)
This method takes the following parameters:
|
protected javax.ws.rs.core.Response |
getPaginatedResults(org.wso2.carbon.registry.core.Association[] associations,
int start,
int size,
String sortBy,
String sortOrder) |
getBegin, getEnd, getPageSize, getResourcePath, getTenantID, getUserRegistry, getUserRegistry, setBegin, setEnd, setPageSize, setUserRegistrypublic javax.ws.rs.core.Response addAssociations(String sourcePath, AssociationModel[] association, @HeaderParam(value="X-JWT-Assertion") String JWTToken)
sourcePath - - Path of the source resource which is going to add the associations.association - - JSON array of association objects[{"target":"public javax.ws.rs.core.Response getAssociations(String sourcePath, String type, int start, int size, @HeaderParam(value="X-JWT-Assertion") String JWTToken)
sourcePath - - Path of the resource,type- - - Type of association,start- - - Start page number,size- - - Number of records to be retrievedprotected javax.ws.rs.core.Response getPaginatedResults(org.wso2.carbon.registry.core.Association[] associations,
int start,
int size,
String sortBy,
String sortOrder)
getPaginatedResults in class PaginationCalculation<org.wso2.carbon.registry.core.Association>Copyright © 2015 WSO2. All rights reserved.