Package lumis.content.control.tag
Class InputTagControlResource
- java.lang.Object
-
- lumis.content.control.tag.InputTagControlResource
-
-
Constructor Summary
Constructors Constructor Description InputTagControlResource()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Response
findTags(String tagName, String tagServiceInstanceId, String relatedServiceInstanceId, int maxResults)
Finds the tags based on the optional term and a service instance.
EithertagServiceInstanceId
orrelatedServiceInstanceId
is required.
-
-
-
Method Detail
-
findTags
@Path("/find") @GET @Produces("application/json") public Response findTags(@QueryParam("term") String tagName, @QueryParam("tagSII") String tagServiceInstanceId, @QueryParam("relSII") String relatedServiceInstanceId, @QueryParam("maxResults") @DefaultValue("5") @Max(10L) @Min(1L) int maxResults)
Finds the tags based on the optional term and a service instance.
EithertagServiceInstanceId
orrelatedServiceInstanceId
is required. But they cannot be both non-null.
IfrelatedServiceInstanceId
is provided, the tag service instance will be calculated by thetagServiceInstanceId
dependency.Returns one of:
-
A JSON string
with the matched tags. -
Not found
if service instance with the identifierrelatedServiceInstanceId
has no tag service instance dependency. -
Forbidden
if the user has no access to the tag service. -
Internal server error
if some error occurred when searching the tags.
- Parameters:
tagName
- the tag name being searched.tagServiceInstanceId
- the tag service instance identifier.relatedServiceInstanceId
- the related service instance identifier.maxResults
- the maximum results.- Returns:
- the accordingly response.
- Since:
- 9.0.0
-
-
-