public class Tags extends PaginationCalculation<org.wso2.carbon.registry.core.Tag>
| Constructor and Description |
|---|
Tags() |
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
addTags(String resourcePath,
TagModel tags,
String JWTToken)
This method add array of tags to the specified resource
|
protected javax.ws.rs.core.Response |
getPaginatedResults(org.wso2.carbon.registry.core.Tag[] tags,
int start,
int size,
String sortBy,
String sortOrder) |
javax.ws.rs.core.Response |
getTags(String resourcePath,
int start,
int size,
String JWTToken)
This method tags associated with the given resource
|
getBegin, getEnd, getPageSize, getResourcePath, getTenantID, getUserRegistry, getUserRegistry, setBegin, setEnd, setPageSize, setUserRegistrypublic javax.ws.rs.core.Response getTags(String resourcePath, int start, int size, @HeaderParam(value="X-JWT-Assertion") String JWTToken)
resourcePath - resource pathstart - starting page numbersize - number of tags to be fetchedpublic javax.ws.rs.core.Response addTags(String resourcePath, TagModel tags, @HeaderParam(value="X-JWT-Assertion") String JWTToken)
resourcePath - - Resource pathtags - - eg:{"tags":[protected javax.ws.rs.core.Response getPaginatedResults(org.wso2.carbon.registry.core.Tag[] tags,
int start,
int size,
String sortBy,
String sortOrder)
getPaginatedResults in class PaginationCalculation<org.wso2.carbon.registry.core.Tag>Copyright © 2015 WSO2. All rights reserved.