@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
| Constructor and Description |
|---|
CustomModelEntityResource() |
| Modifier and Type | Method and 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) |
public void setCustomModels(CustomModels customModels)
public void afterPropertiesSet()
throws Exception
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanExceptionpublic CustomModel readById(String modelName, Parameters parameters) throws EntityNotFoundException
readById in interface EntityResourceAction.ReadById<CustomModel>EntityNotFoundExceptionpublic CollectionWithPagingInfo<CustomModel> readAll(Parameters parameters)
EntityResourceAction.ReadreadAll in interface EntityResourceAction.Read<CustomModel>parameters - - will never be null and will have the PAGING default valuespublic List<CustomModel> create(List<CustomModel> entity, Parameters parameters)
create in interface EntityResourceAction.Create<CustomModel>public CustomModel update(String modelName, CustomModel entity, Parameters parameters)
update in interface EntityResourceAction.Update<CustomModel>public void delete(String modelName, Parameters parameters)
delete in interface EntityResourceAction.DeleteCopyright © 2005–2018 Alfresco Software. All rights reserved.