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