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.

    • 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

        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

        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)
      • isTenantUser

        boolean isTenantUser()
      • isTenantUser

        boolean isTenantUser​(String username)
      • isTenantName

        boolean isTenantName​(String name)
      • 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.