public interface CustomModels
| Modifier and Type | Method and Description |
|---|---|
CustomAspect |
createCustomAspect(String modelName,
CustomAspect aspect)
Creates custom model's aspect
|
CustomModel |
createCustomModel(CustomModel model)
Creates custom model
|
CustomModel |
createCustomModel(org.alfresco.repo.dictionary.M2Model m2Model)
Creates custom model from the imported
M2Model. |
CustomModelConstraint |
createCustomModelConstraint(String modelName,
CustomModelConstraint constraint)
Creates custom model's constraint
|
CustomType |
createCustomType(String modelName,
CustomType type)
Creates custom model's type
|
CustomModelDownload |
createDownload(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).
|
void |
deleteCustomAspect(String modelName,
String aspectName)
Deletes the custom model's aspect
|
void |
deleteCustomModel(String modelName)
Deletes the custom model
|
void |
deleteCustomType(String modelName,
String typeName)
Deletes the custom model's type
|
CustomAspect |
getCustomAspect(String modelName,
String aspectName,
Parameters parameters)
Gets the
org.alfresco.rest.api.model.CustomAspect representation of
the given model's aspect |
CollectionWithPagingInfo<CustomAspect> |
getCustomAspects(String modelName,
Parameters parameters)
Gets a paged list of all the given custom model's aspects
|
CustomModel |
getCustomModel(String modelName,
Parameters parameters)
Gets the
org.alfresco.rest.api.model.CustomModel representation for the given model |
CustomModelConstraint |
getCustomModelConstraint(String modelName,
String constraintName,
Parameters parameters)
Gets the
org.alfresco.rest.api.model.CustomModelConstraint
representation of the given model's constraint |
CollectionWithPagingInfo<CustomModelConstraint> |
getCustomModelConstraints(String modelName,
Parameters parameters)
Gets a paged list of all of the given custom model's constraints
|
CollectionWithPagingInfo<CustomModel> |
getCustomModels(Parameters parameters)
Gets a paged list of all custom models
|
CustomType |
getCustomType(String modelName,
String typeName,
Parameters parameters)
Gets the
org.alfresco.rest.api.model.CustomType representation of
the given model's type |
CollectionWithPagingInfo<CustomType> |
getCustomTypes(String modelName,
Parameters parameters)
Gets a paged list of all the given custom model's types
|
CustomAspect |
updateCustomAspect(String modelName,
CustomAspect aspect,
Parameters parameters)
Updates the custom model's aspect
|
CustomModel |
updateCustomModel(String modelName,
CustomModel model,
Parameters parameters)
Updates or activates/deactivates the custom model
|
CustomType |
updateCustomType(String modelName,
CustomType type,
Parameters parameters)
Updates the custom model's type
|
CustomModel getCustomModel(String modelName, Parameters parameters)
org.alfresco.rest.api.model.CustomModel representation for the given modelmodelName - the model nameparameters - the Parameters object to get the parameters passed into the requestorg.alfresco.rest.api.model.CustomModel objectCollectionWithPagingInfo<CustomModel> getCustomModels(Parameters parameters)
parameters - the Parameters object to get the parameters passed into the requestorg.alfresco.rest.api.model.CustomModel objectsCustomModel createCustomModel(CustomModel model)
model - the custom model to createorg.alfresco.rest.api.model.CustomModel objectCustomModel createCustomModel(org.alfresco.repo.dictionary.M2Model m2Model)
M2Model.m2Model - the modelorg.alfresco.rest.api.model.CustomModel objectCustomModel updateCustomModel(String modelName, CustomModel model, Parameters parameters)
modelName - the model namemodel - the custom model to update (JSON payload)parameters - the Parameters object to get the parameters passed into the requestorg.alfresco.rest.api.model.CustomModel objectvoid deleteCustomModel(String modelName)
modelName - the model nameCustomType getCustomType(String modelName, String typeName, Parameters parameters)
org.alfresco.rest.api.model.CustomType representation of
the given model's typemodelName - the model nametypeName - the model's type nameparameters - the Parameters object to get the parameters passed into the requestorg.alfresco.rest.api.model.CustomType objectCollectionWithPagingInfo<CustomType> getCustomTypes(String modelName, Parameters parameters)
modelName - the model nameparameters - the Parameters object to get the parameters passed into the requestorg.alfresco.rest.api.model.CustomType objectsCustomType createCustomType(String modelName, CustomType type)
modelName - the model nametype - the custom type to create within the given modelorg.alfresco.rest.api.model.CustomType objectCustomType updateCustomType(String modelName, CustomType type, Parameters parameters)
modelName - the model nametype - the custom model's type to update (JSON payload)parameters - the Parameters object to get the parameters passed into the requestorg.alfresco.rest.api.model.CustomType objectvoid deleteCustomType(String modelName, String typeName)
modelName - the model nametypeName - the model's type nameCustomAspect getCustomAspect(String modelName, String aspectName, Parameters parameters)
org.alfresco.rest.api.model.CustomAspect representation of
the given model's aspectmodelName - the model nameaspectName - the model's aspect nameparameters - the Parameters object to get the parameters passed into the requestorg.alfresco.rest.api.model.CustomAspect objectCollectionWithPagingInfo<CustomAspect> getCustomAspects(String modelName, Parameters parameters)
modelName - the model nameparameters - the Parameters object to get the parameters passed into the requestorg.alfresco.rest.api.model.CustomAspect objectsCustomAspect createCustomAspect(String modelName, CustomAspect aspect)
modelName - the model nameaspect - the custom aspect to create within the given modelorg.alfresco.rest.api.model.CustomAspect objectCustomAspect updateCustomAspect(String modelName, CustomAspect aspect, Parameters parameters)
modelName - the model nameaspect - the custom model's aspect to update (JSON payload)parameters - the Parameters object to get the parameters passed into the requestorg.alfresco.rest.api.model.CustomAspect objectvoid deleteCustomAspect(String modelName, String aspectName)
modelName - the model nameaspectName - the model's aspect nameCustomModelConstraint getCustomModelConstraint(String modelName, String constraintName, Parameters parameters)
org.alfresco.rest.api.model.CustomModelConstraint
representation of the given model's constraintmodelName - the model nameconstraintName - the model's constraint nameparameters - the Parameters object to get the parameters passed into the requestorg.alfresco.rest.api.model.CustomModelConstraint objectCollectionWithPagingInfo<CustomModelConstraint> getCustomModelConstraints(String modelName, Parameters parameters)
modelName - the model nameparameters - the Parameters object to get the parameters passed into the requestorg.alfresco.rest.api.model.CustomModelConstraint objectsCustomModelConstraint createCustomModelConstraint(String modelName, CustomModelConstraint constraint)
modelName - the model nameconstraint - the custom constraint to create within the given modelorg.alfresco.rest.api.model.CustomModelConstraint objectCustomModelDownload createDownload(String modelName, Parameters parameters)
modelName - the model nameparameters - the Parameters object to get the parameters
passed into the requestorg.alfresco.rest.api.model.CustomModelDownload object
containing the archive node referenceCopyright © 2005–2018 Alfresco Software. All rights reserved.