Package com.redwood.scheduler.api.model
Interface LDAPProfile
-
- All Superinterfaces:
NamedRootObject
,NamedRootObjectComp
,Root
,SchedulerEntity
,SchedulerEntityComp
public interface LDAPProfile extends NamedRootObject
A set of LDAP configuration properties for managing user authentication and authorisation.
-
-
Field Summary
Fields Modifier and Type Field Description static String
OBJECT_TYPE
String that will be returned fromSchedulerEntity.getObjectType()
for "LDAPProfile" objects.static QueryObjectType<LDAPProfile>
TYPE
Type that can be used inSchedulerSession.executeObjectQuery(QueryObjectType, String, Object...)
.static com.redwood.scheduler.infrastructure.logging.Versions
VERSION_LDAPPROFILE
-
Fields inherited from interface com.redwood.scheduler.api.model.NamedRootObject
VERSION_NAMEDROOTOBJECT
-
Fields inherited from interface com.redwood.scheduler.api.model.compatibility_14.NamedRootObjectComp
VERSION_NAMEDROOTOBJECTCOMP
-
Fields inherited from interface com.redwood.scheduler.api.model.Root
VERSION_ROOT
-
Fields inherited from interface com.redwood.scheduler.api.model.SchedulerEntity
ACTION_AUDIT, ACTION_EXPORT, ACTION_READ, BEHAVIOR_DEPRECATED, BEHAVIOR_NONE, BEHAVIOR_SYSTEM, VERSION_SCHEDULERENTITY
-
Fields inherited from interface com.redwood.scheduler.api.model.compatibility_14.SchedulerEntityComp
VERSION_SCHEDULERENTITYCOMP
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description String
getAdminRole()
Get the value for AdminRole.String
getBAEUserRole()
Get the value for BAEUserRole.String
getBaseDN()
Get the value for BaseDN.String
getBusinessUserRole()
Get the value for BusinessUserRole.String
getConnectionPassword()
Get the value for ConnectionPassword.String
getConnectionURL()
Get the value for ConnectionURL.String
getConnectionUserName()
Get the value for ConnectionUserName.String
getGroupMemberField()
Get the value for GroupMemberField.String
getGroupNameField()
Get the value for GroupNameField.String
getGroupSearchBase()
Get the value for GroupSearchBase.String
getGroupSearchExpression()
Get the value for GroupSearchExpression.String
getIsolationAdminRole()
Get the value for IsolationAdminRole.String
getITUserRole()
Get the value for ITUserRole.LDAPServerType
getLDAPServerType()
Get the value for LDAPServerType.String
getProfileName()
Get the value for ProfileName.String
getScreenReaderRole()
Deprecated.This field is deprecated, use Subject.ScreenReader instead.String
getSearchScope()
Get the value for SearchScope.String
getUserDNExpression()
Get the value for UserDNExpression.String
getUserExactSearchExpression()
Get the value for UserExactSearchExpression.String
getUserMailField()
Get the value for UserMailField.String
getUserNameField()
Get the value for UserNameField.String
getUserRole()
Get the value for UserRole.String
getUserSearchBase()
Get the value for UserSearchBase.boolean
isActive()
Get the value for Active.void
setActive(boolean newActive)
Set the value for Active.void
setAdminRole(String newAdminRole)
Set the value for AdminRole.void
setBAEUserRole(String newBAEUserRole)
Set the value for BAEUserRole.void
setBaseDN(String newBaseDN)
Set the value for BaseDN.void
setBusinessUserRole(String newBusinessUserRole)
Set the value for BusinessUserRole.void
setConnectionPassword(String newConnectionPassword)
Set the value for ConnectionPassword.void
setConnectionURL(String newConnectionURL)
Set the value for ConnectionURL.void
setConnectionUserName(String newConnectionUserName)
Set the value for ConnectionUserName.void
setGroupMemberField(String newGroupMemberField)
Set the value for GroupMemberField.void
setGroupNameField(String newGroupNameField)
Set the value for GroupNameField.void
setGroupSearchBase(String newGroupSearchBase)
Set the value for GroupSearchBase.void
setGroupSearchExpression(String newGroupSearchExpression)
Set the value for GroupSearchExpression.void
setIsolationAdminRole(String newIsolationAdminRole)
Set the value for IsolationAdminRole.void
setITUserRole(String newITUserRole)
Set the value for ITUserRole.void
setLDAPServerType(LDAPServerType newLDAPServerType)
Set the value for LDAPServerType.void
setProfileName(String newProfileName)
Set the value for ProfileName.void
setScreenReaderRole(String newScreenReaderRole)
Deprecated.This field is deprecated, use Subject.ScreenReader instead.void
setSearchScope(String newSearchScope)
Set the value for SearchScope.void
setUserDNExpression(String newUserDNExpression)
Set the value for UserDNExpression.void
setUserExactSearchExpression(String newUserExactSearchExpression)
Set the value for UserExactSearchExpression.void
setUserMailField(String newUserMailField)
Set the value for UserMailField.void
setUserNameField(String newUserNameField)
Set the value for UserNameField.void
setUserRole(String newUserRole)
Set the value for UserRole.void
setUserSearchBase(String newUserSearchBase)
Set the value for UserSearchBase.-
Methods inherited from interface com.redwood.scheduler.api.model.NamedRootObject
createObjectReference, getComment, getDescription, getLinkedObjectReferenceByLinkedObject, getLinkedObjectReferenceByName, getLinkedObjectReferences, getName, getSearchName, getSourceObjectReferences, isHidden, setComment, setDescription, setName
-
Methods inherited from interface com.redwood.scheduler.api.model.Root
getCreationTime, getLastModificationTime, getLastModifierSubject
-
Methods inherited from interface com.redwood.scheduler.api.model.SchedulerEntity
canPerform, createSubjectObjectPrivilegeGrant, deleteObject, getAuditTrail, getAuditTrailSize, getBehavior, getEffectiveBehavior, getErrorNameEN, getErrorNameKey, getLLPVersion, getLOV, getLOVSupport, getObjectType, getParentSchedulerEntities, getRuntime, getSubjectObjectPrivilegeGrantBySubject, getSubjectObjectPrivilegeGrants, getUniqueId, getUrl, getUrl, isCreated, isDeletable, isDeleted, isModifiable, isModified, isSelectVersioned, processRelatedObjects, processRelatedObjects, processRelatedObjects, refreshObject, resetObject, resetObject, resetValuesToDefault, selectForRead
-
-
-
-
Field Detail
-
VERSION_LDAPPROFILE
static final com.redwood.scheduler.infrastructure.logging.Versions VERSION_LDAPPROFILE
-
OBJECT_TYPE
static final String OBJECT_TYPE
String that will be returned fromSchedulerEntity.getObjectType()
for "LDAPProfile" objects.- See Also:
- Constant Field Values
-
TYPE
static final QueryObjectType<LDAPProfile> TYPE
Type that can be used inSchedulerSession.executeObjectQuery(QueryObjectType, String, Object...)
.
-
-
Method Detail
-
isActive
boolean isActive()
Get the value for Active. (Declares whether the profile is currently active)- Returns:
- the field
- Throws:
ObjectNotAttachedToSessionException
- This will be thrown if this method is called while the object is not attached to a session.
-
getProfileName
String getProfileName()
Get the value for ProfileName. (The name given to an LDAP profile) This value is mandatory, and therefore will not benull
if this object has been retrieved from the database.- Returns:
- the field
- Throws:
ObjectNotAttachedToSessionException
- This will be thrown if this method is called while the object is not attached to a session.
-
getLDAPServerType
LDAPServerType getLDAPServerType()
Get the value for LDAPServerType. (The type of LDAP server. ) This value is mandatory, and therefore will not benull
if this object has been retrieved from the database.- Returns:
- the field
- Throws:
ObjectNotAttachedToSessionException
- This will be thrown if this method is called while the object is not attached to a session.
-
getConnectionURL
String getConnectionURL()
Get the value for ConnectionURL. (The same as the java.naming.provider.url or the Tomcat JNDIRealm connectionURL e.g. ldap://192.168.7.245:389) This value is mandatory, and therefore will not benull
if this object has been retrieved from the database.- Returns:
- the field
- Throws:
ObjectNotAttachedToSessionException
- This will be thrown if this method is called while the object is not attached to a session.
-
getConnectionUserName
String getConnectionUserName()
Get the value for ConnectionUserName. (The is same as the java.naming.security.principal or the Tomcat JNDIRealm connectionName e.g. Administrator@example.com This is not always required because connections can be anonymous depending on which LDAP server is accessed. )- Returns:
- the field
- Throws:
ObjectNotAttachedToSessionException
- This will be thrown if this method is called while the object is not attached to a session.
-
getConnectionPassword
String getConnectionPassword()
Get the value for ConnectionPassword. (The is same as the java.naming.security.credentials or the Tomcat JNDIRealm connectionPassword This is not always required because connections can be anonymous depending on which LDAP server is accessed. )- Returns:
- the field
- Throws:
ObjectNotAttachedToSessionException
- This will be thrown if this method is called while the object is not attached to a session.
-
getBaseDN
String getBaseDN()
Get the value for BaseDN. (The start point in the LDAP tree. ) This value is mandatory, and therefore will not benull
if this object has been retrieved from the database.- Returns:
- the field
- Throws:
ObjectNotAttachedToSessionException
- This will be thrown if this method is called while the object is not attached to a session.
-
getUserSearchBase
String getUserSearchBase()
Get the value for UserSearchBase. (The point in the LDAP tree from which to perform the user search. Same as the Tomcat JNDIRealm userBase e.g. CN=Users,DC=example,DC=com )- Returns:
- the field
- Throws:
ObjectNotAttachedToSessionException
- This will be thrown if this method is called while the object is not attached to a session.
-
getUserMailField
String getUserMailField()
Get the value for UserMailField. (The LDAP user-attribute that holds the users email address e.g. mail)- Returns:
- the field
- Throws:
ObjectNotAttachedToSessionException
- This will be thrown if this method is called while the object is not attached to a session.
-
getUserNameField
String getUserNameField()
Get the value for UserNameField. (The LDAP user-attribute that holds the users login name e.g. cn/uid)- Returns:
- the field
- Throws:
ObjectNotAttachedToSessionException
- This will be thrown if this method is called while the object is not attached to a session.
-
getUserDNExpression
String getUserDNExpression()
Get the value for UserDNExpression. (The expression used to construct the users DN e.g. cn=${userName},CN=Users,DC=example,DC=com)- Returns:
- the field
- Throws:
ObjectNotAttachedToSessionException
- This will be thrown if this method is called while the object is not attached to a session.
-
getUserExactSearchExpression
String getUserExactSearchExpression()
Get the value for UserExactSearchExpression. (The search expression used as the search filter e.g. cn=${userName} or uid=${userName})- Returns:
- the field
- Throws:
ObjectNotAttachedToSessionException
- This will be thrown if this method is called while the object is not attached to a session.
-
getGroupNameField
String getGroupNameField()
Get the value for GroupNameField. (The LDAP group-attribute that holds name of the user roles e.g. cn/uid)- Returns:
- the field
- Throws:
ObjectNotAttachedToSessionException
- This will be thrown if this method is called while the object is not attached to a session.
-
getGroupMemberField
String getGroupMemberField()
Get the value for GroupMemberField. (The LDAP group-attribute that holds the user names that have membership of that group e.g. member)- Returns:
- the field
- Throws:
ObjectNotAttachedToSessionException
- This will be thrown if this method is called while the object is not attached to a session.
-
getGroupSearchBase
String getGroupSearchBase()
Get the value for GroupSearchBase. (The point in the LDAP tree from which to perform the group search. Same as the Tomcat JNDIRealm roleBase e.g. CN=Users,DC=example,DC=com )- Returns:
- the field
- Throws:
ObjectNotAttachedToSessionException
- This will be thrown if this method is called while the object is not attached to a session.
-
getGroupSearchExpression
String getGroupSearchExpression()
Get the value for GroupSearchExpression. (The search expression to find the users roles e.g. (member=cn=${userName},CN=Users,DC=example,DC=com) )- Returns:
- the field
- Throws:
ObjectNotAttachedToSessionException
- This will be thrown if this method is called while the object is not attached to a session.
-
getUserRole
String getUserRole()
Get the value for UserRole. (The LDAP group that represents the scheduler-user role e.g. Users)- Returns:
- the field
- Throws:
ObjectNotAttachedToSessionException
- This will be thrown if this method is called while the object is not attached to a session.
-
getAdminRole
String getAdminRole()
Get the value for AdminRole. (The LDAP group that represents the scheduler-administrator role e.g. Administrators)- Returns:
- the field
- Throws:
ObjectNotAttachedToSessionException
- This will be thrown if this method is called while the object is not attached to a session.
-
getIsolationAdminRole
String getIsolationAdminRole()
Get the value for IsolationAdminRole. (The LDAP group that represents the scheduler-isolation-administrator role e.g. GroupAdministrators)- Returns:
- the field
- Throws:
ObjectNotAttachedToSessionException
- This will be thrown if this method is called while the object is not attached to a session.
-
getScreenReaderRole
@Deprecated String getScreenReaderRole()
Deprecated.This field is deprecated, use Subject.ScreenReader instead.Get the value for ScreenReaderRole. (This field is deprecated. The LDAP group that represents the scheduler-screen-reader role e.g. ScreenReaders)
- Returns:
- the field
- Throws:
ObjectNotAttachedToSessionException
- This will be thrown if this method is called while the object is not attached to a session.
-
getITUserRole
String getITUserRole()
Get the value for ITUserRole. (The LDAP group that represents the scheduler-it-user role e.g. ITUsers )- Returns:
- the field
- Throws:
ObjectNotAttachedToSessionException
- This will be thrown if this method is called while the object is not attached to a session.
-
getBusinessUserRole
String getBusinessUserRole()
Get the value for BusinessUserRole. (The LDAP group that represents the scheduler-business-user role e.g. BusinessUsers )- Returns:
- the field
- Throws:
ObjectNotAttachedToSessionException
- This will be thrown if this method is called while the object is not attached to a session.
-
getBAEUserRole
String getBAEUserRole()
Get the value for BAEUserRole. (The LDAP group that represents the scheduler-bae-only-user role e.g. BaeOnlyUsers )- Returns:
- the field
- Throws:
ObjectNotAttachedToSessionException
- This will be thrown if this method is called while the object is not attached to a session.
-
getSearchScope
String getSearchScope()
Get the value for SearchScope. (The javax.naming.directory.SearchControls value for user searches e.g. SUBTREE/ONELEVEL/OBJECT)- Returns:
- the field
- Throws:
ObjectNotAttachedToSessionException
- This will be thrown if this method is called while the object is not attached to a session.
-
setActive
void setActive(boolean newActive)
Set the value for Active. (Declares whether the profile is currently active)- Parameters:
newActive
- the new value for Active.- Throws:
ObjectNotAttachedToSessionException
- This will be thrown if this method is called while the object is not attached to a session.
-
setProfileName
void setProfileName(String newProfileName)
Set the value for ProfileName. (The name given to an LDAP profile) This value is mandatory.- Parameters:
newProfileName
- the new value for ProfileName. If this isnull
, then the object cannot be persisted.- Throws:
ObjectNotAttachedToSessionException
- This will be thrown if this method is called while the object is not attached to a session.
-
setLDAPServerType
void setLDAPServerType(LDAPServerType newLDAPServerType)
Set the value for LDAPServerType. (The type of LDAP server. ) This value is mandatory.- Parameters:
newLDAPServerType
- the new value for LDAPServerType. If this isnull
, then the object cannot be persisted.- Throws:
ObjectNotAttachedToSessionException
- This will be thrown if this method is called while the object is not attached to a session.
-
setConnectionURL
void setConnectionURL(String newConnectionURL)
Set the value for ConnectionURL. (The same as the java.naming.provider.url or the Tomcat JNDIRealm connectionURL e.g. ldap://192.168.7.245:389) This value is mandatory.- Parameters:
newConnectionURL
- the new value for ConnectionURL. If this isnull
, then the object cannot be persisted.- Throws:
ObjectNotAttachedToSessionException
- This will be thrown if this method is called while the object is not attached to a session.
-
setConnectionUserName
void setConnectionUserName(String newConnectionUserName)
Set the value for ConnectionUserName. (The is same as the java.naming.security.principal or the Tomcat JNDIRealm connectionName e.g. Administrator@example.com This is not always required because connections can be anonymous depending on which LDAP server is accessed. ) This value is optional.- Parameters:
newConnectionUserName
- the new value for ConnectionUserName.- Throws:
ObjectNotAttachedToSessionException
- This will be thrown if this method is called while the object is not attached to a session.
-
setConnectionPassword
void setConnectionPassword(String newConnectionPassword)
Set the value for ConnectionPassword. (The is same as the java.naming.security.credentials or the Tomcat JNDIRealm connectionPassword This is not always required because connections can be anonymous depending on which LDAP server is accessed. ) This value is optional.- Parameters:
newConnectionPassword
- the new value for ConnectionPassword.- Throws:
ObjectNotAttachedToSessionException
- This will be thrown if this method is called while the object is not attached to a session.
-
setBaseDN
void setBaseDN(String newBaseDN)
Set the value for BaseDN. (The start point in the LDAP tree. ) This value is mandatory.- Parameters:
newBaseDN
- the new value for BaseDN. If this isnull
, then the object cannot be persisted.- Throws:
ObjectNotAttachedToSessionException
- This will be thrown if this method is called while the object is not attached to a session.
-
setUserSearchBase
void setUserSearchBase(String newUserSearchBase)
Set the value for UserSearchBase. (The point in the LDAP tree from which to perform the user search. Same as the Tomcat JNDIRealm userBase e.g. CN=Users,DC=example,DC=com ) This value is optional.- Parameters:
newUserSearchBase
- the new value for UserSearchBase.- Throws:
ObjectNotAttachedToSessionException
- This will be thrown if this method is called while the object is not attached to a session.
-
setUserMailField
void setUserMailField(String newUserMailField)
Set the value for UserMailField. (The LDAP user-attribute that holds the users email address e.g. mail) This value is optional.- Parameters:
newUserMailField
- the new value for UserMailField.- Throws:
ObjectNotAttachedToSessionException
- This will be thrown if this method is called while the object is not attached to a session.
-
setUserNameField
void setUserNameField(String newUserNameField)
Set the value for UserNameField. (The LDAP user-attribute that holds the users login name e.g. cn/uid) This value is optional.- Parameters:
newUserNameField
- the new value for UserNameField.- Throws:
ObjectNotAttachedToSessionException
- This will be thrown if this method is called while the object is not attached to a session.
-
setUserDNExpression
void setUserDNExpression(String newUserDNExpression)
Set the value for UserDNExpression. (The expression used to construct the users DN e.g. cn=${userName},CN=Users,DC=example,DC=com) This value is optional.- Parameters:
newUserDNExpression
- the new value for UserDNExpression.- Throws:
ObjectNotAttachedToSessionException
- This will be thrown if this method is called while the object is not attached to a session.
-
setUserExactSearchExpression
void setUserExactSearchExpression(String newUserExactSearchExpression)
Set the value for UserExactSearchExpression. (The search expression used as the search filter e.g. cn=${userName} or uid=${userName}) This value is optional.- Parameters:
newUserExactSearchExpression
- the new value for UserExactSearchExpression.- Throws:
ObjectNotAttachedToSessionException
- This will be thrown if this method is called while the object is not attached to a session.
-
setGroupNameField
void setGroupNameField(String newGroupNameField)
Set the value for GroupNameField. (The LDAP group-attribute that holds name of the user roles e.g. cn/uid) This value is optional.- Parameters:
newGroupNameField
- the new value for GroupNameField.- Throws:
ObjectNotAttachedToSessionException
- This will be thrown if this method is called while the object is not attached to a session.
-
setGroupMemberField
void setGroupMemberField(String newGroupMemberField)
Set the value for GroupMemberField. (The LDAP group-attribute that holds the user names that have membership of that group e.g. member) This value is optional.- Parameters:
newGroupMemberField
- the new value for GroupMemberField.- Throws:
ObjectNotAttachedToSessionException
- This will be thrown if this method is called while the object is not attached to a session.
-
setGroupSearchBase
void setGroupSearchBase(String newGroupSearchBase)
Set the value for GroupSearchBase. (The point in the LDAP tree from which to perform the group search. Same as the Tomcat JNDIRealm roleBase e.g. CN=Users,DC=example,DC=com ) This value is optional.- Parameters:
newGroupSearchBase
- the new value for GroupSearchBase.- Throws:
ObjectNotAttachedToSessionException
- This will be thrown if this method is called while the object is not attached to a session.
-
setGroupSearchExpression
void setGroupSearchExpression(String newGroupSearchExpression)
Set the value for GroupSearchExpression. (The search expression to find the users roles e.g. (member=cn=${userName},CN=Users,DC=example,DC=com) ) This value is optional.- Parameters:
newGroupSearchExpression
- the new value for GroupSearchExpression.- Throws:
ObjectNotAttachedToSessionException
- This will be thrown if this method is called while the object is not attached to a session.
-
setUserRole
void setUserRole(String newUserRole)
Set the value for UserRole. (The LDAP group that represents the scheduler-user role e.g. Users) This value is optional.- Parameters:
newUserRole
- the new value for UserRole.- Throws:
ObjectNotAttachedToSessionException
- This will be thrown if this method is called while the object is not attached to a session.
-
setAdminRole
void setAdminRole(String newAdminRole)
Set the value for AdminRole. (The LDAP group that represents the scheduler-administrator role e.g. Administrators) This value is optional.- Parameters:
newAdminRole
- the new value for AdminRole.- Throws:
ObjectNotAttachedToSessionException
- This will be thrown if this method is called while the object is not attached to a session.
-
setIsolationAdminRole
void setIsolationAdminRole(String newIsolationAdminRole)
Set the value for IsolationAdminRole. (The LDAP group that represents the scheduler-isolation-administrator role e.g. GroupAdministrators) This value is optional.- Parameters:
newIsolationAdminRole
- the new value for IsolationAdminRole.- Throws:
ObjectNotAttachedToSessionException
- This will be thrown if this method is called while the object is not attached to a session.
-
setScreenReaderRole
@Deprecated void setScreenReaderRole(String newScreenReaderRole)
Deprecated.This field is deprecated, use Subject.ScreenReader instead.Set the value for ScreenReaderRole. (This field is deprecated. The LDAP group that represents the scheduler-screen-reader role e.g. ScreenReaders) This value is optional.
- Parameters:
newScreenReaderRole
- the new value for ScreenReaderRole.- Throws:
ObjectNotAttachedToSessionException
- This will be thrown if this method is called while the object is not attached to a session.
-
setITUserRole
void setITUserRole(String newITUserRole)
Set the value for ITUserRole. (The LDAP group that represents the scheduler-it-user role e.g. ITUsers ) This value is optional.- Parameters:
newITUserRole
- the new value for ITUserRole.- Throws:
ObjectNotAttachedToSessionException
- This will be thrown if this method is called while the object is not attached to a session.
-
setBusinessUserRole
void setBusinessUserRole(String newBusinessUserRole)
Set the value for BusinessUserRole. (The LDAP group that represents the scheduler-business-user role e.g. BusinessUsers ) This value is optional.- Parameters:
newBusinessUserRole
- the new value for BusinessUserRole.- Throws:
ObjectNotAttachedToSessionException
- This will be thrown if this method is called while the object is not attached to a session.
-
setBAEUserRole
void setBAEUserRole(String newBAEUserRole)
Set the value for BAEUserRole. (The LDAP group that represents the scheduler-bae-only-user role e.g. BaeOnlyUsers ) This value is optional.- Parameters:
newBAEUserRole
- the new value for BAEUserRole.- Throws:
ObjectNotAttachedToSessionException
- This will be thrown if this method is called while the object is not attached to a session.
-
setSearchScope
void setSearchScope(String newSearchScope)
Set the value for SearchScope. (The javax.naming.directory.SearchControls value for user searches e.g. SUBTREE/ONELEVEL/OBJECT) This value is optional.- Parameters:
newSearchScope
- the new value for SearchScope.- Throws:
ObjectNotAttachedToSessionException
- This will be thrown if this method is called while the object is not attached to a session.
-
-