Interface AttributeDefDAO

All Superinterfaces:
GrouperDAO
All Known Implementing Classes:
Hib3AttributeDefDAO

public interface AttributeDefDAO extends GrouperDAO
attribute def data access methods
  • Method Details

    • saveOrUpdate

      void saveOrUpdate(AttributeDef attributeDef)
      insert or update an attribute def object
      Parameters:
      attributeDef -
    • findByIdSecure

      AttributeDef findByIdSecure(String id, boolean exceptionIfNotFound)
      find by id. This is a secure method, a grouperSession needs to be open
      Parameters:
      id -
      exceptionIfNotFound -
      Returns:
      the attribute def or null if not there
    • findByCreator

      Set<AttributeDef> findByCreator(Member member)
      find attribute defs by creator
      Parameters:
      member -
      Returns:
      the attribute defs
    • findByIdsSecure

      Set<AttributeDef> findByIdsSecure(Collection<String> ids, QueryOptions queryOptions)
      find by ids secure
      Parameters:
      ids -
      queryOptions -
      Returns:
      the attributeDefs or null or exception
    • findByIdSecure

      AttributeDef findByIdSecure(String id, boolean exceptionIfNotFound, QueryOptions queryOptions)
      find by id. This is a secure method, a grouperSession needs to be open
      Parameters:
      id -
      exceptionIfNotFound -
      queryOptions -
      Returns:
      the attribute def or null if not there
    • findById

      AttributeDef findById(String id, boolean exceptionIfNotFound)
      find by id. This is NOT a secure method, a grouperSession does not need to be open
      Parameters:
      id -
      exceptionIfNotFound -
      Returns:
      the attribute def or null if not there
    • findById

      AttributeDef findById(String id, boolean exceptionIfNotFound, QueryOptions queryOptions)
      find by id. This is NOT a secure method, a grouperSession does not need to be open
      Parameters:
      id -
      exceptionIfNotFound -
      queryOptions -
      Returns:
      the attribute def or null if not there
    • findByAttributeDefNameIdSecure

      AttributeDef findByAttributeDefNameIdSecure(String attributeDefNameId, boolean exceptionIfNotFound)
      find by attributeDefNameId. This is a secure method, a grouperSession needs to be open
      Parameters:
      attributeDefNameId -
      exceptionIfNotFound -
      Returns:
      the attribute def or null if not there
    • findByNameSecure

      AttributeDef findByNameSecure(String name, boolean exceptionIfNotFound) throws GrouperDAOException, AttributeDefNotFoundException
      find an attribute def by name. this is a secure method, a grouperSession needs to be open
      Parameters:
      name -
      exceptionIfNotFound -
      Returns:
      attribute def
      Throws:
      GrouperDAOException
      AttributeDefNotFoundException
    • findByNameSecure

      AttributeDef findByNameSecure(String name, boolean exceptionIfNotFound, QueryOptions queryOptions) throws GrouperDAOException, AttributeDefNotFoundException
      find an attribute def by name. this is a secure method, a grouperSession needs to be open
      Parameters:
      name -
      exceptionIfNotFound -
      queryOptions -
      Returns:
      attribute def
      Throws:
      GrouperDAOException
      AttributeDefNotFoundException
    • findByName

      AttributeDef findByName(String name, boolean exceptionIfNotFound, QueryOptions queryOptions) throws GrouperDAOException, AttributeDefNotFoundException
      find an attribute def by name. this is a secure method, a grouperSession needs to be open
      Parameters:
      name -
      exceptionIfNotFound -
      queryOptions -
      Returns:
      attribute def
      Throws:
      GrouperDAOException
      AttributeDefNotFoundException
    • findByStem

      Set<AttributeDef> findByStem(String id)
      Find all that have the given stem id.
      Parameters:
      id -
      Returns:
      set of stems
    • delete

      void delete(AttributeDef attributeDef)
      delete the attribute def
      Parameters:
      attributeDef -
    • findByIdIndex

      AttributeDef findByIdIndex(Long idIndex, boolean exceptionIfNotFound, QueryOptions queryOptions) throws AttributeDefNotFoundException
      Parameters:
      idIndex -
      exceptionIfNotFound -
      queryOptions -
      Throws:
      AttributeDefNotFoundException
      Since:
      2.2
    • findByIdIndexSecure

      AttributeDef findByIdIndexSecure(Long idIndex, boolean exceptionIfNotFound, QueryOptions queryOptions) throws AttributeDefNotFoundException
      Parameters:
      idIndex -
      exceptionIfNotFound -
      queryOptions -
      Throws:
      AttributeDefNotFoundException
      Since:
      2.2
    • findByUuidOrName

      AttributeDef findByUuidOrName(String id, String name, boolean exceptionIfNotFound)
      search for an attribute def by id or name
      Parameters:
      id -
      name -
      exceptionIfNotFound -
      Returns:
      the attribute def or null
    • findByUuidOrName

      AttributeDef findByUuidOrName(String id, String name, boolean exceptionIfNotFound, QueryOptions queryOptions)
      search for an attribute def by id or name
      Parameters:
      id -
      name -
      exceptionIfNotFound -
      queryOptions -
      Returns:
      the attribute def or null
    • saveUpdateProperties

      void saveUpdateProperties(AttributeDef attributeDef)
      save the update properties which are auto saved when business method is called
      Parameters:
      attributeDef -
    • getAllAttributeDefsSecure

      Set<AttributeDef> getAllAttributeDefsSecure(GrouperSession grouperSession, Subject subject, Set<Privilege> privileges, QueryOptions queryOptions)
      get all attribute defs secure
      Parameters:
      grouperSession -
      subject -
      privileges -
      queryOptions -
      Returns:
      attribute defs
    • getAllAttributeDefsSecure

      Set<AttributeDef> getAllAttributeDefsSecure(String scope, GrouperSession grouperSession, Subject subject, Set<Privilege> privileges, QueryOptions queryOptions)
      get all attribute defs secure
      Parameters:
      scope -
      grouperSession -
      subject -
      privileges -
      queryOptions -
      Returns:
      set of attribute defs
    • getAllAttributeDefsSplitScopeSecure

      Set<AttributeDef> getAllAttributeDefsSplitScopeSecure(String scope, GrouperSession grouperSession, Subject subject, Set<Privilege> privileges, QueryOptions queryOptions, AttributeAssignType attributeAssignType, AttributeDefType attributeDefType)
      get all attribute defs secure, split the scope by whitespace
      Parameters:
      scope -
      grouperSession -
      subject -
      privileges -
      queryOptions -
      attributeAssignType -
      attributeDefType -
      Returns:
      set of attribute defs
    • findAttributeDefsInStemWithoutPrivilege

      Set<AttributeDef> findAttributeDefsInStemWithoutPrivilege(GrouperSession grouperSession, String stemId, Stem.Scope scope, Subject subject, Privilege privilege, QueryOptions queryOptions, boolean considerAllSubject, String sqlLikeString)
      see which attributeDefs do not have this privilege
      Parameters:
      grouperSession -
      stemId -
      scope -
      subject -
      privilege -
      queryOptions -
      considerAllSubject -
      sqlLikeString -
      Returns:
      the attributeDefs
    • findAllAttributeDefsSecure

      Set<AttributeDef> findAllAttributeDefsSecure(String scope, boolean splitScope, Subject subject, Set<Privilege> privileges, QueryOptions queryOptions, String parentStemId, Stem.Scope stemScope, boolean findByUuidOrName, Collection<String> attributeDefIds)
      do a query based on various params
      Parameters:
      scope -
      splitScope -
      subject -
      privileges -
      queryOptions -
      parentStemId -
      stemScope -
      findByUuidOrName -
      attributeDefIds -
      Returns:
      the result set
    • findAllAttributeDefsSecure

      Set<AttributeDef> findAllAttributeDefsSecure(String scope, boolean splitScope, Subject subject, Set<Privilege> privileges, QueryOptions queryOptions, String parentStemId, Stem.Scope stemScope, boolean findByUuidOrName, Collection<String> attributeDefIds, Collection<String> namesOfAttributeDefs)
      do a query based on various params
      Parameters:
      scope -
      splitScope -
      subject -
      privileges -
      queryOptions -
      parentStemId -
      stemScope -
      findByUuidOrName -
      attributeDefIds -
      namesOfAttributeDefs -
      Returns:
      the result set
    • findAllAttributeDefsFromNamesSecure

      Set<AttributeDef> findAllAttributeDefsFromNamesSecure(String scope, boolean splitScope, Subject subject, Set<Privilege> privileges, QueryOptions queryOptions, String parentStemId, Stem.Scope stemScope, boolean findByUuidOrName, Collection<String> attributeDefNameIds)
      do a query based on various params
      Parameters:
      scope -
      splitScope -
      subject -
      privileges -
      queryOptions -
      parentStemId -
      stemScope -
      findByUuidOrName -
      attributeDefNameIds -
      Returns:
      the result set
    • findAttributeDefsInStemWithPrivilege

      Set<AttributeDef> findAttributeDefsInStemWithPrivilege(GrouperSession grouperSession, String stemId, Stem.Scope scope, Subject subject, Privilege privilege, QueryOptions queryOptions, boolean considerAllSubject, String sqlLikeString)
      see which attributeDefs do not have this privilege
      Parameters:
      grouperSession -
      stemId -
      scope -
      subject -
      privilege -
      queryOptions -
      considerAllSubject -
      sqlLikeString -
      Returns:
      the attributeDefs