Interface AttributeSetDAO

All Superinterfaces:
PersistentObjectDAO<AttributeSet>
All Known Implementing Classes:
HibernateAttributeSetDAO

public interface AttributeSetDAO extends PersistentObjectDAO<AttributeSet>
This class is a DAO-service for attribute sets.
Version:
7.5
Author:
Marco Meschieri - LogicalDOC
  • Method Details

    • 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