Class GroupServiceBean

  • All Implemented Interfaces:
    com.soffid.iam.service.ejb.GroupService, Serializable, javax.ejb.EnterpriseBean, javax.ejb.SessionBean, org.springframework.ejb.support.SmartSessionBean

    public class GroupServiceBean
    extends org.springframework.ejb.support.AbstractStatelessSessionBean
    implements com.soffid.iam.service.ejb.GroupService
    See Also:
    com.soffid.iam.service.GroupService,, es.caib.seycon.ng.servei.GrupService,, Serialized Form
    • Constructor Detail

      • GroupServiceBean

        public GroupServiceBean()
    • Method Detail

      • findGroupByJsonQueryAsync

        @PermitAll
        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.ejb.GroupService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • findGroupByTextAndFilterAsync

        @PermitAll
        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.ejb.GroupService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • findGroupByTextAsync

        @PermitAll
        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.ejb.GroupService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • findGroupHistoryByTextAndFilterAsync

        @PermitAll
        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.ejb.GroupService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • findUsersBelongtoGroupByGroupNameAsync

        @PermitAll
        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.ejb.GroupService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • findGroupByJsonQuery

        @PermitAll
        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.ejb.GroupService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • findGroupByTextAndFilter

        @PermitAll
        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.ejb.GroupService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • findGroupUserByJsonQuery

        @PermitAll
        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.ejb.GroupService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • create

        @PermitAll
        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.ejb.GroupService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • findGroupByGroupNameAndDate

        @PermitAll
        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.ejb.GroupService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • findGroupByGroupName

        @PermitAll
        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.ejb.GroupService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • findGroupById

        @PermitAll
        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.ejb.GroupService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • getSuperGroup

        @PermitAll
        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.ejb.GroupService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • update

        @PermitAll
        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.ejb.GroupService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • create

        @PermitAll
        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.ejb.GroupService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • update

        @PermitAll
        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.ejb.GroupService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • findGroupsByFilter

        @PermitAll
        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.ejb.GroupService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • findUsersRolesDomainTypeAndUserGroups

        @PermitAll
        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.ejb.GroupService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • findSubgroupsByGroupName

        @PermitAll
        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.ejb.GroupService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • findSubgroupsByGroupNameAndDate

        @PermitAll
        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.ejb.GroupService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • findUserGroupHistoryByUserName

        @PermitAll
        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.ejb.GroupService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • findUsersGroupByUserName

        @PermitAll
        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.ejb.GroupService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • findUsersBelongtoGroupByGroupName

        @PermitAll
        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.ejb.GroupService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • findUsersBelongtoGroupByGroupName

        @PermitAll
        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.ejb.GroupService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • getConselleriesAmbDireccionsGenerals

        @PermitAll
        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.ejb.GroupService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • getParentList

        @PermitAll
        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.ejb.GroupService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • getRolesFromGroup

        @PermitAll
        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.ejb.GroupService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • getRolesFromGroupAndParentGroup

        @PermitAll
        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.ejb.GroupService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • findGroupByJsonQuery

        @PermitAll
        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.ejb.GroupService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • findGroupByText

        @PermitAll
        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.ejb.GroupService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • findGroupByTextAndFilter

        @PermitAll
        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.ejb.GroupService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • addGroupToUser

        @PermitAll
        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.ejb.GroupService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • delete

        @PermitAll
        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.ejb.GroupService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • delete

        @PermitAll
        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.ejb.GroupService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • removeGroupFormUser

        @PermitAll
        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.ejb.GroupService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • ejbCreate

        @PostConstruct
        public void ejbCreate()
                       throws javax.ejb.CreateException
        Initizlizes been
        Overrides:
        ejbCreate in class org.springframework.ejb.support.AbstractStatelessSessionBean
        Throws:
        javax.ejb.CreateException
        See Also:
        AbstractStatelessSessionBean.onEjbCreate()
      • onEjbCreate

        protected void onEjbCreate()
        Specified by:
        onEjbCreate in class org.springframework.ejb.support.AbstractStatelessSessionBean
      • setSessionContext

        public void setSessionContext​(javax.ejb.SessionContext sessionContext)
        Override default BeanFactoryLocator implementation to provide singleton loading of the application context Bean factory.
        Specified by:
        setSessionContext in interface javax.ejb.SessionBean
        See Also:
        SessionBean.setSessionContext(javax.ejb.SessionContext)
      • getSessionContext

        public final javax.ejb.SessionContext getSessionContext()
        Specified by:
        getSessionContext in interface org.springframework.ejb.support.SmartSessionBean
      • setBeanFactoryLocator

        public void setBeanFactoryLocator​(org.springframework.beans.factory.access.BeanFactoryLocator arg0)
      • setBeanFactoryLocatorKey

        public void setBeanFactoryLocatorKey​(String arg0)
      • getBeanFactory

        protected org.springframework.beans.factory.BeanFactory getBeanFactory()
      • ejbRemove

        public void ejbRemove()
      • onEjbRemove

        protected void onEjbRemove()