mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
Merged HEAD-BUG-FIX (5.0/Cloud) to HEAD (5.0/Cloud)
77158: Merged PLATFORM1 (5.0/Cloud) to HEAD-BUG-FIX (5.0/Cloud) 74123: ACE-1802 "MT / Cloud Restrict namespace URI of dynamic models." ACE-955 "Custom Content Models in Cloud" More build fixes: enforce tenant in model namespace restriction on Cloud only, remove unused test class, ensure correct initialisation of CMIS dictionary, make new Cloud dictionary tests run in a separate VM git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@78016 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -48,10 +48,16 @@ public class ModelValidatorImpl implements ModelValidator
|
||||
private TenantService tenantService;
|
||||
private TenantAdminService tenantAdminService;
|
||||
private SearchService searchService;
|
||||
private boolean enforceTenantInNamespace = false;
|
||||
|
||||
private List<String> storeUrls; // stores against which model deletes should be validated
|
||||
|
||||
public void setStoreUrls(List<String> storeUrls)
|
||||
public void setEnforceTenantInNamespace(boolean enforceTenantInNamespace)
|
||||
{
|
||||
this.enforceTenantInNamespace = enforceTenantInNamespace;
|
||||
}
|
||||
|
||||
public void setStoreUrls(List<String> storeUrls)
|
||||
{
|
||||
this.storeUrls = storeUrls;
|
||||
}
|
||||
@@ -88,7 +94,7 @@ public class ModelValidatorImpl implements ModelValidator
|
||||
|
||||
private void checkCustomModelNamespace(M2Model model, String tenantDomain)
|
||||
{
|
||||
if(tenantDomain != null && !tenantDomain.equals(""))
|
||||
if(tenantDomain != null && !tenantDomain.equals("") && enforceTenantInNamespace)
|
||||
{
|
||||
// check only for "real" tenants
|
||||
for(M2Namespace namespace : model.getNamespaces())
|
||||
|
Reference in New Issue
Block a user