Interface AttributeDefNameSetDAO

All Superinterfaces:
GrouperDAO
All Known Implementing Classes:
Hib3AttributeDefNameSetDAO

public interface AttributeDefNameSetDAO extends GrouperDAO
attribute def name set, links up attributes with other attributes (probably for privs)
  • Method Details

    • saveOrUpdate

      void saveOrUpdate(AttributeDefNameSet attributeDefNameSet)
      insert or update an attribute def name set
      Parameters:
      attributeDefNameSet -
    • delete

      void delete(AttributeDefNameSet attributeDefNameSet)
      delete an attribute def name set
      Parameters:
      attributeDefNameSet -
    • findById

      AttributeDefNameSet findById(String id, boolean exceptionIfNotFound) throws AttributeDefNameSetNotFoundException
      Parameters:
      id -
      exceptionIfNotFound -
      Returns:
      the attribute def name set or null if not there
      Throws:
      AttributeDefNameSetNotFoundException
    • findByIfHasAttributeDefNameId

      Set<AttributeDefNameSet> findByIfHasAttributeDefNameId(String id)
      find by set owner
      Parameters:
      id -
      Returns:
      the attribute def name set or null if not there
    • findByThenHasAttributeDefNameId

      Set<AttributeDefNameSet> findByThenHasAttributeDefNameId(String id)
      find by member
      Parameters:
      id -
      Returns:
      the attribute def name set or null if not there
    • findByDepthOneForAttributeDef

      Set<AttributeDefNameSet> findByDepthOneForAttributeDef(String attributeDefId)
      find by depth one for attribute def
      Parameters:
      attributeDefId -
      Returns:
      the attribute def name set or null if not there
    • findByIfThenHasAttributeDefNameId

      Set<AttributeDefNameSet> findByIfThenHasAttributeDefNameId(String attributeDefNameSetForThens, String attributeDefNameSetForIfs)
       this will help with deletes.  It will find sets who have if's which match thens provided, and thens which 
       match ifs provided.
       
       So if there is this path: A -> B -> C -> D
       And the inputs here are B and C (removing that path)
       Then return A -> C, A -> D, B -> C, B -> D
       
       
      Parameters:
      attributeDefNameSetForThens -
      attributeDefNameSetForIfs -
      Returns:
      the attribute def name set or null if not there
    • findByIfThenImmediate

      AttributeDefNameSet findByIfThenImmediate(String attributeDefNameIdIf, String attributeDefNameIdThen, boolean exceptionIfNotFound) throws AttributeDefNameSetNotFoundException
      find by if and then (not same) with depth of 1 (immediate)
      Parameters:
      attributeDefNameIdIf -
      attributeDefNameIdThen -
      exceptionIfNotFound -
      Returns:
      the attributeDefNameSet
      Throws:
      AttributeDefNameSetNotFoundException
    • deleteByIfHasAttributeDefName

      void deleteByIfHasAttributeDefName(AttributeDefName attributeDefName)
      delete attributeDefName sets by owner, so the attributeDefName can be deleted
      Parameters:
      attributeDefName -
    • attributeDefNamesThatImplyThis

      Set<AttributeDefName> attributeDefNamesThatImplyThis(String attributeDefNameId)
      get all the IF rows from attributeDefNameSet about this id. The ones returned imply that this is also assigned. Those are the parents, this is the child.
      Parameters:
      attributeDefNameId -
      Returns:
      the AttributeDefName
    • attributeDefNamesThatImplyThisImmediate

      Set<AttributeDefName> attributeDefNamesThatImplyThisImmediate(String attributeDefNameId)
      get all the IF rows from attributeDefNameSet about this id (immediate only). The ones returned imply that this is also assigned. Those are the parents, this is the child.
      Parameters:
      attributeDefNameId -
      Returns:
      the AttributeDefName
    • attributeDefNamesImpliedByThis

      Set<AttributeDefName> attributeDefNamesImpliedByThis(String attributeDefNameId)
      get all the THEN rows from attributeDefNameSet about this id. The ones returned are implied if this one is assigned. Those are the children, this is the parent
      Parameters:
      attributeDefNameId -
      Returns:
      the AttributeDefName
    • attributeDefNamesImpliedByThisImmediate

      Set<AttributeDefName> attributeDefNamesImpliedByThisImmediate(String attributeDefNameId)
      get all the THEN rows from attributeDefNameSet about this id (immediate). The ones returned are implied if this one is assigned. Those are the children, this is the parent
      Parameters:
      attributeDefNameId -
      Returns:
      the AttributeDefName
    • findByUuidOrKey

      AttributeDefNameSet findByUuidOrKey(String id, String ifHasAttributeDefNameId, String thenHasAttributedefNameId, String parentAttributeDefNameSetId, int depth, boolean exceptionIfNull)
      find a record by uuid or key
      Parameters:
      id -
      ifHasAttributeDefNameId -
      thenHasAttributedefNameId -
      parentAttributeDefNameSetId -
      depth -
      exceptionIfNull -
      Returns:
      the AttributeDefNameSet or null
    • saveUpdateProperties

      void saveUpdateProperties(AttributeDefNameSet attributeDefNameSet)
      save the update properties which are auto saved when business method is called
      Parameters:
      attributeDefNameSet -