Beispiel #1
0
 public static String[] getUserGroups() throws Exception {
   Object[] objGroupIds =
       getGroupHandler().findGroupsOfUser(UserHelper.getCurrentUser()).toArray();
   String[] groupIds = new String[objGroupIds.length];
   for (int i = 0; i < groupIds.length; i++) {
     groupIds[i] = ((GroupImpl) objGroupIds[i]).getId();
   }
   return groupIds;
 }
Beispiel #2
0
 public static boolean isAnonim() throws Exception {
   String userId = UserHelper.getCurrentUser();
   if (userId == null) return true;
   return false;
 }
Beispiel #3
0
 public static String getCurrentUser() throws Exception {
   return UserHelper.getCurrentUser();
 }