Class Tags

    • Constructor Detail

      • Tags

        public Tags()
    • 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 path
        start - starting page number
        size - 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 path
        tags - - 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:
        getPaginatedResults in class PaginationCalculation<org.wso2.carbon.registry.core.Tag>