@EntityResource(name="groups", title="Groups") public class GroupsEntityResource extends Object implements EntityResourceAction.Read<Group>, EntityResourceAction.ReadById<Group>, EntityResourceAction.Create<Group>, EntityResourceAction.Update<Group>, EntityResourceAction.Delete, org.springframework.beans.factory.InitializingBean
Constructor and Description |
---|
GroupsEntityResource() |
Modifier and Type | Method and Description |
---|---|
void |
afterPropertiesSet() |
List<Group> |
create(List<Group> entity,
Parameters parameters) |
void |
delete(String groupId,
Parameters parameters) |
CollectionWithPagingInfo<Group> |
readAll(Parameters params)
Reads all the entries from the collection.
|
Group |
readById(String groupId,
Parameters parameters) |
void |
setGroups(Groups groups) |
Group |
update(String groupId,
Group group,
Parameters parameters) |
public void setGroups(Groups groups)
public void afterPropertiesSet()
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
public CollectionWithPagingInfo<Group> readAll(Parameters params)
EntityResourceAction.Read
readAll
in interface EntityResourceAction.Read<Group>
params
- - will never be null and will have the PAGING default valuespublic Group readById(String groupId, Parameters parameters) throws EntityNotFoundException
readById
in interface EntityResourceAction.ReadById<Group>
EntityNotFoundException
public List<Group> create(List<Group> entity, Parameters parameters)
create
in interface EntityResourceAction.Create<Group>
public Group update(String groupId, Group group, Parameters parameters)
update
in interface EntityResourceAction.Update<Group>
public void delete(String groupId, Parameters parameters)
delete
in interface EntityResourceAction.Delete
Copyright © 2005–2017 Alfresco Software. All rights reserved.