Package org.cyclos.impl.users
Interface GroupServiceLocal
-
- All Superinterfaces:
CRUDService<BasicGroupDTO,BasicGroupData,BasicGroupNature>,CRUDServiceLocal<BasicGroup,BasicGroupDTO,BasicGroupData,BasicGroupNature>,GroupService,Service
- All Known Implementing Classes:
GroupServiceImpl
public interface GroupServiceLocal extends GroupService, CRUDServiceLocal<BasicGroup,BasicGroupDTO,BasicGroupData,BasicGroupNature>
Local interface for GroupService. Note that methods for retrieving collections of groups are to be placed inGroupsHandler.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleancanChangeEnabled(Group group)Returns true if the group enabled attribute can be changed.booleancanManage(BasicGroup group)Returns whether the group can be managed by the logged userbooleancanView(BasicGroup group)Returns whether the group can be viewed by the logged userAdminGroupcreateNetworkAdmins(Network network)Creates the network administrators group for the given networkGroupfindByName(String name)Find a group by nameList<AdminGroup>getAdminGroups()Return all enabled admin groups.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.List<BasicGroup>getGroupsUsingConfiguration(Configuration configuration)Returns all groups which are associated with the given configurationList<BasicGroup>getGroupsUsingProduct(Product product)Returns all groups which are associated to the given productAdminGroupgetSystemAdmins()Returns the default admins group, that is, either global admins if in global mode, or the current network admins otherwiseBooleanhasUsers(BasicGroup basicGroup)returns true if there are users in the basic groupCollection<BasicGroup>listEntities(BasicGroupQuery params)List group entities that satisfy the given conditions-
Methods inherited from interface org.cyclos.services.CRUDService
getData, getDataForNew, load, remove, removeAll, save
-
Methods inherited from interface org.cyclos.impl.CRUDServiceLocal
find, findAll, getEntityClass, newEntity, remove, removeAll, saveEntity, saveSkippingEntityLog, toDTO, toEntity, validate
-
Methods inherited from interface org.cyclos.services.users.GroupService
changeConfiguration, getActiveConfiguration, getSearchData, search
-
-
-
-
Method Detail
-
canChangeEnabled
boolean canChangeEnabled(Group group)
Returns true if the group enabled attribute can be changed. It can be changed if all the users in the group are removed or the group has no users.
-
canManage
boolean canManage(BasicGroup group)
Returns whether the group can be managed by the logged user
-
canView
boolean canView(BasicGroup group)
Returns whether the group can be viewed by the logged user
-
createNetworkAdmins
AdminGroup createNetworkAdmins(Network network)
Creates the network administrators group for the given network
-
getAdminGroups
List<AdminGroup> getAdminGroups()
Return all enabled admin groups.
-
getBasicUserGroups
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.
-
getGroupsUsingConfiguration
List<BasicGroup> getGroupsUsingConfiguration(Configuration configuration)
Returns all groups which are associated with the given configuration
-
getGroupsUsingProduct
List<BasicGroup> getGroupsUsingProduct(Product product)
Returns all groups which are associated to the given product
-
getSystemAdmins
AdminGroup getSystemAdmins()
Returns the default admins group, that is, either global admins if in global mode, or the current network admins otherwise
-
hasUsers
Boolean hasUsers(BasicGroup basicGroup)
returns true if there are users in the basic group
-
listEntities
Collection<BasicGroup> listEntities(BasicGroupQuery params)
List group entities that satisfy the given conditions
-
-