edu.internet2.middleware.grouper.attr.finder
Class AttributeDefNameFinder

java.lang.Object
  extended by edu.internet2.middleware.grouper.attr.finder.AttributeDefNameFinder

public class AttributeDefNameFinder
extends java.lang.Object

finder methods for attribute def name


Constructor Summary
AttributeDefNameFinder()
           
 
Method Summary
static java.util.Set<AttributeDefName> findAll(java.lang.String searchField, java.util.Set<java.lang.String> searchInAttributeDefIds, QueryOptions queryOptions)
          search for attributeDefName by name, display name, or description.
static AttributeDefName findById(java.lang.String id, boolean exceptionIfNull)
          find an attributeDefName by id.
static AttributeDefName findByName(java.lang.String name, boolean exceptionIfNull)
          find an attributeDefName by name.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AttributeDefNameFinder

public AttributeDefNameFinder()
Method Detail

findById

public static AttributeDefName findById(java.lang.String id,
                                        boolean exceptionIfNull)
find an attributeDefName by id. This is a secure method, a GrouperSession must be open

Parameters:
id - of attributeDefName
exceptionIfNull - true if exception should be thrown if null
Returns:
the attribute def or null
Throws:
AttributeDefNameNotFoundException

findByName

public static AttributeDefName findByName(java.lang.String name,
                                          boolean exceptionIfNull)
find an attributeDefName by name. This is a secure method, a GrouperSession must be open

Parameters:
name - of attributeDefName
exceptionIfNull - true if exception should be thrown if null
Returns:
the attribute def name or null
Throws:
AttributeDefNameNotFoundException

findAll

public static java.util.Set<AttributeDefName> findAll(java.lang.String searchField,
                                                      java.util.Set<java.lang.String> searchInAttributeDefIds,
                                                      QueryOptions queryOptions)
search for attributeDefName by name, display name, or description. This is a secure method, a GrouperSession must be open. You need to add %'s to it for wildcards

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