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