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 CustomAspect
createCustomAspect(java.lang.String modelName, CustomAspect aspect)
Creates custom model's aspectCustomModel
createCustomModel(org.alfresco.repo.dictionary.M2Model m2Model)
Creates custom model from the importedM2Model
.CustomModel
createCustomModel(CustomModel model)
Creates custom modelCustomModelConstraint
createCustomModelConstraint(java.lang.String modelName, CustomModelConstraint constraint)
Creates custom model's constraintCustomType
createCustomType(java.lang.String modelName, CustomType type)
Creates custom model's typeCustomModelDownload
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).void
deleteCustomAspect(java.lang.String modelName, java.lang.String aspectName)
Deletes the custom model's aspectvoid
deleteCustomModel(java.lang.String modelName)
Deletes the custom modelvoid
deleteCustomType(java.lang.String modelName, java.lang.String typeName)
Deletes the custom model's typeCustomAspect
getCustomAspect(java.lang.String modelName, java.lang.String aspectName, Parameters parameters)
Gets theorg.alfresco.rest.api.model.CustomAspect
representation 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 aspectsCustomModel
getCustomModel(java.lang.String modelName, Parameters parameters)
Gets theorg.alfresco.rest.api.model.CustomModel
representation for the given modelCustomModelConstraint
getCustomModelConstraint(java.lang.String modelName, java.lang.String constraintName, Parameters parameters)
Gets theorg.alfresco.rest.api.model.CustomModelConstraint
representation 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 modelsCustomType
getCustomType(java.lang.String modelName, java.lang.String typeName, Parameters parameters)
Gets theorg.alfresco.rest.api.model.CustomType
representation 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 typesCustomAspect
updateCustomAspect(java.lang.String modelName, CustomAspect aspect, Parameters parameters)
Updates the custom model's aspectCustomModel
updateCustomModel(java.lang.String modelName, CustomModel model, Parameters parameters)
Updates or activates/deactivates the custom modelCustomType
updateCustomType(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.CustomModel
representation for the given model- Parameters:
modelName
- the model nameparameters
- theParameters
object to get the parameters passed into the request- Returns:
org.alfresco.rest.api.model.CustomModel
object
-
getCustomModels
CollectionWithPagingInfo<CustomModel> getCustomModels(Parameters parameters)
Gets a paged list of all custom models- Parameters:
parameters
- theParameters
object to get the parameters passed into the request- Returns:
- a paged list of
org.alfresco.rest.api.model.CustomModel
objects
-
createCustomModel
CustomModel createCustomModel(CustomModel model)
Creates custom model- Parameters:
model
- the custom model to create- Returns:
org.alfresco.rest.api.model.CustomModel
object
-
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.CustomModel
object
-
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
- theParameters
object to get the parameters passed into the request- Returns:
org.alfresco.rest.api.model.CustomModel
object
-
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.CustomType
representation of the given model's type- Parameters:
modelName
- the model nametypeName
- the model's type nameparameters
- theParameters
object to get the parameters passed into the request- Returns:
org.alfresco.rest.api.model.CustomType
object
-
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
- theParameters
object to get the parameters passed into the request- Returns:
- a paged list of
org.alfresco.rest.api.model.CustomType
objects
-
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.CustomType
object
-
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
- theParameters
object to get the parameters passed into the request- Returns:
org.alfresco.rest.api.model.CustomType
object
-
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.CustomAspect
representation of the given model's aspect- Parameters:
modelName
- the model nameaspectName
- the model's aspect nameparameters
- theParameters
object to get the parameters passed into the request- Returns:
org.alfresco.rest.api.model.CustomAspect
object
-
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
- theParameters
object to get the parameters passed into the request- Returns:
- a paged list of
org.alfresco.rest.api.model.CustomAspect
objects
-
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.CustomAspect
object
-
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
- theParameters
object to get the parameters passed into the request- Returns:
org.alfresco.rest.api.model.CustomAspect
object
-
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.CustomModelConstraint
representation of the given model's constraint- Parameters:
modelName
- the model nameconstraintName
- the model's constraint nameparameters
- theParameters
object to get the parameters passed into the request- Returns:
org.alfresco.rest.api.model.CustomModelConstraint
object
-
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
- theParameters
object to get the parameters passed into the request- Returns:
- a paged list of
org.alfresco.rest.api.model.CustomModelConstraint
objects
-
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.CustomModelConstraint
object
-
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
- theParameters
object to get the parameters passed into the request- Returns:
org.alfresco.rest.api.model.CustomModelDownload
object containing the archive node reference
-
-