Package org.cyclos.impl.users
Interface GroupServiceLocal
-
- All Superinterfaces:
CRUDService<BasicGroupDTO,BasicGroupData,BasicGroupNature>,CRUDServiceLocal<BasicGroup,BasicGroupDTO,BasicGroupData,BasicGroupNature>,GroupService,Service
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 AdminGroupcreateNetworkAdmins(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 otherwisebooleanhasNonRemovedUsers(Group group)Indicates whether there's at least one non-removed/purged userBooleanhasUsers(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
-
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
-
hasNonRemovedUsers
boolean hasNonRemovedUsers(Group group)
Indicates whether there's at least one non-removed/purged user
-
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
-
-