Class VaultServiceBase

  • All Implemented Interfaces:
    com.soffid.iam.service.VaultService
    Direct Known Subclasses:
    VaultServiceImpl

    public abstract class VaultServiceBase
    extends Object
    implements com.soffid.iam.service.VaultService

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

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

      • VaultServiceBase

        public VaultServiceBase()
    • Method Detail

      • setAccountAccessEntityDao

        public void setAccountAccessEntityDao​(AccountAccessEntityDao accountAccessEntityDao)
        Sets reference to accountAccessEntityDao.
      • getAccountAccessEntityDao

        public AccountAccessEntityDao getAccountAccessEntityDao()
        Gets reference to accountAccessEntityDao.
      • setAccountEntityDao

        public void setAccountEntityDao​(AccountEntityDao accountEntityDao)
        Sets reference to accountEntityDao.
      • getAccountEntityDao

        public AccountEntityDao getAccountEntityDao()
        Gets reference to accountEntityDao.
      • setAccountService

        public void setAccountService​(com.soffid.iam.service.AccountService accountService)
        Sets reference to accountService.
      • getAccountService

        public com.soffid.iam.service.AccountService getAccountService()
        Gets reference to accountService.
      • 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.
      • setGroupEntityDao

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

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

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

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

        public void setTaskEntityDao​(TaskEntityDao tasqueEntityDao)
        Sets reference to tasqueEntityDao.
      • getTaskEntityDao

        public TaskEntityDao getTaskEntityDao()
        Gets reference to tasqueEntityDao.
      • setUserEntityDao

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

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

        public void setUserService​(com.soffid.iam.service.UserService usuariService)
        Sets reference to usuariService.
      • getUserService

        public com.soffid.iam.service.UserService getUserService()
        Gets reference to usuariService.
      • setVaultFolderAccessEntityDao

        public void setVaultFolderAccessEntityDao​(VaultFolderAccessEntityDao vaultFolderAccessEntityDao)
        Sets reference to vaultFolderAccessEntityDao.
      • getVaultFolderAccessEntityDao

        public VaultFolderAccessEntityDao getVaultFolderAccessEntityDao()
        Gets reference to vaultFolderAccessEntityDao.
      • setVaultFolderEntityDao

        public void setVaultFolderEntityDao​(VaultFolderEntityDao vaultFolderEntityDao)
        Sets reference to vaultFolderEntityDao.
      • getVaultFolderEntityDao

        public VaultFolderEntityDao getVaultFolderEntityDao()
        Gets reference to vaultFolderEntityDao.
      • findFolderByTextAndJsonQueryAsync

        @Transactional(rollbackFor=java.lang.Exception.class)
        public com.soffid.iam.api.AsyncList<com.soffid.iam.api.VaultFolder> findFolderByTextAndJsonQueryAsync​(String text,
                                                                                                              String jsonQuery)
                                                                                                       throws es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        findFolderByTextAndJsonQueryAsync in interface com.soffid.iam.service.VaultService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleFindFolderByTextAndJsonQueryAsync

        protected abstract com.soffid.iam.api.AsyncList<com.soffid.iam.api.VaultFolder> handleFindFolderByTextAndJsonQueryAsync​(String text,
                                                                                                                                String jsonQuery)
                                                                                                                         throws Exception
        Throws:
        Exception
      • findFolderByTextAndJsonQuery

        @Transactional(rollbackFor=java.lang.Exception.class)
        public com.soffid.iam.api.PagedResult<com.soffid.iam.api.VaultFolder> findFolderByTextAndJsonQuery​(String text,
                                                                                                           String jsonQuery,
                                                                                                           Integer start,
                                                                                                           Integer pageSize)
                                                                                                    throws es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        findFolderByTextAndJsonQuery in interface com.soffid.iam.service.VaultService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleFindFolderByTextAndJsonQuery

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

        @Transactional(rollbackFor=java.lang.Exception.class)
        public com.soffid.iam.api.VaultElement create​(com.soffid.iam.api.VaultElement folder)
                                               throws es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        create in interface com.soffid.iam.service.VaultService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleCreate

        protected abstract com.soffid.iam.api.VaultElement handleCreate​(com.soffid.iam.api.VaultElement folder)
                                                                 throws Exception
        Throws:
        Exception
      • findVaultElement

        @Transactional(rollbackFor=java.lang.Exception.class)
        public com.soffid.iam.api.VaultElement findVaultElement​(long id)
                                                         throws es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        findVaultElement in interface com.soffid.iam.service.VaultService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleFindVaultElement

        protected abstract com.soffid.iam.api.VaultElement handleFindVaultElement​(long id)
                                                                           throws Exception
        Throws:
        Exception
      • update

        @Transactional(rollbackFor=java.lang.Exception.class)
        public com.soffid.iam.api.VaultElement update​(com.soffid.iam.api.VaultElement folder)
                                               throws es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        update in interface com.soffid.iam.service.VaultService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleUpdate

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

        @Transactional(rollbackFor=java.lang.Exception.class)
        public com.soffid.iam.api.VaultFolder create​(com.soffid.iam.api.VaultFolder folder)
                                              throws es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        create in interface com.soffid.iam.service.VaultService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleCreate

        protected abstract com.soffid.iam.api.VaultFolder handleCreate​(com.soffid.iam.api.VaultFolder folder)
                                                                throws Exception
        Throws:
        Exception
      • findFolder

        @Transactional(rollbackFor=java.lang.Exception.class)
        public com.soffid.iam.api.VaultFolder findFolder​(long id)
                                                  throws es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        findFolder in interface com.soffid.iam.service.VaultService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleFindFolder

        protected abstract com.soffid.iam.api.VaultFolder handleFindFolder​(long id)
                                                                    throws Exception
        Throws:
        Exception
      • getPersonalFolder

        @Transactional(rollbackFor=java.lang.Exception.class)
        public com.soffid.iam.api.VaultFolder getPersonalFolder()
                                                         throws es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        getPersonalFolder in interface com.soffid.iam.service.VaultService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleGetPersonalFolder

        protected abstract com.soffid.iam.api.VaultFolder handleGetPersonalFolder()
                                                                           throws Exception
        Throws:
        Exception
      • update

        @Transactional(rollbackFor=java.lang.Exception.class)
        public com.soffid.iam.api.VaultFolder update​(com.soffid.iam.api.VaultFolder folder)
                                              throws es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        update in interface com.soffid.iam.service.VaultService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleUpdate

        protected abstract com.soffid.iam.api.VaultFolder handleUpdate​(com.soffid.iam.api.VaultFolder folder)
                                                                throws Exception
        Throws:
        Exception
      • getFolderPermissions

        @Transactional(rollbackFor=java.lang.Exception.class)
        public com.soffid.iam.api.VaultFolderPermissions getFolderPermissions​(com.soffid.iam.api.VaultFolder folder)
                                                                       throws es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        getFolderPermissions in interface com.soffid.iam.service.VaultService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleGetFolderPermissions

        protected abstract com.soffid.iam.api.VaultFolderPermissions handleGetFolderPermissions​(com.soffid.iam.api.VaultFolder folder)
                                                                                         throws Exception
        Throws:
        Exception
      • addToFolder

        @Transactional(rollbackFor=java.lang.Exception.class)
        public com.soffid.iam.api.Account addToFolder​(com.soffid.iam.api.Account account)
                                               throws es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        addToFolder in interface com.soffid.iam.service.VaultService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleAddToFolder

        protected abstract com.soffid.iam.api.Account handleAddToFolder​(com.soffid.iam.api.Account account)
                                                                 throws Exception
        Throws:
        Exception
      • findAccounts

        @Transactional(rollbackFor=java.lang.Exception.class)
        public List<com.soffid.iam.api.Account> findAccounts​(String filter)
                                                      throws es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        findAccounts in interface com.soffid.iam.service.VaultService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleFindAccounts

        protected abstract List<com.soffid.iam.api.Account> handleFindAccounts​(String filter)
                                                                        throws Exception
        Throws:
        Exception
      • findFolders

        @Transactional(rollbackFor=java.lang.Exception.class)
        public List<com.soffid.iam.api.VaultFolder> findFolders​(String filter)
                                                         throws es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        findFolders in interface com.soffid.iam.service.VaultService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleFindFolders

        protected abstract List<com.soffid.iam.api.VaultFolder> handleFindFolders​(String filter)
                                                                           throws Exception
        Throws:
        Exception
      • findVaultElementByText

        @Transactional(rollbackFor=java.lang.Exception.class)
        public List<com.soffid.iam.api.VaultElement> findVaultElementByText​(String filter)
                                                                     throws es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        findVaultElementByText in interface com.soffid.iam.service.VaultService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleFindVaultElementByText

        protected abstract List<com.soffid.iam.api.VaultElement> handleFindVaultElementByText​(String filter)
                                                                                       throws Exception
        Throws:
        Exception
      • getChildren

        @Transactional(rollbackFor=java.lang.Exception.class)
        public List<com.soffid.iam.api.VaultElement> getChildren​(com.soffid.iam.api.VaultElement parent)
                                                          throws es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        getChildren in interface com.soffid.iam.service.VaultService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleGetChildren

        protected abstract List<com.soffid.iam.api.VaultElement> handleGetChildren​(com.soffid.iam.api.VaultElement parent)
                                                                            throws Exception
        Throws:
        Exception
      • getChildren

        @Transactional(rollbackFor=java.lang.Exception.class)
        public List<com.soffid.iam.api.VaultFolder> getChildren​(com.soffid.iam.api.VaultFolder parent)
                                                         throws es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        getChildren in interface com.soffid.iam.service.VaultService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleGetChildren

        protected abstract List<com.soffid.iam.api.VaultFolder> handleGetChildren​(com.soffid.iam.api.VaultFolder parent)
                                                                           throws Exception
        Throws:
        Exception
      • getPublicRootFolders

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

        protected abstract List<com.soffid.iam.api.VaultFolder> handleGetPublicRootFolders()
                                                                                    throws Exception
        Throws:
        Exception
      • getRootFolders

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

        protected abstract List<com.soffid.iam.api.VaultFolder> handleGetRootFolders()
                                                                              throws Exception
        Throws:
        Exception
      • list

        @Transactional(rollbackFor=java.lang.Exception.class)
        public List<com.soffid.iam.api.Account> list​(com.soffid.iam.api.VaultFolder folder)
                                              throws es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        list in interface com.soffid.iam.service.VaultService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleList

        protected abstract List<com.soffid.iam.api.Account> handleList​(com.soffid.iam.api.VaultFolder folder)
                                                                throws Exception
        Throws:
        Exception
      • applyFolderPermissions

        @Transactional(rollbackFor=java.lang.Exception.class)
        public void applyFolderPermissions​(com.soffid.iam.api.VaultFolderPermissions permissions)
                                    throws es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        applyFolderPermissions in interface com.soffid.iam.service.VaultService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleApplyFolderPermissions

        protected abstract void handleApplyFolderPermissions​(com.soffid.iam.api.VaultFolderPermissions permissions)
                                                      throws Exception
        Throws:
        Exception
      • remove

        @Transactional(rollbackFor=java.lang.Exception.class)
        public void remove​(com.soffid.iam.api.VaultElement folder)
                    throws es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        remove in interface com.soffid.iam.service.VaultService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleRemove

        protected abstract void handleRemove​(com.soffid.iam.api.VaultElement folder)
                                      throws Exception
        Throws:
        Exception
      • remove

        @Transactional(rollbackFor=java.lang.Exception.class)
        public void remove​(com.soffid.iam.api.VaultFolder folder)
                    throws es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        remove in interface com.soffid.iam.service.VaultService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleRemove

        protected abstract void handleRemove​(com.soffid.iam.api.VaultFolder folder)
                                      throws Exception
        Throws:
        Exception
      • getPrincipal

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