Package org.alfresco.rest.api
Interface CustomModels
-
- All Known Implementing Classes:
CustomModelsImpl
public interface CustomModels- Author:
- Jamal Kaabi-Mofrad
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CustomAspectcreateCustomAspect(java.lang.String modelName, CustomAspect aspect)Creates custom model's aspectCustomModelcreateCustomModel(org.alfresco.repo.dictionary.M2Model m2Model)Creates custom model from the importedM2Model.CustomModelcreateCustomModel(CustomModel model)Creates custom modelCustomModelConstraintcreateCustomModelConstraint(java.lang.String modelName, CustomModelConstraint constraint)Creates custom model's constraintCustomTypecreateCustomType(java.lang.String modelName, CustomType type)Creates custom model's typeCustomModelDownloadcreateDownload(java.lang.String modelName, Parameters parameters)Starts the creation of a downloadable archive file containing the custom model file and its associated Share extension module file (if requested).voiddeleteCustomAspect(java.lang.String modelName, java.lang.String aspectName)Deletes the custom model's aspectvoiddeleteCustomModel(java.lang.String modelName)Deletes the custom modelvoiddeleteCustomType(java.lang.String modelName, java.lang.String typeName)Deletes the custom model's typeCustomAspectgetCustomAspect(java.lang.String modelName, java.lang.String aspectName, Parameters parameters)Gets theorg.alfresco.rest.api.model.CustomAspectrepresentation of the given model's aspectCollectionWithPagingInfo<CustomAspect>getCustomAspects(java.lang.String modelName, Parameters parameters)Gets a paged list of all the given custom model's aspectsCustomModelgetCustomModel(java.lang.String modelName, Parameters parameters)Gets theorg.alfresco.rest.api.model.CustomModelrepresentation for the given modelCustomModelConstraintgetCustomModelConstraint(java.lang.String modelName, java.lang.String constraintName, Parameters parameters)Gets theorg.alfresco.rest.api.model.CustomModelConstraintrepresentation of the given model's constraintCollectionWithPagingInfo<CustomModelConstraint>getCustomModelConstraints(java.lang.String modelName, Parameters parameters)Gets a paged list of all of the given custom model's constraintsCollectionWithPagingInfo<CustomModel>getCustomModels(Parameters parameters)Gets a paged list of all custom modelsCustomTypegetCustomType(java.lang.String modelName, java.lang.String typeName, Parameters parameters)Gets theorg.alfresco.rest.api.model.CustomTyperepresentation of the given model's typeCollectionWithPagingInfo<CustomType>getCustomTypes(java.lang.String modelName, Parameters parameters)Gets a paged list of all the given custom model's typesCustomAspectupdateCustomAspect(java.lang.String modelName, CustomAspect aspect, Parameters parameters)Updates the custom model's aspectCustomModelupdateCustomModel(java.lang.String modelName, CustomModel model, Parameters parameters)Updates or activates/deactivates the custom modelCustomTypeupdateCustomType(java.lang.String modelName, CustomType type, Parameters parameters)Updates the custom model's type
-
-
-
Method Detail
-
getCustomModel
CustomModel getCustomModel(java.lang.String modelName, Parameters parameters)
Gets theorg.alfresco.rest.api.model.CustomModelrepresentation for the given model- Parameters:
modelName- the model nameparameters- theParametersobject to get the parameters passed into the request- Returns:
org.alfresco.rest.api.model.CustomModelobject
-
getCustomModels
CollectionWithPagingInfo<CustomModel> getCustomModels(Parameters parameters)
Gets a paged list of all custom models- Parameters:
parameters- theParametersobject to get the parameters passed into the request- Returns:
- a paged list of
org.alfresco.rest.api.model.CustomModelobjects
-
createCustomModel
CustomModel createCustomModel(CustomModel model)
Creates custom model- Parameters:
model- the custom model to create- Returns:
org.alfresco.rest.api.model.CustomModelobject
-
createCustomModel
CustomModel createCustomModel(org.alfresco.repo.dictionary.M2Model m2Model)
Creates custom model from the importedM2Model.- Parameters:
m2Model- the model- Returns:
org.alfresco.rest.api.model.CustomModelobject
-
updateCustomModel
CustomModel updateCustomModel(java.lang.String modelName, CustomModel model, Parameters parameters)
Updates or activates/deactivates the custom model- Parameters:
modelName- the model namemodel- the custom model to update (JSON payload)parameters- theParametersobject to get the parameters passed into the request- Returns:
org.alfresco.rest.api.model.CustomModelobject
-
deleteCustomModel
void deleteCustomModel(java.lang.String modelName)
Deletes the custom model- Parameters:
modelName- the model name
-
getCustomType
CustomType getCustomType(java.lang.String modelName, java.lang.String typeName, Parameters parameters)
Gets theorg.alfresco.rest.api.model.CustomTyperepresentation of the given model's type- Parameters:
modelName- the model nametypeName- the model's type nameparameters- theParametersobject to get the parameters passed into the request- Returns:
org.alfresco.rest.api.model.CustomTypeobject
-
getCustomTypes
CollectionWithPagingInfo<CustomType> getCustomTypes(java.lang.String modelName, Parameters parameters)
Gets a paged list of all the given custom model's types- Parameters:
modelName- the model nameparameters- theParametersobject to get the parameters passed into the request- Returns:
- a paged list of
org.alfresco.rest.api.model.CustomTypeobjects
-
createCustomType
CustomType createCustomType(java.lang.String modelName, CustomType type)
Creates custom model's type- Parameters:
modelName- the model nametype- the custom type to create within the given model- Returns:
org.alfresco.rest.api.model.CustomTypeobject
-
updateCustomType
CustomType updateCustomType(java.lang.String modelName, CustomType type, Parameters parameters)
Updates the custom model's type- Parameters:
modelName- the model nametype- the custom model's type to update (JSON payload)parameters- theParametersobject to get the parameters passed into the request- Returns:
org.alfresco.rest.api.model.CustomTypeobject
-
deleteCustomType
void deleteCustomType(java.lang.String modelName, java.lang.String typeName)Deletes the custom model's type- Parameters:
modelName- the model nametypeName- the model's type name
-
getCustomAspect
CustomAspect getCustomAspect(java.lang.String modelName, java.lang.String aspectName, Parameters parameters)
Gets theorg.alfresco.rest.api.model.CustomAspectrepresentation of the given model's aspect- Parameters:
modelName- the model nameaspectName- the model's aspect nameparameters- theParametersobject to get the parameters passed into the request- Returns:
org.alfresco.rest.api.model.CustomAspectobject
-
getCustomAspects
CollectionWithPagingInfo<CustomAspect> getCustomAspects(java.lang.String modelName, Parameters parameters)
Gets a paged list of all the given custom model's aspects- Parameters:
modelName- the model nameparameters- theParametersobject to get the parameters passed into the request- Returns:
- a paged list of
org.alfresco.rest.api.model.CustomAspectobjects
-
createCustomAspect
CustomAspect createCustomAspect(java.lang.String modelName, CustomAspect aspect)
Creates custom model's aspect- Parameters:
modelName- the model nameaspect- the custom aspect to create within the given model- Returns:
org.alfresco.rest.api.model.CustomAspectobject
-
updateCustomAspect
CustomAspect updateCustomAspect(java.lang.String modelName, CustomAspect aspect, Parameters parameters)
Updates the custom model's aspect- Parameters:
modelName- the model nameaspect- the custom model's aspect to update (JSON payload)parameters- theParametersobject to get the parameters passed into the request- Returns:
org.alfresco.rest.api.model.CustomAspectobject
-
deleteCustomAspect
void deleteCustomAspect(java.lang.String modelName, java.lang.String aspectName)Deletes the custom model's aspect- Parameters:
modelName- the model nameaspectName- the model's aspect name
-
getCustomModelConstraint
CustomModelConstraint getCustomModelConstraint(java.lang.String modelName, java.lang.String constraintName, Parameters parameters)
Gets theorg.alfresco.rest.api.model.CustomModelConstraintrepresentation of the given model's constraint- Parameters:
modelName- the model nameconstraintName- the model's constraint nameparameters- theParametersobject to get the parameters passed into the request- Returns:
org.alfresco.rest.api.model.CustomModelConstraintobject
-
getCustomModelConstraints
CollectionWithPagingInfo<CustomModelConstraint> getCustomModelConstraints(java.lang.String modelName, Parameters parameters)
Gets a paged list of all of the given custom model's constraints- Parameters:
modelName- the model nameparameters- theParametersobject to get the parameters passed into the request- Returns:
- a paged list of
org.alfresco.rest.api.model.CustomModelConstraintobjects
-
createCustomModelConstraint
CustomModelConstraint createCustomModelConstraint(java.lang.String modelName, CustomModelConstraint constraint)
Creates custom model's constraint- Parameters:
modelName- the model nameconstraint- the custom constraint to create within the given model- Returns:
org.alfresco.rest.api.model.CustomModelConstraintobject
-
createDownload
CustomModelDownload createDownload(java.lang.String modelName, Parameters parameters)
Starts the creation of a downloadable archive file containing the custom model file and its associated Share extension module file (if requested).- Parameters:
modelName- the model nameparameters- theParametersobject to get the parameters passed into the request- Returns:
org.alfresco.rest.api.model.CustomModelDownloadobject containing the archive node reference
-
-