edu.internet2.middleware.grouper.internal.dao
Interface AttributeDefDAO

All Superinterfaces:
GrouperDAO
All Known Implementing Classes:
Hib3AttributeDefDAO

public interface AttributeDefDAO
extends GrouperDAO

attribute def data access methods


Method Summary
 void delete(AttributeDef attributeDef)
          delete the attribute def
 Set<AttributeDef> findAllAttributeDefsSecure(String scope, boolean splitScope, edu.internet2.middleware.subject.Subject subject, Set<Privilege> privileges, QueryOptions queryOptions, String parentStemId, Stem.Scope stemScope, boolean findByUuidOrName, Collection<String> attributeDefIds)
          do a query based on various params
 Set<AttributeDef> findAttributeDefsInStemWithoutPrivilege(GrouperSession grouperSession, String stemId, Stem.Scope scope, edu.internet2.middleware.subject.Subject subject, Privilege privilege, QueryOptions queryOptions, boolean considerAllSubject, String sqlLikeString)
          see which attributeDefs do not have this privilege
 AttributeDef findByAttributeDefNameIdSecure(String attributeDefNameId, boolean exceptionIfNotFound)
          find by attributeDefNameId.
 AttributeDef findById(String id, boolean exceptionIfNotFound)
          find by id.
 AttributeDef findById(String id, boolean exceptionIfNotFound, QueryOptions queryOptions)
          find by id.
 AttributeDef findByIdIndex(Long idIndex, boolean exceptionIfNotFound, QueryOptions queryOptions)
           
 AttributeDef findByIdIndexSecure(Long idIndex, boolean exceptionIfNotFound, QueryOptions queryOptions)
           
 AttributeDef findByIdSecure(String id, boolean exceptionIfNotFound)
          find by id.
 AttributeDef findByIdSecure(String id, boolean exceptionIfNotFound, QueryOptions queryOptions)
          find by id.
 Set<AttributeDef> findByIdsSecure(Collection<String> ids, QueryOptions queryOptions)
          find by ids secure
 AttributeDef findByNameSecure(String name, boolean exceptionIfNotFound)
          find an attribute def by name.
 AttributeDef findByNameSecure(String name, boolean exceptionIfNotFound, QueryOptions queryOptions)
          find an attribute def by name.
 Set<AttributeDef> findByStem(String id)
          Find all that have the given stem id.
 AttributeDef findByUuidOrName(String id, String name, boolean exceptionIfNotFound)
          search for an attribute def by id or name
 AttributeDef findByUuidOrName(String id, String name, boolean exceptionIfNotFound, QueryOptions queryOptions)
          search for an attribute def by id or name
 Set<AttributeDef> getAllAttributeDefsSecure(GrouperSession grouperSession, edu.internet2.middleware.subject.Subject subject, Set<Privilege> privileges, QueryOptions queryOptions)
          get all attribute defs secure
 Set<AttributeDef> getAllAttributeDefsSecure(String scope, GrouperSession grouperSession, edu.internet2.middleware.subject.Subject subject, Set<Privilege> privileges, QueryOptions queryOptions)
          get all attribute defs secure
 Set<AttributeDef> getAllAttributeDefsSplitScopeSecure(String scope, GrouperSession grouperSession, edu.internet2.middleware.subject.Subject subject, Set<Privilege> privileges, QueryOptions queryOptions, AttributeAssignType attributeAssignType, AttributeDefType attributeDefType)
          get all attribute defs secure, split the scope by whitespace
 void saveOrUpdate(AttributeDef attributeDef)
          insert or update an attribute def object
 void saveUpdateProperties(AttributeDef attributeDef)
          save the update properties which are auto saved when business method is called
 

Method Detail

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

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

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,
                                            edu.internet2.middleware.subject.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,
                                            edu.internet2.middleware.subject.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,
                                                      edu.internet2.middleware.subject.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,
                                                          edu.internet2.middleware.subject.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,
                                             edu.internet2.middleware.subject.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