Package org.cyclos.impl.users
Interface GroupsHandlerInternal
-
- All Superinterfaces:
BasicGroupListViewFactoryAccessor,GroupListViewFactoryAccessor,GroupsHandler
- All Known Implementing Classes:
GroupsHandlerImpl
public interface GroupsHandlerInternal extends GroupsHandler
Internal interface for group handling For normal usage theGroupsHandlerinterface must be used.
-
-
Field Summary
-
Fields inherited from interface org.cyclos.impl.users.GroupsHandler
VO_MAPPINGS
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Set<BasicGroup>getAccessibleBasicGroups(boolean overBrokered, BasicGroup group, ProductsAccessor products)Gets accessible basic groups for the given group and products.ConversionHandlergetConversionHandler()Returns the unique conversion handler present in the context (as a utility for theGroupListView)Set<BasicGroupVO>getDefaultGroupFilter(boolean overBrokered, Collection<? extends BasicGroupVO> availableGroups)Returns the groups used by default for searches, if any, contained in the available for search collectionSet<BasicGroup>getDefaultGroupFilter(boolean overBrokered, BasicGroup group, ProductsAccessor products)Returns the groups used by default for searches, if any, for the given group and accessorGroupVisibilitygetGroupVisibility(ProductsAccessor accessor, boolean overBrokered)Returns theGroupVisibilityin the given accessor or the one for the current user when null.Set<BasicGroup>getSearchOnGroups(boolean overBrokered, BasicGroup group, ProductsAccessor products)Returns the groups a user can search other users on with the given group and productsSet<BasicGroup>getUserDirectoryOnGroups(BasicGroup group, ProductsAccessor products)Returns the groups a user can view on the directory (map) with the given group and productsSet<BasicGroup>getViewProfileOnGroups(BasicGroup group, ProductsAccessor products)Returns the groups a user view profile with the given group and productsList<BasicGroupVO>sortHierarchy(Collection<? extends BasicGroup> groups)Returns a sorted list with the groups hierarchically organized-
Methods inherited from interface org.cyclos.impl.users.BasicGroupListViewFactoryAccessor
accessibles
-
Methods inherited from interface org.cyclos.impl.users.GroupListViewFactoryAccessor
ads, directory, menu, users
-
Methods inherited from interface org.cyclos.impl.users.GroupsHandler
all, flatten, flattenVOs, flattenVOs, getAccessibleGlobalGroups, getAccessibleUserGroups, getGroupVisibility, getPossiblePublicInitialGroups, getPossibleRegistrationGroups, getPossibleRegistrationInitialGroups, getViewProfileOnGroups, viewFactory, viewFactory, visibles
-
-
-
-
Method Detail
-
getAccessibleBasicGroups
Set<BasicGroup> getAccessibleBasicGroups(boolean overBrokered, BasicGroup group, ProductsAccessor products)
Gets accessible basic groups for the given group and products. Groupsets are included, but groups with enabled=false are excluded. If groupsets are included, their contained groups are automatically also included.
-
getConversionHandler
ConversionHandler getConversionHandler()
Returns the unique conversion handler present in the context (as a utility for theGroupListView)
-
getDefaultGroupFilter
Set<BasicGroup> getDefaultGroupFilter(boolean overBrokered, BasicGroup group, ProductsAccessor products)
Returns the groups used by default for searches, if any, for the given group and accessor
-
getDefaultGroupFilter
Set<BasicGroupVO> getDefaultGroupFilter(boolean overBrokered, Collection<? extends BasicGroupVO> availableGroups)
Returns the groups used by default for searches, if any, contained in the available for search collection
-
getGroupVisibility
GroupVisibility getGroupVisibility(ProductsAccessor accessor, boolean overBrokered)
Returns theGroupVisibilityin the given accessor or the one for the current user when null. As broker we must have the same or bigger visibility than as member, so when brokering, it is used as base-line the visibility set in member products.
-
getSearchOnGroups
Set<BasicGroup> getSearchOnGroups(boolean overBrokered, BasicGroup group, ProductsAccessor products)
Returns the groups a user can search other users on with the given group and products
-
getUserDirectoryOnGroups
Set<BasicGroup> getUserDirectoryOnGroups(BasicGroup group, ProductsAccessor products)
Returns the groups a user can view on the directory (map) with the given group and products
-
getViewProfileOnGroups
Set<BasicGroup> getViewProfileOnGroups(BasicGroup group, ProductsAccessor products)
Returns the groups a user view profile with the given group and products
-
sortHierarchy
List<BasicGroupVO> sortHierarchy(Collection<? extends BasicGroup> groups)
Returns a sorted list with the groups hierarchically organized
-
-