|
© 2001 BEA Systems, Inc. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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.
Field Summary | |
static java.lang.String |
BEA_HOME
|
static java.lang.String |
CONFIG_DIR
|
static java.lang.String |
CONFIG_XML
|
static java.lang.String |
WLCS_DOMAIN
|
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 |
getName()
Gets the name of the LDAP realm. |
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 |
getUserAuthentication()
Gets the user authentication of 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 |
loadXMLConfigFile()
|
void |
print()
END GETTER |
void |
readXMLFile(java.io.InputStream is)
|
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. |
void |
startElement(java.lang.String namespaceURI,
java.lang.String localName,
java.lang.String qName,
org.xml.sax.Attributes atts)
|
void |
test()
|
Field Detail |
public static final java.lang.String BEA_HOME
public static final java.lang.String WLCS_DOMAIN
public static final java.lang.String CONFIG_XML
public static final java.lang.String CONFIG_DIR
Constructor Detail |
public LDAPConfigurationBean()
Method Detail |
public void ejbCreate()
public void ejbActivate()
public void ejbRemove()
public void ejbPassivate()
public 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 void loadXMLConfigFile() throws java.rmi.RemoteException, java.lang.Exception
public void readXMLFile(java.io.InputStream is) throws java.lang.Exception
public void startElement(java.lang.String namespaceURI, java.lang.String localName, java.lang.String qName, org.xml.sax.Attributes atts) throws org.xml.sax.SAXException
public java.lang.String getName() 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 getUserAuthentication() 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 boolean groupIsContext() throws java.lang.Exception, java.rmi.RemoteException
RemoteException
- general errorpublic void print()
public void test()
public 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)
|
© 2001 BEA Systems, Inc. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |