org.alfresco.repo.tenant
Class SingleTServiceImpl

java.lang.Object
  extended by org.alfresco.repo.tenant.SingleTServiceImpl
All Implemented Interfaces:
TenantService, TenantUserService

public class SingleTServiceImpl
extends java.lang.Object
implements TenantService

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
SingleTServiceImpl()
           
 
Method Summary
 void checkDomain(java.lang.String name)
           
 void checkDomainUser(java.lang.String username)
           
 AssociationRef getBaseName(AssociationRef assocRef)
           
 ChildAssociationRef getBaseName(ChildAssociationRef childAssocRef)
           
 NodeRef getBaseName(NodeRef nodeRef)
           
 QName getBaseName(QName name, boolean forceForNonTenant)
           
 StoreRef getBaseName(StoreRef storeRef)
           
 java.lang.String getBaseName(java.lang.String name)
           
 java.lang.String getBaseName(java.lang.String name, boolean forceForNonTenant)
           
 java.lang.String getBaseNameUser(java.lang.String name)
           
 java.lang.String getCurrentUserDomain()
           
 java.lang.String getDomain(java.lang.String name)
           
 java.lang.String getDomainUser(java.lang.String baseUsername, java.lang.String tenantDomain)
           
 AssociationRef getName(AssociationRef assocRef)
           
 ChildAssociationRef getName(ChildAssociationRef childAssocRef)
           
 NodeRef getName(NodeRef nodeRef)
           
 NodeRef getName(NodeRef inNodeRef, NodeRef nodeRef)
           
 QName getName(NodeRef inNodeRef, QName name)
           
 QName getName(QName name)
           
 StoreRef getName(StoreRef storeRef)
           
 java.lang.String getName(java.lang.String name)
           
 StoreRef getName(java.lang.String username, StoreRef storeRef)
           
 NodeRef getRootNode(NodeService nodeService, SearchService searchService, NamespaceService namespaceService, java.lang.String rootPath, NodeRef rootNodeRef)
           
 Tenant getTenant(java.lang.String tenantDomain)
           
 java.lang.String getUserDomain(java.lang.String username)
           
 boolean isEnabled()
           
 boolean isTenantName(java.lang.String name)
           
 boolean isTenantUser()
           
 boolean isTenantUser(java.lang.String username)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SingleTServiceImpl

public SingleTServiceImpl()
Method Detail

getName

public NodeRef getName(NodeRef nodeRef)
Specified by:
getName in interface TenantService
Returns:
the reference with the tenant-specific ID attached

getName

public NodeRef getName(NodeRef inNodeRef,
                       NodeRef nodeRef)
Specified by:
getName in interface TenantService
Returns:
the reference with the tenant-specific ID attached

getName

public StoreRef getName(StoreRef storeRef)
Specified by:
getName in interface TenantService
Returns:
the reference with the tenant-specific ID attached

getName

public ChildAssociationRef getName(ChildAssociationRef childAssocRef)
Specified by:
getName in interface TenantService
Returns:
the reference with the tenant-specific ID attached

getName

public AssociationRef getName(AssociationRef assocRef)
Specified by:
getName in interface TenantService
Returns:
the reference with the tenant-specific ID attached

getName

public StoreRef getName(java.lang.String username,
                        StoreRef storeRef)
Specified by:
getName in interface TenantService
Returns:
the reference with the tenant-specific ID attached

getName

public QName getName(QName name)
Specified by:
getName in interface TenantService
Returns:
the reference with the tenant-specific ID attached

getName

public QName getName(NodeRef inNodeRef,
                     QName name)
Specified by:
getName in interface TenantService
Returns:
the reference with the tenant-specific ID attached

getName

public java.lang.String getName(java.lang.String name)
Specified by:
getName in interface TenantService
Returns:
the reference with the tenant-specific ID attached

getBaseName

public QName getBaseName(QName name,
                         boolean forceForNonTenant)
Specified by:
getBaseName in interface TenantService
Returns:
the reference without the tenant-specific ID attached

getBaseName

public NodeRef getBaseName(NodeRef nodeRef)
Specified by:
getBaseName in interface TenantService
Returns:
the reference without the tenant-specific ID attached

getBaseName

public StoreRef getBaseName(StoreRef storeRef)
Specified by:
getBaseName in interface TenantService
Returns:
the reference without the tenant-specific ID attached

getBaseName

public ChildAssociationRef getBaseName(ChildAssociationRef childAssocRef)
Specified by:
getBaseName in interface TenantService
Returns:
the reference without the tenant-specific ID attached

getBaseName

public AssociationRef getBaseName(AssociationRef assocRef)
Specified by:
getBaseName in interface TenantService
Returns:
the reference without the tenant-specific ID attached

getBaseName

public java.lang.String getBaseName(java.lang.String name)
Specified by:
getBaseName in interface TenantService
Returns:
the reference without the tenant-specific ID attached

getBaseName

public java.lang.String getBaseName(java.lang.String name,
                                    boolean forceForNonTenant)
Specified by:
getBaseName in interface TenantService
Returns:
the reference without the tenant-specific ID attached

getBaseNameUser

public java.lang.String getBaseNameUser(java.lang.String name)
Specified by:
getBaseNameUser in interface TenantUserService
Returns:
the username without the tenant-specific ID attached

checkDomainUser

public void checkDomainUser(java.lang.String username)
Specified by:
checkDomainUser in interface TenantService

checkDomain

public void checkDomain(java.lang.String name)
Specified by:
checkDomain in interface TenantService

getRootNode

public NodeRef getRootNode(NodeService nodeService,
                           SearchService searchService,
                           NamespaceService namespaceService,
                           java.lang.String rootPath,
                           NodeRef rootNodeRef)
Specified by:
getRootNode in interface TenantService

isTenantUser

public boolean isTenantUser()
Specified by:
isTenantUser in interface TenantService

isTenantUser

public boolean isTenantUser(java.lang.String username)
Specified by:
isTenantUser in interface TenantService

isTenantName

public boolean isTenantName(java.lang.String name)
Specified by:
isTenantName in interface TenantService

getUserDomain

public java.lang.String getUserDomain(java.lang.String username)
Specified by:
getUserDomain in interface TenantService
Specified by:
getUserDomain in interface TenantUserService
Returns:
the tenant-specific ID for specified username

getCurrentUserDomain

public java.lang.String getCurrentUserDomain()
Specified by:
getCurrentUserDomain in interface TenantUserService
Returns:
the tenant-specific ID for current user

getDomain

public java.lang.String getDomain(java.lang.String name)
Specified by:
getDomain in interface TenantUserService
Returns:
the tenant-specific ID for specified identifier

getDomainUser

public java.lang.String getDomainUser(java.lang.String baseUsername,
                                      java.lang.String tenantDomain)
Specified by:
getDomainUser in interface TenantUserService
Returns:
the username with the tenant-specific ID attached

getTenant

public Tenant getTenant(java.lang.String tenantDomain)
Specified by:
getTenant in interface TenantService

isEnabled

public boolean isEnabled()
Specified by:
isEnabled in interface TenantUserService
Returns:
true if the system is configured to be MT-enabled


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.