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 TypeMethodDescriptionvoid
create
(List<CustomModel> entity, Parameters parameters) void
delete
(String modelName, Parameters parameters) readAll
(Parameters parameters) Reads all the entries from the collection.readById
(String modelName, Parameters parameters) void
setCustomModels
(CustomModels customModels) update
(String modelName, CustomModel entity, Parameters parameters)
-
Constructor Details
-
CustomModelEntityResource
public CustomModelEntityResource()
-
-
Method Details
-
setCustomModels
-
afterPropertiesSet
- Specified by:
afterPropertiesSet
in interfaceorg.springframework.beans.factory.InitializingBean
- Throws:
Exception
-
readById
- Specified by:
readById
in interfaceEntityResourceAction.ReadById<CustomModel>
- Throws:
EntityNotFoundException
-
readAll
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
- Specified by:
create
in interfaceEntityResourceAction.Create<CustomModel>
-
update
- Specified by:
update
in interfaceEntityResourceAction.Update<CustomModel>
-
delete
- Specified by:
delete
in interfaceEntityResourceAction.Delete
-