Package org.alfresco.rest.api.cmm
Class CustomModelTypesRelation
java.lang.Object
org.alfresco.rest.api.cmm.CustomModelTypesRelation
- All Implemented Interfaces:
RelationshipResourceAction.Create<CustomType>
,RelationshipResourceAction.Delete
,RelationshipResourceAction.Read<CustomType>
,RelationshipResourceAction.ReadById<CustomType>
,RelationshipResourceAction.Update<CustomType>
,ResourceAction
,org.springframework.beans.factory.InitializingBean
@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
- Author:
- Jamal Kaabi-Mofrad
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
create
(String modelName, List<CustomType> types, Parameters parameters) void
delete
(String modelName, String typeName, Parameters parameters) readAll
(String modelName, Parameters parameters) Reads set the relationship entities from the collection using the related entityResourceId.readById
(String modelName, String typeName, Parameters parameters) void
setCustomModels
(CustomModels customModels) update
(String modelName, CustomType type, Parameters parameters)
-
Constructor Details
-
CustomModelTypesRelation
public CustomModelTypesRelation()
-
-
Method Details
-
setCustomModels
-
afterPropertiesSet
- Specified by:
afterPropertiesSet
in interfaceorg.springframework.beans.factory.InitializingBean
- Throws:
Exception
-
readAll
Description copied from interface:RelationshipResourceAction.Read
Reads set the relationship entities from the collection using the related entityResourceId. Paging information is provided.- Specified by:
readAll
in interfaceRelationshipResourceAction.Read<CustomType>
- Parameters:
modelName
- Entity resource context for this relationshipparameters
- - will never be null and will have the PAGING default values
-
readById
- Specified by:
readById
in interfaceRelationshipResourceAction.ReadById<CustomType>
-
delete
- Specified by:
delete
in interfaceRelationshipResourceAction.Delete
-
update
- Specified by:
update
in interfaceRelationshipResourceAction.Update<CustomType>
-
create
- Specified by:
create
in interfaceRelationshipResourceAction.Create<CustomType>
-