Class GroupServiceBase

  • All Implemented Interfaces:
    com.soffid.iam.service.GroupService
    Direct Known Subclasses:
    GroupServiceImpl

    public abstract class GroupServiceBase
    extends Object
    implements com.soffid.iam.service.GroupService

    Spring Service base class for com.soffid.iam.service.GroupService, provides access to all services and entities referenced by this service.

    see com.soffid.iam.service.GroupService
    • Constructor Detail

      • GroupServiceBase

        public GroupServiceBase()
    • Method Detail

      • setApplicationService

        public void setApplicationService​(com.soffid.iam.service.ApplicationService aplicacioService)
        Sets reference to aplicacioService.
      • getApplicationService

        public com.soffid.iam.service.ApplicationService getApplicationService()
        Gets reference to aplicacioService.
      • setAsyncRunnerService

        public void setAsyncRunnerService​(com.soffid.iam.service.AsyncRunnerService asyncRunnerService)
        Sets reference to asyncRunnerService.
      • getAsyncRunnerService

        public com.soffid.iam.service.AsyncRunnerService getAsyncRunnerService()
        Gets reference to asyncRunnerService.
      • setAttributeValidationService

        public void setAttributeValidationService​(AttributeValidationService attributeValidationService)
        Sets reference to attributeValidationService.
      • getAttributeValidationService

        public AttributeValidationService getAttributeValidationService()
        Gets reference to attributeValidationService.
      • setAuthorizationService

        public void setAuthorizationService​(com.soffid.iam.service.AuthorizationService autoritzacioService)
        Sets reference to autoritzacioService.
      • getAuthorizationService

        public com.soffid.iam.service.AuthorizationService getAuthorizationService()
        Gets reference to autoritzacioService.
      • setConfigEntityDao

        public void setConfigEntityDao​(ConfigEntityDao configuracioEntityDao)
        Sets reference to configuracioEntityDao.
      • getConfigEntityDao

        public ConfigEntityDao getConfigEntityDao()
        Gets reference to configuracioEntityDao.
      • setGroupAttributeEntityDao

        public void setGroupAttributeEntityDao​(GroupAttributeEntityDao groupAttributeEntityDao)
        Sets reference to groupAttributeEntityDao.
      • getGroupAttributeEntityDao

        public GroupAttributeEntityDao getGroupAttributeEntityDao()
        Gets reference to groupAttributeEntityDao.
      • setGroupEntityDao

        public void setGroupEntityDao​(GroupEntityDao grupEntityDao)
        Sets reference to grupEntityDao.
      • getGroupEntityDao

        public GroupEntityDao getGroupEntityDao()
        Gets reference to grupEntityDao.
      • setHostEntityDao

        public void setHostEntityDao​(HostEntityDao maquinaEntityDao)
        Sets reference to maquinaEntityDao.
      • getHostEntityDao

        public HostEntityDao getHostEntityDao()
        Gets reference to maquinaEntityDao.
      • setRoleAccountEntityDao

        public void setRoleAccountEntityDao​(RoleAccountEntityDao rolAccountEntityDao)
        Sets reference to rolAccountEntityDao.
      • getRoleAccountEntityDao

        public RoleAccountEntityDao getRoleAccountEntityDao()
        Gets reference to rolAccountEntityDao.
      • setRoleEntityDao

        public void setRoleEntityDao​(RoleEntityDao rolEntityDao)
        Sets reference to rolEntityDao.
      • getRoleEntityDao

        public RoleEntityDao getRoleEntityDao()
        Gets reference to rolEntityDao.
      • setRoleGroupEntityDao

        public void setRoleGroupEntityDao​(RoleGroupEntityDao rolsGrupEntityDao)
        Sets reference to rolsGrupEntityDao.
      • getRoleGroupEntityDao

        public RoleGroupEntityDao getRoleGroupEntityDao()
        Gets reference to rolsGrupEntityDao.
      • setRuleEvaluatorService

        public void setRuleEvaluatorService​(RuleEvaluatorService ruleEvaluatorService)
        Sets reference to ruleEvaluatorService.
      • getRuleEvaluatorService

        public RuleEvaluatorService getRuleEvaluatorService()
        Gets reference to ruleEvaluatorService.
      • setTaskEntityDao

        public void setTaskEntityDao​(TaskEntityDao tasqueEntityDao)
        Sets reference to tasqueEntityDao.
      • getTaskEntityDao

        public TaskEntityDao getTaskEntityDao()
        Gets reference to tasqueEntityDao.
      • setMetaDataEntityDao

        public void setMetaDataEntityDao​(MetaDataEntityDao tipusDadaEntityDao)
        Sets reference to tipusDadaEntityDao.
      • getMetaDataEntityDao

        public MetaDataEntityDao getMetaDataEntityDao()
        Gets reference to tipusDadaEntityDao.
      • setUserGroupAttributeEntityDao

        public void setUserGroupAttributeEntityDao​(UserGroupAttributeEntityDao userGroupAttributeEntityDao)
        Sets reference to userGroupAttributeEntityDao.
      • getUserGroupAttributeEntityDao

        public UserGroupAttributeEntityDao getUserGroupAttributeEntityDao()
        Gets reference to userGroupAttributeEntityDao.
      • setUserEntityDao

        public void setUserEntityDao​(UserEntityDao usuariEntityDao)
        Sets reference to usuariEntityDao.
      • getUserEntityDao

        public UserEntityDao getUserEntityDao()
        Gets reference to usuariEntityDao.
      • setUserGroupEntityDao

        public void setUserGroupEntityDao​(UserGroupEntityDao usuariGrupEntityDao)
        Sets reference to usuariGrupEntityDao.
      • getUserGroupEntityDao

        public UserGroupEntityDao getUserGroupEntityDao()
        Gets reference to usuariGrupEntityDao.
      • setUserService

        public void setUserService​(com.soffid.iam.service.UserService usuariService)
        Sets reference to usuariService.
      • getUserService

        public com.soffid.iam.service.UserService getUserService()
        Gets reference to usuariService.
      • findGroupByJsonQueryAsync

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public com.soffid.iam.api.AsyncList<com.soffid.iam.api.Group> findGroupByJsonQueryAsync​(String query)
                                                                                         throws es.caib.seycon.ng.exception.InternalErrorException,
                                                                                                es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        findGroupByJsonQueryAsync in interface com.soffid.iam.service.GroupService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleFindGroupByJsonQueryAsync

        protected abstract com.soffid.iam.api.AsyncList<com.soffid.iam.api.Group> handleFindGroupByJsonQueryAsync​(String query)
                                                                                                           throws Exception
        Throws:
        Exception
      • findGroupByTextAndFilterAsync

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public com.soffid.iam.api.AsyncList<com.soffid.iam.api.Group> findGroupByTextAndFilterAsync​(String text,
                                                                                                    String filter)
                                                                                             throws es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        findGroupByTextAndFilterAsync in interface com.soffid.iam.service.GroupService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleFindGroupByTextAndFilterAsync

        protected abstract com.soffid.iam.api.AsyncList<com.soffid.iam.api.Group> handleFindGroupByTextAndFilterAsync​(String text,
                                                                                                                      String filter)
                                                                                                               throws Exception
        Throws:
        Exception
      • findGroupByTextAsync

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public com.soffid.iam.api.AsyncList<com.soffid.iam.api.Group> findGroupByTextAsync​(String text)
                                                                                    throws es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        findGroupByTextAsync in interface com.soffid.iam.service.GroupService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleFindGroupByTextAsync

        protected abstract com.soffid.iam.api.AsyncList<com.soffid.iam.api.Group> handleFindGroupByTextAsync​(String text)
                                                                                                      throws Exception
        Throws:
        Exception
      • findGroupHistoryByTextAndFilterAsync

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public com.soffid.iam.api.AsyncList<com.soffid.iam.api.Group> findGroupHistoryByTextAndFilterAsync​(String text,
                                                                                                           String filter,
                                                                                                           Date date)
                                                                                                    throws es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        findGroupHistoryByTextAndFilterAsync in interface com.soffid.iam.service.GroupService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleFindGroupHistoryByTextAndFilterAsync

        protected abstract com.soffid.iam.api.AsyncList<com.soffid.iam.api.Group> handleFindGroupHistoryByTextAndFilterAsync​(String text,
                                                                                                                             String filter,
                                                                                                                             Date date)
                                                                                                                      throws Exception
        Throws:
        Exception
      • findUsersBelongtoGroupByGroupNameAsync

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public com.soffid.iam.api.AsyncList<com.soffid.iam.api.GroupUser> findUsersBelongtoGroupByGroupNameAsync​(String codiGrup)
                                                                                                          throws es.caib.seycon.ng.exception.InternalErrorException,
                                                                                                                 es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        findUsersBelongtoGroupByGroupNameAsync in interface com.soffid.iam.service.GroupService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleFindUsersBelongtoGroupByGroupNameAsync

        protected abstract com.soffid.iam.api.AsyncList<com.soffid.iam.api.GroupUser> handleFindUsersBelongtoGroupByGroupNameAsync​(String codiGrup)
                                                                                                                            throws Exception
        Throws:
        Exception
      • findGroupByJsonQuery

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public com.soffid.iam.api.PagedResult<com.soffid.iam.api.Group> findGroupByJsonQuery​(String query,
                                                                                             Integer startIndex,
                                                                                             Integer count)
                                                                                      throws es.caib.seycon.ng.exception.InternalErrorException,
                                                                                             es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        findGroupByJsonQuery in interface com.soffid.iam.service.GroupService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleFindGroupByJsonQuery

        protected abstract com.soffid.iam.api.PagedResult<com.soffid.iam.api.Group> handleFindGroupByJsonQuery​(String query,
                                                                                                               Integer startIndex,
                                                                                                               Integer count)
                                                                                                        throws Exception
        Throws:
        Exception
      • findGroupByTextAndFilter

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public com.soffid.iam.api.PagedResult<com.soffid.iam.api.Group> findGroupByTextAndFilter​(String text,
                                                                                                 String filter,
                                                                                                 Integer first,
                                                                                                 Integer pageSize)
                                                                                          throws es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        findGroupByTextAndFilter in interface com.soffid.iam.service.GroupService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleFindGroupByTextAndFilter

        protected abstract com.soffid.iam.api.PagedResult<com.soffid.iam.api.Group> handleFindGroupByTextAndFilter​(String text,
                                                                                                                   String filter,
                                                                                                                   Integer first,
                                                                                                                   Integer pageSize)
                                                                                                            throws Exception
        Throws:
        Exception
      • findGroupUserByJsonQuery

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public com.soffid.iam.api.PagedResult<com.soffid.iam.api.GroupUser> findGroupUserByJsonQuery​(String query,
                                                                                                     Integer startIndex,
                                                                                                     Integer count)
                                                                                              throws es.caib.seycon.ng.exception.InternalErrorException,
                                                                                                     es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        findGroupUserByJsonQuery in interface com.soffid.iam.service.GroupService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleFindGroupUserByJsonQuery

        protected abstract com.soffid.iam.api.PagedResult<com.soffid.iam.api.GroupUser> handleFindGroupUserByJsonQuery​(String query,
                                                                                                                       Integer startIndex,
                                                                                                                       Integer count)
                                                                                                                throws Exception
        Throws:
        Exception
      • create

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public com.soffid.iam.api.Group create​(com.soffid.iam.api.Group grup)
                                        throws es.caib.seycon.ng.exception.InternalErrorException,
                                               es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        create in interface com.soffid.iam.service.GroupService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleCreate

        protected abstract com.soffid.iam.api.Group handleCreate​(com.soffid.iam.api.Group grup)
                                                          throws Exception
        Throws:
        Exception
      • createHistoric

        @Transactional(rollbackFor=java.lang.Exception.class)
        public com.soffid.iam.api.Group createHistoric​(com.soffid.iam.api.Group grup)
                                                throws es.caib.seycon.ng.exception.InternalErrorException,
                                                       es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        createHistoric in interface com.soffid.iam.service.GroupService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleCreateHistoric

        protected abstract com.soffid.iam.api.Group handleCreateHistoric​(com.soffid.iam.api.Group grup)
                                                                  throws Exception
        Throws:
        Exception
      • findGroupByGroupNameAndDate

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public com.soffid.iam.api.Group findGroupByGroupNameAndDate​(String codi,
                                                                    Date date)
                                                             throws es.caib.seycon.ng.exception.InternalErrorException,
                                                                    es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        findGroupByGroupNameAndDate in interface com.soffid.iam.service.GroupService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleFindGroupByGroupNameAndDate

        protected abstract com.soffid.iam.api.Group handleFindGroupByGroupNameAndDate​(String codi,
                                                                                      Date date)
                                                                               throws Exception
        Throws:
        Exception
      • findGroupByGroupName

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public com.soffid.iam.api.Group findGroupByGroupName​(String codi)
                                                      throws es.caib.seycon.ng.exception.InternalErrorException,
                                                             es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        findGroupByGroupName in interface com.soffid.iam.service.GroupService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleFindGroupByGroupName

        protected abstract com.soffid.iam.api.Group handleFindGroupByGroupName​(String codi)
                                                                        throws Exception
        Throws:
        Exception
      • findGroupById

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public com.soffid.iam.api.Group findGroupById​(Long grupId)
                                               throws es.caib.seycon.ng.exception.InternalErrorException,
                                                      es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        findGroupById in interface com.soffid.iam.service.GroupService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleFindGroupById

        protected abstract com.soffid.iam.api.Group handleFindGroupById​(Long grupId)
                                                                 throws Exception
        Throws:
        Exception
      • findPrimaryGroupByUserName

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public com.soffid.iam.api.Group findPrimaryGroupByUserName​(String codiUsuari)
                                                            throws es.caib.seycon.ng.exception.InternalErrorException,
                                                                   es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        findPrimaryGroupByUserName in interface com.soffid.iam.service.GroupService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleFindPrimaryGroupByUserName

        protected abstract com.soffid.iam.api.Group handleFindPrimaryGroupByUserName​(String codiUsuari)
                                                                              throws Exception
        Throws:
        Exception
      • getSuperGroup

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public com.soffid.iam.api.Group getSuperGroup​(String codiGrup)
                                               throws es.caib.seycon.ng.exception.InternalErrorException,
                                                      es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        getSuperGroup in interface com.soffid.iam.service.GroupService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleGetSuperGroup

        protected abstract com.soffid.iam.api.Group handleGetSuperGroup​(String codiGrup)
                                                                 throws Exception
        Throws:
        Exception
      • update

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public com.soffid.iam.api.Group update​(com.soffid.iam.api.Group grup)
                                        throws es.caib.seycon.ng.exception.InternalErrorException,
                                               es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        update in interface com.soffid.iam.service.GroupService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleUpdate

        protected abstract com.soffid.iam.api.Group handleUpdate​(com.soffid.iam.api.Group grup)
                                                          throws Exception
        Throws:
        Exception
      • getOfficeServer

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public com.soffid.iam.api.Host getOfficeServer​(com.soffid.iam.api.Group grup)
                                                throws es.caib.seycon.ng.exception.InternalErrorException,
                                                       es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        getOfficeServer in interface com.soffid.iam.service.GroupService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleGetOfficeServer

        protected abstract com.soffid.iam.api.Host handleGetOfficeServer​(com.soffid.iam.api.Group grup)
                                                                  throws Exception
        Throws:
        Exception
      • create

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public com.soffid.iam.api.GroupUser create​(com.soffid.iam.api.GroupUser usuariGrup)
                                            throws es.caib.seycon.ng.exception.InternalErrorException,
                                                   es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        create in interface com.soffid.iam.service.GroupService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleCreate

        protected abstract com.soffid.iam.api.GroupUser handleCreate​(com.soffid.iam.api.GroupUser usuariGrup)
                                                              throws Exception
        Throws:
        Exception
      • findUserGroupByUserNameAndGroupName

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public com.soffid.iam.api.GroupUser findUserGroupByUserNameAndGroupName​(String codiUsuari,
                                                                                String codiGrup)
                                                                         throws es.caib.seycon.ng.exception.InternalErrorException,
                                                                                es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        findUserGroupByUserNameAndGroupName in interface com.soffid.iam.service.GroupService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleFindUserGroupByUserNameAndGroupName

        protected abstract com.soffid.iam.api.GroupUser handleFindUserGroupByUserNameAndGroupName​(String codiUsuari,
                                                                                                  String codiGrup)
                                                                                           throws Exception
        Throws:
        Exception
      • update

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public com.soffid.iam.api.GroupUser update​(com.soffid.iam.api.GroupUser usuariGrup)
                                            throws es.caib.seycon.ng.exception.InternalErrorException,
                                                   es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        update in interface com.soffid.iam.service.GroupService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleUpdate

        protected abstract com.soffid.iam.api.GroupUser handleUpdate​(com.soffid.iam.api.GroupUser usuariGrup)
                                                              throws Exception
        Throws:
        Exception
      • findGroupNames

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       readOnly=true)
        public Collection<String> findGroupNames()
                                          throws es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        findGroupNames in interface com.soffid.iam.service.GroupService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • findGroupsByUserName

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public Collection<com.soffid.iam.api.Group> findGroupsByUserName​(String codiUsuari)
                                                                  throws es.caib.seycon.ng.exception.InternalErrorException,
                                                                         es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        findGroupsByUserName in interface com.soffid.iam.service.GroupService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleFindGroupsByUserName

        protected abstract Collection<com.soffid.iam.api.Group> handleFindGroupsByUserName​(String codiUsuari)
                                                                                    throws Exception
        Throws:
        Exception
      • findGroupsByFilter

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public Collection<com.soffid.iam.api.Group> findGroupsByFilter​(String codi,
                                                                       String pare,
                                                                       String unitatOfimatica,
                                                                       String descripcio,
                                                                       String tipus,
                                                                       String obsolet)
                                                                throws es.caib.seycon.ng.exception.InternalErrorException,
                                                                       es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        findGroupsByFilter in interface com.soffid.iam.service.GroupService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • findGroupsByFilter

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public Collection<com.soffid.iam.api.Group> findGroupsByFilter​(String codi,
                                                                       String pare,
                                                                       String unitatOfimatica,
                                                                       String descripcio,
                                                                       String tipus,
                                                                       String obsolet,
                                                                       String servidorOfimatic,
                                                                       String seccioPressupostaria)
                                                                throws es.caib.seycon.ng.exception.InternalErrorException,
                                                                       es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        findGroupsByFilter in interface com.soffid.iam.service.GroupService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • findGroupsByGroupsType

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public Collection<com.soffid.iam.api.Group> findGroupsByGroupsType​(String tipus)
                                                                    throws es.caib.seycon.ng.exception.InternalErrorException,
                                                                           es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        findGroupsByGroupsType in interface com.soffid.iam.service.GroupService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleFindGroupsByGroupsType

        protected abstract Collection<com.soffid.iam.api.Group> handleFindGroupsByGroupsType​(String tipus)
                                                                                      throws Exception
        Throws:
        Exception
      • findGroupsFromRolesByUserName

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public Collection<com.soffid.iam.api.Group> findGroupsFromRolesByUserName​(String codiUsuari)
                                                                           throws es.caib.seycon.ng.exception.InternalErrorException,
                                                                                  es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        findGroupsFromRolesByUserName in interface com.soffid.iam.service.GroupService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleFindGroupsFromRolesByUserName

        protected abstract Collection<com.soffid.iam.api.Group> handleFindGroupsFromRolesByUserName​(String codiUsuari)
                                                                                             throws Exception
        Throws:
        Exception
      • findGroupsFromUsersByUserName

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public Collection<com.soffid.iam.api.Group> findGroupsFromUsersByUserName​(String codiUsuari)
                                                                           throws es.caib.seycon.ng.exception.InternalErrorException,
                                                                                  es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        findGroupsFromUsersByUserName in interface com.soffid.iam.service.GroupService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleFindGroupsFromUsersByUserName

        protected abstract Collection<com.soffid.iam.api.Group> handleFindGroupsFromUsersByUserName​(String codiUsuari)
                                                                                             throws Exception
        Throws:
        Exception
      • findUsersRolesWithGroupByUserName

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public Collection<com.soffid.iam.api.RoleAccount> findUsersRolesWithGroupByUserName​(String codiUsuari)
                                                                                     throws es.caib.seycon.ng.exception.InternalErrorException,
                                                                                            es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        findUsersRolesWithGroupByUserName in interface com.soffid.iam.service.GroupService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleFindUsersRolesWithGroupByUserName

        protected abstract Collection<com.soffid.iam.api.RoleAccount> handleFindUsersRolesWithGroupByUserName​(String codiUsuari)
                                                                                                       throws Exception
        Throws:
        Exception
      • findUsersRolesDomainTypeAndUserGroups

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public Collection<com.soffid.iam.api.RoleAccount> findUsersRolesDomainTypeAndUserGroups​(String codiGrup)
                                                                                         throws es.caib.seycon.ng.exception.InternalErrorException,
                                                                                                es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        findUsersRolesDomainTypeAndUserGroups in interface com.soffid.iam.service.GroupService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleFindUsersRolesDomainTypeAndUserGroups

        protected abstract Collection<com.soffid.iam.api.RoleAccount> handleFindUsersRolesDomainTypeAndUserGroups​(String codiGrup)
                                                                                                           throws Exception
        Throws:
        Exception
      • findSubgroupsByGroupName

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public Collection<com.soffid.iam.api.Group> findSubgroupsByGroupName​(String codi)
                                                                      throws es.caib.seycon.ng.exception.InternalErrorException,
                                                                             es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        findSubgroupsByGroupName in interface com.soffid.iam.service.GroupService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleFindSubgroupsByGroupName

        protected abstract Collection<com.soffid.iam.api.Group> handleFindSubgroupsByGroupName​(String codi)
                                                                                        throws Exception
        Throws:
        Exception
      • findSubgroupsByGroupNameAndDate

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public Collection<com.soffid.iam.api.Group> findSubgroupsByGroupNameAndDate​(String codi,
                                                                                    Date date)
                                                                             throws es.caib.seycon.ng.exception.InternalErrorException,
                                                                                    es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        findSubgroupsByGroupNameAndDate in interface com.soffid.iam.service.GroupService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleFindSubgroupsByGroupNameAndDate

        protected abstract Collection<com.soffid.iam.api.Group> handleFindSubgroupsByGroupNameAndDate​(String codi,
                                                                                                      Date date)
                                                                                               throws Exception
        Throws:
        Exception
      • findUserGroupHistoryByUserName

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public Collection<com.soffid.iam.api.GroupUser> findUserGroupHistoryByUserName​(String userName)
                                                                                throws es.caib.seycon.ng.exception.InternalErrorException,
                                                                                       es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        findUserGroupHistoryByUserName in interface com.soffid.iam.service.GroupService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleFindUserGroupHistoryByUserName

        protected abstract Collection<com.soffid.iam.api.GroupUser> handleFindUserGroupHistoryByUserName​(String userName)
                                                                                                  throws Exception
        Throws:
        Exception
      • findUsersGroupByUserName

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public Collection<com.soffid.iam.api.GroupUser> findUsersGroupByUserName​(String codiUsuari)
                                                                          throws es.caib.seycon.ng.exception.InternalErrorException,
                                                                                 es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        findUsersGroupByUserName in interface com.soffid.iam.service.GroupService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleFindUsersGroupByUserName

        protected abstract Collection<com.soffid.iam.api.GroupUser> handleFindUsersGroupByUserName​(String codiUsuari)
                                                                                            throws Exception
        Throws:
        Exception
      • findUsersBelongtoGroupByGroupName

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public Collection<com.soffid.iam.api.GroupUser> findUsersBelongtoGroupByGroupName​(String codiGrup)
                                                                                   throws es.caib.seycon.ng.exception.InternalErrorException,
                                                                                          es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        findUsersBelongtoGroupByGroupName in interface com.soffid.iam.service.GroupService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleFindUsersBelongtoGroupByGroupName

        protected abstract Collection<com.soffid.iam.api.GroupUser> handleFindUsersBelongtoGroupByGroupName​(String codiGrup)
                                                                                                     throws Exception
        Throws:
        Exception
      • findUsersBelongtoGroupByGroupName

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public Collection<com.soffid.iam.api.GroupUser> findUsersBelongtoGroupByGroupName​(String codiGrup,
                                                                                          Date date)
                                                                                   throws es.caib.seycon.ng.exception.InternalErrorException,
                                                                                          es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        findUsersBelongtoGroupByGroupName in interface com.soffid.iam.service.GroupService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleFindUsersBelongtoGroupByGroupName

        protected abstract Collection<com.soffid.iam.api.GroupUser> handleFindUsersBelongtoGroupByGroupName​(String codiGrup,
                                                                                                            Date date)
                                                                                                     throws Exception
        Throws:
        Exception
      • getConselleriesAmbDireccionsGenerals

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public Collection<com.soffid.iam.api.Group> getConselleriesAmbDireccionsGenerals()
                                                                                  throws es.caib.seycon.ng.exception.InternalErrorException,
                                                                                         es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        getConselleriesAmbDireccionsGenerals in interface com.soffid.iam.service.GroupService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleGetConselleriesAmbDireccionsGenerals

        protected abstract Collection<com.soffid.iam.api.Group> handleGetConselleriesAmbDireccionsGenerals()
                                                                                                    throws Exception
        Throws:
        Exception
      • getGroups

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public Collection<com.soffid.iam.api.Group> getGroups()
                                                       throws es.caib.seycon.ng.exception.InternalErrorException,
                                                              es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        getGroups in interface com.soffid.iam.service.GroupService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • getParentList

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public Collection<com.soffid.iam.api.Group> getParentList​(String codiGrup)
                                                           throws es.caib.seycon.ng.exception.InternalErrorException,
                                                                  es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        getParentList in interface com.soffid.iam.service.GroupService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • getRolesFromGroup

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public Collection<com.soffid.iam.api.Role> getRolesFromGroup​(com.soffid.iam.api.Group grup)
                                                              throws es.caib.seycon.ng.exception.InternalErrorException,
                                                                     es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        getRolesFromGroup in interface com.soffid.iam.service.GroupService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleGetRolesFromGroup

        protected abstract Collection<com.soffid.iam.api.Role> handleGetRolesFromGroup​(com.soffid.iam.api.Group grup)
                                                                                throws Exception
        Throws:
        Exception
      • getRolesFromGroup

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public Collection<com.soffid.iam.api.GroupRoles> getRolesFromGroup​(String codiGrup)
                                                                    throws es.caib.seycon.ng.exception.InternalErrorException,
                                                                           es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        getRolesFromGroup in interface com.soffid.iam.service.GroupService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • getRolesFromGroupAndParentGroup

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public Collection<com.soffid.iam.api.GroupRoles> getRolesFromGroupAndParentGroup​(com.soffid.iam.api.Group grup)
                                                                                  throws es.caib.seycon.ng.exception.InternalErrorException,
                                                                                         es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        getRolesFromGroupAndParentGroup in interface com.soffid.iam.service.GroupService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleGetRolesFromGroupAndParentGroup

        protected abstract Collection<com.soffid.iam.api.GroupRoles> handleGetRolesFromGroupAndParentGroup​(com.soffid.iam.api.Group grup)
                                                                                                    throws Exception
        Throws:
        Exception
      • findGroupByJsonQuery

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public List<com.soffid.iam.api.Group> findGroupByJsonQuery​(String query)
                                                            throws es.caib.seycon.ng.exception.InternalErrorException,
                                                                   es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        findGroupByJsonQuery in interface com.soffid.iam.service.GroupService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleFindGroupByJsonQuery

        protected abstract List<com.soffid.iam.api.Group> handleFindGroupByJsonQuery​(String query)
                                                                              throws Exception
        Throws:
        Exception
      • findGroupByText

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public List<com.soffid.iam.api.Group> findGroupByText​(String text)
                                                       throws es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        findGroupByText in interface com.soffid.iam.service.GroupService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleFindGroupByText

        protected abstract List<com.soffid.iam.api.Group> handleFindGroupByText​(String text)
                                                                         throws Exception
        Throws:
        Exception
      • findGroupByTextAndFilter

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public List<com.soffid.iam.api.Group> findGroupByTextAndFilter​(String text,
                                                                       String filter)
                                                                throws es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        findGroupByTextAndFilter in interface com.soffid.iam.service.GroupService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleFindGroupByTextAndFilter

        protected abstract List<com.soffid.iam.api.Group> handleFindGroupByTextAndFilter​(String text,
                                                                                         String filter)
                                                                                  throws Exception
        Throws:
        Exception
      • addGroupToUser

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public void addGroupToUser​(String codiUsuari,
                                   String codiGrup)
                            throws es.caib.seycon.ng.exception.InternalErrorException,
                                   es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        addGroupToUser in interface com.soffid.iam.service.GroupService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • delete

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public void delete​(com.soffid.iam.api.Group grup)
                    throws es.caib.seycon.ng.exception.InternalErrorException,
                           es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        delete in interface com.soffid.iam.service.GroupService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleDelete

        protected abstract void handleDelete​(com.soffid.iam.api.Group grup)
                                      throws Exception
        Throws:
        Exception
      • delete

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public void delete​(com.soffid.iam.api.GroupUser usuariGrup)
                    throws es.caib.seycon.ng.exception.InternalErrorException,
                           es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        delete in interface com.soffid.iam.service.GroupService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleDelete

        protected abstract void handleDelete​(com.soffid.iam.api.GroupUser usuariGrup)
                                      throws Exception
        Throws:
        Exception
      • propagateRolsChangesToDispatcher

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public void propagateRolsChangesToDispatcher​(String codiGrup)
                                              throws es.caib.seycon.ng.exception.InternalErrorException,
                                                     es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        propagateRolsChangesToDispatcher in interface com.soffid.iam.service.GroupService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handlePropagateRolsChangesToDispatcher

        protected abstract void handlePropagateRolsChangesToDispatcher​(String codiGrup)
                                                                throws Exception
        Throws:
        Exception
      • removeGroupFormUser

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public void removeGroupFormUser​(String codiUsuari,
                                        String codiGrup)
                                 throws es.caib.seycon.ng.exception.InternalErrorException,
                                        es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        removeGroupFormUser in interface com.soffid.iam.service.GroupService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleRemoveGroupFormUser

        protected abstract void handleRemoveGroupFormUser​(String codiUsuari,
                                                          String codiGrup)
                                                   throws Exception
        Throws:
        Exception
      • setSuperGroup

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public void setSuperGroup​(String codiSubGrup,
                                  String codiSuperGrup)
                           throws es.caib.seycon.ng.exception.InternalErrorException,
                                  es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        setSuperGroup in interface com.soffid.iam.service.GroupService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • getPrincipal

        protected Principal getPrincipal()
        Gets the current principal if one has been set, otherwise returns null.
        Returns:
        the current principal