Class Tags
- java.lang.Object
-
- org.wso2.carbon.registry.rest.api.RegistryRestSuper
-
- org.wso2.carbon.registry.rest.api.PaginationCalculation<org.wso2.carbon.registry.core.Tag>
-
- org.wso2.carbon.registry.rest.api.Tags
-
@Path("/tags") public class Tags extends PaginationCalculation<org.wso2.carbon.registry.core.Tag>
-
-
Constructor Summary
Constructors Constructor Description Tags()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.ws.rs.core.ResponseaddTags(String resourcePath, TagModel tags, String JWTToken)This method add array of tags to the specified resourceprotected javax.ws.rs.core.ResponsegetPaginatedResults(org.wso2.carbon.registry.core.Tag[] tags, int start, int size, String sortBy, String sortOrder)javax.ws.rs.core.ResponsegetTags(String resourcePath, int start, int size, String JWTToken)This method tags associated with 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
-
-
-
-
Method Detail
-
getTags
public javax.ws.rs.core.Response getTags(String resourcePath, int start, int size, @HeaderParam("X-JWT-Assertion") String JWTToken)
This method tags associated with the given resource- Parameters:
resourcePath- resource pathstart- starting page numbersize- number of tags to be fetched- Returns:
- JSON tag model eg: {"tags":[
-
addTags
public javax.ws.rs.core.Response addTags(String resourcePath, TagModel tags, @HeaderParam("X-JWT-Assertion") String JWTToken)
This method add array of tags to the specified resource- Parameters:
resourcePath- - Resource pathtags- - eg:{"tags":[]} - Returns:
- HTTP 204 No Content ,if success.
-
getPaginatedResults
protected javax.ws.rs.core.Response getPaginatedResults(org.wso2.carbon.registry.core.Tag[] tags, int start, int size, String sortBy, String sortOrder)- Specified by:
getPaginatedResultsin classPaginationCalculation<org.wso2.carbon.registry.core.Tag>
-
-