Interface AttributeSetDAO

    • Method Detail

      • findByName

        AttributeSet findByName​(String name,
                                long tenantId)
        This method finds a attribute set by name
        Parameters:
        name - Name of the attribute set
        tenantId - ID of the owning tenant
        Returns:
        AttributeSet with given name
      • findByType

        List<AttributeSet> findByType​(int type,
                                      long tenantId)
        This method finds a attribute set by type
        Parameters:
        type - Type of the attribute set
        tenantId - ID of the owning tenant
        Returns:
        AttributeSet with given type
      • load

        Map<Long,​AttributeSet> load​(long tenantId)
        Retrieves all the attribute sets in a tenant
        Parameters:
        tenantId - The tenant
        Returns:
        Map ID-AttributeSet
      • findAttributes

        Map<String,​Attribute> findAttributes​(long tenantId,
                                                   Long setId)
        Gets the map of attributes defined in the given tenant or set
        Parameters:
        tenantId - The tenant ID
        setId - Optional set ID
        Returns:
        map of attributes