public static boolean call(PageContext pc) throws PageException {
return call(pc, null);
}
public static boolean call(PageContext pc, String strRoles) throws PageException {
if(StringUtil.isEmpty(strRoles)){
Credential ru = pc.getRemoteUser();
if(ru==null) return false;
return ru.getRoles().length>0;
}
String[] roles = ListUtil.trimItems(ListUtil.listToStringArray(strRoles, ','));
for(int i=0;i<roles.length;i++) {
if(IsUserInRole.call(pc, roles[i])) return true;