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
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionjavax.ws.rs.core.ResponseThis 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.ResponseThis method tags associated with the given resourceMethods inherited from class org.wso2.carbon.registry.rest.api.RegistryRestSuper
getBegin, getEnd, getPageSize, getResourcePath, getTenantID, getUserRegistry, getUserRegistry, setBegin, setEnd, setPageSize, setUserRegistry
-
Constructor Details
-
Tags
public Tags()
-
-
Method Details
-
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":[invalid input: '<'array of tag names]}
-
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>
-