Interface TenantService

All Superinterfaces:
TenantUserService
All Known Implementing Classes:
SingleTServiceImpl

@AlfrescoPublicApi public interface TenantService extends TenantUserService
Tenant Service interface.

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

  • Field Details

  • Method Details

    • 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.