Package org.alfresco.rest.requests
Class Tags
- java.lang.Object
-
- org.alfresco.rest.requests.ModelRequest<Tags>
-
- org.alfresco.rest.requests.Tags
-
public class Tags extends ModelRequest<Tags>
-
-
Field Summary
-
Fields inherited from class org.alfresco.rest.requests.ModelRequest
restWrapper
-
-
Constructor Summary
Constructors Constructor Description Tags(RestTagModel tag, RestWrapper restWrapper)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RestTagModelgetTag()Retrieves a tag with ID using GET call on using GET call on "/tags/{tagId}"RestTagModelsCollectiongetTags()Retrieves 100 tags (this is the default size when maxItems is not specified) from Alfresco using GET call on "/tags"RestTagModelupdate(java.lang.String newTag)Update a tag using PUT call on tags/{tagId}-
Methods inherited from class org.alfresco.rest.requests.ModelRequest
includePath, usingParams
-
-
-
-
Constructor Detail
-
Tags
public Tags(RestTagModel tag, RestWrapper restWrapper)
-
-
Method Detail
-
getTags
public RestTagModelsCollection getTags() throws java.lang.Exception
Retrieves 100 tags (this is the default size when maxItems is not specified) from Alfresco using GET call on "/tags"- Returns:
- Throws:
JsonToModelConversionExceptionjava.lang.Exception
-
getTag
public RestTagModel getTag() throws java.lang.Exception
Retrieves a tag with ID using GET call on using GET call on "/tags/{tagId}"- Parameters:
tag-- Returns:
- Throws:
java.lang.Exception
-
update
public RestTagModel update(java.lang.String newTag) throws java.lang.Exception
Update a tag using PUT call on tags/{tagId}- Parameters:
tag-newTag-- Returns:
- Throws:
JsonToModelConversionExceptionjava.lang.Exception
-
-