public interface GroupServiceLocal extends GroupService, CRUDServiceLocal<BasicGroup,BasicGroupDTO,BasicGroupData,BasicGroupNature>
GroupsHandler.| Modifier and Type | Method and Description |
|---|---|
boolean |
canChangeEnabled(Group group)
Returns true if the group enabled attribute can be changed.
|
boolean |
canManage(BasicGroup group)
Returns whether the group can be managed by the logged user
|
boolean |
canView(BasicGroup group)
Returns whether the group can be viewed by the logged user
|
AdminGroup |
createNetworkAdmins(Network network)
Creates the network administrators group for the given network
|
Group |
findByName(java.lang.String name)
Find a group by name
|
java.util.List<AdminGroup> |
getAdminGroups()
Return all enabled admin groups.
|
java.util.Set<BasicGroup> |
getBasicUserGroups()
Returns all enabled groups (including GroupSets) but excluding admin in the system
In case groupsets are included, all of the groups contained in that groupset are also automatically included.
|
java.util.List<BasicGroup> |
getGroupsUsingConfiguration(Configuration configuration)
Returns all groups which are associated with the given configuration
|
java.util.List<BasicGroup> |
getGroupsUsingProduct(Product product)
Returns all groups which are associated to the given product
|
AdminGroup |
getSystemAdmins()
Returns the default admins group, that is, either global admins if in global mode, or the current network admins
otherwise
|
java.lang.Boolean |
hasUsers(BasicGroup basicGroup)
returns true if there are users in the basic group
|
java.util.Collection<BasicGroup> |
listEntities(BasicGroupQuery params)
List group entities that satisfy the given conditions
|
changeConfiguration, getActiveConfiguration, getSearchData, searchfind, findAll, getEntityClass, newEntity, remove, removeAll, saveSkippingEntityLog, toDTO, toEntity, validategetData, getDataForNew, load, remove, removeAll, saveboolean canChangeEnabled(Group group)
boolean canManage(BasicGroup group)
boolean canView(BasicGroup group)
AdminGroup createNetworkAdmins(Network network)
Group findByName(java.lang.String name)
java.util.List<AdminGroup> getAdminGroups()
java.util.Set<BasicGroup> getBasicUserGroups()
java.util.List<BasicGroup> getGroupsUsingConfiguration(Configuration configuration)
java.util.List<BasicGroup> getGroupsUsingProduct(Product product)
AdminGroup getSystemAdmins()
java.lang.Boolean hasUsers(BasicGroup basicGroup)
java.util.Collection<BasicGroup> listEntities(BasicGroupQuery params)