|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ibm.websphere.userprofile.UserProfileManager
The User Profile implementation in WebSphere Application Server version 3.0 differs significantly from that in version 2.0. Most importantly,
the User Profile management functions are now separated from the data elements (i.e., the elements mapped to the columns in the
database schema). The management functions in the com.ibm.websphere.userprofile.UserProfile class are now deprecated and disabled,
and the class will now be used solely for getting and setting data for individual instances of users.
Use this class for management functions of userprofile.Following sample code showing how to use
UserProfileManager.
com.ibm.websphere.userprofile.UserProfileManager manager = com.ibm.websphere.userprofile.UserProfileManager.getUserProfileManager(); //For creating userprofile com.ibm.websphere.userprofile.UserProfile userprofile = manager.addUserProfile("bpink"); ...
Constructor Summary | |
---|---|
UserProfileManager()
Deprecated. |
Method Summary | |
---|---|
UserProfile |
addUserProfile(java.lang.String userName)
Deprecated. Creates a new UserProfile object for the specified userName and adds the object to the database table. |
UserProfile |
addUserProfile(java.lang.String userName,
boolean mode)
Deprecated. Creates a new UserProfile object for the specified userName and adds the object to the database table. |
UserProfile |
addUserProfile(java.lang.String userName,
boolean mode,
boolean autoCommit)
Deprecated. Creates a new UserProfile object for the specified userName and adds the object to the database table. |
UserProfile |
addUserProfile(java.lang.String userName,
java.lang.String legacyKey)
Deprecated. Creates a new UserProfile object for the specified userName and adds the object to the database table. |
UserProfile |
addUserProfile(java.lang.String userName,
java.lang.String legacyKey,
boolean mode)
Deprecated. Creates a new UserProfile object for the specified userName and adds the object to the database table. |
UserProfile |
addUserProfile(java.lang.String userName,
java.lang.String legacyKey,
boolean mode,
boolean autoCommit)
Deprecated. Creates a new UserProfile object for the specified userName and adds the object to the database table. |
java.util.Enumeration |
findUserProfiles(java.lang.String column,
java.lang.Object key)
Deprecated. Returns an Enumeration of all the UserProfile objects that match the specified search criteria. |
java.util.Enumeration |
findUserProfilesByAddress1(java.lang.String address1)
Deprecated. Returns an Enumeration of all the UserProfile objects that match the specified search criteria. |
java.util.Enumeration |
findUserProfilesByAddress2(java.lang.String address2)
Deprecated. Returns an Enumeration of all the UserProfile objects that match the specified search criteria. |
java.util.Enumeration |
findUserProfilesByCity(java.lang.String city)
Deprecated. Returns an Enumeration of all the UserProfile objects that match the specified search criteria. |
java.util.Enumeration |
findUserProfilesByDayPhone(java.lang.String dayPhone)
Deprecated. Returns an Enumeration of all the UserProfile objects that match the specified search criteria. |
java.util.Enumeration |
findUserProfilesByEMail(java.lang.String eMail)
Deprecated. Returns an Enumeration of all the UserProfile objects that match the specified search criteria. |
java.util.Enumeration |
findUserProfilesByEmployer(java.lang.String employer)
Deprecated. Returns an Enumeration of all the UserProfile objects that match the specified search criteria. |
java.util.Enumeration |
findUserProfilesByFax(java.lang.String fax)
Deprecated. Returns an Enumeration of all the UserProfile objects that match the specified search criteria. |
java.util.Enumeration |
findUserProfilesByFirstName(java.lang.String firstName)
Deprecated. Returns an Enumeration of all the UserProfile objects that match the specified search criteria. |
java.util.Enumeration |
findUserProfilesByLanguage(java.lang.String language)
Deprecated. Returns an Enumeration of all the UserProfile objects that match the specified search criteria. |
java.util.Enumeration |
findUserProfilesByNation(java.lang.String nation)
Deprecated. Returns an Enumeration of all the UserProfile objects that match the specified search criteria. |
java.util.Enumeration |
findUserProfilesByNightPhone(java.lang.String nightPhone)
Deprecated. Returns an Enumeration of all the UserProfile objects that match the specified search criteria. |
java.util.Enumeration |
findUserProfilesByPostalCode(java.lang.String postalCode)
Deprecated. Returns an Enumeration of all the UserProfile objects that match the specified search criteria. |
java.util.Enumeration |
findUserProfilesByStateOrProvince(java.lang.String province)
Deprecated. Returns an Enumeration of all the UserProfile objects that match the specified search criteria. |
java.util.Enumeration |
findUserProfilesBySurName(java.lang.String surName)
Deprecated. Returns an Enumeration of all the UserProfile objects that match the specified search criteria. |
UserProfile |
getUserProfile(java.lang.String userName)
Deprecated. Returns the UserProfile object referenced by the specified userName in read Only mode |
UserProfile |
getUserProfile(java.lang.String userName,
boolean mode)
Deprecated. Returns the UserProfile object referenced by the specified userName in specified mode |
UserProfile |
getUserProfile(java.lang.String userName,
boolean mode,
boolean autoCommit)
Deprecated. Returns the UserProfile object referenced by the specified userName in specified mode |
static UserProfileManager |
getUserProfileManager()
Deprecated. To get UserProfileManager |
void |
releaseResources(UserProfile userprofile)
Deprecated. To Release the resources held by the UserProfile object and for object reuse. |
void |
remove(java.lang.String userName)
Deprecated. To remove the specified UserProfile from the database. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public UserProfileManager()
Method Detail |
public static UserProfileManager getUserProfileManager()
public UserProfile addUserProfile(java.lang.String userName) throws UserProfileCreateException
userName
- The unique userName for this UserProfile objectpublic UserProfile addUserProfile(java.lang.String userName, boolean mode) throws UserProfileCreateException
userName
- The unique userName for this UserProfile objectmode
- To specify whether it is read_only or read_write. true for read write mode and false for read only modepublic UserProfile addUserProfile(java.lang.String userName, boolean mode, boolean autoCommit) throws UserProfileCreateException
userName
- The unique userName for this UserProfile objectmode
- To specify whether it is read_only or read_write. true for read write mode and false for read only modeautoCommit
- To update immediately or user needs to call sync at end.Default is true.public UserProfile addUserProfile(java.lang.String userName, java.lang.String legacyKey) throws UserProfileCreateException
userName
- The unique userName for this UserProfile objectlegacyKey
- The key for UserProfile in legacy database. Useful
when enterprise bean is extended in advanced edition to
import existing userprofiles from legacy Systems.public UserProfile addUserProfile(java.lang.String userName, java.lang.String legacyKey, boolean mode) throws UserProfileCreateException
userName
- The unique userName for this UserProfile objectlegacyKey
- The key for UserProfile in legacy database. Useful
when enterprise bean is extended in advanced edition to
import existing userprofiles from legacy Systems.mode
- To specify whether it is read_only or read_write. true for read write mode and false for read only modepublic UserProfile addUserProfile(java.lang.String userName, java.lang.String legacyKey, boolean mode, boolean autoCommit) throws UserProfileCreateException
userName
- The unique userName for this UserProfile objectlegacyKey
- The key for UserProfile in legacy database. Useful
when enterprise bean is extended in advanced edition to
import existing userprofiles from legacy Systems.mode
- To specify whether it is read_only or read_write. true for read write mode and false for read only modeautoCommit
- To update immediately or user needs to call sync at end.Default is true.public UserProfile getUserProfile(java.lang.String userName) throws UserProfileFinderException
userName
- Unique userName of the UserProfile objectpublic UserProfile getUserProfile(java.lang.String userName, boolean mode) throws UserProfileFinderException
userName
- Unique userName of the UserProfile objectmode
- To specify whether it is read_only or read_write. true for read write mode and false for read only modepublic UserProfile getUserProfile(java.lang.String userName, boolean mode, boolean autoCommit) throws UserProfileFinderException
userName
- Unique userName of the UserProfile objectmode
- To specify whether it is read_only or read_write. true for read write mode and false for read only modeautoCommit
- To update immediately or user needs to call sync at end. Default is true.This is effective only when read write mode is truepublic java.util.Enumeration findUserProfilesByAddress1(java.lang.String address1)
address1
- The first line of the street address to matchpublic java.util.Enumeration findUserProfilesByAddress2(java.lang.String address2)
address1
- The first line of the street address to matchpublic java.util.Enumeration findUserProfilesByNation(java.lang.String nation)
nation
- The country name to matchpublic java.util.Enumeration findUserProfilesByDayPhone(java.lang.String dayPhone)
dayPhone
- The day time phone to matchpublic java.util.Enumeration findUserProfilesByEMail(java.lang.String eMail)
e-mail
- The email to matchpublic java.util.Enumeration findUserProfilesByEmployer(java.lang.String employer)
employer
- The employer name to matchpublic java.util.Enumeration findUserProfilesByFax(java.lang.String fax)
fax
- The fax name to matchpublic java.util.Enumeration findUserProfilesByFirstName(java.lang.String firstName)
firstName
- The firstName to matchpublic java.util.Enumeration findUserProfilesByLanguage(java.lang.String language)
language
- The language to matchpublic java.util.Enumeration findUserProfilesBySurName(java.lang.String surName)
surName
- The surname to matchpublic java.util.Enumeration findUserProfilesByNightPhone(java.lang.String nightPhone)
nightPhone
- The night phone to matchpublic java.util.Enumeration findUserProfilesByStateOrProvince(java.lang.String province)
stateOrProvince
- The state or Province to matchpublic java.util.Enumeration findUserProfilesByCity(java.lang.String city)
city
- The city name to matchpublic java.util.Enumeration findUserProfilesByPostalCode(java.lang.String postalCode)
postalCode
- The postalCode to matchpublic java.util.Enumeration findUserProfiles(java.lang.String column, java.lang.Object key)
UserProfileManager manager = UserProfileManager.getUserProfileManager(); Enumeration enum = manager.findUserProfiles("cellPhone","999-999");
column
- The column name that is added by extending data wrapperkey
- the value to matchpublic void remove(java.lang.String userName) throws UserProfileRemoveException
userName
- The userName that is to be removedpublic void releaseResources(UserProfile userprofile)
UserProfile
-
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |