edu.internet2.middleware.grouper.cfg
Class GrouperConfig

java.lang.Object
  extended by edu.internet2.middleware.grouper.cfg.GrouperConfig

public class GrouperConfig
extends Object

Grouper configuration information.

This class is being deprecated by the Configuration interface.

Since:
?
Version:
$Id: GrouperConfig.java,v 1.9 2009-12-16 06:02:30 mchyzer Exp $
Author:
blair christensen.

Field Summary
static String ALL
           
static String ALL_NAME
           
static String ATTR_C
           
static String ATTR_CT
           
static String ATTRIBUTE_DEFS_CREATE_GRANT_ALL_ATTR_ADMIN
           
static String ATTRIBUTE_DEFS_CREATE_GRANT_ALL_ATTR_OPTIN
           
static String ATTRIBUTE_DEFS_CREATE_GRANT_ALL_ATTR_OPTOUT
           
static String ATTRIBUTE_DEFS_CREATE_GRANT_ALL_ATTR_READ
           
static String ATTRIBUTE_DEFS_CREATE_GRANT_ALL_ATTR_UPDATE
           
static String ATTRIBUTE_DEFS_CREATE_GRANT_ALL_ATTR_VIEW
           
static String ATTRIBUTE_DESCRIPTION
           
static String ATTRIBUTE_DISPLAY_EXTENSION
           
static String ATTRIBUTE_DISPLAY_NAME
           
static String ATTRIBUTE_EXTENSION
           
static String ATTRIBUTE_NAME
           
static String BT
           
static String DEFAULT_DAO_FACTORY
          Default DAO implementation to be used if an alternative is not configured.
static String EMPTY_STRING
          String with value of "".
static long EPOCH
          Epoch origin.
static String GCGAA
           
static String GCGAOI
           
static String GCGAOO
           
static String GCGAR
           
static String GCGAU
           
static String GCGAV
           
static String GROUPER_CF
          Grouper configuration file.
static String HIBERNATE_CF
          Hibernate configuration file.
static String IST
           
static String LIST
           
static String LOCAL_GROUPER_CF
          Optional local configuration file to override contents of GROUPER_CF.
static String MESSAGES_USE_TOOLTIPS
          if tooltips should be substituted in messages
static String NL
           
static String PROP_DAO_FACTORY
          Property containing name of DAO implementation to be used.
static String PROP_MAX_WHEEL_AGE
          Property containing maximum age of cached wheel group.
static String PROP_USE_WHEEL_GROUP
          Property determining whether wheel group is to be used.
static String PROP_WHEEL_GROUP
          Property containing name of wheel group.
static String ROOT
           
static String ROOT_NAME
           
static String SCGAC
           
static String SCGAS
           
static String SCIDFRI
           
static String SCII
           
static String WHEEL_NAME
           
 
Method Summary
static String getGrouperUiUrl(boolean exceptionIfNull)
          get the UI url with a slash on the end
static String getHibernateProperty(String property)
          Get a Hibernate configuration parameter.
static int getHibernatePropertyInt(String property, int defaultValue)
          get the hibernate property value as an int, throw an exception if invalid value.
static String getProperty(String property)
          Get a Grouper configuration parameter.
 String getProperty(String property, String defaultValue)
           
static boolean getPropertyBoolean(String propertyName, boolean defaultValue)
          get the property value as a boolean, throw an exception if invalid value.
static int getPropertyInt(String propertyName, int defaultValue)
          get the property value as an int, throw an exception if invalid value.
static Set<String> getPropertyNames()
          Get a Grouper config names
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_DAO_FACTORY

public static final String DEFAULT_DAO_FACTORY
Default DAO implementation to be used if an alternative is not configured.

Since:
1.2.0

EMPTY_STRING

public static final String EMPTY_STRING
String with value of "".

See Also:
Constant Field Values

EPOCH

public static final long EPOCH
Epoch origin.

See Also:
Constant Field Values

GROUPER_CF

public static final String GROUPER_CF
Grouper configuration file.

See Also:
Constant Field Values

HIBERNATE_CF

public static final String HIBERNATE_CF
Hibernate configuration file.

See Also:
Constant Field Values

LOCAL_GROUPER_CF

public static final String LOCAL_GROUPER_CF
Optional local configuration file to override contents of GROUPER_CF.

Since:
1.2.1
See Also:
Constant Field Values

PROP_DAO_FACTORY

public static final String PROP_DAO_FACTORY
Property containing name of DAO implementation to be used.

Grouper will default to DEFAULT_DAO_FACTORY if this property is not set.

Since:
1.2.0
See Also:
Constant Field Values

PROP_MAX_WHEEL_AGE

public static final String PROP_MAX_WHEEL_AGE
Property containing maximum age of cached wheel group.

See Also:
Constant Field Values

PROP_WHEEL_GROUP

public static final String PROP_WHEEL_GROUP
Property containing name of wheel group.

See Also:
Constant Field Values

PROP_USE_WHEEL_GROUP

public static final String PROP_USE_WHEEL_GROUP
Property determining whether wheel group is to be used.

See Also:
Constant Field Values

ALL

public static final String ALL
See Also:
Constant Field Values

ALL_NAME

public static final String ALL_NAME
See Also:
Constant Field Values

ATTR_C

public static final String ATTR_C
See Also:
Constant Field Values

ATTR_CT

public static final String ATTR_CT
See Also:
Constant Field Values

