Overview  Package   Class  Use  Tree  Deprecated  Index  Help 
PREV CLASS   NEXT CLASS FRAMES    NO FRAMES    All Classes
SUMMARY: NESTED | FIELD | CONSTR | METHOD DETAIL: FIELD | CONSTR | METHOD

org.alfresco.repo.tenant
Interface TenantService
All Superinterfaces:
TenantUserService

public interface TenantService
extends TenantUserService
Tenant Service interface.

This interface provides methods to support either ST or MT implementations.


Field Summary
DEFAULT_DOMAIN
SEPARATOR
Method Summary
void
checkDomain(String name)
void
checkDomainUser(String username)
getBaseName(AssociationRef assocRef)
getBaseName(ChildAssociationRef childAssocRef)
getBaseName(ChildAssociationRef childAssocRef, boolean forceIfNonTenant)
getBaseName(NodeRef nodeRef)
getBaseName(NodeRef nodeRef, boolean forceForNonTenant)
getBaseName(QName name, boolean forceIfNonTenant)
getBaseName(StoreRef storeRef)
getBaseName(String name)
getBaseName(String name, boolean forceIfNonTenant)
getDomain(String name)
getDomain(String name, boolean checkCurrentDomain)
getName(AssociationRef assocRef)
getName(ChildAssociationRef childAssocRef)
getName(NodeRef nodeRef)
getName(NodeRef inNodeRef, NodeRef nodeRef)
getName(NodeRef inNodeRef, QName name)
getName(QName name)
getName(StoreRef storeRef)
getName(String name)
getName(String username, StoreRef storeRef)
getPrimaryDomain(String user)
          Get the primary domain for user, if one exists.
getRootNode(NodeService nodeService, SearchService searchService, NamespaceService namespaceService, String rootPath, NodeRef rootNodeRef)
getTenant(String tenantDomain)
getUserDomain(String username)
boolean
isTenantName(String name)
boolean
isTenantUser()
boolean
isTenantUser(String username)
Methods inherited from interface org.alfresco.repo.tenant.TenantUserService
getBaseNameUser, getCurrentUserDomain, getDomainUser, isEnabled
Field Detail
DEFAULT_DOMAIN
public static final String DEFAULT_DOMAIN
See Also:
Constant Field Values

SEPARATOR
public static final String SEPARATOR
See Also:
Constant Field Values
Method Detail
getName
NodeRef getName(NodeRef nodeRef)
Returns:
the reference with the tenant-specific ID attached

getName
NodeRef getName(NodeRef inNodeRef,
                NodeRef nodeRef)
Returns:
the reference with the tenant-specific ID attached

getName
StoreRef getName(StoreRef storeRef)
Returns:
the reference with the tenant-specific ID attached

getName
ChildAssociationRef getName(ChildAssociationRef childAssocRef)
Returns:
the reference with the tenant-specific ID attached

getName
AssociationRef getName(AssociationRef assocRef)
Returns:
the reference with the tenant-specific ID attached

getName
StoreRef getName(String username,
                 StoreRef storeRef)
Returns:
the reference with the tenant-specific ID attached

getName
QName getName(QName name)
Returns:
the reference with the tenant-specific ID attached

getName
QName getName(NodeRef inNodeRef,
              QName name)
Returns:
the reference with the tenant-specific ID attached

getName
String getName(String name)
Returns:
the reference with the tenant-specific ID attached

getBaseName
QName getBaseName(QName name,
                  boolean forceIfNonTenant)
Returns:
the reference without the tenant-specific ID attached

getBaseName
NodeRef getBaseName(NodeRef nodeRef)
Returns:
the reference without the tenant-specific ID attached

getBaseName
NodeRef getBaseName(NodeRef nodeRef,
                    boolean forceForNonTenant)
Returns:
the reference without the tenant-specific ID attached

getBaseName
StoreRef getBaseName(StoreRef storeRef)
Returns:
the reference without the tenant-specific ID attached

getBaseName
ChildAssociationRef getBaseName(ChildAssociationRef childAssocRef)
Returns:
the reference without the tenant-specific ID attached

getBaseName
ChildAssociationRef getBaseName(ChildAssociationRef childAssocRef,
                                boolean forceIfNonTenant)
Returns:
the reference without the tenant-specific ID attached

getBaseName
AssociationRef getBaseName(AssociationRef assocRef)
Returns:
the reference without the tenant-specific ID attached

getBaseName
String getBaseName(String name)
Returns:
the reference without the tenant-specific ID attached

getBaseName
String getBaseName(String name,
                   boolean forceIfNonTenant)
Returns:
the reference without the tenant-specific ID attached

checkDomainUser
void checkDomainUser(String username)

checkDomain
void checkDomain(String name)

getRootNode
NodeRef getRootNode(NodeService nodeService,
                    SearchService searchService,
                    NamespaceService namespaceService,
                    String rootPath,
                    NodeRef rootNodeRef)

isTenantUser
boolean isTenantUser()

isTenantUser
boolean isTenantUser(String username)

isTenantName
boolean isTenantName(String name)

getUserDomain
String getUserDomain(String username)
Specified by:
getUserDomain in interface TenantUserService
Returns:
the tenant-specific ID for specified username

getTenant
Tenant getTenant(String tenantDomain)

getDomain
String getDomain(String name)
Returns:
the tenant-specific ID for specified identifier

getDomain
String getDomain(String name,
                 boolean checkCurrentDomain)
Returns:
the tenant-specific ID for specified identifier

getPrimaryDomain
String getPrimaryDomain(String user)
Get the primary domain for user, if one exists.
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.

Overview  Package   Class  Use  Tree  Deprecated  Index  Help 
PREV CLASS   NEXT CLASS FRAMES    NO FRAMES    All Classes
SUMMARY: NESTED | FIELD | CONSTR | METHOD DETAIL: FIELD | CONSTR | METHOD

Copyright © 2005–2016 Alfresco Software. All rights reserved.

Java API documentation generated with DocFlex/Javadoc 1.6.1 using JavadocPro template set.