Class ModelValidatorImpl

java.lang.Object
org.alfresco.repo.dictionary.ModelValidatorImpl
All Implemented Interfaces:
ModelValidator

public class ModelValidatorImpl extends Object implements ModelValidator
Model change validation covering model deletes, model constituent changes e.g. property deletes, additions, etc.
Author:
sglover
  • Constructor Details

    • ModelValidatorImpl

      public ModelValidatorImpl()
  • Method Details

    • setEnforceTenantInNamespace

      public void setEnforceTenantInNamespace(boolean enforceTenantInNamespace)
    • setTransactionService

      public void setTransactionService(TransactionService transactionService)
    • setQnameDAO

      public void setQnameDAO(QNameDAO qnameDAO)
    • setDictionaryDAO

      public void setDictionaryDAO(DictionaryDAO dictionaryDAO)
    • setNamespaceService

      public void setNamespaceService(NamespaceService namespaceService)
    • setWorkflowService

      public void setWorkflowService(WorkflowService workflowService)
    • setTenantService

      public void setTenantService(TenantService tenantService)
    • setTenantAdminService

      public void setTenantAdminService(TenantAdminService tenantAdminService)
    • setDictionaryService

      public void setDictionaryService(DictionaryService dictionaryService)
    • setCustomModelService

      public void setCustomModelService(CustomModelService customModelService)
    • canDeleteModel

      public boolean canDeleteModel(QName modelName)
      Can the model be deleted (validate against repository contents / workflows)?
      Specified by:
      canDeleteModel in interface ModelValidator
      Returns:
      true only if the model is not being used or if the model does not exist
    • validateModel

      public void validateModel(CompiledModel compiledModel)
      validate against dictionary if new model then nothing to validate else if an existing model then could be updated (or unchanged) so validate to currently only allow incremental updates - addition of new types, aspects (except default aspects), properties, associations - no deletion of types, aspects or properties or associations - no addition, update or deletion of default/mandatory aspects
      Specified by:
      validateModel in interface ModelValidator
    • validateModelNamespacePrefix

      public void validateModelNamespacePrefix(NodeRef modelNodeRef)
      validate the namespace prefix
      Specified by:
      validateModelNamespacePrefix in interface ModelValidator