Package org.alfresco.rest.api.nodes
Class NodeTagsRelation
- java.lang.Object
-
- org.alfresco.rest.api.nodes.NodeTagsRelation
-
- All Implemented Interfaces:
RelationshipResourceAction.Create<Tag>,RelationshipResourceAction.Delete,RelationshipResourceAction.Read<Tag>,ResourceAction,org.springframework.beans.factory.InitializingBean
@RelationshipResource(name="tags", entityResource=NodesEntityResource.class, title="Document or folder tags") public class NodeTagsRelation extends Object implements RelationshipResourceAction.Create<Tag>, RelationshipResourceAction.Delete, RelationshipResourceAction.Read<Tag>, org.springframework.beans.factory.InitializingBean
-
-
Constructor Summary
Constructors Constructor Description NodeTagsRelation()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidafterPropertiesSet()List<Tag>create(String nodeId, List<Tag> tagsToCreate, Parameters parameters)Add the tag to the node with id 'nodeId'.voiddelete(String nodeId, String tagId, Parameters parameters)CollectionWithPagingInfo<Tag>readAll(String nodeId, Parameters params)Reads set the relationship entities from the collection using the related entityResourceId.voidsetTags(Tags tags)
-
-
-
Method Detail
-
setTags
public void setTags(Tags tags)
-
afterPropertiesSet
public void afterPropertiesSet()
- Specified by:
afterPropertiesSetin interfaceorg.springframework.beans.factory.InitializingBean
-
create
public List<Tag> create(String nodeId, List<Tag> tagsToCreate, Parameters parameters)
Add the tag to the node with id 'nodeId'.- Specified by:
createin interfaceRelationshipResourceAction.Create<Tag>
-
delete
public void delete(String nodeId, String tagId, Parameters parameters)
- Specified by:
deletein interfaceRelationshipResourceAction.Delete
-
readAll
public CollectionWithPagingInfo<Tag> readAll(String nodeId, Parameters params)
Description copied from interface:RelationshipResourceAction.ReadReads set the relationship entities from the collection using the related entityResourceId. Paging information is provided.- Specified by:
readAllin interfaceRelationshipResourceAction.Read<Tag>- Parameters:
nodeId- Entity resource context for this relationshipparams- - will never be null and will have the PAGING default values
-
-