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
 AttributeDef findByAttributeDefNameIdSecure(String attributeDefNameId, boolean exceptionIfNotFound)
          find by attributeDefNameId.
 AttributeDef findById(String id, boolean exceptionIfNotFound)
          find by id.
 AttributeDef findByIdSecure(String id, boolean exceptionIfNotFound)
          find by id.
 AttributeDef findByNameSecure(String name, boolean exceptionIfNotFound)
          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
 Set<AttributeDef> getAllAttributeDefsSecure(GrouperSession grouperSession, Subject subject, Set<Privilege> privileges, QueryOptions queryOptions)
          get all attribute defs secure
 Set<AttributeDef> getAllAttributeDefsSecure(String scope, GrouperSession grouperSession, Subject subject, Set<Privilege> privileges, QueryOptions queryOptions)
          get all attribute defs secure
 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

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

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

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 -

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

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