Class EntryPointServiceBean

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

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

      • EntryPointServiceBean

        public EntryPointServiceBean()
    • Method Detail

      • canAdmin

        @PermitAll
        public boolean canAdmin​(com.soffid.iam.api.AccessTree puntEntrada)
                         throws es.caib.seycon.ng.exception.InternalErrorException,
                                es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        canAdmin in interface com.soffid.iam.service.ejb.EntryPointService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • canExecute

        @PermitAll
        public boolean canExecute​(com.soffid.iam.api.AccessTree puntEntrada)
                           throws es.caib.seycon.ng.exception.InternalErrorException,
                                  es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        canExecute in interface com.soffid.iam.service.ejb.EntryPointService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • canQuery

        @PermitAll
        public boolean canQuery​(com.soffid.iam.api.AccessTree puntEntrada)
                         throws es.caib.seycon.ng.exception.InternalErrorException,
                                es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        canQuery in interface com.soffid.iam.service.ejb.EntryPointService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • canView

        @PermitAll
        public boolean canView​(com.soffid.iam.api.AccessTree puntEntrada)
                        throws es.caib.seycon.ng.exception.InternalErrorException,
                               es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        canView in interface com.soffid.iam.service.ejb.EntryPointService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • copyApplicationAccessLink

        @PermitAll
        public boolean copyApplicationAccessLink​(com.soffid.iam.api.AccessTree puntEntradaCopiar,
                                                 com.soffid.iam.api.AccessTree puntEntradaMenuDesti)
                                          throws es.caib.seycon.ng.exception.InternalErrorException,
                                                 es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        copyApplicationAccessLink in interface com.soffid.iam.service.ejb.EntryPointService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • copyApplicationAccess

        @PermitAll
        public boolean copyApplicationAccess​(com.soffid.iam.api.AccessTree puntEntradaCopiar,
                                             com.soffid.iam.api.AccessTree puntEntradaMenuDesti)
                                      throws es.caib.seycon.ng.exception.InternalErrorException,
                                             es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        copyApplicationAccess in interface com.soffid.iam.service.ejb.EntryPointService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • isAuthorized

        @PermitAll
        public boolean isAuthorized​(com.soffid.iam.api.AccessTree puntEntrada,
                                    String nivell)
                             throws es.caib.seycon.ng.exception.InternalErrorException,
                                    es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        isAuthorized in interface com.soffid.iam.service.ejb.EntryPointService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • isAuthorized

        @PermitAll
        public boolean isAuthorized​(String codiUsuari,
                                    Long idPuntEntrada,
                                    String nivell)
                             throws es.caib.seycon.ng.exception.InternalErrorException,
                                    es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        isAuthorized in interface com.soffid.iam.service.ejb.EntryPointService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • applicationAccessTreeHasAnyACL

        @PermitAll
        public boolean applicationAccessTreeHasAnyACL​(String codiUsuari)
                                               throws es.caib.seycon.ng.exception.InternalErrorException,
                                                      es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        applicationAccessTreeHasAnyACL in interface com.soffid.iam.service.ejb.EntryPointService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • moveApplicationAccessTreeMenu

        @PermitAll
        public boolean moveApplicationAccessTreeMenu​(com.soffid.iam.api.AccessTree puntEntradaMoure,
                                                     com.soffid.iam.api.AccessTree puntEntradaMenuDesti)
                                              throws es.caib.seycon.ng.exception.InternalErrorException,
                                                     es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        moveApplicationAccessTreeMenu in interface com.soffid.iam.service.ejb.EntryPointService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • reorderApplicationAccess

        @PermitAll
        public boolean reorderApplicationAccess​(com.soffid.iam.api.AccessTree puntEntradaOrdenar,
                                                com.soffid.iam.api.AccessTree puntEntradaSeguent)
                                         throws es.caib.seycon.ng.exception.InternalErrorException,
                                                es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        reorderApplicationAccess in interface com.soffid.iam.service.ejb.EntryPointService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • findAccessTreeByTextAndJsonQueryAsync

        @PermitAll
        public com.soffid.iam.api.AsyncList<com.soffid.iam.api.AccessTree> findAccessTreeByTextAndJsonQueryAsync​(String text,
                                                                                                                 String jsonQuery)
                                                                                                          throws es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        findAccessTreeByTextAndJsonQueryAsync in interface com.soffid.iam.service.ejb.EntryPointService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • createAuthorization

        @PermitAll
        public com.soffid.iam.api.AccessTreeAuthorization createAuthorization​(com.soffid.iam.api.AccessTree puntEntrada,
                                                                              com.soffid.iam.api.AccessTreeAuthorization autoritzacio)
                                                                       throws es.caib.seycon.ng.exception.InternalErrorException,
                                                                              es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        createAuthorization in interface com.soffid.iam.service.ejb.EntryPointService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • createExecution

        @PermitAll
        public com.soffid.iam.api.AccessTreeExecution createExecution​(com.soffid.iam.api.AccessTree puntEntrada,
                                                                      com.soffid.iam.api.AccessTreeExecution execucio)
                                                               throws es.caib.seycon.ng.exception.InternalErrorException,
                                                                      es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        createExecution in interface com.soffid.iam.service.ejb.EntryPointService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • updateExecution

        @PermitAll
        public com.soffid.iam.api.AccessTreeExecution updateExecution​(com.soffid.iam.api.AccessTree puntEntrada,
                                                                      com.soffid.iam.api.AccessTreeExecution execucio)
                                                               throws es.caib.seycon.ng.exception.InternalErrorException,
                                                                      es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        updateExecution in interface com.soffid.iam.service.ejb.EntryPointService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • create

        @PermitAll
        public com.soffid.iam.api.AccessTree create​(com.soffid.iam.api.AccessTree puntEntrada)
                                             throws es.caib.seycon.ng.exception.InternalErrorException,
                                                    es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        create in interface com.soffid.iam.service.ejb.EntryPointService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • findApplicationAccessById

        @PermitAll
        public com.soffid.iam.api.AccessTree findApplicationAccessById​(long id)
                                                                throws es.caib.seycon.ng.exception.InternalErrorException,
                                                                       es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        findApplicationAccessById in interface com.soffid.iam.service.ejb.EntryPointService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • findRoot

        @PermitAll
        public com.soffid.iam.api.AccessTree findRoot()
                                               throws es.caib.seycon.ng.exception.InternalErrorException,
                                                      es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        findRoot in interface com.soffid.iam.service.ejb.EntryPointService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • update

        @PermitAll
        public com.soffid.iam.api.AccessTree update​(com.soffid.iam.api.AccessTree puntEntrada)
                                             throws es.caib.seycon.ng.exception.InternalErrorException,
                                                    es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        update in interface com.soffid.iam.service.ejb.EntryPointService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • getScopeForAddress

        @PermitAll
        public String getScopeForAddress​(String address)
                                  throws es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        getScopeForAddress in interface com.soffid.iam.service.ejb.EntryPointService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • validateXMLApplicationAccess

        @PermitAll
        public String validateXMLApplicationAccess​(com.soffid.iam.api.AccessTree puntEntrada)
                                            throws es.caib.seycon.ng.exception.InternalErrorException,
                                                   es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        validateXMLApplicationAccess in interface com.soffid.iam.service.ejb.EntryPointService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • findChildren

        @PermitAll
        public Collection<com.soffid.iam.api.AccessTree> findChildren​(com.soffid.iam.api.AccessTree puntEntrada)
                                                               throws es.caib.seycon.ng.exception.InternalErrorException,
                                                                      es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        findChildren in interface com.soffid.iam.service.ejb.EntryPointService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • findMenuChildren

        @PermitAll
        public Collection<com.soffid.iam.api.AccessTree> findMenuChildren​(com.soffid.iam.api.AccessTree puntEntrada)
                                                                   throws es.caib.seycon.ng.exception.InternalErrorException,
                                                                          es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        findMenuChildren in interface com.soffid.iam.service.ejb.EntryPointService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • findApplicationAccessByFilter

        @PermitAll
        public Collection<com.soffid.iam.api.AccessTree> findApplicationAccessByFilter​(String nomPUE,
                                                                                       String codiPUE,
                                                                                       String codiAplicacio,
                                                                                       String codiRol,
                                                                                       String codiGrup,
                                                                                       String codiUsuari)
                                                                                throws es.caib.seycon.ng.exception.InternalErrorException,
                                                                                       es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        findApplicationAccessByFilter in interface com.soffid.iam.service.ejb.EntryPointService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • getAllApplications

        @PermitAll
        public Collection<com.soffid.iam.api.Application> getAllApplications​(Boolean aplicacioBuida)
                                                                      throws es.caib.seycon.ng.exception.InternalErrorException,
                                                                             es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        getAllApplications in interface com.soffid.iam.service.ejb.EntryPointService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • getAllMimeTypeExecution

        @PermitAll
        public Collection<com.soffid.iam.api.AccessTreeExecutionType> getAllMimeTypeExecution()
                                                                                       throws es.caib.seycon.ng.exception.InternalErrorException,
                                                                                              es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        getAllMimeTypeExecution in interface com.soffid.iam.service.ejb.EntryPointService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • getReverseApplicationAccessTree

        @PermitAll
        public Collection<String> getReverseApplicationAccessTree​(com.soffid.iam.api.AccessTree puntEntrada)
                                                           throws es.caib.seycon.ng.exception.InternalErrorException,
                                                                  es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        getReverseApplicationAccessTree in interface com.soffid.iam.service.ejb.EntryPointService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • getAuthorizationsApplicationAcessTree

        @PermitAll
        public Collection<com.soffid.iam.api.AccessTreeAuthorization> getAuthorizationsApplicationAcessTree​(com.soffid.iam.api.AccessTree puntEntrada)
                                                                                                     throws es.caib.seycon.ng.exception.InternalErrorException,
                                                                                                            es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        getAuthorizationsApplicationAcessTree in interface com.soffid.iam.service.ejb.EntryPointService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • getExecutions

        @PermitAll
        public Collection<com.soffid.iam.api.AccessTreeExecution> getExecutions​(com.soffid.iam.api.AccessTree puntEntrada)
                                                                         throws es.caib.seycon.ng.exception.InternalErrorException,
                                                                                es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        getExecutions in interface com.soffid.iam.service.ejb.EntryPointService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • findAccessTreeByTextAndJsonQuery

        @PermitAll
        public List<com.soffid.iam.api.AccessTree> findAccessTreeByTextAndJsonQuery​(String text,
                                                                                    String jsonQuery,
                                                                                    Integer start,
                                                                                    Integer pageSize)
                                                                             throws es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        findAccessTreeByTextAndJsonQuery in interface com.soffid.iam.service.ejb.EntryPointService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • delete

        @PermitAll
        public void delete​(com.soffid.iam.api.AccessTree puntEntrada)
                    throws es.caib.seycon.ng.exception.InternalErrorException,
                           es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        delete in interface com.soffid.iam.service.ejb.EntryPointService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • deleteAuthorization

        @PermitAll
        public void deleteAuthorization​(com.soffid.iam.api.AccessTree puntEntrada,
                                        com.soffid.iam.api.AccessTreeAuthorization autoritzacio)
                                 throws es.caib.seycon.ng.exception.InternalErrorException,
                                        es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        deleteAuthorization in interface com.soffid.iam.service.ejb.EntryPointService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • deleteExecution

        @PermitAll
        public void deleteExecution​(com.soffid.iam.api.AccessTree puntEntrada,
                                    com.soffid.iam.api.AccessTreeExecution execucio)
                             throws es.caib.seycon.ng.exception.InternalErrorException,
                                    es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        deleteExecution in interface com.soffid.iam.service.ejb.EntryPointService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • sortChildren

        @PermitAll
        public void sortChildren​(long entryPointId)
                          throws es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        sortChildren in interface com.soffid.iam.service.ejb.EntryPointService
        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()