public class DirProperties extends Object
Modifier and Type | Field and Description |
---|---|
static String |
attrCn
The name of the 'commonname' attribute.
|
static String |
attrLogin
The name of the 'loginid' attribute.
|
static String |
attrMemberof
The name of the 'memberof' attribute specifying the user attribute
defining the groups for the user, or blank if user membership is
determined from the uniquemember attribute on the group.
|
static String |
attrObjectclass
The name of the 'objectclass' attribute.
|
static String |
attrPassword
The name of the 'password' attribute.
|
static String |
attrUniquemember
The name of the 'uniquemember' attribute of a typeGroup used
to specify members in a group.
|
static String |
attrUsername
The name of the 'username' attribute.
|
static String |
baseDN
Distinguished name for root to use by default for searching
and for prepending to names for attribute values that require
a DN type.
|
static String |
classAttribute
Name of concrete class to implement interface Attribute
|
static String |
classAttributes
Name of concrete class to implement Attributes
|
static String |
classIDir
Name of concrete class to implement interface IDir
|
static String |
classIFactory
Name of concrete class to implement interface IFactory
|
static String |
classIName
Name of concrete class to implement interface IName
|
static String |
classIUserDir
Name of concrete class to implement interface IUserDir
|
static String |
classJNDIName
Name of concrete class to implement
com.openmarket.directory.jndi.NameWrapper.
|
static String |
cleanDNs |
static String |
defaultGroupAttrs
Set of attribute name/value pairs to be set on every
descendant of groupParent by default.
|
static String |
defaultPeopleAttrs
Set of attribute name/value pairs to be set on every
descendant of peopleParent by default.
|
static String |
defaultReaderACLs |
static String |
groupParent
The entry to use as the parent of all typeGroup entries.
|
static String |
jndiBaseURL
jndiBaseURL+"/"+baseDN=javax.naming.Context.PROVIDER_URL
|
static String |
jndiConnectAsUser
True to connect to JNDI as the currently logged in user, false to connect with jndi.login as the principal and jndi.password as the credentials.
|
static String |
jndiCustomVariables
Other, SPI-specific variables to pass into the
javax.naming.Context environment.
|
static String |
jndiLogin
If jndi.ConnectAsUser is set to "false", this is the principal to connect as (leave blank to connect anonymously).
|
static String |
jndiPassword
If jndi.ConnectAsUser is set to "false", this is the credentials for the jndi.login to connect as.
|
static String |
jndipoolConnections
"true" indicates to the system to use pooled DirContexts
|
static String |
jndipoolSize
This property indicates size of the pool
|
static String |
objectclassGroup
The name of some base object class common to all ContentServer
groups - e.g., this is used by the 'groupMemberships' command
to discern group-class entries from other object classes.
|
static String |
objectclassPerson
The name of some base object class common to all ContentServer
users - e.g., this is used by the 'listUsers' command to discern
user-class entries from other object classes.
|
static String |
peopleParent
The entry to use as the parent of all ContentServer entries of
typeUser.
|
static String |
requiredGroupAttrs
Set of attributes required by default by every descendant of
groupParent.
|
static String |
requiredPeopleAttrs
Set of attributes required by default by every descendant of
peopleParent.
|
static String |
searchLimit
The maximum number of entries to return.
|
static String |
searchScope
The search scope.
|
static String |
searchTimeout
The number of seconds to wait before returning.
|
static String |
synBeginquote
If present, specifies the string delimiting start of a quoted
string.
|
static String |
synBeginquote2
Alternative set of begin/end quotes.
|
static String |
synCustomVariables
Other, classJNDIName-specific variables to pass into the
classIName constructor.
|
static String |
synDirection
Direction for parsing ('right_to_left', 'left_to_right',
'flat').
|
static String |
synEndquote
String delimiting end of quoted string.
|
static String |
synEndquote2
Alternative set of begin/end quotes.
|
static String |
synEscape
If present, specifies the escape string for overriding
separator, escapes and quotes.
|
static String |
synIgnorecase
If present, 'true' means ignore the case when comparing name
components.
|
static String |
synSeparator
Separator between atomic name components.
|
static String |
synSeparatorava
If present, specifies the string that separates
attribute-value-assertions when specifying multiple
attribute/value pairs.
|
static String |
synSeparatortypeval
If present, specifies the string that separators attribute
from value (e.g.
|
static String |
synTrimblanks
If present, 'true' means trim any leading and trailing
whitespaces in a name component for comparison purposes.
|
static String |
userDirectory |
Constructor and Description |
---|
DirProperties() |
Modifier and Type | Method and Description |
---|---|
static String |
getDefaultValue(String property)
Returns a hard-coded default value for the given property.
|
static String |
getProperty(ICS ics,
String property)
Returns the value of a property.
|
static String |
getProperty(String property) |
static String |
getRequiredProperty(ICS ics,
String property)
Returns the value of a property.
|
static boolean |
isIgnoreCaseInLDAP(ICS ics)
Returns true if Sites is configured with LDAP and syntax ignore
case is set to true.
|
static Hashtable |
JNDIEnvironment(ICS ics)
Reads all the relevant JNDI variables from the property files
and returns it in a format suitable for creation of a JNDI
Context.
|
static Properties |
namingSyntax(ICS ics)
Reads all the naming syntax out of the property file
|
public static final String peopleParent
public static final String groupParent
public static final String baseDN
public static final String defaultPeopleAttrs
public static final String defaultGroupAttrs
public static final String requiredPeopleAttrs
public static final String requiredGroupAttrs
public static final String objectclassGroup
public static final String objectclassPerson
public static final String attrCn
public static final String attrUsername
public static final String attrPassword
public static final String attrUniquemember
public static final String attrMemberof
public static final String attrObjectclass
public static final String attrLogin
public static final String synDirection
public static final String synSeparator
public static final String synIgnorecase
public static final String synEscape
public static final String synBeginquote
public static final String synEndquote
public static final String synBeginquote2
public static final String synEndquote2
public static final String synTrimblanks
public static final String synSeparatorava
public static final String synSeparatortypeval
public static final String synCustomVariables
classIName
,
classJNDIName
,
Constant Field Valuespublic static final String classIFactory
public static final String classIName
public static final String classAttributes
public static final String classAttribute
public static final String classIDir
public static final String classIUserDir
public static final String userDirectory
public static final String classJNDIName
DirProperties.classIDir
,
Constant Field Valuespublic static final String searchScope
public static final String searchLimit
public static final String searchTimeout
public static final String jndiConnectAsUser
public static final String jndiLogin
public static final String jndiPassword
public static final String jndiBaseURL
public static final String jndiCustomVariables
public static final String jndipoolConnections
public static final String jndipoolSize
public static final String cleanDNs
public static final String defaultReaderACLs
public static Properties namingSyntax(ICS ics)
public static Hashtable JNDIEnvironment(ICS ics) throws DirectoryException
DirectoryException
Context.SECURITY_PRINCIPAL
,
javax.naming.Context#CREDENTIALS
public static String getDefaultValue(String property)
property
- for which to find the default value.public static String getProperty(ICS ics, String property)
ics
- a COM.FutureTense.Interfaces.ICS
context. This
param is no longer needed. Retained for legacy code
compatibility onlyproperty
- name of the property to returnpublic static String getRequiredProperty(ICS ics, String property) throws DirectoryException
ics
- a COM.FutureTense.Interfaces.ICS
context. This
param is no longer needed. Retained for legacy code
compatibility onlyproperty
- name of the property to returnException
- if the property is undefinedDirectoryException
public static boolean isIgnoreCaseInLDAP(ICS ics)
ics
- a COM.FutureTense.Interfaces.ICS
context