本文整理汇总了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;
}