ATTRIBUTE_DESCRIPTION

public static final String ATTRIBUTE_DESCRIPTION
See Also:
Constant Field Values

ATTRIBUTE_DISPLAY_EXTENSION

public static final String ATTRIBUTE_DISPLAY_EXTENSION
See Also:
Constant Field Values

ATTRIBUTE_DISPLAY_NAME

public static final String ATTRIBUTE_DISPLAY_NAME
See Also:
Constant Field Values

ATTRIBUTE_EXTENSION

public static final String ATTRIBUTE_EXTENSION
See Also:
Constant Field Values

ATTRIBUTE_NAME

public static final String ATTRIBUTE_NAME
See Also:
Constant Field Values

BT

public static final String BT
See Also:
Constant Field Values

GCGAA

public static final String GCGAA
See Also:
Constant Field Values

GCGAOI

public static final String GCGAOI
See Also:
Constant Field Values

GCGAOO

public static final String GCGAOO
See Also:
Constant Field Values

GCGAR

public static final String GCGAR
See Also:
Constant Field Values

GCGAU

public static final String GCGAU
See Also:
Constant Field Values

GCGAV

public static final String GCGAV
See Also:
Constant Field Values

ATTRIBUTE_DEFS_CREATE_GRANT_ALL_ATTR_ADMIN

public static final String ATTRIBUTE_DEFS_CREATE_GRANT_ALL_ATTR_ADMIN
See Also:
Constant Field Values

ATTRIBUTE_DEFS_CREATE_GRANT_ALL_ATTR_OPTIN

public static final String ATTRIBUTE_DEFS_CREATE_GRANT_ALL_ATTR_OPTIN
See Also:
Constant Field Values

ATTRIBUTE_DEFS_CREATE_GRANT_ALL_ATTR_OPTOUT

public static final String ATTRIBUTE_DEFS_CREATE_GRANT_ALL_ATTR_OPTOUT
See Also:
Constant Field Values

ATTRIBUTE_DEFS_CREATE_GRANT_ALL_ATTR_READ

public static final String ATTRIBUTE_DEFS_CREATE_GRANT_ALL_ATTR_READ
See Also:
Constant Field Values

ATTRIBUTE_DEFS_CREATE_GRANT_ALL_ATTR_UPDATE

public static final String ATTRIBUTE_DEFS_CREATE_GRANT_ALL_ATTR_UPDATE
See Also:
Constant Field Values

ATTRIBUTE_DEFS_CREATE_GRANT_ALL_ATTR_VIEW

public static final String ATTRIBUTE_DEFS_CREATE_GRANT_ALL_ATTR_VIEW
See Also:
Constant Field Values

IST

public static final String IST
See Also:
Constant Field Values

LIST

public static final String LIST
See Also:
Constant Field Values

NL

public static final String NL

ROOT

public static final String ROOT
See Also:
Constant Field Values

ROOT_NAME

public static final String ROOT_NAME
See Also:
Constant Field Values

SCGAC

public static final String SCGAC
See Also:
Constant Field Values

SCGAS

public static final String SCGAS
See Also:
Constant Field Values

SCII

public static final String SCII
See Also:
Constant Field Values

SCIDFRI

public static final String SCIDFRI
See Also:
Constant Field Values

WHEEL_NAME

public static final String WHEEL_NAME
See Also:
Constant Field Values

MESSAGES_USE_TOOLTIPS

public static final String MESSAGES_USE_TOOLTIPS
if tooltips should be substituted in messages

See Also:
Constant Field Values
Method Detail

getHibernateProperty

public static String getHibernateProperty(String property)
Get a Hibernate configuration parameter.
 String dialect = GrouperConfig.getHibernateProperty("hibernate.dialect");
 

Returns:
Value of configuration parameter or an empty string if parameter is invalid.
Since:
1.1.0

getProperty

public static String getProperty(String property)
Get a Grouper configuration parameter.
 String wheel = GrouperConfig.getProperty("groups.wheel.group");
 

Returns:
Value of configuration parameter or an empty string if parameter is invalid.
Since:
1.1.0

getPropertyNames

public static Set<String> getPropertyNames()
Get a Grouper config names

Returns:
set of names

getPropertyBoolean

public static boolean getPropertyBoolean(String propertyName,
                                         boolean defaultValue)
get the property value as a boolean, throw an exception if invalid value. Acceptable values are: t, f, true, false (case-insensitive)

Parameters:
propertyName -
defaultValue - if the property is blank or missing, return this value
Returns:
true or false

getPropertyInt

public static int getPropertyInt(String propertyName,
                                 int defaultValue)
get the property value as an int, throw an exception if invalid value.

Parameters:
propertyName -
defaultValue - if the property is blank or missing, return this value
Returns:
the int

getProperty

public String getProperty(String property,
                          String defaultValue)
                   throws IllegalArgumentException
Parameters:
property -
defaultValue -
Returns:
the property value, or the default value if the property value is blank
Throws:
IllegalArgumentException

getHibernatePropertyInt

public static int getHibernatePropertyInt(String property,
                                          int defaultValue)
get the hibernate property value as an int, throw an exception if invalid value.

Parameters:
property -
defaultValue -
Returns:
int

getGrouperUiUrl

public static String getGrouperUiUrl(boolean exceptionIfNull)
get the UI url with a slash on the end

Parameters:
exceptionIfNull -
Returns:
the UI URL