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 TypeMethodDescriptionvoid
checkDomain
(String name) void
checkDomainUser
(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) boolean
boolean
isTenantName
(String name) boolean
boolean
isTenantUser
(String username)
-
Constructor Details
-
SingleTServiceImpl
public SingleTServiceImpl()
-
-
Method Details
-
getName
- Specified by:
getName
in interfaceTenantService
- Returns:
- the reference with the tenant-specific ID attached
-
getName
- Specified by:
getName
in interfaceTenantService
- Returns:
- the reference with the tenant-specific ID attached
-
getName
- Specified by:
getName
in interfaceTenantService
- Returns:
- the reference with the tenant-specific ID attached
-
getName
- Specified by:
getName
in interfaceTenantService
- Returns:
- the reference with the tenant-specific ID attached
-
getName
- Specified by:
getName
in interfaceTenantService
- Returns:
- the reference with the tenant-specific ID attached
-
getName
- Specified by:
getName
in interfaceTenantService
- Returns:
- the reference with the tenant-specific ID attached
-
getName
- Specified by:
getName
in interfaceTenantService
- Returns:
- the reference with the tenant-specific ID attached
-
getName
- Specified by:
getName
in interfaceTenantService
- Returns:
- the reference with the tenant-specific ID attached
-
getName
- Specified by:
getName
in interfaceTenantService
- Returns:
- the reference with the tenant-specific ID attached
-
getBaseName
- Specified by:
getBaseName
in interfaceTenantService
- Returns:
- the reference without the tenant-specific ID attached
-
getBaseName
- Specified by:
getBaseName
in interfaceTenantService
- Returns:
- the reference without the tenant-specific ID attached
-
getBaseName
- Specified by:
getBaseName
in interfaceTenantService
- Returns:
- the reference without the tenant-specific ID attached
-
getBaseName
- Specified by:
getBaseName
in interfaceTenantService
- Returns:
- the reference without the tenant-specific ID attached
-
getBaseName
- Specified by:
getBaseName
in interfaceTenantService
- Returns:
- the reference without the tenant-specific ID attached
-
getBaseName
public ChildAssociationRef getBaseName(ChildAssociationRef childAssocRef, boolean forceForNonTenant) - Specified by:
getBaseName
in interfaceTenantService
- Returns:
- the reference without the tenant-specific ID attached
-
getBaseName
- Specified by:
getBaseName
in interfaceTenantService
- Returns:
- the reference without the tenant-specific ID attached
-
getBaseName
- Specified by:
getBaseName
in interfaceTenantService
- Returns:
- the reference without the tenant-specific ID attached
-
getBaseName
- Specified by:
getBaseName
in interfaceTenantService
- Returns:
- the reference without the tenant-specific ID attached
-
getBaseNameUser
- Specified by:
getBaseNameUser
in interfaceTenantUserService
- Returns:
- the username without the tenant-specific ID attached
-
checkDomainUser
- Specified by:
checkDomainUser
in interfaceTenantService
-
checkDomain
- Specified by:
checkDomain
in interfaceTenantService
-
getRootNode
public NodeRef getRootNode(NodeService nodeService, SearchService searchService, NamespaceService namespaceService, String rootPath, NodeRef rootNodeRef) - Specified by:
getRootNode
in interfaceTenantService
-
isTenantUser
public boolean isTenantUser()- Specified by:
isTenantUser
in interfaceTenantService
-
isTenantUser
- Specified by:
isTenantUser
in interfaceTenantService
-
isTenantName
- Specified by:
isTenantName
in interfaceTenantService
-
getUserDomain
- Specified by:
getUserDomain
in interfaceTenantService
- Specified by:
getUserDomain
in interfaceTenantUserService
- Returns:
- the tenant-specific ID for specified username
-
getCurrentUserDomain
- Specified by:
getCurrentUserDomain
in interfaceTenantUserService
- Returns:
- the tenant-specific ID for current user
-
getDomain
- Specified by:
getDomain
in interfaceTenantService
- Returns:
- the tenant-specific ID for specified identifier
-
getDomain
- Specified by:
getDomain
in interfaceTenantService
- Returns:
- the tenant-specific ID for specified identifier
-
getDomainUser
- Specified by:
getDomainUser
in interfaceTenantUserService
- Returns:
- the username with the tenant-specific ID attached
-
getTenant
- Specified by:
getTenant
in interfaceTenantService
-
isEnabled
public boolean isEnabled()- Specified by:
isEnabled
in 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:
getPrimaryDomain
in 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:
-