Class PrinterServiceBase

  • All Implemented Interfaces:
    com.soffid.iam.service.PrinterService
    Direct Known Subclasses:
    PrinterServiceImpl

    public abstract class PrinterServiceBase
    extends Object
    implements com.soffid.iam.service.PrinterService

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

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

      • PrinterServiceBase

        public PrinterServiceBase()
    • Method Detail

      • 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.
      • 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.
      • setGroupEntityDao

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

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

        public void setPrinterGroupEntityDao​(PrinterGroupEntityDao grupImpressoraEntityDao)
        Sets reference to grupImpressoraEntityDao.
      • getPrinterGroupEntityDao

        public PrinterGroupEntityDao getPrinterGroupEntityDao()
        Gets reference to grupImpressoraEntityDao.
      • setPrinterEntityDao

        public void setPrinterEntityDao​(PrinterEntityDao impressoraEntityDao)
        Sets reference to impressoraEntityDao.
      • getPrinterEntityDao

        public PrinterEntityDao getPrinterEntityDao()
        Gets reference to impressoraEntityDao.
      • setMetaDataEntityDao

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

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

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

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

        public void setUserPrinterEntityDao​(UserPrinterEntityDao usuariImpressoraEntityDao)
        Sets reference to usuariImpressoraEntityDao.
      • getUserPrinterEntityDao

        public UserPrinterEntityDao getUserPrinterEntityDao()
        Gets reference to usuariImpressoraEntityDao.
      • setNetworkService

        public void setNetworkService​(com.soffid.iam.service.NetworkService xarxaService)
        Sets reference to xarxaService.
      • getNetworkService

        public com.soffid.iam.service.NetworkService getNetworkService()
        Gets reference to xarxaService.
      • findPrinterByTextAndJsonQueryAsync

        @Transactional(rollbackFor=java.lang.Exception.class)
        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.PrinterService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleFindPrinterByTextAndJsonQueryAsync

        protected abstract com.soffid.iam.api.AsyncList<com.soffid.iam.api.Printer> handleFindPrinterByTextAndJsonQueryAsync​(String text,
                                                                                                                             String jsonQuery)
                                                                                                                      throws Exception
        Throws:
        Exception
      • findPrinterUserByTextAndJsonQueryAsync

        @Transactional(rollbackFor=java.lang.Exception.class)
        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.PrinterService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleFindPrinterUserByTextAndJsonQueryAsync

        protected abstract com.soffid.iam.api.AsyncList<com.soffid.iam.api.PrinterUser> handleFindPrinterUserByTextAndJsonQueryAsync​(String text,
                                                                                                                                     String jsonQuery)
                                                                                                                              throws Exception
        Throws:
        Exception
      • findPrinterUserByTextAndJsonQuery

        @Transactional(rollbackFor=java.lang.Exception.class)
        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.PrinterService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleFindPrinterUserByTextAndJsonQuery

        protected abstract com.soffid.iam.api.PagedResult<com.soffid.iam.api.PrinterUser> handleFindPrinterUserByTextAndJsonQuery​(String text,
                                                                                                                                  String jsonQuery,
                                                                                                                                  Integer start,
                                                                                                                                  Integer pageSize)
                                                                                                                           throws Exception
        Throws:
        Exception
      • create

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        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.PrinterService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleCreate

        protected abstract com.soffid.iam.api.PrinterGroup handleCreate​(com.soffid.iam.api.PrinterGroup grupImpressora)
                                                                 throws Exception
        Throws:
        Exception
      • findPrinterGroupByGroupNameAndPrinterName

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        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.PrinterService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleFindPrinterGroupByGroupNameAndPrinterName

        protected abstract com.soffid.iam.api.PrinterGroup handleFindPrinterGroupByGroupNameAndPrinterName​(String codiGrup,
                                                                                                           String codiImpressora)
                                                                                                    throws Exception
        Throws:
        Exception
      • update

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        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.PrinterService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleUpdate

        protected abstract com.soffid.iam.api.PrinterGroup handleUpdate​(com.soffid.iam.api.PrinterGroup grupImpressora)
                                                                 throws Exception
        Throws:
        Exception
      • create

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        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.PrinterService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleCreate

        protected abstract com.soffid.iam.api.Printer handleCreate​(com.soffid.iam.api.Printer impressora)
                                                            throws Exception
        Throws:
        Exception
      • findPrinterByPrinterName

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        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.PrinterService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleFindPrinterByPrinterName

        protected abstract com.soffid.iam.api.Printer handleFindPrinterByPrinterName​(String codiImpressora)
                                                                              throws Exception
        Throws:
        Exception
      • update

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        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.PrinterService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleUpdate

        protected abstract com.soffid.iam.api.Printer handleUpdate​(com.soffid.iam.api.Printer impressora)
                                                            throws Exception
        Throws:
        Exception
      • create

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        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.PrinterService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleCreate

        protected abstract com.soffid.iam.api.PrinterUser handleCreate​(com.soffid.iam.api.PrinterUser usuariImpressora)
                                                                throws Exception
        Throws:
        Exception
      • findPrinterUserByUserNameAndPrinterName

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        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.PrinterService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleFindPrinterUserByUserNameAndPrinterName

        protected abstract com.soffid.iam.api.PrinterUser handleFindPrinterUserByUserNameAndPrinterName​(String codiUsuari,
                                                                                                        String codiImpressora)
                                                                                                 throws Exception
        Throws:
        Exception
      • update

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        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.PrinterService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleUpdate

        protected abstract com.soffid.iam.api.PrinterUser handleUpdate​(com.soffid.iam.api.PrinterUser usuariImpressora)
                                                                throws Exception
        Throws:
        Exception
      • findPrintersGroupByGroupName

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        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.PrinterService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleFindPrintersGroupByGroupName

        protected abstract Collection<com.soffid.iam.api.PrinterGroup> handleFindPrintersGroupByGroupName​(String codiGrup)
                                                                                                   throws Exception
        Throws:
        Exception
      • findPrintersByPrinterName

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        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.PrinterService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleFindPrintersByPrinterName

        protected abstract Collection<com.soffid.iam.api.Printer> handleFindPrintersByPrinterName​(String codiImpressora)
                                                                                           throws Exception
        Throws:
        Exception
      • findPrintersByFilter

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        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.PrinterService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • getPrintersGroupByPrinterName

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        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.PrinterService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • getPrinters

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        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.PrinterService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • getUserPrintersByPrinterName

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        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.PrinterService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleGetUserPrintersByPrinterName

        protected abstract Collection<com.soffid.iam.api.PrinterUser> handleGetUserPrintersByPrinterName​(String codiImpressora)
                                                                                                  throws Exception
        Throws:
        Exception
      • findPrinterByTextAndJsonQuery

        @Transactional(rollbackFor=java.lang.Exception.class)
        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.PrinterService
        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.PrinterGroup grupImpressora)
                    throws es.caib.seycon.ng.exception.InternalErrorException,
                           es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        delete in interface com.soffid.iam.service.PrinterService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleDelete

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

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        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.PrinterService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleDelete

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

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        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.PrinterService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleDelete

        protected abstract void handleDelete​(com.soffid.iam.api.PrinterUser usuariImpressora)
                                      throws Exception
        Throws:
        Exception
      • getPrincipal

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