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

All Superinterfaces:
GrouperDAO
All Known Implementing Classes:
Hib3AttributeDefNameDAO

public interface AttributeDefNameDAO
extends GrouperDAO

attribute def name data access methods


Method Summary
 void delete(AttributeDefName attributeDefName)
          delete this attribute def name
 Set<AttributeDefName> findAllSecure(String searchField, Set<String> searchInAttributeDefIds, QueryOptions queryOptions)
          search for attributeDefName by name, display name, or description.
 Set<AttributeDefName> findByAttributeDef(String id)
          Find all that have the given attribute def id.
 Set<AttributeDefName> findByAttributeDefLike(String attributeDefId, String likeString)
          search for all by attribute def id, and like string
 AttributeDefName findByIdSecure(String id, boolean exceptionIfNotFound)
           
 AttributeDefName findByNameSecure(String name, boolean exceptionIfNotFound)
          find an attribute def name by name
 Set<AttributeDefName> findByStem(String id)
          Find all that have the given stem id.
 AttributeDefName findByUuidOrName(String id, String name, boolean exceptionIfNotFound)
          find a record by uuid or name
 void saveOrUpdate(AttributeDefName attributeDefName)
          insert or update an attribute def name object
 void saveUpdateProperties(AttributeDefName attributeDefName)
          save the update properties which are auto saved when business method is called
 

Method Detail

saveOrUpdate

void saveOrUpdate(AttributeDefName attributeDefName)
insert or update an attribute def name object

Parameters:
attributeDefName -

findByIdSecure

AttributeDefName findByIdSecure(String id,
                                boolean exceptionIfNotFound)
Parameters:
id -
exceptionIfNotFound -
Returns:
the attribute def name or null if not there

findByNameSecure

AttributeDefName findByNameSecure(String name,
                                  boolean exceptionIfNotFound)
                                  throws GrouperDAOException,
                                         AttributeDefNameNotFoundException
find an attribute def name by name

Parameters:
name -
exceptionIfNotFound -
Returns:
name
Throws:
GrouperDAOException
AttributeDefNameNotFoundException

delete

void delete(AttributeDefName attributeDefName)
delete this attribute def name

Parameters:
attributeDefName -

findByStem

Set<AttributeDefName> findByStem(String id)
Find all that have the given stem id.

Parameters:
id -
Returns:
set of attribute def names

findByAttributeDef

Set<AttributeDefName> findByAttributeDef(String id)
Find all that have the given attribute def id.

Parameters:
id -
Returns:
set of attribute def names

findByUuidOrName

AttributeDefName findByUuidOrName(String id,
                                  String name,
                                  boolean exceptionIfNotFound)
find a record by uuid or name

Parameters:
id -
name -
exceptionIfNotFound -
Returns:
the attribute def name

saveUpdateProperties

void saveUpdateProperties(AttributeDefName attributeDefName)
save the update properties which are auto saved when business method is called

Parameters:
attributeDefName -

findAllSecure

Set<AttributeDefName> findAllSecure(String searchField,
                                    Set<String> searchInAttributeDefIds,
                                    QueryOptions queryOptions)
search for attributeDefName by name, display name, or description. This is a secure method, a GrouperSession must be open. Note, you should add the % signs before calling this method

Parameters:
searchField - substring to search for
searchInAttributeDefIds - ids to search in or null for all
queryOptions -
Returns:
the attribute def names or empty set

findByAttributeDefLike

Set<AttributeDefName> findByAttributeDefLike(String attributeDefId,
                                             String likeString)
search for all by attribute def id, and like string

Parameters:
attributeDefId -
likeString -
Returns:
the attribute def names or empty set