@RelationshipResource(name="types", entityResource=CustomModelEntityResource.class, title="Custom Model Types") public class CustomModelTypesRelation extends Object implements RelationshipResourceAction.Read<CustomType>, RelationshipResourceAction.ReadById<CustomType>, RelationshipResourceAction.Create<CustomType>, RelationshipResourceAction.Update<CustomType>, RelationshipResourceAction.Delete, org.springframework.beans.factory.InitializingBean
Constructor and Description |
---|
CustomModelTypesRelation() |
Modifier and Type | Method and Description |
---|---|
void |
afterPropertiesSet() |
List<CustomType> |
create(String modelName,
List<CustomType> types,
Parameters parameters) |
void |
delete(String modelName,
String typeName,
Parameters parameters) |
CollectionWithPagingInfo<CustomType> |
readAll(String modelName,
Parameters parameters)
Reads all the relationship entities from the collection using the related entityResourceId.
|
CustomType |
readById(String modelName,
String typeName,
Parameters parameters) |
void |
setCustomModels(CustomModels customModels) |
CustomType |
update(String modelName,
CustomType type,
Parameters parameters) |
public void setCustomModels(CustomModels customModels)
public void afterPropertiesSet() throws Exception
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
Exception
public CollectionWithPagingInfo<CustomType> readAll(String modelName, Parameters parameters)
RelationshipResourceAction.Read
readAll
in interface RelationshipResourceAction.Read<CustomType>
modelName
- Entity resource context for this relationshipparameters
- - will never be null and will have the PAGING default valuespublic CustomType readById(String modelName, String typeName, Parameters parameters)
readById
in interface RelationshipResourceAction.ReadById<CustomType>
public void delete(String modelName, String typeName, Parameters parameters)
delete
in interface RelationshipResourceAction.Delete
public CustomType update(String modelName, CustomType type, Parameters parameters)
update
in interface RelationshipResourceAction.Update<CustomType>
public List<CustomType> create(String modelName, List<CustomType> types, Parameters parameters)
create
in interface RelationshipResourceAction.Create<CustomType>
Copyright © 2005–2017 Alfresco Software. All rights reserved.