Generated by
JDiff

Interface org.cyclos.impl.users.GroupsHandler

Documentation changed from old to new.

Removed Methods
boolean canAccessAdminGroups() Returns whether the logged user is an admin and manages at least one admin group
boolean canAccessAdminGroups(User) Returns whether the given user is an admin and manages at least one admin group
List<BasicGroupVO> filterOutEmptyGroupVOSets(List<? extends BasicGroupVO>) Removes the group sets not followed by a group from a hierarchic group list.
Set<Group> flattenIds(Collection<Long>) See .flatten(Collection), but takes the id's as input.
Set<BasicGroup> getAccessibleBasicGroups() Gets accessible basic groups for the current user.
Set<BasicGroup> getAccessibleBasicGroups(BasicGroup, ProductsAccessor) Gets accessible basic groups for the given group and products.
Set<BasicGroup> getAccessibleBasicUserGroups() Same as .getAccessibleBasicGroups(), but without admin groups.
Set<Group> getAccessibleGroups() Gets accessible groups for the current user.
Set<Group> getAccessibleGroups(User) Returns the accessible groups for the given user, excluding groups with group.enabled=false
Set<Role> getAccessibleGroupsRoles() Returns the roles of all accessible groups
Set<UserGroup> getAccessibleUserGroups() Returns the accessible groups with type=USER and enabled=true for the current user
List<AdminGroup> getAdminGroups() Lists all enabled admin groups
Set<BasicGroup> getAllAccessibleBasicGroups() Gets accessible basic groups for the current user.
Set<BasicGroup> getAllAccessibleBasicUserGroups() Same as .getAllAccessibleBasicGroups(), but with admin groups excluded.
Set<Group> getAllAccessibleGroups() Gets accessible groups for the current user, excluding groupsets.
List<BasicGroup> getBasicGroups() Returns all groups (including GroupSets) in the system which do not have enabled=false In case groupsets are included, all of the groups contained in that groupset are also automatically included.
List<BasicGroup> getBasicUserGroups() Same as .getBasicGroups(), but without admin groups.
Set<BasicGroup> getDefaultGroupFilter(boolean) Returns the groups used by default for searches, if any
Set<BasicGroup> getDefaultGroupFilter(boolean, BasicGroup, ProductsAccessor) Returns the groups used by default for searches, if any, for the given group and accessor
AdminGroup getGlobalAdministrators() Returns the global administrators group
List<GroupSet> getGroupSets() Returns the list of group sets.
Set<BasicGroup> getSearchOnGroups(boolean) Returns the groups the logged user can search other users on
Set<BasicGroup> getSearchOnGroups(boolean, BasicGroup, ProductsAccessor) Returns the groups a user can search other users on with the given group and products
Set<BasicGroup> getUserDirectoryOnGroups() Returns the groups the logged user can view on the directory (map)
Set<BasicGroup> getUserDirectoryOnGroups(BasicGroup, ProductsAccessor) Returns the groups a user can view on the directory (map) with the given group and products
Set<BasicGroup> getViewProfileOnGroups(BasicGroup, ProductsAccessor) Returns the groups a user view profile with the given group and products
Set<BasicGroup> getVisibleGroups(boolean, GroupVisibility) Returns either an empty list for GroupVisibility.NONE or null, only visible group sets for GroupVisibility.GROUP_SET or visible groups / group sets for GroupVisibility.GROUP.
List<BasicGroupVO> sortHierarchy(Collection<BasicGroup>) Returns a sorted list with the groups hierarchically organized
 

Added Methods
GroupListViewFactory all() Only for administrators, for members it returns the same as .accessibles().
Set<BasicGroup> doFlatten(Collection<BasicGroup>, boolean, boolean) Expands the given groups / group sets into a set of groups / group sets (depending on a flag).
Set<Group> doFlattenGroups(Collection<BasicGroup>, boolean)  
GroupVisibility getGroupVisibility(boolean) Returns the GroupVisibility for the current user.
GroupListViewFactory viewFactory(GroupList) Returns a view factory for working with brokeredMembers = false and without applying group visibility.
GroupListViewFactory viewFactory(Collection<BasicGroup>) Return a view factory for the given set of basic groups.
GroupListViewFactoryAccessor visibles() This method must be used to send the available groups to use as filter (e.g in a search data) and must used in conjunction with GroupListView.check(Collection) to check the selected groups in the corresponding search.
It applies the GroupVisibility before returning the groups (the other factory methods (.accessibles(), .ads(), etc) don't).
For examples how to use it please search for references to this method.
Guests has GroupVisibility.NONE as visibility then a factory returning empty views is returned (never null) and administrators has GroupVisibility.GROUP.
 

Changed Methods
Set<UserGroup> getAccessibleUserGroups(User) Documentation changed from old to new.
Returns the accessible groups with type=USER and enabled=true for the given user