edu.internet2.middleware.grouper.cfg
Class ApiConfig

java.lang.Object
  extended by edu.internet2.middleware.grouper.cfg.ApiConfig
All Implemented Interfaces:
Configuration

public class ApiConfig
extends Object
implements Configuration

Grouper API configuration. If you are accessing a property from grouper.properties, you should probably use GrouperConfig

Since:
1.2.1
Version:
$Id: ApiConfig.java,v 1.22 2009-09-21 06:14:27 mchyzer Exp $
Author:
blair christensen.

Field Summary
static String ACCESS_PRIVILEGE_INTERFACE
          Property name for AccessAdapter implementation.
static String ATTRIBUTE_DEF_PRIVILEGE_INTERFACE
          Property name for AttributeDefAdapter implementation.
static String NAMING_PRIVILEGE_INTERFACE
          Property name for NamingAdapter implementation.
static Map<String,String> testConfig
          set some test config overrides
 
Constructor Summary
ApiConfig()
          Access Grouper API configuration.
 
Method Summary
 String getProperty(String property)
          Get value of property.
 String setProperty(String property, String value)
          Set value of property.
static String versionTimestamp()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ACCESS_PRIVILEGE_INTERFACE

public static final String ACCESS_PRIVILEGE_INTERFACE
Property name for AccessAdapter implementation.

Since:
1.2.1
See Also:
Constant Field Values

ATTRIBUTE_DEF_PRIVILEGE_INTERFACE

public static final String ATTRIBUTE_DEF_PRIVILEGE_INTERFACE
Property name for AttributeDefAdapter implementation.

See Also:
Constant Field Values

NAMING_PRIVILEGE_INTERFACE

public static final String NAMING_PRIVILEGE_INTERFACE
Property name for NamingAdapter implementation.

Since:
1.2.1
See Also:
Constant Field Values

testConfig

public static final Map<String,String> testConfig
set some test config overrides

Constructor Detail

ApiConfig

public ApiConfig()
Access Grouper API configuration.

Since:
1.2.1
Method Detail

getProperty

public String getProperty(String property)
                   throws IllegalArgumentException
Description copied from interface: Configuration
Get value of property.

Specified by:
getProperty in interface Configuration
Parameters:
property - Get this property.
Returns:
Value of property or null.
Throws:
IllegalArgumentException - if property is null.
Since:
1.2.1
See Also:
Configuration.getProperty(String)

versionTimestamp

public static String versionTimestamp()
Returns:
version timestamp

setProperty

public String setProperty(String property,
                          String value)
Description copied from interface: Configuration
Set value of property.

Specified by:
setProperty in interface Configuration
Parameters:
property - Set this property.
value - Value to set on this property.
Returns:
New value of property.
Since:
1.2.1
See Also:
Configuration.setProperty(String, String)