|
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.axiom.contact.RealmConfigurationBean
RealmConfigurationBean configures information regarding the underlying Realm for use in the personalization server.
Fields inherited from interface com.beasys.commerce.axiom.contact.UserManagementConstants |
ANONYMOUS_PROFILE, CACHED_PROFILE, DEFAULT_SCOPE, DEFAULT_SUCCESSOR, DEFAULT_SUCCESSOR_HOME, DEFAULT_SUCCESSOR_JNDI, DEFAULT_SUCCESSOR_PK, DEFAULT_USER, DEFAULT_USER_HOME, DEFAULT_USER_JNDI, DEFAULT_USER_PK, GROUP, GROUP_ENTITY_HOME, PROFILE_MGR, PROFILE_SUCCESSOR, PROFILE_USER, REALM_CONFIG, RESERVED_SCOPE, USER, USER_ENTITY_HOME, USER_MGR |
Fields inherited from interface com.beasys.commerce.foundation.property.SchemaManagerConstants |
APPLICATION_INIT_TYPE, CATALOG_TYPE, CONTENT_TYPE, REQUEST_TYPE, SCHEMA, SCHEMA_GROUPS, SESSION_TYPE, USER_TYPE |
Constructor Summary | |
RealmConfigurationBean()
|
Method Summary | |
java.lang.String |
cleanupMisconfiguredUsers()
Removes misconfigured users (those found in the database but not in the realm) from the database. |
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.util.ArrayList |
getAllDBGroups()
Returns all the groups that are in the database. |
java.util.ArrayList |
getAllRealmGroups()
Returns all the groups that exist in the Realm. |
int |
getConfiguredGroupCount()
Returns a count of the realm groups configured for personalization use. |
int |
getConfiguredUserCount()
Returns a count of the realm users configured for personalization use. |
protected java.sql.Connection |
getConnection()
Get a connection to the database |
java.util.ArrayList |
getDBUsers()
Returns just the users found in the database. |
java.lang.String[] |
getMisconfiguredUsers()
Returns the usernames that exist in the database, but not in the realm. |
java.lang.String |
getRealmClassName()
Returns the name of the security realm class being used. |
java.util.ArrayList |
getRealmUsers()
Returns just the users from the Realm. |
boolean |
isDefaultRealm()
Determines if the system is running in the default RDBMSRealm |
void |
registerGroup(java.lang.String groupName)
Adds the necessary entries in the database for the group to start being used in the system. |
void |
setSessionContext(javax.ejb.SessionContext ctx)
Sets the session context. |
void |
unregisterGroup(java.lang.String groupName)
Removes all relevant entries for a group from the database. |
boolean |
useRealmForGroups()
Determines if the realm should be solely responsible for group information (rather than WLPS managed tables). |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public RealmConfigurationBean()
Method Detail |
public void ejbCreate()
public void ejbActivate()
ejbActivate
in interface javax.ejb.SessionBean
public void ejbRemove()
ejbRemove
in interface javax.ejb.SessionBean
public void ejbPassivate()
ejbPassivate
in interface javax.ejb.SessionBean
public final void setSessionContext(javax.ejb.SessionContext ctx)
setSessionContext
in interface javax.ejb.SessionBean
ctx
- Context for sessionpublic int getConfiguredUserCount() throws java.rmi.RemoteException, UserManagementException
UserManagementException
- group count errorRemoteException
- general errorpublic java.lang.String[] getMisconfiguredUsers() throws java.rmi.RemoteException, UserManagementException
UserManagementException
- user find errorRemoteException
- general errorpublic java.lang.String cleanupMisconfiguredUsers() throws java.rmi.RemoteException, UserManagementException
UserManagementException
- error cleaning up usersRemoteException
- general errorpublic java.util.ArrayList getRealmUsers() throws java.rmi.RemoteException, UserManagementException
UserManagementException
- error accessing realmRemoteException
- general errorpublic java.util.ArrayList getDBUsers() throws java.rmi.RemoteException, UserManagementException
UserManagementException
- error accessing the
databaseRemoteException
- general errorpublic int getConfiguredGroupCount() throws java.rmi.RemoteException, UserManagementException
UserManagementException
- group count errorRemoteException
- general errorpublic java.util.ArrayList getAllRealmGroups() throws java.rmi.RemoteException, UserManagementException
RemoteException
- general errorUserManagementException
- realm errorpublic java.util.ArrayList getAllDBGroups() throws java.rmi.RemoteException, UserManagementException
RemoteException
- general errorUserManagementException
- LDAP errorpublic void registerGroup(java.lang.String groupName) throws java.rmi.RemoteException, UserManagementException
groupName
- the name of the group to registerRemoteException
- general errorUserManagementException
- DB related errorpublic void unregisterGroup(java.lang.String groupName) throws java.rmi.RemoteException, UserManagementException
groupName
- the name of the group to unregisterRemoteException
- general errorUserManagementException
- DB related errorpublic java.lang.String getRealmClassName() throws java.rmi.RemoteException
public boolean isDefaultRealm() throws java.rmi.RemoteException
public boolean useRealmForGroups() throws java.rmi.RemoteException
protected java.sql.Connection getConnection() throws java.sql.SQLException
|
BEA Systems, Inc. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |