Class UserGroupService<E extends UserGroup,​D extends UserGroupDao<E>>

    • Constructor Detail

      • UserGroupService

        public UserGroupService()
        Default constructor, which calls the type-constructor
      • UserGroupService

        protected UserGroupService​(Class<E> entityClass)
        Constructor that sets the concrete entity class for the service. Subclasses MUST call this constructor.
    • Method Detail

      • setDao

        @Autowired
        @Qualifier("userGroupDao")
        public void setDao​(D dao)
        We have to use Qualifier to define the correct dao here. Otherwise, spring can not decide which dao has to be autowired here as there are multiple candidates.
        Overrides:
        setDao in class PermissionAwareCrudService<E extends UserGroup,​D extends UserGroupDao<E>>
        Parameters:
        dao - the dao to set
      • getUsersOfGroup

        @PostFilter("hasRole(@configHolder.getSuperAdminRoleName()) or hasPermission(filterObject, \'READ\')")
        @Transactional(readOnly=true)
        public Set<User> getUsersOfGroup​(Integer groupId)
                                  throws Exception
        Parameters:
        groupId -
        Returns:
        Throws:
        Exception