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 -
Method Summary
Modifier and TypeMethodDescriptionvoid
create
(String nodeId, List<Tag> tagsToCreate, Parameters parameters) Add the tag to the node with id 'nodeId'.void
delete
(String nodeId, String tagId, Parameters parameters) readAll
(String nodeId, Parameters params) Reads set the relationship entities from the collection using the related entityResourceId.void
-
Constructor Details
-
NodeTagsRelation
public NodeTagsRelation()
-
-
Method Details
-
setTags
-
afterPropertiesSet
public void afterPropertiesSet()- Specified by:
afterPropertiesSet
in interfaceorg.springframework.beans.factory.InitializingBean
-
create
Add the tag to the node with id 'nodeId'.- Specified by:
create
in interfaceRelationshipResourceAction.Create<Tag>
-
delete
- Specified by:
delete
in interfaceRelationshipResourceAction.Delete
-
readAll
Description copied from interface:RelationshipResourceAction.Read
Reads set the relationship entities from the collection using the related entityResourceId. Paging information is provided.- Specified by:
readAll
in interfaceRelationshipResourceAction.Read<Tag>
- Parameters:
nodeId
- Entity resource context for this relationshipparams
- - will never be null and will have the PAGING default values
-