public class ModelValidatorImpl extends Object implements ModelValidator
Constructor and Description |
---|
ModelValidatorImpl() |
Modifier and Type | Method and Description |
---|---|
boolean |
canDeleteModel(org.alfresco.service.namespace.QName modelName)
Can the model be deleted (validate against repository contents / workflows)?
|
void |
setDictionaryDAO(org.alfresco.repo.dictionary.DictionaryDAO dictionaryDAO) |
void |
setDictionaryService(org.alfresco.service.cmr.dictionary.DictionaryService dictionaryService) |
void |
setEnforceTenantInNamespace(boolean enforceTenantInNamespace) |
void |
setNamespaceService(org.alfresco.service.namespace.NamespaceService namespaceService) |
void |
setQnameDAO(QNameDAO qnameDAO) |
void |
setTenantAdminService(TenantAdminService tenantAdminService) |
void |
setTenantService(org.alfresco.repo.tenant.TenantService tenantService) |
void |
setTransactionService(TransactionService transactionService) |
void |
setWorkflowService(WorkflowService workflowService) |
void |
validateModel(org.alfresco.repo.dictionary.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
|
public void setEnforceTenantInNamespace(boolean enforceTenantInNamespace)
public void setTransactionService(TransactionService transactionService)
public void setQnameDAO(QNameDAO qnameDAO)
public void setDictionaryDAO(org.alfresco.repo.dictionary.DictionaryDAO dictionaryDAO)
public void setNamespaceService(org.alfresco.service.namespace.NamespaceService namespaceService)
public void setWorkflowService(WorkflowService workflowService)
public void setTenantService(org.alfresco.repo.tenant.TenantService tenantService)
public void setTenantAdminService(TenantAdminService tenantAdminService)
public void setDictionaryService(org.alfresco.service.cmr.dictionary.DictionaryService dictionaryService)
public boolean canDeleteModel(org.alfresco.service.namespace.QName modelName)
canDeleteModel
in interface ModelValidator
public void validateModel(org.alfresco.repo.dictionary.CompiledModel compiledModel)
validateModel
in interface ModelValidator
Copyright © 2005–2017 Alfresco Software. All rights reserved.