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 voidafterPropertiesSet()List<CustomModel>create(List<CustomModel> entity, Parameters parameters)voiddelete(String modelName, Parameters parameters)CollectionWithPagingInfo<CustomModel>readAll(Parameters parameters)Reads all the entries from the collection.CustomModelreadById(String modelName, Parameters parameters)voidsetCustomModels(CustomModels customModels)CustomModelupdate(String modelName, CustomModel entity, Parameters parameters)
-
-
-
Method Detail
-
setCustomModels
public void setCustomModels(CustomModels customModels)
-
afterPropertiesSet
public void afterPropertiesSet() throws Exception- Specified by:
afterPropertiesSetin interfaceorg.springframework.beans.factory.InitializingBean- Throws:
Exception
-
readById
public CustomModel readById(String modelName, Parameters parameters) throws EntityNotFoundException
- Specified by:
readByIdin interfaceEntityResourceAction.ReadById<CustomModel>- Throws:
EntityNotFoundException
-
readAll
public CollectionWithPagingInfo<CustomModel> readAll(Parameters parameters)
Description copied from interface:EntityResourceAction.ReadReads all the entries from the collection. Paging information is provided.- Specified by:
readAllin 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:
createin interfaceEntityResourceAction.Create<CustomModel>
-
update
public CustomModel update(String modelName, CustomModel entity, Parameters parameters)
- Specified by:
updatein interfaceEntityResourceAction.Update<CustomModel>
-
delete
public void delete(String modelName, Parameters parameters)
- Specified by:
deletein interfaceEntityResourceAction.Delete
-
-