|
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.security.RealmLink
Utility class to ensure consistency between an external realm and the Commerce Server's personalization tables. This class will make some optimizations when querying the default RDBMS realm.
Field Summary | |
static java.lang.String |
EXCLUDE_GROUPS
|
Fields inherited from interface com.beasys.commerce.axiom.contact.UserManagementConstants |
ANONYMOUS_PROFILE,
CACHED_PROFILE,
CONTENT_TYPE,
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,
REQUEST_TYPE,
RESERVED_SCOPE,
SCHEMA,
SESSION_TYPE,
USER,
USER_ENTITY_HOME,
USER_MGR,
USER_MGR_PROPERTIES,
USER_TYPE |
Method Summary | |
static void |
addGroupToGroup(java.lang.String parentGroup,
java.lang.String childGroup)
Adds childGroup as a child of parentGroup |
static void |
addUserToGroup(java.lang.String username,
java.lang.String groupName)
Adds a user to a group. |
static boolean |
authUserPassword(java.lang.String username,
java.lang.String password)
Authenticates a username-password combination. |
static void |
changeGroupName(java.lang.String oldGroupName,
java.lang.String newGroupName)
Changes the name of an existing group. |
static java.lang.String[] |
getAllGroupNames()
Returns the intersection of personalized group names with realm group names. |
static java.lang.String[] |
getChildGroupNames(java.lang.String parentGroup)
Gets the names of all child groups |
static long |
getGroupId(java.lang.String groupName)
Returns the unique identifier of a group |
static java.lang.String |
getGroupName(long id)
Returns the name of a group |
static java.lang.String[] |
getGroupNamesForUser(java.lang.String username)
Returns the list of group names of which a user is a member. |
static java.lang.String |
getParentGroupName(java.lang.String childGroupName)
Retrieves the parent group name for a group. |
static java.lang.String[] |
getTopLevelGroupNames()
|
static long |
getUserId(java.lang.String username)
Returns the unique identifier of a user |
static java.lang.String |
getUserName(long id)
Returns the name of a user |
static java.lang.String[] |
getUserNames(java.lang.String searchExpression,
int limit)
Returns an array users' names matching the search expression Handled through SPI |
static java.lang.String[] |
getUserNamesForGroup(java.lang.String groupName,
java.lang.String searchExpression,
int limit)
Returns a group's list of members in the form of users' names |
static void |
refreshAll()
Instructs the current WebLogic CachingRealm to clear all of its caches |
static void |
refreshGroups()
Instructs the current WebLogic CachingRealm to refresh its cache of group information. |
static void |
refreshUsers()
Instructs the current WebLogic CachingRealm to refresh its cache of user information. |
static void |
removeGroupFromGroup(java.lang.String parentGroup,
java.lang.String childGroup)
Removes childGroup from parentGroup |
static void |
removeUserFromGroup(java.lang.String username,
java.lang.String groupName)
Removes a user from a group. |
static void |
setPassword(java.lang.String username,
java.lang.String password)
Sets the password for a user. |
static boolean |
userExists(java.lang.String username)
Checks for existence of a User in the realm |
Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Field Detail |
public static final java.lang.String EXCLUDE_GROUPS
Method Detail |
public static boolean userExists(java.lang.String username)
username
- the name of the user to look forpublic static java.lang.String[] getUserNamesForGroup(java.lang.String groupName, java.lang.String searchExpression, int limit)
groupName
- the name of the groupsearchExpression
- a search expression such as "J* Smith"limit
- a limit of results to returnpublic static boolean authUserPassword(java.lang.String username, java.lang.String password)
public static void addGroupToGroup(java.lang.String parentGroup, java.lang.String childGroup) throws ServiceProviderException
parentGroup
- the name of the parent groupchildGroup
- the name of the group to addpublic static void removeGroupFromGroup(java.lang.String parentGroup, java.lang.String childGroup) throws ServiceProviderException
parentGroup
- the name of the parent groupchildGroup
- the name of the group to removepublic static java.lang.String[] getChildGroupNames(java.lang.String parentGroup) throws ServiceProviderException
parentGroup
- the group whose children to retrievepublic static void changeGroupName(java.lang.String oldGroupName, java.lang.String newGroupName) throws ServiceProviderException
oldGroupName
- the old group namenewGroupName
- the new group namepublic static java.lang.String getParentGroupName(java.lang.String childGroupName) throws ServiceProviderException
childGroupName
- the name of the group whose parent group
name is soughtnull
if no parentpublic static void addUserToGroup(java.lang.String username, java.lang.String groupName) throws ServiceProviderException
username
- the username of the user to addgroupName
- the name to the group to which the user should be addedpublic static void removeUserFromGroup(java.lang.String username, java.lang.String groupName) throws ServiceProviderException
username
- the username of the user to removegroupName
- the name of the group from which the user should be
removedpublic static java.lang.String[] getAllGroupNames() throws ServiceProviderException
public static java.lang.String[] getTopLevelGroupNames() throws ServiceProviderException
public static java.lang.String[] getGroupNamesForUser(java.lang.String username) throws ServiceProviderException
username
- the username of the userpublic static java.lang.String[] getUserNames(java.lang.String searchExpression, int limit) throws UserManagementException
searchExpression
- a search expression such as "J* Smith"limit
- a limit of results to returnpublic static void refreshGroups()
public static void refreshUsers()
public static void refreshAll()
public static long getGroupId(java.lang.String groupName) throws ServiceProviderException
groupName
- the group to querypublic static long getUserId(java.lang.String username) throws ServiceProviderException
username
- the user to querypublic static java.lang.String getGroupName(long id) throws ServiceProviderException
id
- the unique identifier of the group to querypublic static java.lang.String getUserName(long id) throws ServiceProviderException
id
- the unique identifier of the user to querypublic static void setPassword(java.lang.String username, java.lang.String password) throws ServiceProviderException
|
BEA Systems, Inc. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |