Class CustomObjectServiceBase

  • All Implemented Interfaces:
    com.soffid.iam.service.CustomObjectService
    Direct Known Subclasses:
    CustomObjectServiceImpl

    public abstract class CustomObjectServiceBase
    extends Object
    implements com.soffid.iam.service.CustomObjectService

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

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

      • CustomObjectServiceBase

        public CustomObjectServiceBase()
    • 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.
      • setAttributeValidationService

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

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

        public void setAuditEntityDao​(AuditEntityDao auditoriaEntityDao)
        Sets reference to auditoriaEntityDao.
      • getAuditEntityDao

        public AuditEntityDao getAuditEntityDao()
        Gets reference to auditoriaEntityDao.
      • setCustomObjectAttributeEntityDao

        public void setCustomObjectAttributeEntityDao​(CustomObjectAttributeEntityDao customObjectAttributeEntityDao)
        Sets reference to customObjectAttributeEntityDao.
      • getCustomObjectAttributeEntityDao

        public CustomObjectAttributeEntityDao getCustomObjectAttributeEntityDao()
        Gets reference to customObjectAttributeEntityDao.
      • setCustomObjectEntityDao

        public void setCustomObjectEntityDao​(CustomObjectEntityDao customObjectEntityDao)
        Sets reference to customObjectEntityDao.
      • getCustomObjectEntityDao

        public CustomObjectEntityDao getCustomObjectEntityDao()
        Gets reference to customObjectEntityDao.
      • setCustomObjectTypeEntityDao

        public void setCustomObjectTypeEntityDao​(CustomObjectTypeEntityDao customObjectTypeEntityDao)
        Sets reference to customObjectTypeEntityDao.
      • getCustomObjectTypeEntityDao

        public CustomObjectTypeEntityDao getCustomObjectTypeEntityDao()
        Gets reference to customObjectTypeEntityDao.
      • 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.
      • findCustomObjectByJsonQueryAsync

        @Transactional(rollbackFor=java.lang.Exception.class)
        public com.soffid.iam.api.AsyncList<com.soffid.iam.api.CustomObject> findCustomObjectByJsonQueryAsync​(String objectType,
                                                                                                              String query)
                                                                                                       throws es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        findCustomObjectByJsonQueryAsync in interface com.soffid.iam.service.CustomObjectService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleFindCustomObjectByJsonQueryAsync

        protected abstract com.soffid.iam.api.AsyncList<com.soffid.iam.api.CustomObject> handleFindCustomObjectByJsonQueryAsync​(String objectType,
                                                                                                                                String query)
                                                                                                                         throws Exception
        Throws:
        Exception
      • findCustomObjectByTextAndFilterAsync

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

        protected abstract com.soffid.iam.api.AsyncList<com.soffid.iam.api.CustomObject> handleFindCustomObjectByTextAndFilterAsync​(String objectType,
                                                                                                                                    String text,
                                                                                                                                    String filter)
                                                                                                                             throws Exception
        Throws:
        Exception
      • findCustomObjectByTextAndJsonQueryAsync

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

        protected abstract com.soffid.iam.api.AsyncList<com.soffid.iam.api.CustomObject> handleFindCustomObjectByTextAndJsonQueryAsync​(String text,
                                                                                                                                       String filter)
                                                                                                                                throws Exception
        Throws:
        Exception
      • findCustomObjectByTextAndJsonQueryAsync

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

        protected abstract com.soffid.iam.api.AsyncList<com.soffid.iam.api.CustomObject> handleFindCustomObjectByTextAndJsonQueryAsync​(String objectType,
                                                                                                                                       String text,
                                                                                                                                       String filter)
                                                                                                                                throws Exception
        Throws:
        Exception
      • findCustomObjectByTextAsync

        @Transactional(rollbackFor=java.lang.Exception.class)
        public com.soffid.iam.api.AsyncList<com.soffid.iam.api.CustomObject> findCustomObjectByTextAsync​(String objectType,
                                                                                                         String query)
                                                                                                  throws es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        findCustomObjectByTextAsync in interface com.soffid.iam.service.CustomObjectService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleFindCustomObjectByTextAsync

        protected abstract com.soffid.iam.api.AsyncList<com.soffid.iam.api.CustomObject> handleFindCustomObjectByTextAsync​(String objectType,
                                                                                                                           String query)
                                                                                                                    throws Exception
        Throws:
        Exception
      • createCustomObject

        @Transactional(rollbackFor=java.lang.Exception.class)
        public com.soffid.iam.api.CustomObject createCustomObject​(com.soffid.iam.api.CustomObject obj)
                                                           throws es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        createCustomObject in interface com.soffid.iam.service.CustomObjectService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleCreateCustomObject

        protected abstract com.soffid.iam.api.CustomObject handleCreateCustomObject​(com.soffid.iam.api.CustomObject obj)
                                                                             throws Exception
        Throws:
        Exception
      • findCustomObjectByTypeAndName

        @Transactional(rollbackFor=java.lang.Exception.class)
        public com.soffid.iam.api.CustomObject findCustomObjectByTypeAndName​(String objectType,
                                                                             String name)
                                                                      throws es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        findCustomObjectByTypeAndName in interface com.soffid.iam.service.CustomObjectService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleFindCustomObjectByTypeAndName

        protected abstract com.soffid.iam.api.CustomObject handleFindCustomObjectByTypeAndName​(String objectType,
                                                                                               String name)
                                                                                        throws Exception
        Throws:
        Exception
      • updateCustomObject

        @Transactional(rollbackFor=java.lang.Exception.class)
        public com.soffid.iam.api.CustomObject updateCustomObject​(com.soffid.iam.api.CustomObject obj)
                                                           throws es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        updateCustomObject in interface com.soffid.iam.service.CustomObjectService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleUpdateCustomObject

        protected abstract com.soffid.iam.api.CustomObject handleUpdateCustomObject​(com.soffid.iam.api.CustomObject obj)
                                                                             throws Exception
        Throws:
        Exception
      • findCustomObjectByTextAndJsonQuery

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public com.soffid.iam.api.PagedResult<com.soffid.iam.api.CustomObject> findCustomObjectByTextAndJsonQuery​(String text,
                                                                                                                  String filter,
                                                                                                                  Integer start,
                                                                                                                  Integer end)
                                                                                                           throws es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        findCustomObjectByTextAndJsonQuery in interface com.soffid.iam.service.CustomObjectService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleFindCustomObjectByTextAndJsonQuery

        protected abstract com.soffid.iam.api.PagedResult<com.soffid.iam.api.CustomObject> handleFindCustomObjectByTextAndJsonQuery​(String text,
                                                                                                                                    String filter,
                                                                                                                                    Integer start,
                                                                                                                                    Integer end)
                                                                                                                             throws Exception
        Throws:
        Exception
      • findCustomObjectByTextAndJsonQuery

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public com.soffid.iam.api.PagedResult<com.soffid.iam.api.CustomObject> findCustomObjectByTextAndJsonQuery​(String objectType,
                                                                                                                  String text,
                                                                                                                  String filter,
                                                                                                                  Integer start,
                                                                                                                  Integer end)
                                                                                                           throws es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        findCustomObjectByTextAndJsonQuery in interface com.soffid.iam.service.CustomObjectService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleFindCustomObjectByTextAndJsonQuery

        protected abstract com.soffid.iam.api.PagedResult<com.soffid.iam.api.CustomObject> handleFindCustomObjectByTextAndJsonQuery​(String objectType,
                                                                                                                                    String text,
                                                                                                                                    String filter,
                                                                                                                                    Integer start,
                                                                                                                                    Integer end)
                                                                                                                             throws Exception
        Throws:
        Exception
      • findCustomObjectByJsonQuery

        @Transactional(rollbackFor=java.lang.Exception.class)
        public Collection<com.soffid.iam.api.CustomObject> findCustomObjectByJsonQuery​(String objectType,
                                                                                       String query)
                                                                                throws es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        findCustomObjectByJsonQuery in interface com.soffid.iam.service.CustomObjectService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleFindCustomObjectByJsonQuery

        protected abstract Collection<com.soffid.iam.api.CustomObject> handleFindCustomObjectByJsonQuery​(String objectType,
                                                                                                         String query)
                                                                                                  throws Exception
        Throws:
        Exception
      • findCustomObjectByText

        @Transactional(rollbackFor=java.lang.Exception.class)
        public Collection<com.soffid.iam.api.CustomObject> findCustomObjectByText​(String objectType,
                                                                                  String query)
                                                                           throws es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        findCustomObjectByText in interface com.soffid.iam.service.CustomObjectService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • findCustomObjectByTextAndFilter

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public Collection<com.soffid.iam.api.CustomObject> findCustomObjectByTextAndFilter​(String objectType,
                                                                                           String text,
                                                                                           String filter)
                                                                                    throws es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        findCustomObjectByTextAndFilter in interface com.soffid.iam.service.CustomObjectService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleFindCustomObjectByTextAndFilter

        protected abstract Collection<com.soffid.iam.api.CustomObject> handleFindCustomObjectByTextAndFilter​(String objectType,
                                                                                                             String text,
                                                                                                             String filter)
                                                                                                      throws Exception
        Throws:
        Exception
      • findCustomObjectNames

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

        @Transactional(rollbackFor=java.lang.Exception.class)
        public void deleteCustomObject​(com.soffid.iam.api.CustomObject obj)
                                throws es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        deleteCustomObject in interface com.soffid.iam.service.CustomObjectService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleDeleteCustomObject

        protected abstract void handleDeleteCustomObject​(com.soffid.iam.api.CustomObject obj)
                                                  throws Exception
        Throws:
        Exception
      • getPrincipal

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