edu.internet2.middleware.grouper.webservices
Class GrouperWsConfig

java.lang.Object
  extended by edu.internet2.middleware.grouper.webservices.GrouperWsConfig

public class GrouperWsConfig
extends Object

config constants for WS

Author:
mchyzer

Field Summary
static String WS_ACT_AS_GROUP
          name of param # Web service users who are in the following group can use the actAs field to act as someone else ws.act.as.group = aStem:aGroup
static String WS_ADD_MEMBER_SUBJECTS_MAX
          name of param for add member web service max, default is 1000000 # Max number of subjects to be able to pass to addMember service, default is 1000000 webservice.addMember.maxSubjects = 20000
 
Constructor Summary
GrouperWsConfig()
           
 
Method Summary
static Integer getPropertyInteger(String property, Integer defaultValue)
          Get a Grouper configuration parameter.
static String getPropertyString(String property)
          Get a Grouper configuration parameter.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

WS_ADD_MEMBER_SUBJECTS_MAX

public static final String WS_ADD_MEMBER_SUBJECTS_MAX
name of param for add member web service max, default is 1000000 # Max number of subjects to be able to pass to addMember service, default is 1000000 webservice.addMember.maxSubjects = 20000

See Also:
Constant Field Values

WS_ACT_AS_GROUP

public static final String WS_ACT_AS_GROUP
name of param # Web service users who are in the following group can use the actAs field to act as someone else ws.act.as.group = aStem:aGroup

See Also:
Constant Field Values
Constructor Detail

GrouperWsConfig

public GrouperWsConfig()
Method Detail

getPropertyString

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

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

getPropertyInteger

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

Parameters:
property -
defaultValue -
Returns:
Value of configuration parameter or null if parameter isnt specified. Exception is thrown if not formatted correcly
Throws:
NumberFormatException - if cannot convert the value to an Integer
Since:
1.1.0