mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
Fixed failing Activiti Workflow tests.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@31073 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -605,6 +605,23 @@ public class MultiTServiceImpl implements TenantService
|
||||
return nameDomain;
|
||||
}
|
||||
|
||||
public static String getMultiTenantDomainName(String name)
|
||||
{
|
||||
// Check that all the passed values are not null
|
||||
ParameterCheck.mandatory("name", name);
|
||||
|
||||
int idx1 = name.indexOf(SEPARATOR);
|
||||
if (idx1 == 0)
|
||||
{
|
||||
int idx2 = name.indexOf(SEPARATOR, 1);
|
||||
if (idx2 != -1)
|
||||
{
|
||||
return name.substring(1, idx2);
|
||||
}
|
||||
}
|
||||
return DEFAULT_DOMAIN;
|
||||
}
|
||||
|
||||
/* (non-Javadoc)
|
||||
* @see org.alfresco.repo.tenant.TenantUserService#getDomainUser(java.lang.String, java.lang.String)
|
||||
*/
|
||||
|
Reference in New Issue
Block a user