Class PrinterServiceBean

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

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

      • PrinterServiceBean

        public PrinterServiceBean()
    • Method Detail

      • findPrinterByTextAndJsonQueryAsync

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

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

        @PermitAll
        public com.soffid.iam.api.PagedResult<com.soffid.iam.api.PrinterUser> findPrinterUserByTextAndJsonQuery​(String text,
                                                                                                                String jsonQuery,
                                                                                                                Integer start,
                                                                                                                Integer pageSize)
                                                                                                         throws es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        findPrinterUserByTextAndJsonQuery in interface com.soffid.iam.service.ejb.PrinterService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • create

        @PermitAll
        public com.soffid.iam.api.PrinterGroup create​(com.soffid.iam.api.PrinterGroup grupImpressora)
                                               throws es.caib.seycon.ng.exception.InternalErrorException,
                                                      es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        create in interface com.soffid.iam.service.ejb.PrinterService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • findPrinterGroupByGroupNameAndPrinterName

        @PermitAll
        public com.soffid.iam.api.PrinterGroup findPrinterGroupByGroupNameAndPrinterName​(String codiGrup,
                                                                                         String codiImpressora)
                                                                                  throws es.caib.seycon.ng.exception.InternalErrorException,
                                                                                         es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        findPrinterGroupByGroupNameAndPrinterName in interface com.soffid.iam.service.ejb.PrinterService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • update

        @PermitAll
        public com.soffid.iam.api.PrinterGroup update​(com.soffid.iam.api.PrinterGroup grupImpressora)
                                               throws es.caib.seycon.ng.exception.InternalErrorException,
                                                      es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        update in interface com.soffid.iam.service.ejb.PrinterService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • create

        @PermitAll
        public com.soffid.iam.api.Printer create​(com.soffid.iam.api.Printer impressora)
                                          throws es.caib.seycon.ng.exception.InternalErrorException,
                                                 es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        create in interface com.soffid.iam.service.ejb.PrinterService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • findPrinterByPrinterName

        @PermitAll
        public com.soffid.iam.api.Printer findPrinterByPrinterName​(String codiImpressora)
                                                            throws es.caib.seycon.ng.exception.InternalErrorException,
                                                                   es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        findPrinterByPrinterName in interface com.soffid.iam.service.ejb.PrinterService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • update

        @PermitAll
        public com.soffid.iam.api.Printer update​(com.soffid.iam.api.Printer impressora)
                                          throws es.caib.seycon.ng.exception.InternalErrorException,
                                                 es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        update in interface com.soffid.iam.service.ejb.PrinterService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • create

        @PermitAll
        public com.soffid.iam.api.PrinterUser create​(com.soffid.iam.api.PrinterUser usuariImpressora)
                                              throws es.caib.seycon.ng.exception.InternalErrorException,
                                                     es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        create in interface com.soffid.iam.service.ejb.PrinterService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • findPrinterUserByUserNameAndPrinterName

        @PermitAll
        public com.soffid.iam.api.PrinterUser findPrinterUserByUserNameAndPrinterName​(String codiUsuari,
                                                                                      String codiImpressora)
                                                                               throws es.caib.seycon.ng.exception.InternalErrorException,
                                                                                      es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        findPrinterUserByUserNameAndPrinterName in interface com.soffid.iam.service.ejb.PrinterService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • update

        @PermitAll
        public com.soffid.iam.api.PrinterUser update​(com.soffid.iam.api.PrinterUser usuariImpressora)
                                              throws es.caib.seycon.ng.exception.InternalErrorException,
                                                     es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        update in interface com.soffid.iam.service.ejb.PrinterService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • findPrintersGroupByGroupName

        @PermitAll
        public Collection<com.soffid.iam.api.PrinterGroup> findPrintersGroupByGroupName​(String codiGrup)
                                                                                 throws es.caib.seycon.ng.exception.InternalErrorException,
                                                                                        es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        findPrintersGroupByGroupName in interface com.soffid.iam.service.ejb.PrinterService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • findPrintersByPrinterName

        @PermitAll
        public Collection<com.soffid.iam.api.Printer> findPrintersByPrinterName​(String codiImpressora)
                                                                         throws es.caib.seycon.ng.exception.InternalErrorException,
                                                                                es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        findPrintersByPrinterName in interface com.soffid.iam.service.ejb.PrinterService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • findPrintersByFilter

        @PermitAll
        public Collection<com.soffid.iam.api.Printer> findPrintersByFilter​(String codi,
                                                                           String model,
                                                                           String local,
                                                                           String maquina)
                                                                    throws es.caib.seycon.ng.exception.InternalErrorException,
                                                                           es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        findPrintersByFilter in interface com.soffid.iam.service.ejb.PrinterService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • getPrintersGroupByPrinterName

        @PermitAll
        public Collection getPrintersGroupByPrinterName​(String codiImpressora)
                                                 throws es.caib.seycon.ng.exception.InternalErrorException,
                                                        es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        getPrintersGroupByPrinterName in interface com.soffid.iam.service.ejb.PrinterService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • getPrinters

        @PermitAll
        public Collection<com.soffid.iam.api.Printer> getPrinters()
                                                           throws es.caib.seycon.ng.exception.InternalErrorException,
                                                                  es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        getPrinters in interface com.soffid.iam.service.ejb.PrinterService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • getUserPrintersByPrinterName

        @PermitAll
        public Collection<com.soffid.iam.api.PrinterUser> getUserPrintersByPrinterName​(String codiImpressora)
                                                                                throws es.caib.seycon.ng.exception.InternalErrorException,
                                                                                       es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        getUserPrintersByPrinterName in interface com.soffid.iam.service.ejb.PrinterService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • findPrinterByTextAndJsonQuery

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

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

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

        @PermitAll
        public void delete​(com.soffid.iam.api.PrinterUser usuariImpressora)
                    throws es.caib.seycon.ng.exception.InternalErrorException,
                           es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        delete in interface com.soffid.iam.service.ejb.PrinterService
        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()