Class AdditionalDataServiceBase

  • All Implemented Interfaces:
    com.soffid.iam.service.AdditionalDataService
    Direct Known Subclasses:
    AdditionalDataServiceImpl

    public abstract class AdditionalDataServiceBase
    extends Object
    implements com.soffid.iam.service.AdditionalDataService

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

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

      • AdditionalDataServiceBase

        public AdditionalDataServiceBase()
    • Method Detail

      • setAccountMetadataEntityDao

        public void setAccountMetadataEntityDao​(AccountMetadataEntityDao accountMetadataEntityDao)
        Sets reference to accountMetadataEntityDao.
      • getAccountMetadataEntityDao

        public AccountMetadataEntityDao getAccountMetadataEntityDao()
        Gets reference to accountMetadataEntityDao.
      • 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.
      • setAuditService

        public void setAuditService​(com.soffid.iam.service.AuditService auditoriaService)
        Sets reference to auditoriaService.
      • getAuditService

        public com.soffid.iam.service.AuditService getAuditService()
        Gets reference to auditoriaService.
      • setCrudRegistryService

        public void setCrudRegistryService​(com.soffid.iam.service.CrudRegistryService crudRegistryService)
        Sets reference to crudRegistryService.
      • getCrudRegistryService

        public com.soffid.iam.service.CrudRegistryService getCrudRegistryService()
        Gets reference to crudRegistryService.
      • setCustomObjectEntityDao

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

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

        public void setCustomObjectRoleEntityDao​(CustomObjectRoleEntityDao customObjectRoleEntityDao)
        Sets reference to customObjectRoleEntityDao.
      • getCustomObjectRoleEntityDao

        public CustomObjectRoleEntityDao getCustomObjectRoleEntityDao()
        Gets reference to customObjectRoleEntityDao.
      • setCustomObjectTypeEntityDao

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

        public CustomObjectTypeEntityDao getCustomObjectTypeEntityDao()
        Gets reference to customObjectTypeEntityDao.
      • setUserDataEntityDao

        public void setUserDataEntityDao​(UserDataEntityDao dadaUsuariEntityDao)
        Sets reference to dadaUsuariEntityDao.
      • getUserDataEntityDao

        public UserDataEntityDao getUserDataEntityDao()
        Gets reference to dadaUsuariEntityDao.
      • setSystemEntityDao

        public void setSystemEntityDao​(SystemEntityDao dispatcherEntityDao)
        Sets reference to dispatcherEntityDao.
      • getSystemEntityDao

        public SystemEntityDao getSystemEntityDao()
        Gets reference to dispatcherEntityDao.
      • setDispatcherService

        public void setDispatcherService​(com.soffid.iam.service.DispatcherService dispatcherService)
        Sets reference to dispatcherService.
      • getDispatcherService

        public com.soffid.iam.service.DispatcherService getDispatcherService()
        Gets reference to dispatcherService.
      • setLuceneIndexService

        public void setLuceneIndexService​(LuceneIndexService luceneIndexService)
        Sets reference to luceneIndexService.
      • getLuceneIndexService

        public LuceneIndexService getLuceneIndexService()
        Gets reference to luceneIndexService.
      • setRoleEntityDao

        public void setRoleEntityDao​(RoleEntityDao rolEntityDao)
        Sets reference to rolEntityDao.
      • getRoleEntityDao

        public RoleEntityDao getRoleEntityDao()
        Gets reference to rolEntityDao.
      • setRuleEvaluatorService

        public void setRuleEvaluatorService​(RuleEvaluatorService ruleEvaluatorService)
        Sets reference to ruleEvaluatorService.
      • getRuleEvaluatorService

        public RuleEvaluatorService getRuleEvaluatorService()
        Gets reference to ruleEvaluatorService.
      • 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.
      • createCustomObjectType

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

        protected abstract com.soffid.iam.api.CustomObjectType handleCreateCustomObjectType​(com.soffid.iam.api.CustomObjectType obj)
                                                                                     throws Exception
        Throws:
        Exception
      • findCustomObjectTypeByName

        @Transactional(rollbackFor=java.lang.Exception.class)
        public com.soffid.iam.api.CustomObjectType findCustomObjectTypeByName​(String name)
                                                                       throws es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        findCustomObjectTypeByName in interface com.soffid.iam.service.AdditionalDataService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleFindCustomObjectTypeByName

        protected abstract com.soffid.iam.api.CustomObjectType handleFindCustomObjectTypeByName​(String name)
                                                                                         throws Exception
        Throws:
        Exception
      • updateCustomObjectType

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

        protected abstract com.soffid.iam.api.CustomObjectType handleUpdateCustomObjectType​(com.soffid.iam.api.CustomObjectType obj)
                                                                                     throws Exception
        Throws:
        Exception
      • findExtensibleObjectRegister

        @Transactional(rollbackFor=java.lang.Exception.class)
        public com.soffid.iam.api.ExtensibleObjectRegister findExtensibleObjectRegister​(String name)
                                                                                 throws es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        findExtensibleObjectRegister in interface com.soffid.iam.service.AdditionalDataService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleFindExtensibleObjectRegister

        protected abstract com.soffid.iam.api.ExtensibleObjectRegister handleFindExtensibleObjectRegister​(String name)
                                                                                                   throws Exception
        Throws:
        Exception
      • getAccessLevel

        @Transactional(rollbackFor=java.lang.Exception.class)
        public es.caib.seycon.ng.comu.AccountAccessLevelEnum getAccessLevel​(com.soffid.iam.api.CustomObjectType type)
                                                                     throws es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        getAccessLevel in interface com.soffid.iam.service.AdditionalDataService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleGetAccessLevel

        protected abstract es.caib.seycon.ng.comu.AccountAccessLevelEnum handleGetAccessLevel​(com.soffid.iam.api.CustomObjectType type)
                                                                                       throws Exception
        Throws:
        Exception
      • create

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public com.soffid.iam.api.UserData create​(com.soffid.iam.api.UserData dadaUsuari)
                                           throws es.caib.seycon.ng.exception.InternalErrorException,
                                                  es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        create in interface com.soffid.iam.service.AdditionalDataService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleCreate

        protected abstract com.soffid.iam.api.UserData handleCreate​(com.soffid.iam.api.UserData dadaUsuari)
                                                             throws Exception
        Throws:
        Exception
      • update

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public com.soffid.iam.api.UserData update​(com.soffid.iam.api.UserData dadaUsuari)
                                           throws es.caib.seycon.ng.exception.InternalErrorException,
                                                  es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        update in interface com.soffid.iam.service.AdditionalDataService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleUpdate

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

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public com.soffid.iam.api.DataType create​(com.soffid.iam.api.DataType tipusDada)
                                           throws es.caib.seycon.ng.exception.InternalErrorException,
                                                  es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        create in interface com.soffid.iam.service.AdditionalDataService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleCreate

        protected abstract com.soffid.iam.api.DataType handleCreate​(com.soffid.iam.api.DataType tipusDada)
                                                             throws Exception
        Throws:
        Exception
      • findSystemDataType

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public com.soffid.iam.api.DataType findSystemDataType​(String system,
                                                              String name)
                                                       throws es.caib.seycon.ng.exception.InternalErrorException,
                                                              es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        findSystemDataType in interface com.soffid.iam.service.AdditionalDataService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleFindSystemDataType

        protected abstract com.soffid.iam.api.DataType handleFindSystemDataType​(String system,
                                                                                String name)
                                                                         throws Exception
        Throws:
        Exception
      • findDataTypeByName

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public com.soffid.iam.api.DataType findDataTypeByName​(String codi)
                                                       throws es.caib.seycon.ng.exception.InternalErrorException,
                                                              es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        findDataTypeByName in interface com.soffid.iam.service.AdditionalDataService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleFindDataTypeByName

        protected abstract com.soffid.iam.api.DataType handleFindDataTypeByName​(String codi)
                                                                         throws Exception
        Throws:
        Exception
      • update

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public com.soffid.iam.api.DataType update​(com.soffid.iam.api.DataType tipusDada)
                                           throws es.caib.seycon.ng.exception.InternalErrorException,
                                                  es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        update in interface com.soffid.iam.service.AdditionalDataService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleUpdate

        protected abstract com.soffid.iam.api.DataType handleUpdate​(com.soffid.iam.api.DataType tipusDada)
                                                             throws Exception
        Throws:
        Exception
      • findCustomObjectTypeByJsonQuery

        @Transactional(rollbackFor=java.lang.Exception.class)
        public Collection<com.soffid.iam.api.CustomObjectType> findCustomObjectTypeByJsonQuery​(String query)
                                                                                        throws es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        findCustomObjectTypeByJsonQuery in interface com.soffid.iam.service.AdditionalDataService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleFindCustomObjectTypeByJsonQuery

        protected abstract Collection<com.soffid.iam.api.CustomObjectType> handleFindCustomObjectTypeByJsonQuery​(String query)
                                                                                                          throws Exception
        Throws:
        Exception
      • findDataTypes

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public Collection<com.soffid.iam.api.DataType> findDataTypes​(com.soffid.iam.api.MetadataScope scope)
                                                              throws es.caib.seycon.ng.exception.InternalErrorException,
                                                                     es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        findDataTypes in interface com.soffid.iam.service.AdditionalDataService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleFindDataTypes

        protected abstract Collection<com.soffid.iam.api.DataType> handleFindDataTypes​(com.soffid.iam.api.MetadataScope scope)
                                                                                throws Exception
        Throws:
        Exception
      • findDataTypes2

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public Collection<com.soffid.iam.api.DataType> findDataTypes2​(com.soffid.iam.api.MetadataScope scope)
                                                               throws es.caib.seycon.ng.exception.InternalErrorException,
                                                                      es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        findDataTypes2 in interface com.soffid.iam.service.AdditionalDataService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleFindDataTypes2

        protected abstract Collection<com.soffid.iam.api.DataType> handleFindDataTypes2​(com.soffid.iam.api.MetadataScope scope)
                                                                                 throws Exception
        Throws:
        Exception
      • findDataTypesByObjectTypeAndName

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public Collection<com.soffid.iam.api.DataType> findDataTypesByObjectTypeAndName​(String objectType,
                                                                                        String codi)
                                                                                 throws es.caib.seycon.ng.exception.InternalErrorException,
                                                                                        es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        findDataTypesByObjectTypeAndName in interface com.soffid.iam.service.AdditionalDataService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleFindDataTypesByObjectTypeAndName

        protected abstract Collection<com.soffid.iam.api.DataType> handleFindDataTypesByObjectTypeAndName​(String objectType,
                                                                                                          String codi)
                                                                                                   throws Exception
        Throws:
        Exception
      • findDataTypesByObjectTypeAndName2

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public Collection<com.soffid.iam.api.DataType> findDataTypesByObjectTypeAndName2​(String objectType,
                                                                                         String codi)
                                                                                  throws es.caib.seycon.ng.exception.InternalErrorException,
                                                                                         es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        findDataTypesByObjectTypeAndName2 in interface com.soffid.iam.service.AdditionalDataService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleFindDataTypesByObjectTypeAndName2

        protected abstract Collection<com.soffid.iam.api.DataType> handleFindDataTypesByObjectTypeAndName2​(String objectType,
                                                                                                           String codi)
                                                                                                    throws Exception
        Throws:
        Exception
      • findDataTypesByName

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public Collection<com.soffid.iam.api.DataType> findDataTypesByName​(String codi)
                                                                    throws es.caib.seycon.ng.exception.InternalErrorException,
                                                                           es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        findDataTypesByName in interface com.soffid.iam.service.AdditionalDataService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • findDataTypesByScopeAndName

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public Collection<com.soffid.iam.api.DataType> findDataTypesByScopeAndName​(com.soffid.iam.api.MetadataScope scope,
                                                                                   String codi)
                                                                            throws es.caib.seycon.ng.exception.InternalErrorException,
                                                                                   es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        findDataTypesByScopeAndName in interface com.soffid.iam.service.AdditionalDataService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleFindDataTypesByScopeAndName

        protected abstract Collection<com.soffid.iam.api.DataType> handleFindDataTypesByScopeAndName​(com.soffid.iam.api.MetadataScope scope,
                                                                                                     String codi)
                                                                                              throws Exception
        Throws:
        Exception
      • getDataTypes

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public Collection<com.soffid.iam.api.DataType> getDataTypes()
                                                             throws es.caib.seycon.ng.exception.InternalErrorException,
                                                                    es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        getDataTypes in interface com.soffid.iam.service.AdditionalDataService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • findExtensibleObjectRegisters

        @Transactional(rollbackFor=java.lang.Exception.class)
        public List<com.soffid.iam.api.ExtensibleObjectRegister> findExtensibleObjectRegisters()
                                                                                        throws es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        findExtensibleObjectRegisters in interface com.soffid.iam.service.AdditionalDataService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleFindExtensibleObjectRegisters

        protected abstract List<com.soffid.iam.api.ExtensibleObjectRegister> handleFindExtensibleObjectRegisters()
                                                                                                          throws Exception
        Throws:
        Exception
      • findSystemDataTypes

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public List<com.soffid.iam.api.DataType> findSystemDataTypes​(String system)
                                                              throws es.caib.seycon.ng.exception.InternalErrorException,
                                                                     es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        findSystemDataTypes in interface com.soffid.iam.service.AdditionalDataService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleFindSystemDataTypes

        protected abstract List<com.soffid.iam.api.DataType> handleFindSystemDataTypes​(String system)
                                                                                throws Exception
        Throws:
        Exception
      • findSystemDataTypes2

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public List<com.soffid.iam.api.DataType> findSystemDataTypes2​(String system)
                                                               throws es.caib.seycon.ng.exception.InternalErrorException,
                                                                      es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        findSystemDataTypes2 in interface com.soffid.iam.service.AdditionalDataService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleFindSystemDataTypes2

        protected abstract List<com.soffid.iam.api.DataType> handleFindSystemDataTypes2​(String system)
                                                                                 throws Exception
        Throws:
        Exception
      • delete

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public void delete​(com.soffid.iam.api.UserData dadaUsuari)
                    throws es.caib.seycon.ng.exception.InternalErrorException,
                           es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        delete in interface com.soffid.iam.service.AdditionalDataService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleDelete

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

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public void delete​(com.soffid.iam.api.DataType tipusDada)
                    throws es.caib.seycon.ng.exception.InternalErrorException,
                           es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        delete in interface com.soffid.iam.service.AdditionalDataService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleDelete

        protected abstract void handleDelete​(com.soffid.iam.api.DataType tipusDada)
                                      throws Exception
        Throws:
        Exception
      • deleteCustomObjectType

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

        protected abstract void handleDeleteCustomObjectType​(com.soffid.iam.api.CustomObjectType obj)
                                                      throws Exception
        Throws:
        Exception
      • registerExtensibleObject

        @Transactional(rollbackFor=java.lang.Exception.class)
        public void registerExtensibleObject​(com.soffid.iam.api.ExtensibleObjectRegister register)
                                      throws es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        registerExtensibleObject in interface com.soffid.iam.service.AdditionalDataService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleRegisterExtensibleObject

        protected abstract void handleRegisterExtensibleObject​(com.soffid.iam.api.ExtensibleObjectRegister register)
                                                        throws Exception
        Throws:
        Exception
      • registerStandardObject

        @Transactional(rollbackFor=java.lang.Exception.class)
        public void registerStandardObject​(String resourceName,
                                           com.soffid.iam.api.MetadataScope scope,
                                           boolean reset)
                                    throws es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        registerStandardObject in interface com.soffid.iam.service.AdditionalDataService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleRegisterStandardObject

        protected abstract void handleRegisterStandardObject​(String resourceName,
                                                             com.soffid.iam.api.MetadataScope scope,
                                                             boolean reset)
                                                      throws Exception
        Throws:
        Exception
      • getPrincipal

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