public final class GrouperWsConfig
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
WS_ACT_AS_CACHE_MINUTES
name of param: ws.act.as.cache.seconds
cache the decision to allow a user to actAs another, so it doesnt have to be calculated each time
defaults to 30 minutes:
|
static java.lang.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
# You can put multiple groups separated by commas.
|
static java.lang.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 ws.add.member.subjects.max = 20000
|
static java.lang.String |
WS_ASSIGN_ATTRIBUTE_DEF_NAME_INHERITANCE_MAX
name of param for assignAttributeDefNameInheritance save, max assignAttributeDefNameInheritance to be able to save at once,
default is 1000000
# Max number of assignAttributeDefNameInheritance to be able to pass to assignAttributeDefNameInheritance service,
default is 1000000 ws.assign.attributeDefName.inheritance.max = 20000
|
static java.lang.String |
WS_ATTRIBUTE_DEF_DELETE_MAX
name of param for attributedef delete, max attributedefs to be able to delete at once,
default is 1000000
# Max number of attributedefs to be able to pass to attributedefDelete service,
default is 1000000 ws.attributedef.delete.max = 20000
|
static java.lang.String |
WS_ATTRIBUTE_DEF_NAME_DELETE_MAX
name of param for attributedefname delete, max attributedefnames to be able to delete at once,
default is 1000000
# Max number of attributedefnames to be able to pass to attributedefnameDelete service,
default is 1000000 ws.attributedefname.delete.max = 20000
|
static java.lang.String |
WS_ATTRIBUTE_DEF_NAME_SAVE_MAX
name of param for attributeDefName save, max attributeDefNames to be able to save at once,
default is 1000000
# Max number of attributeDefNames to be able to pass to attributeDefNameSave service,
default is 1000000 ws.attributeDefName.save.max = 20000
|
static java.lang.String |
WS_ATTRIBUTE_DEF_SAVE_MAX
name of param for attributeDef save, max attributeDef to be able to save at once,
default is 1000000
# Max number of attributeDefs to be able to pass to attributeDefSave service,
default is 1000000 ws.attributeDef.save.max = 20000
|
static java.lang.String |
WS_CLIENT_USER_GROUP_CACHE_MINUTES
name of param: ws.client.user.group.cache.minutes
cache the decision to allow a user to user web services, so it doesnt have to be calculated each time
defaults to 30 minutes:
|
static java.lang.String |
WS_CLIENT_USER_GROUP_NAME
name of param: ws.client.user.group.name
If there is an entry here for group name, then all web service client
users must be in this group (before the actAs)
e.g.
|
static java.lang.String |
WS_DELETE_MEMBER_SUBJECTS_MAX
name of param for delete member web service max, default is 1000000
# Max number of subjects to be able to pass to deleteMember service,
default is 1000000 ws.delete.member.subjects.max = 20000
|
static java.lang.String |
WS_GET_GROUPS_SUBJECTS_MAX
name of param for get groups web service max, default is 1000000
# Max number of subjects to be able to pass to getGroups service,
default is 1000000 ws.get.groups.subjects.max = 20000
|
static java.lang.String |
WS_GROUP_ATTRIBUTE_MAX
name of param for group attribute, max groups to be able to view/edit attributes at once,
default is 1000000
# Max number of subjects to be able to pass to addMember service,
default is 1000000 ws.group.save.max = 20000
|
static java.lang.String |
WS_GROUP_DELETE_MAX
name of param for group delete, max groups to be able to delete at once,
default is 1000000
# Max number of groups to be able to pass to groupDelete service,
default is 1000000 ws.group.delete.max = 20000
|
static java.lang.String |
WS_GROUP_SAVE_MAX
name of param for group save, max groups to be able to save at once,
default is 1000000
# Max number of groups to be able to pass to groupSave service,
default is 1000000 ws.group.save.max = 20000
|
static java.lang.String |
WS_HAS_MEMBER_SUBJECTS_MAX
name of param for has member web service max, default is 1000000
# Max number of subjects to be able to pass to addMember service,
default is 1000000 ws.has.member.subjects.max = 20000
|
static java.lang.String |
WS_LOGGED_IN_SUBJECT_DEFAULT_SOURCE
name of param: ws.logged.in.subject.default.source
if you have subject namespace overlap (or not), set the default subject
source to lookup the user if none specified in user name
|
static java.lang.String |
WS_MEMBER_CHANGE_SUBJECT_MAX
name of param for member change subject web service max, default is 1000000
# Max number of members to pass to memberChangeSubject,
default is 1000000 ws.member.change.subject.max = 20000
|
static java.lang.String |
WS_REST_DEFAULT_RESPONSE_CONTENT_TYPE
name of param: ws.rest.default.response.content.type
if the request has no content type (http params), and the response content type is not
specified in the url, then put it here.
|
static java.lang.String |
WS_SECURITY_NON_RAMPART_AUTHENTICATION_CLASS
to provide custom authentication (instead of the default httpServletRequest.getUserPrincipal()
for non-Rampart authentication.
|
static java.lang.String |
WS_SECURITY_RAMPART_AUTHENTICATION_CLASS
to provide rampart authentication, Class must implement the interface:
edu.internet2.middleware.grouper.ws.security.GrouperWssecAuthentication
class must be fully qualified.
|
static java.lang.String |
WS_SEPARATOR
when packing things in a single param, this is the separator
|
static java.lang.String |
WS_STEM_DELETE_MAX
name of param for stem delete, max stems to be able to delete at once,
default is 1000000
# Max number of stems to be able to pass to stemDelete service,
default is 1000000 ws.stem.delete.max = 20000
|
static java.lang.String |
WS_STEM_SAVE_MAX
name of param for stem save, max stems to be able to save at once,
default is 1000000
# Max number of stems to be able to pass to stemSave service,
default is 1000000 ws.stem.save.max = 20000
|
static java.lang.String |
WS_SUBJECT_RESULT_ATTRIBUTE_NAMES
subject attribute names to send back when a WsSubject is sent, comma separated
e.g.
|
static java.lang.String |
WS_SUBJECT_RESULT_DETAIL_ATTRIBUTE_NAMES
name of param for subject result attribute names when extended data is requested
# subject result attribute names when extended data is requested (comma separated)
default is name, description
note, these will be in addition to ws.subject.result.attribute.names
|
static java.lang.String |
WS_VIEW_OR_EDIT_PRIVILEGES_SUBJECTS_MAX
name of param for save privileges web service max, default is 1000000
# Max number of subjects to be able to pass to savePrivileges service,
default is 1000000 ws.view.or.edit.privileges.subjects.max = 20000
|
Modifier and Type | Method and Description |
---|---|
boolean |
containsKey(java.lang.String key)
if the key is there, whether or not the value is blank
|
static java.util.Properties |
getProperties()
Deprecated.
use GrouperWsConfig.retrieveConfig().properties()
|
static boolean |
getPropertyBoolean(java.lang.String property,
boolean defaultValue)
Deprecated.
use GrouperWsConfig.retrieveConfig().propertyValueBoolean instead
|
static int |
getPropertyInt(java.lang.String property,
int defaultValue)
Deprecated.
use GrouperWsConfig.retrieveConfig().propertyValueInt instead
|
static java.lang.String |
getPropertyString(java.lang.String property)
Deprecated.
use GrouperWsConfig.retrieveConfig().propertyValueString instead
|
static java.lang.String |
getPropertyString(java.lang.String property,
java.lang.String defaultValue)
Deprecated.
use GrouperWsConfig.retrieveConfig().propertyValueString instead
|
java.util.List<ConfigFile> |
internalRetrieveConfigFiles()
get the underlying properties for the config ui
|
java.util.Properties |
properties()
get the properties object for this config file
|
java.util.Map<java.lang.String,java.lang.String> |
propertiesMap(java.util.regex.Pattern pattern)
find all keys/values with a certain pattern in a properties file.
|
java.util.Map<java.lang.String,java.lang.String> |
propertiesOverrideMap()
override map for properties for testing
|
java.util.Map<java.lang.String,java.lang.String> |
propertiesThreadLocalOverrideMap()
override map for properties in thread local to be used in a web server or the like, based on property class
this is static since the properties class can get reloaded, but these shouldnt
|
java.util.Set<java.lang.String> |
propertyNames() |
java.lang.Boolean |
propertyValueBoolean(java.lang.String key)
get a boolean and validate from grouper.client.properties or null if not there
|
boolean |
propertyValueBoolean(java.lang.String key,
boolean defaultValue)
get a boolean and validate from grouper.client.properties
|
boolean |
propertyValueBooleanRequired(java.lang.String key)
get a boolean and validate from grouper.client.properties
|
java.lang.Integer |
propertyValueInt(java.lang.String key)
get a boolean and validate from grouper.client.properties
|
int |
propertyValueInt(java.lang.String key,
int defaultValue)
get a boolean and validate from grouper.client.properties
|
int |
propertyValueIntRequired(java.lang.String key)
get a boolean and validate from grouper.client.properties
|
java.lang.String |
propertyValueString(java.lang.String key)
get the property value as a string or null if not there
|
java.lang.String |
propertyValueString(java.lang.String key,
java.lang.String defaultValue)
get the property value as a string
|
java.lang.String |
propertyValueStringRequired(java.lang.String key)
get the property value as a string
|
static GrouperWsConfig |
retrieveConfig()
retrieve a config from the config file or from cache
|
public static final java.lang.String WS_ADD_MEMBER_SUBJECTS_MAX
public static final java.lang.String WS_MEMBER_CHANGE_SUBJECT_MAX
public static final java.lang.String WS_GET_GROUPS_SUBJECTS_MAX
public static final java.lang.String WS_GROUP_DELETE_MAX
public static final java.lang.String WS_ATTRIBUTE_DEF_NAME_DELETE_MAX
public static final java.lang.String WS_ATTRIBUTE_DEF_DELETE_MAX
public static final java.lang.String WS_GROUP_SAVE_MAX
public static final java.lang.String WS_ATTRIBUTE_DEF_NAME_SAVE_MAX
public static final java.lang.String WS_ATTRIBUTE_DEF_SAVE_MAX
public static final java.lang.String WS_STEM_DELETE_MAX
public static final java.lang.String WS_ASSIGN_ATTRIBUTE_DEF_NAME_INHERITANCE_MAX
public static final java.lang.String WS_STEM_SAVE_MAX
public static final java.lang.String WS_GROUP_ATTRIBUTE_MAX
public static final java.lang.String WS_DELETE_MEMBER_SUBJECTS_MAX
public static final java.lang.String WS_HAS_MEMBER_SUBJECTS_MAX
public static final java.lang.String WS_SUBJECT_RESULT_DETAIL_ATTRIBUTE_NAMES
public static final java.lang.String WS_SUBJECT_RESULT_ATTRIBUTE_NAMES
public static final java.lang.String WS_SEPARATOR
public static final java.lang.String WS_ACT_AS_GROUP
public static final java.lang.String WS_ACT_AS_CACHE_MINUTES
public static final java.lang.String WS_LOGGED_IN_SUBJECT_DEFAULT_SOURCE
public static final java.lang.String WS_VIEW_OR_EDIT_PRIVILEGES_SUBJECTS_MAX
public static final java.lang.String WS_REST_DEFAULT_RESPONSE_CONTENT_TYPE
public static final java.lang.String WS_SECURITY_NON_RAMPART_AUTHENTICATION_CLASS
public static final java.lang.String WS_SECURITY_RAMPART_AUTHENTICATION_CLASS
public static final java.lang.String WS_CLIENT_USER_GROUP_NAME
public static final java.lang.String WS_CLIENT_USER_GROUP_CACHE_MINUTES
public static GrouperWsConfig retrieveConfig()
@Deprecated public static java.lang.String getPropertyString(java.lang.String property)
String wheel = GrouperConfig.getProperty("groups.wheel.group");
property
- to lookup@Deprecated public static java.util.Properties getProperties()
@Deprecated public static java.lang.String getPropertyString(java.lang.String property, java.lang.String defaultValue)
String wheel = GrouperConfig.getProperty("groups.wheel.group");
property
- to lookupdefaultValue
- is the value if the property isnt found@Deprecated public static int getPropertyInt(java.lang.String property, int defaultValue)
property
- to lookupdefaultValue
- of the int if not there@Deprecated public static boolean getPropertyBoolean(java.lang.String property, boolean defaultValue)
property
- to lookupdefaultValue
- if the property is not therepublic boolean containsKey(java.lang.String key)
key
- public java.util.List<ConfigFile> internalRetrieveConfigFiles()
public java.util.Properties properties()
public java.util.Map<java.lang.String,java.lang.String> propertiesMap(java.util.regex.Pattern pattern)
pattern
- public java.util.Map<java.lang.String,java.lang.String> propertiesOverrideMap()
public java.util.Map<java.lang.String,java.lang.String> propertiesThreadLocalOverrideMap()
public java.util.Set<java.lang.String> propertyNames()
public java.lang.Boolean propertyValueBoolean(java.lang.String key)
key
- public boolean propertyValueBoolean(java.lang.String key, boolean defaultValue)
key
- defaultValue
- public boolean propertyValueBooleanRequired(java.lang.String key)
key
- public java.lang.Integer propertyValueInt(java.lang.String key)
key
- public int propertyValueInt(java.lang.String key, int defaultValue)
key
- defaultValue
- public int propertyValueIntRequired(java.lang.String key)
key
- public java.lang.String propertyValueString(java.lang.String key)
key
- public java.lang.String propertyValueString(java.lang.String key, java.lang.String defaultValue)
key
- defaultValue
- public java.lang.String propertyValueStringRequired(java.lang.String key)
key
-