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 -
Method Summary
Modifier and TypeMethodDescriptionvoidcreate(List<CustomModel> entity, Parameters parameters) voiddelete(String modelName, Parameters parameters) readAll(Parameters parameters) Reads all the entries from the collection.readById(String modelName, Parameters parameters) voidsetCustomModels(CustomModels customModels) update(String modelName, CustomModel entity, Parameters parameters)
-
Constructor Details
-
CustomModelEntityResource
public CustomModelEntityResource()
-
-
Method Details
-
setCustomModels
-
afterPropertiesSet
- Specified by:
afterPropertiesSetin interfaceorg.springframework.beans.factory.InitializingBean- Throws:
Exception
-
readById
- Specified by:
readByIdin interfaceEntityResourceAction.ReadById<CustomModel>- Throws:
EntityNotFoundException
-
readAll
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
- Specified by:
createin interfaceEntityResourceAction.Create<CustomModel>
-
update
- Specified by:
updatein interfaceEntityResourceAction.Update<CustomModel>
-
delete
- Specified by:
deletein interfaceEntityResourceAction.Delete
-