Package org.alfresco.repo.tenant
Class SingleTServiceImpl
java.lang.Object
org.alfresco.repo.tenant.SingleTServiceImpl
- All Implemented Interfaces:
TenantService,TenantUserService
Empty Tenant Service implementation (for Single-Tenant / Single-Instance)
-
Field Summary
Fields inherited from interface org.alfresco.repo.tenant.TenantService
DEFAULT_DOMAIN, SEPARATOR -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcheckDomain(String name) voidcheckDomainUser(String username) getBaseName(String name) getBaseName(String name, boolean forceForNonTenant) getBaseName(AssociationRef assocRef) getBaseName(ChildAssociationRef childAssocRef) getBaseName(ChildAssociationRef childAssocRef, boolean forceForNonTenant) getBaseName(NodeRef nodeRef) getBaseName(NodeRef nodeRef, boolean forceForNonTenant) getBaseName(StoreRef storeRef) getBaseName(QName name, boolean forceForNonTenant) getBaseNameUser(String name) getDomainUser(String baseUsername, String tenantDomain) getName(AssociationRef assocRef) getName(ChildAssociationRef childAssocRef) getPrimaryDomain(String user) In a single tenant system, always return the DEFAULT_DOMAIN.getRootNode(NodeService nodeService, SearchService searchService, NamespaceService namespaceService, String rootPath, NodeRef rootNodeRef) getUserDomain(String username) booleanbooleanisTenantName(String name) booleanbooleanisTenantUser(String username)
-
Constructor Details
-
SingleTServiceImpl
public SingleTServiceImpl()
-
-
Method Details
-
getName
- Specified by:
getNamein interfaceTenantService- Returns:
- the reference with the tenant-specific ID attached
-
getName
- Specified by:
getNamein interfaceTenantService- Returns:
- the reference with the tenant-specific ID attached
-
getName
- Specified by:
getNamein interfaceTenantService- Returns:
- the reference with the tenant-specific ID attached
-
getName
- Specified by:
getNamein interfaceTenantService- Returns:
- the reference with the tenant-specific ID attached
-
getName
- Specified by:
getNamein interfaceTenantService- Returns:
- the reference with the tenant-specific ID attached
-
getName
- Specified by:
getNamein interfaceTenantService- Returns:
- the reference with the tenant-specific ID attached
-
getName
- Specified by:
getNamein interfaceTenantService- Returns:
- the reference with the tenant-specific ID attached
-
getName
- Specified by:
getNamein interfaceTenantService- Returns:
- the reference with the tenant-specific ID attached
-
getName
- Specified by:
getNamein interfaceTenantService- Returns:
- the reference with the tenant-specific ID attached
-
getBaseName
- Specified by:
getBaseNamein interfaceTenantService- Returns:
- the reference without the tenant-specific ID attached
-
getBaseName
- Specified by:
getBaseNamein interfaceTenantService- Returns:
- the reference without the tenant-specific ID attached
-
getBaseName
- Specified by:
getBaseNamein interfaceTenantService- Returns:
- the reference without the tenant-specific ID attached
-
getBaseName
- Specified by:
getBaseNamein interfaceTenantService- Returns:
- the reference without the tenant-specific ID attached
-
getBaseName
- Specified by:
getBaseNamein interfaceTenantService- Returns:
- the reference without the tenant-specific ID attached
-
getBaseName
public ChildAssociationRef getBaseName(ChildAssociationRef childAssocRef, boolean forceForNonTenant) - Specified by:
getBaseNamein interfaceTenantService- Returns:
- the reference without the tenant-specific ID attached
-
getBaseName
- Specified by:
getBaseNamein interfaceTenantService- Returns:
- the reference without the tenant-specific ID attached
-
getBaseName
- Specified by:
getBaseNamein interfaceTenantService- Returns:
- the reference without the tenant-specific ID attached
-
getBaseName
- Specified by:
getBaseNamein interfaceTenantService- Returns:
- the reference without the tenant-specific ID attached
-
getBaseNameUser
- Specified by:
getBaseNameUserin interfaceTenantUserService- Returns:
- the username without the tenant-specific ID attached
-
checkDomainUser
- Specified by:
checkDomainUserin interfaceTenantService
-
checkDomain
- Specified by:
checkDomainin interfaceTenantService
-
getRootNode
public NodeRef getRootNode(NodeService nodeService, SearchService searchService, NamespaceService namespaceService, String rootPath, NodeRef rootNodeRef) - Specified by:
getRootNodein interfaceTenantService
-
isTenantUser
public boolean isTenantUser()- Specified by:
isTenantUserin interfaceTenantService
-
isTenantUser
- Specified by:
isTenantUserin interfaceTenantService
-
isTenantName
- Specified by:
isTenantNamein interfaceTenantService
-
getUserDomain
- Specified by:
getUserDomainin interfaceTenantService- Specified by:
getUserDomainin interfaceTenantUserService- Returns:
- the tenant-specific ID for specified username
-
getCurrentUserDomain
- Specified by:
getCurrentUserDomainin interfaceTenantUserService- Returns:
- the tenant-specific ID for current user
-
getDomain
- Specified by:
getDomainin interfaceTenantService- Returns:
- the tenant-specific ID for specified identifier
-
getDomain
- Specified by:
getDomainin interfaceTenantService- Returns:
- the tenant-specific ID for specified identifier
-
getDomainUser
- Specified by:
getDomainUserin interfaceTenantUserService- Returns:
- the username with the tenant-specific ID attached
-
getTenant
- Specified by:
getTenantin interfaceTenantService
-
isEnabled
public boolean isEnabled()- Specified by:
isEnabledin interfaceTenantUserService- Returns:
- true if the system is configured to be MT-enabled
-
getPrimaryDomain
In a single tenant system, always return the DEFAULT_DOMAIN.- Specified by:
getPrimaryDomainin interfaceTenantService- Parameters:
user- The user whose primary domain is to be returned- Returns:
- The primary domain of user, or null if the domain does not exist in the system.
- See Also:
-