public class Tag extends PaginationCalculation<org.wso2.carbon.registry.core.TaggedResourcePath>
| Constructor and Description |
|---|
Tag() |
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
addTag(String resourcePath,
String tagText,
String JWTToken)
This method add array of tags to the specified resource
|
javax.ws.rs.core.Response |
deleteTag(String resourcePath,
String tagName,
String JWTToken)
This method deletes the specified tag on the given resource
|
protected javax.ws.rs.core.Response |
getPaginatedResults(org.wso2.carbon.registry.core.TaggedResourcePath[] taggedResourcePaths,
int start,
int size,
String sortBy,
String sortOrder) |
javax.ws.rs.core.Response |
getTaggedResources(String tagName,
int start,
int size,
String JWTToken)
This method retrieves the resource paths for a given tag name
|
getBegin, getEnd, getPageSize, getResourcePath, getTenantID, getUserRegistry, getUserRegistry, setBegin, setEnd, setPageSize, setUserRegistrypublic javax.ws.rs.core.Response getTaggedResources(String tagName, int start, int size, @HeaderParam(value="X-JWT-Assertion") String JWTToken)
tagName - - Name of the tagstart - - Page start numbersize - - Number of records to be fetchedpublic javax.ws.rs.core.Response addTag(String resourcePath, String tagText, @HeaderParam(value="X-JWT-Assertion") String JWTToken)
resourcePath - - Resource pathpublic javax.ws.rs.core.Response deleteTag(String resourcePath, String tagName, @HeaderParam(value="X-JWT-Assertion") String JWTToken)
resourcePath - - Path of the resource.tagName - - Name of the tagprotected javax.ws.rs.core.Response getPaginatedResults(org.wso2.carbon.registry.core.TaggedResourcePath[] taggedResourcePaths,
int start,
int size,
String sortBy,
String sortOrder)
getPaginatedResults in class PaginationCalculation<org.wso2.carbon.registry.core.TaggedResourcePath>Copyright © 2015 WSO2. All rights reserved.