Package org.alfresco.rest.api.groups
Class GroupsEntityResource
- java.lang.Object
-
- org.alfresco.rest.api.groups.GroupsEntityResource
-
- All Implemented Interfaces:
EntityResourceAction.Create<Group>,EntityResourceAction.Delete,EntityResourceAction.Read<Group>,EntityResourceAction.ReadById<Group>,EntityResourceAction.Update<Group>,ResourceAction,org.springframework.beans.factory.InitializingBean
@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
An implementation of an Entity Resource for a Group- Author:
- cturlica
-
-
Constructor Summary
Constructors Constructor Description GroupsEntityResource()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidafterPropertiesSet()List<Group>create(List<Group> entity, Parameters parameters)voiddelete(String groupId, Parameters parameters)CollectionWithPagingInfo<Group>readAll(Parameters params)Reads all the entries from the collection.GroupreadById(String groupId, Parameters parameters)voidsetGroups(Groups groups)Groupupdate(String groupId, Group group, Parameters parameters)
-
-
-
Method Detail
-
setGroups
public void setGroups(Groups groups)
-
afterPropertiesSet
public void afterPropertiesSet()
- Specified by:
afterPropertiesSetin interfaceorg.springframework.beans.factory.InitializingBean
-
readAll
public CollectionWithPagingInfo<Group> readAll(Parameters params)
Description copied from interface:EntityResourceAction.ReadReads all the entries from the collection. Paging information is provided.- Specified by:
readAllin interfaceEntityResourceAction.Read<Group>- Parameters:
params- - will never be null and will have the PAGING default values
-
readById
public Group readById(String groupId, Parameters parameters) throws EntityNotFoundException
- Specified by:
readByIdin interfaceEntityResourceAction.ReadById<Group>- Throws:
EntityNotFoundException
-
create
public List<Group> create(List<Group> entity, Parameters parameters)
- Specified by:
createin interfaceEntityResourceAction.Create<Group>
-
update
public Group update(String groupId, Group group, Parameters parameters)
- Specified by:
updatein interfaceEntityResourceAction.Update<Group>
-
delete
public void delete(String groupId, Parameters parameters)
- Specified by:
deletein interfaceEntityResourceAction.Delete
-
-