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; }
public static boolean isAnonim() throws Exception { String userId = UserHelper.getCurrentUser(); if (userId == null) return true; return false; }
public static String getCurrentUser() throws Exception { return UserHelper.getCurrentUser(); }