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 java.lang.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 void
afterPropertiesSet()
java.util.List<Tag>
create(java.lang.String nodeId, java.util.List<Tag> tagsToCreate, Parameters parameters)
Add the tag to the node with id 'nodeId'.void
delete(java.lang.String nodeId, java.lang.String tagId, Parameters parameters)
CollectionWithPagingInfo<Tag>
readAll(java.lang.String nodeId, Parameters params)
Reads set the relationship entities from the collection using the related entityResourceId.void
setTags(Tags tags)
-
-
-
Method Detail
-
setTags
public void setTags(Tags tags)
-
afterPropertiesSet
public void afterPropertiesSet()
- Specified by:
afterPropertiesSet
in interfaceorg.springframework.beans.factory.InitializingBean
-
create
public java.util.List<Tag> create(java.lang.String nodeId, java.util.List<Tag> tagsToCreate, Parameters parameters)
Add the tag to the node with id 'nodeId'.- Specified by:
create
in interfaceRelationshipResourceAction.Create<Tag>
-
delete
public void delete(java.lang.String nodeId, java.lang.String tagId, Parameters parameters)
- Specified by:
delete
in interfaceRelationshipResourceAction.Delete
-
readAll
public CollectionWithPagingInfo<Tag> readAll(java.lang.String nodeId, Parameters params)
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
-
-