@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 set 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.InitializingBeanpublic 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.Deletepublic CollectionWithPagingInfo<Tag> readAll(String nodeId, Parameters params)
RelationshipResourceAction.ReadreadAll in interface RelationshipResourceAction.Read<Tag>nodeId - Entity resource context for this relationshipparams - - will never be null and will have the PAGING default valuesCopyright © 2005–2018 Alfresco Software. All rights reserved.