本文整理匯總了Java中org.opengts.war.track.page.UserInfo類的典型用法代碼示例。如果您正苦於以下問題:Java UserInfo類的具體用法?Java UserInfo怎麽用?Java UserInfo使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
UserInfo類屬於org.opengts.war.track.page包,在下文中一共展示了UserInfo類的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: getUserList
import org.opengts.war.track.page.UserInfo; //導入依賴的package包/類
public String[] getUserList()
{
if (this.userList == null) {
try {
User user = this.getCurrentUser();
PrivateLabel privLabel = this.getPrivateLabel(); // never null
WebPage userPage = privLabel.getWebPage(Constants.PAGE_USER_INFO);
if (userPage == null) {
this.userList = new String[0];
} else
if (privLabel.hasReadAccess(user, userPage.getAclName(UserInfo._ACL_ALL))) {
this.userList = User.getUsersForAccount(this.getCurrentAccountID());
} else
if (privLabel.hasReadAccess(user, userPage.getAclName())) {
this.userList = new String[] { user.getUserID() };
} else {
this.userList = new String[0];
}
} catch (DBException dbe) {
Print.logWarn("Error getting User list: " + dbe);
String uid = this.getCurrentUserID();
this.userList = StringTools.isBlank(uid)? new String[0] : new String[] { uid };
}
}
return this.userList;
}