@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 and Description |
---|
NodeTagsRelation() |
Modifier and Type | Method and Description |
---|---|
void |
afterPropertiesSet() |
List<Tag> |
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) |
CollectionWithPagingInfo<Tag> |
readAll(String nodeId,
Parameters params)
Reads all the relationship entities from the collection using the related entityResourceId.
|
void |
setTags(Tags tags) |
public void setTags(Tags tags)
public void afterPropertiesSet()
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
public List<Tag> create(String nodeId, List<Tag> tagsToCreate, Parameters parameters)
create
in interface RelationshipResourceAction.Create<Tag>
public void delete(String nodeId, String tagId, Parameters parameters)
delete
in interface RelationshipResourceAction.Delete
public CollectionWithPagingInfo<Tag> readAll(String nodeId, Parameters params)
RelationshipResourceAction.Read
readAll
in interface RelationshipResourceAction.Read<Tag>
nodeId
- Entity resource context for this relationshipparams
- - will never be null and will have the PAGING default valuesCopyright © 2005–2017 Alfresco Software. All rights reserved.