Package org.alfresco.rest.api.cmm
Class CustomModelEntityResource
- java.lang.Object
-
- org.alfresco.rest.api.cmm.CustomModelEntityResource
-
- All Implemented Interfaces:
EntityResourceAction.Create<CustomModel>
,EntityResourceAction.Delete
,EntityResourceAction.Read<CustomModel>
,EntityResourceAction.ReadById<CustomModel>
,EntityResourceAction.Update<CustomModel>
,ResourceAction
,org.springframework.beans.factory.InitializingBean
@EntityResource(name="cmm", title="Custom Model Management") public class CustomModelEntityResource extends Object implements EntityResourceAction.Read<CustomModel>, EntityResourceAction.ReadById<CustomModel>, EntityResourceAction.Create<CustomModel>, EntityResourceAction.Update<CustomModel>, EntityResourceAction.Delete, org.springframework.beans.factory.InitializingBean
- Author:
- Jamal Kaabi-Mofrad
-
-
Constructor Summary
Constructors Constructor Description CustomModelEntityResource()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
afterPropertiesSet()
List<CustomModel>
create(List<CustomModel> entity, Parameters parameters)
void
delete(String modelName, Parameters parameters)
CollectionWithPagingInfo<CustomModel>
readAll(Parameters parameters)
Reads all the entries from the collection.CustomModel
readById(String modelName, Parameters parameters)
void
setCustomModels(CustomModels customModels)
CustomModel
update(String modelName, CustomModel entity, Parameters parameters)
-
-
-
Method Detail
-
setCustomModels
public void setCustomModels(CustomModels customModels)
-
afterPropertiesSet
public void afterPropertiesSet() throws Exception
- Specified by:
afterPropertiesSet
in interfaceorg.springframework.beans.factory.InitializingBean
- Throws:
Exception
-
readById
public CustomModel readById(String modelName, Parameters parameters) throws EntityNotFoundException
- Specified by:
readById
in interfaceEntityResourceAction.ReadById<CustomModel>
- Throws:
EntityNotFoundException
-
readAll
public CollectionWithPagingInfo<CustomModel> readAll(Parameters parameters)
Description copied from interface:EntityResourceAction.Read
Reads all the entries from the collection. Paging information is provided.- Specified by:
readAll
in interfaceEntityResourceAction.Read<CustomModel>
- Parameters:
parameters
- - will never be null and will have the PAGING default values
-
create
public List<CustomModel> create(List<CustomModel> entity, Parameters parameters)
- Specified by:
create
in interfaceEntityResourceAction.Create<CustomModel>
-
update
public CustomModel update(String modelName, CustomModel entity, Parameters parameters)
- Specified by:
update
in interfaceEntityResourceAction.Update<CustomModel>
-
delete
public void delete(String modelName, Parameters parameters)
- Specified by:
delete
in interfaceEntityResourceAction.Delete
-
-