public class MultiTServiceImpl extends Object implements org.alfresco.repo.tenant.TenantService
Constructor and Description |
---|
MultiTServiceImpl() |
Modifier and Type | Method and Description |
---|---|
void |
checkDomain(String name) |
void |
checkDomainUser(String username) |
protected void |
checkTenantEnabled(String tenantDomain) |
org.alfresco.service.cmr.repository.AssociationRef |
getBaseName(org.alfresco.service.cmr.repository.AssociationRef assocRef) |
org.alfresco.service.cmr.repository.ChildAssociationRef |
getBaseName(org.alfresco.service.cmr.repository.ChildAssociationRef childAssocRef) |
org.alfresco.service.cmr.repository.ChildAssociationRef |
getBaseName(org.alfresco.service.cmr.repository.ChildAssociationRef childAssocRef,
boolean forceForNonTenant) |
org.alfresco.service.cmr.repository.NodeRef |
getBaseName(org.alfresco.service.cmr.repository.NodeRef nodeRef) |
org.alfresco.service.cmr.repository.NodeRef |
getBaseName(org.alfresco.service.cmr.repository.NodeRef nodeRef,
boolean forceForNonTenant) |
org.alfresco.service.namespace.QName |
getBaseName(org.alfresco.service.namespace.QName name,
boolean forceForNonTenant) |
org.alfresco.service.cmr.repository.StoreRef |
getBaseName(org.alfresco.service.cmr.repository.StoreRef storeRef) |
String |
getBaseName(String name) |
String |
getBaseName(String name,
boolean forceForNonTenant) |
String |
getBaseNameUser(String name) |
String |
getCurrentUserDomain() |
String |
getDomain(String name) |
String |
getDomain(String name,
boolean checkCurrentDomain) |
String |
getDomainUser(String baseUsername,
String tenantDomain) |
static String |
getMultiTenantDomainName(String name) |
org.alfresco.service.cmr.repository.AssociationRef |
getName(org.alfresco.service.cmr.repository.AssociationRef assocRef) |
org.alfresco.service.cmr.repository.ChildAssociationRef |
getName(org.alfresco.service.cmr.repository.ChildAssociationRef childAssocRef) |
org.alfresco.service.cmr.repository.NodeRef |
getName(org.alfresco.service.cmr.repository.NodeRef nodeRef) |
org.alfresco.service.cmr.repository.NodeRef |
getName(org.alfresco.service.cmr.repository.NodeRef inNodeRef,
org.alfresco.service.cmr.repository.NodeRef nodeRef) |
org.alfresco.service.namespace.QName |
getName(org.alfresco.service.cmr.repository.NodeRef inNodeRef,
org.alfresco.service.namespace.QName name) |
org.alfresco.service.namespace.QName |
getName(org.alfresco.service.namespace.QName name) |
org.alfresco.service.cmr.repository.StoreRef |
getName(org.alfresco.service.cmr.repository.StoreRef storeRef) |
protected org.alfresco.service.cmr.repository.StoreRef |
getName(org.alfresco.service.cmr.repository.StoreRef storeRef,
String tenantDomain,
boolean checkTenantEnabled) |
String |
getName(String name) |
org.alfresco.service.cmr.repository.StoreRef |
getName(String username,
org.alfresco.service.cmr.repository.StoreRef storeRef) |
protected String |
getName(String name,
String tenantDomain) |
protected String |
getName(String name,
String tenantDomain,
boolean checkTenantEnabled) |
String |
getPrimaryDomain(String username)
Get the primary domain for the given user, if a tenant for that domain exists.
|
org.alfresco.service.cmr.repository.NodeRef |
getRootNode(org.alfresco.service.cmr.repository.NodeService nodeService,
org.alfresco.service.cmr.search.SearchService searchService,
org.alfresco.service.namespace.NamespaceService namespaceService,
String rootPath,
org.alfresco.service.cmr.repository.NodeRef rootNodeRef) |
org.alfresco.repo.tenant.Tenant |
getTenant(String tenantDomain) |
String |
getUserDomain(String username) |
boolean |
isEnabled() |
boolean |
isTenantName(String name) |
boolean |
isTenantUser() |
boolean |
isTenantUser(String username) |
void |
setTenantAdminDAO(TenantAdminDAO tenantAdminDAO) |
public void setTenantAdminDAO(TenantAdminDAO tenantAdminDAO)
public org.alfresco.service.cmr.repository.NodeRef getName(org.alfresco.service.cmr.repository.NodeRef nodeRef)
getName
in interface org.alfresco.repo.tenant.TenantService
public org.alfresco.service.cmr.repository.NodeRef getName(org.alfresco.service.cmr.repository.NodeRef inNodeRef, org.alfresco.service.cmr.repository.NodeRef nodeRef)
getName
in interface org.alfresco.repo.tenant.TenantService
public org.alfresco.service.cmr.repository.StoreRef getName(org.alfresco.service.cmr.repository.StoreRef storeRef)
getName
in interface org.alfresco.repo.tenant.TenantService
public org.alfresco.service.cmr.repository.ChildAssociationRef getName(org.alfresco.service.cmr.repository.ChildAssociationRef childAssocRef)
getName
in interface org.alfresco.repo.tenant.TenantService
public org.alfresco.service.cmr.repository.AssociationRef getName(org.alfresco.service.cmr.repository.AssociationRef assocRef)
getName
in interface org.alfresco.repo.tenant.TenantService
public org.alfresco.service.cmr.repository.StoreRef getName(String username, org.alfresco.service.cmr.repository.StoreRef storeRef)
getName
in interface org.alfresco.repo.tenant.TenantService
protected org.alfresco.service.cmr.repository.StoreRef getName(org.alfresco.service.cmr.repository.StoreRef storeRef, String tenantDomain, boolean checkTenantEnabled)
public org.alfresco.service.namespace.QName getName(org.alfresco.service.namespace.QName name)
getName
in interface org.alfresco.repo.tenant.TenantService
public org.alfresco.service.namespace.QName getName(org.alfresco.service.cmr.repository.NodeRef inNodeRef, org.alfresco.service.namespace.QName name)
getName
in interface org.alfresco.repo.tenant.TenantService
public String getName(String name)
getName
in interface org.alfresco.repo.tenant.TenantService
public org.alfresco.service.namespace.QName getBaseName(org.alfresco.service.namespace.QName name, boolean forceForNonTenant)
getBaseName
in interface org.alfresco.repo.tenant.TenantService
public org.alfresco.service.cmr.repository.NodeRef getBaseName(org.alfresco.service.cmr.repository.NodeRef nodeRef)
getBaseName
in interface org.alfresco.repo.tenant.TenantService
public org.alfresco.service.cmr.repository.NodeRef getBaseName(org.alfresco.service.cmr.repository.NodeRef nodeRef, boolean forceForNonTenant)
getBaseName
in interface org.alfresco.repo.tenant.TenantService
public org.alfresco.service.cmr.repository.StoreRef getBaseName(org.alfresco.service.cmr.repository.StoreRef storeRef)
getBaseName
in interface org.alfresco.repo.tenant.TenantService
public org.alfresco.service.cmr.repository.ChildAssociationRef getBaseName(org.alfresco.service.cmr.repository.ChildAssociationRef childAssocRef)
getBaseName
in interface org.alfresco.repo.tenant.TenantService
public org.alfresco.service.cmr.repository.ChildAssociationRef getBaseName(org.alfresco.service.cmr.repository.ChildAssociationRef childAssocRef, boolean forceForNonTenant)
getBaseName
in interface org.alfresco.repo.tenant.TenantService
public org.alfresco.service.cmr.repository.AssociationRef getBaseName(org.alfresco.service.cmr.repository.AssociationRef assocRef)
getBaseName
in interface org.alfresco.repo.tenant.TenantService
public String getBaseName(String name)
getBaseName
in interface org.alfresco.repo.tenant.TenantService
public String getBaseName(String name, boolean forceForNonTenant)
getBaseName
in interface org.alfresco.repo.tenant.TenantService
public String getBaseNameUser(String name)
getBaseNameUser
in interface org.alfresco.repo.tenant.TenantUserService
public void checkDomainUser(String username)
checkDomainUser
in interface org.alfresco.repo.tenant.TenantService
public void checkDomain(String name)
checkDomain
in interface org.alfresco.repo.tenant.TenantService
public org.alfresco.service.cmr.repository.NodeRef getRootNode(org.alfresco.service.cmr.repository.NodeService nodeService, org.alfresco.service.cmr.search.SearchService searchService, org.alfresco.service.namespace.NamespaceService namespaceService, String rootPath, org.alfresco.service.cmr.repository.NodeRef rootNodeRef)
getRootNode
in interface org.alfresco.repo.tenant.TenantService
public boolean isTenantUser()
isTenantUser
in interface org.alfresco.repo.tenant.TenantService
public boolean isTenantUser(String username)
isTenantUser
in interface org.alfresco.repo.tenant.TenantService
public boolean isTenantName(String name)
isTenantName
in interface org.alfresco.repo.tenant.TenantService
public String getUserDomain(String username)
getUserDomain
in interface org.alfresco.repo.tenant.TenantService
getUserDomain
in interface org.alfresco.repo.tenant.TenantUserService
public String getPrimaryDomain(String username)
getPrimaryDomain
in interface org.alfresco.repo.tenant.TenantService
public String getCurrentUserDomain()
getCurrentUserDomain
in interface org.alfresco.repo.tenant.TenantUserService
public String getDomain(String name)
getDomain
in interface org.alfresco.repo.tenant.TenantService
public String getDomain(String name, boolean checkCurrentDomain)
getDomain
in interface org.alfresco.repo.tenant.TenantService
public String getDomainUser(String baseUsername, String tenantDomain)
getDomainUser
in interface org.alfresco.repo.tenant.TenantUserService
protected void checkTenantEnabled(String tenantDomain)
public org.alfresco.repo.tenant.Tenant getTenant(String tenantDomain)
getTenant
in interface org.alfresco.repo.tenant.TenantService
public boolean isEnabled()
isEnabled
in interface org.alfresco.repo.tenant.TenantUserService
Copyright © 2005–2017 Alfresco Software. All rights reserved.