BEA Systems, Inc.

com.beasys.commerce.user.jsp.beans
Class RealmConfigBean

java.lang.Object
  |
  +--com.beasys.commerce.user.jsp.beans.RealmConfigBean

public class RealmConfigBean
extends java.lang.Object
implements UserManagementConstants

Class for managing Realm configuration.


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
RealmConfigBean()
           
 
Method Summary
 java.lang.String cleanupMisconfiguredUsers()
          Removes misconfigured users (those found in the database but not in the realm) from the database.
 java.lang.String configureGroups(java.util.Enumeration enum)
          Takes the parameters from an HTTP request and configures groups according to the request's parameters.
 int getConfiguredGroupCount()
          Returns the number of groups that have been configured in the system.
 int getConfiguredUserCount()
          Returns a count of the realm users configured for personalization use.
 java.lang.String getGroupName()
           
 java.util.ArrayList getMisconfiguredDBGroups()
          Returns all the groups that are currently in the database but not the realm.
 java.lang.String[] getMisconfiguredUsers()
          Returns the usernames that exist in the database, but not in the realm.
 java.util.ArrayList getSelectedRealmGroups()
          Returns all the groups that are in the realm and selected for use.
 java.util.ArrayList getUnselectedRealmGroups()
          Returns all the groups that are in the realm but not selected for use.
 java.lang.String mapGroup(java.lang.String oldGroupName, java.lang.String newGroupName)
          Maps oldGroupName to newGroupName and returns an appropriate error message, if needed.
 void setGroupName(java.lang.String s)
           
 java.lang.String unregisterGroup()
          Removes all references to a group.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RealmConfigBean

public RealmConfigBean()
Method Detail

mapGroup

public java.lang.String mapGroup(java.lang.String oldGroupName,
                                 java.lang.String newGroupName)
Maps oldGroupName to newGroupName and returns an appropriate error message, if needed.
Returns:
error message : null if no error

getConfiguredUserCount

public int getConfiguredUserCount()
Returns a count of the realm users configured for personalization use.
Returns:
a count of the realm users configured for personalization use

getMisconfiguredUsers

public java.lang.String[] getMisconfiguredUsers()
Returns the usernames that exist in the database, but not in the realm.
Returns:
the usersnames for the users that are misconfigured

cleanupMisconfiguredUsers

public java.lang.String cleanupMisconfiguredUsers()
Removes misconfigured users (those found in the database but not in the realm) from the database.
Returns:
a status message for the operation

getConfiguredGroupCount

public int getConfiguredGroupCount()
Returns the number of groups that have been configured in the system.
Returns:
the number of groups that have been configured

getUnselectedRealmGroups

public java.util.ArrayList getUnselectedRealmGroups()
Returns all the groups that are in the realm but not selected for use.
Returns:
all the groups that are in the realm but not selected for use

getSelectedRealmGroups

public java.util.ArrayList getSelectedRealmGroups()
Returns all the groups that are in the realm and selected for use.
Returns:
all the groups that are in the realm and selected for use

getMisconfiguredDBGroups

public java.util.ArrayList getMisconfiguredDBGroups()
Returns all the groups that are currently in the database but not the realm.
Returns:
all the groups that are currently in the database but not the realm

configureGroups

public java.lang.String configureGroups(java.util.Enumeration enum)
Takes the parameters from an HTTP request and configures groups according to the request's parameters.
Parameters:
enum - the enumeration of HTTP request parameters
Returns:
the status message for the operation

unregisterGroup

public java.lang.String unregisterGroup()
Removes all references to a group.
Returns:
the status message for the operation

setGroupName

public void setGroupName(java.lang.String s)

getGroupName

public java.lang.String getGroupName()

BEA Systems, Inc.

Copyright © 2000 BEA Systems, Inc. All Rights Reserved