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

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

public class AttributeDefFinder
extends Object

finder methods for attribute def


Constructor Summary
AttributeDefFinder()
           
 
Method Summary
static AttributeDef findByAttributeDefNameId(String id, boolean exceptionIfNull)
          find an attributeDef by attribute def name id.
static AttributeDef findById(String id, boolean exceptionIfNull)
          find an attributeDef by id.
static AttributeDef findByName(String name, boolean exceptionIfNull)
          find an attributeDef by name.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AttributeDefFinder

public AttributeDefFinder()
Method Detail

findById

public static AttributeDef findById(String id,
                                    boolean exceptionIfNull)
find an attributeDef by id. This is a secure method, a GrouperSession must be open

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

findByAttributeDefNameId

public static AttributeDef findByAttributeDefNameId(String id,
                                                    boolean exceptionIfNull)
find an attributeDef by attribute def name id. This is a secure method, a GrouperSession must be open

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

findByName

public static AttributeDef findByName(String name,
                                      boolean exceptionIfNull)
find an attributeDef by name. This is a secure method, a GrouperSession must be open

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