|
Home > Archive > WebSphere Portal Server > January 2004 > UserAccessBean
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
|
|
| webblue 2004-01-19, 2:59 pm |
| Does anyone know if WPS v5 supports UserAccessBean?
| |
|
| > Does anyone know if WPS v5 supports UserAccessBean?
I'm also most interested in this matter. I have a 4.x portlet which fetches the email address from the LDAP store using the following code:
public String getEmailByUserId(String userId) {
Vector resultList = null;
com.ibm.wps.puma.User user = null;
try {
resultList =
com.ibm.wps.puma.beans.UserAccessBean.findUserByAttribute("uid", userId.toLowerCase());
if (resultList != null && resultList.size() > 0) {
for (int i = 0; i < resultList.size(); i++) {
user = ( com.ibm.wps.puma.User) resultList.elementAt(i);
}
}
} catch (NamingException e) {
logger_.error("error during user lookup", e);
} catch (CreateException e) {
logger_.error("error during user lookup", e);
} catch (RemoteException e) {
logger_.error("error during user lookup", e);
} catch (FinderException e) {
logger_.error("error during user lookup", e);
}
if (user == null)
return null;
return user.getMail();
}
While the com.ibm.wps.puma.User class is deprecated in V5, the com.ibm.wps.puma.beans.UserAccessBean can no longer be resolved! I can't find any documentation with suggestions on how to deal with this.
All help is appreciated.
pascal
|
|
|
|
|