Class HibernateTenantDAO

    • Method Detail

      • findByName

        public Tenant findByName​(String name)
        Description copied from interface: TenantDAO
        Finds a tenant by name
        Specified by:
        findByName in interface TenantDAO
        Parameters:
        name - name of wanted tenant
        Returns:
        Wanted tenant or null
      • count

        public int count()
        Description copied from interface: TenantDAO
        Counts the total number of tenants
        Specified by:
        count in interface TenantDAO
        Returns:
        number of tenants
      • setFolderDao

        public void setFolderDao​(FolderDAO folderDao)
      • setGroupDao

        public void setGroupDao​(GroupDAO groupDao)
      • setUserDao

        public void setUserDao​(UserDAO userDao)
      • setGenericDao

        public void setGenericDao​(GenericDAO genericDao)
      • setTemplateDao

        public void setTemplateDao​(TemplateDAO templateDao)
      • setDashletDao

        public void setDashletDao​(DashletDAO dashletDao)
      • findAllNames

        public Set<String> findAllNames()
        Description copied from interface: TenantDAO
        Retrieves all the tenant names
        Specified by:
        findAllNames in interface TenantDAO
        Returns:
        the collection of all the tenant names
      • setMessageTemplateDao

        public void setMessageTemplateDao​(MessageTemplateDAO messageTemplateDao)
      • setAttributeSetDao

        public void setAttributeSetDao​(AttributeSetDAO attributeSetDao)
      • getTenantName

        public String getTenantName​(long tenantId)
        Description copied from interface: TenantDAO
        Retrieves the tenant's name
        Specified by:
        getTenantName in interface TenantDAO
        Parameters:
        tenantId - identifier of the tenant
        Returns:
        name of the tenant