Description : This code snippet gives the list of logged on users in the portal using Webdynpro for JAVA
Required jar files for this code snippet
-> webdynpro_services.jar located at /com.sap.tc.webdynpro.runtime/lib
-> com.sap.security.api.jar located at /com.sap.security/lib
import com.sap.tc.webdynpro.services.sal.um.api.IWDClientUser;
import com.sap.tc.webdynpro.services.sal.um.api.WDClientUser;
wdComponentAPI.getMessageManager().reportSuccess("Number of logged on Users in the portal"+currentUsers.length);
{
if(currentUsers[i].getSAPUser() != null)
{
//Displaying the logged on users;
wdComponentAPI.getMessageManager().reportSuccess("User - "+currentUsers[i].getSAPUser().getUniqueName());
}
}
Trackback: http://tb.blog.csdn.net/TrackBack.aspx?PostId=1621197
2万+



被折叠的 条评论
为什么被折叠?



