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 java.lang.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 Constructor Description CustomModelTypesRelation()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidafterPropertiesSet()java.util.List<CustomType>create(java.lang.String modelName, java.util.List<CustomType> types, Parameters parameters)voiddelete(java.lang.String modelName, java.lang.String typeName, Parameters parameters)CollectionWithPagingInfo<CustomType>readAll(java.lang.String modelName, Parameters parameters)Reads set the relationship entities from the collection using the related entityResourceId.CustomTypereadById(java.lang.String modelName, java.lang.String typeName, Parameters parameters)voidsetCustomModels(CustomModels customModels)CustomTypeupdate(java.lang.String modelName, CustomType type, Parameters parameters)
-
-
-
Method Detail
-
setCustomModels
public void setCustomModels(CustomModels customModels)
-
afterPropertiesSet
public void afterPropertiesSet() throws java.lang.Exception- Specified by:
afterPropertiesSetin interfaceorg.springframework.beans.factory.InitializingBean- Throws:
java.lang.Exception
-
readAll
public CollectionWithPagingInfo<CustomType> readAll(java.lang.String modelName, Parameters parameters)
Description copied from interface:RelationshipResourceAction.ReadReads set the relationship entities from the collection using the related entityResourceId. Paging information is provided.- Specified by:
readAllin interfaceRelationshipResourceAction.Read<CustomType>- Parameters:
modelName- Entity resource context for this relationshipparameters- - will never be null and will have the PAGING default values
-
readById
public CustomType readById(java.lang.String modelName, java.lang.String typeName, Parameters parameters)
- Specified by:
readByIdin interfaceRelationshipResourceAction.ReadById<CustomType>
-
delete
public void delete(java.lang.String modelName, java.lang.String typeName, Parameters parameters)- Specified by:
deletein interfaceRelationshipResourceAction.Delete
-
update
public CustomType update(java.lang.String modelName, CustomType type, Parameters parameters)
- Specified by:
updatein interfaceRelationshipResourceAction.Update<CustomType>
-
create
public java.util.List<CustomType> create(java.lang.String modelName, java.util.List<CustomType> types, Parameters parameters)
- Specified by:
createin interfaceRelationshipResourceAction.Create<CustomType>
-
-