|
BEA Systems, Inc. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.beasys.commerce.bridge.ldap.LDAPConfigurationBean
LDAPPropertiesBean retrieves and sets values for the client's LDAP configuration - NOTE: the server(s) should be restarted before any changes caused by calling a setter method in this bean are expected to have taken effect. This is to ensure that the changes are picked up in beans that exist in other VMs as in a cluster.
Fields inherited from interface com.beasys.commerce.bridge.ldap.LDAPBridgeConstants |
LDAP_CONFIG,
LDAP_ENABLED_ATTRIBUTE,
LDAP_GROUP_ATTRIBUTE,
LDAP_USER_ATTRIBUTE |
Constructor Summary | |
LDAPConfigurationBean()
|
Method Summary | |
void |
addGroupAttribute(java.lang.String attribute)
Adds an attribute to the list of attributes to be retrieved from the LDAP server for group entries |
void |
addUserAttribute(java.lang.String attribute)
Adds an attribute to the list of attributes to be retrieved from the LDAP server for user entries |
protected void |
debugBundle(java.util.ResourceBundle bundle)
|
void |
ejbActivate()
This method is required by the EJB Specification, but is not used by this example. |
void |
ejbCreate()
Creates the session bean. |
void |
ejbPassivate()
This method is required by the EJB Specification, but is not used by this example. |
void |
ejbRemove()
This method is required by the EJB Specification, but is not used by this example. |
java.lang.String |
getAuthenticationType()
Gets the authentication type for the LDAP server. |
protected java.sql.Connection |
getConnection()
Get a connection to the database |
java.lang.String[] |
getGroupAttributes()
Returns the names of the attributes to be retrieved from the LDAP server for group entities. |
java.lang.String |
getGroupDN()
Gets the group DN for the LDAP server. |
java.lang.String |
getGroupNameAttribute()
Gets the group name attribute for the LDAP server. |
java.lang.String |
getGroupUserNameAttribute()
Gets the group user name attribute for the LDAP server. |
java.lang.String |
getPrincipal()
Gets the principal user for the LDAP server. |
java.lang.String |
getPrincipalCredential()
Gets the principal password for the LDAP server. |
java.lang.String |
getServerURL()
Gets the URL for the LDAP server. |
java.lang.String[] |
getUserAttributes()
Returns the names of the attributes to be retrieved from the LDAP server for user entities. |
java.lang.String |
getUserCommonNameAttribute()
Gets the user common name attribute for the LDAP server. |
java.lang.String |
getUserDN()
Gets the user DN for the LDAP server. |
java.lang.String |
getUserNameAttribute()
Gets the user name attribute for the LDAP server. |
java.lang.String |
getUserPasswordAttribute()
Gets the user password attribute for the LDAP server. |
boolean |
groupIsContext()
Indicates whether the group is context. |
boolean |
isLDAPEnabled()
Check the current configuration to determine if LDAP is enabled |
boolean |
isSSL()
Indicates whether SSL must be used to communicate with the LDAP server. |
void |
removeGroupAttribute(java.lang.String attribute)
Removes an attribute from the list of attributes to be retrieved from the LDAP server for group entries |
void |
removeUserAttribute(java.lang.String attribute)
Removes an attribute from the list of attributes to be retrieved from the LDAP server for user entries |
void |
setGroupAttributes(java.lang.String[] newAttributes)
Sets the names of the attributes to be retrieved from the LDAP server for group entries, according to the provided array. |
void |
setLDAPEnabled(boolean flag)
Set the flag to enable LDAP |
void |
setSessionContext(javax.ejb.SessionContext ctx)
Sets the session context. |
void |
setUserAttributes(java.lang.String[] newAttributes)
Sets the names of the attributes to be retrieved from the LDAP server for user entries, according to the provided array. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public LDAPConfigurationBean()
Method Detail |
public void ejbCreate()
public void ejbActivate()
public void ejbRemove()
public void ejbPassivate()
public final void setSessionContext(javax.ejb.SessionContext ctx)
ctx
- Context for sessionpublic void addGroupAttribute(java.lang.String attribute) throws java.lang.Exception, java.rmi.RemoteException
attribute
- the name of the attribute to addRemoteException
- general errorpublic void removeGroupAttribute(java.lang.String attribute) throws java.lang.Exception, java.rmi.RemoteException
attribute
- the name of the attribute to removeRemoteException
- general errorpublic java.lang.String[] getGroupAttributes() throws java.lang.Exception, java.rmi.RemoteException
String []
group attribute names. If no attributes,
returns an empty array.RemoteException
- general errorpublic void setGroupAttributes(java.lang.String[] newAttributes) throws java.lang.Exception, java.rmi.RemoteException
RemoteException
- general errorpublic void addUserAttribute(java.lang.String attribute) throws java.lang.Exception, java.rmi.RemoteException
attribute
- the name of the attribute to addRemoteException
- general errorpublic void removeUserAttribute(java.lang.String attribute) throws java.lang.Exception, java.rmi.RemoteException
attribute
- the name of the attribute to removeRemoteException
- general errorpublic java.lang.String[] getUserAttributes() throws java.lang.Exception, java.rmi.RemoteException
String []
user attribute names. If no attributes,
returns an empty array.RemoteException
- general errorpublic void setUserAttributes(java.lang.String[] newAttributes) throws java.lang.Exception, java.rmi.RemoteException
RemoteException
- general errorpublic java.lang.String getPrincipal() throws java.lang.Exception, java.rmi.RemoteException
RemoteException
- general errorpublic java.lang.String getServerURL() throws java.lang.Exception, java.rmi.RemoteException
RemoteException
- general errorpublic java.lang.String getPrincipalCredential() throws java.lang.Exception, java.rmi.RemoteException
RemoteException
- general errorpublic boolean isSSL() throws java.lang.Exception, java.rmi.RemoteException
RemoteException
- general errorpublic java.lang.String getAuthenticationType() throws java.lang.Exception, java.rmi.RemoteException
RemoteException
- general errorpublic java.lang.String getUserDN() throws java.lang.Exception, java.rmi.RemoteException
RemoteException
- general errorpublic java.lang.String getGroupDN() throws java.lang.Exception, java.rmi.RemoteException
RemoteException
- general errorpublic java.lang.String getUserNameAttribute() throws java.lang.Exception, java.rmi.RemoteException
RemoteException
- general errorpublic java.lang.String getGroupNameAttribute() throws java.lang.Exception, java.rmi.RemoteException
RemoteException
- general errorpublic java.lang.String getGroupUserNameAttribute() throws java.lang.Exception, java.rmi.RemoteException
RemoteException
- general errorpublic java.lang.String getUserPasswordAttribute() throws java.lang.Exception, java.rmi.RemoteException
RemoteException
- general errorpublic java.lang.String getUserCommonNameAttribute() throws java.lang.Exception, java.rmi.RemoteException
RemoteException
- general errorpublic boolean groupIsContext() throws java.lang.Exception, java.rmi.RemoteException
RemoteException
- general errorpublic boolean isLDAPEnabled() throws java.lang.Exception, java.rmi.RemoteException
RemoteException
- general errorpublic void setLDAPEnabled(boolean flag) throws java.lang.Exception, java.rmi.RemoteException
flag
- true to enable LDAP, false to disable itRemoteException
- general errorprotected java.sql.Connection getConnection() throws java.sql.SQLException
protected void debugBundle(java.util.ResourceBundle bundle)
|
BEA Systems, Inc. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |