Interface AttributeAssignActionSetDAO

All Superinterfaces:
GrouperDAO
All Known Implementing Classes:
Hib3AttributeAssignActionSetDAO

public interface AttributeAssignActionSetDAO extends GrouperDAO
attribute assign action set, links up actions with other actions (probably for privs)
  • Method Details

    • saveOrUpdate

      void saveOrUpdate(AttributeAssignActionSet attributeAssignActionSet)
      insert or update an attributeAssignActionSet
      Parameters:
      attributeAssignActionSet -
    • delete

      void delete(AttributeAssignActionSet attributeAssignActionSet)
      delete an attribute assign action set
      Parameters:
      attributeAssignActionSet -
    • findById

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

      Set<AttributeAssignActionSet> findByIfHasAttributeAssignActionId(String id)
      find by set owner
      Parameters:
      id -
      Returns:
      the attribute assign action set or null if not there
    • findByThenHasAttributeAssignActionId

      Set<AttributeAssignActionSet> findByThenHasAttributeAssignActionId(String id)
      find by member
      Parameters:
      id -
      Returns:
      the attribute assign action set or null if not there
    • findByIfThenHasAttributeAssignActionId

      Set<AttributeAssignActionSet> findByIfThenHasAttributeAssignActionId(String attributeAssignActionSetForThens, String attributeAssignActionSetForIfs)
       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:
      attributeAssignActionSetForThens -
      attributeAssignActionSetForIfs -
      Returns:
      the attribute assign action set or null if not there
    • findByIfThenImmediate

      AttributeAssignActionSet findByIfThenImmediate(String attributeAssignActionIdIf, String attributeAssignActionIdThen, boolean exceptionIfNotFound) throws AttributeAssignActionSetNotFoundException
      find by if and then (not same) with depth of 1 (immediate)
      Parameters:
      attributeAssignActionIdIf -
      attributeAssignActionIdThen -
      exceptionIfNotFound -
      Returns:
      the attributeAssignActionSet
      Throws:
      AttributeAssignActionSetNotFoundException
    • deleteByIfHasAttributeAssignAction

      void deleteByIfHasAttributeAssignAction(AttributeAssignAction attributeAssignAction)
      delete attributeAssignAction sets by owner, so the attributeAssignAction can be deleted
      Parameters:
      attributeAssignAction -
    • attributeAssignActionsThatImplyThis

      Set<AttributeAssignAction> attributeAssignActionsThatImplyThis(String attributeAssignActionId)
      get all the IF rows from attributeAssignActionSet about this id. The ones returned imply that this is also assigned. Those are the parents, this is the child.
      Parameters:
      attributeAssignActionId -
      Returns:
      the AttributeAssignAction
    • attributeAssignActionsThatImplyThisImmediate

      Set<AttributeAssignAction> attributeAssignActionsThatImplyThisImmediate(String attributeAssignActionId)
      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:
      attributeAssignActionId -
      Returns:
      the attributeAssignActionId
    • attributeAssignActionsImpliedByThis

      Set<AttributeAssignAction> attributeAssignActionsImpliedByThis(String attributeAssignActionId)
      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:
      attributeAssignActionId -
      Returns:
      the AttributeAssignAction
    • attributeAssignActionsImpliedByThisImmediate

      Set<AttributeAssignAction> attributeAssignActionsImpliedByThisImmediate(String attributeAssignActionId)
      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:
      attributeAssignActionId -
      Returns:
      the AttributeDefName
    • findByUuidOrKey

      AttributeAssignActionSet findByUuidOrKey(String id, String ifHasAttributeAssignActionId, String thenHasAttributeAssignActionId, String parentAttributeAssignActionSetId, int depth, boolean exceptionIfNull)
      find a record by uuid or key
      Parameters:
      id -
      ifHasAttributeAssignActionId -
      thenHasAttributeAssignActionId -
      parentAttributeAssignActionSetId -
      depth -
      exceptionIfNull -
      Returns:
      the roleset or null
    • saveUpdateProperties

      void saveUpdateProperties(AttributeAssignActionSet attributeAssignActionSet)
      save the update properties which are auto saved when business method is called
      Parameters:
      attributeAssignActionSet -
    • findByDepthOneForAttributeDef

      Set<AttributeAssignActionSet> findByDepthOneForAttributeDef(String attributeDefId)
      find by depth one for attribute def
      Parameters:
      attributeDefId -
      Returns:
      the attribute assign action set or null if not there