Class PamPolicyServiceBase

  • All Implemented Interfaces:
    com.soffid.iam.service.PamPolicyService
    Direct Known Subclasses:
    PamPolicyServiceImpl

    public abstract class PamPolicyServiceBase
    extends Object
    implements com.soffid.iam.service.PamPolicyService

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

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

      • PamPolicyServiceBase

        public PamPolicyServiceBase()
    • Method Detail

      • setAccountEntityDao

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

        public AccountEntityDao getAccountEntityDao()
        Gets reference to accountEntityDao.
      • 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.
      • setAuditEntityDao

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

        public AuditEntityDao getAuditEntityDao()
        Gets reference to auditoriaEntityDao.
      • 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.
      • setIssueService

        public void setIssueService​(com.soffid.iam.service.IssueService issueService)
        Sets reference to issueService.
      • getIssueService

        public com.soffid.iam.service.IssueService getIssueService()
        Gets reference to issueService.
      • setJumpServerEntityDao

        public void setJumpServerEntityDao​(JumpServerEntityDao jumpServerEntityDao)
        Sets reference to jumpServerEntityDao.
      • getJumpServerEntityDao

        public JumpServerEntityDao getJumpServerEntityDao()
        Gets reference to jumpServerEntityDao.
      • setJumpServerGroupEntityDao

        public void setJumpServerGroupEntityDao​(JumpServerGroupEntityDao jumpServerGroupEntityDao)
        Sets reference to jumpServerGroupEntityDao.
      • getJumpServerGroupEntityDao

        public JumpServerGroupEntityDao getJumpServerGroupEntityDao()
        Gets reference to jumpServerGroupEntityDao.
      • setMailService

        public void setMailService​(MailService mailService)
        Sets reference to mailService.
      • getMailService

        public MailService getMailService()
        Gets reference to mailService.
      • setHostEntityDao

        public void setHostEntityDao​(HostEntityDao maquinaEntityDao)
        Sets reference to maquinaEntityDao.
      • getHostEntityDao

        public HostEntityDao getHostEntityDao()
        Gets reference to maquinaEntityDao.
      • setPamActionEntityDao

        public void setPamActionEntityDao​(PamActionEntityDao pamActionEntityDao)
        Sets reference to pamActionEntityDao.
      • getPamActionEntityDao

        public PamActionEntityDao getPamActionEntityDao()
        Gets reference to pamActionEntityDao.
      • setPamPolicyEntityDao

        public void setPamPolicyEntityDao​(PamPolicyEntityDao pamPolicyEntityDao)
        Sets reference to pamPolicyEntityDao.
      • getPamPolicyEntityDao

        public PamPolicyEntityDao getPamPolicyEntityDao()
        Gets reference to pamPolicyEntityDao.
      • setPamRuleEntityDao

        public void setPamRuleEntityDao​(PamRuleEntityDao pamRuleEntityDao)
        Sets reference to pamRuleEntityDao.
      • getPamRuleEntityDao

        public PamRuleEntityDao getPamRuleEntityDao()
        Gets reference to pamRuleEntityDao.
      • setPamSecurityHandlerService

        public void setPamSecurityHandlerService​(PamSecurityHandlerService pamSecurityHandlerService)
        Sets reference to pamSecurityHandlerService.
      • getPamSecurityHandlerService

        public PamSecurityHandlerService getPamSecurityHandlerService()
        Gets reference to pamSecurityHandlerService.
      • setAccessLogEntityDao

        public void setAccessLogEntityDao​(AccessLogEntityDao registreAccesEntityDao)
        Sets reference to registreAccesEntityDao.
      • getAccessLogEntityDao

        public AccessLogEntityDao getAccessLogEntityDao()
        Gets reference to registreAccesEntityDao.
      • setServiceEntityDao

        public void setServiceEntityDao​(ServiceEntityDao serveiEntityDao)
        Sets reference to serveiEntityDao.
      • getServiceEntityDao

        public ServiceEntityDao getServiceEntityDao()
        Gets reference to serveiEntityDao.
      • setSessionEntityDao

        public void setSessionEntityDao​(SessionEntityDao sessioEntityDao)
        Sets reference to sessioEntityDao.
      • getSessionEntityDao

        public SessionEntityDao getSessionEntityDao()
        Gets reference to sessioEntityDao.
      • setUserEntityDao

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

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

        @Transactional(rollbackFor=java.lang.Exception.class)
        public com.soffid.iam.api.AsyncList<com.soffid.iam.api.PamPolicy> findPolicyByJsonQueryAsync​(String text,
                                                                                                     String query)
                                                                                              throws es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        findPolicyByJsonQueryAsync in interface com.soffid.iam.service.PamPolicyService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleFindPolicyByJsonQueryAsync

        protected abstract com.soffid.iam.api.AsyncList<com.soffid.iam.api.PamPolicy> handleFindPolicyByJsonQueryAsync​(String text,
                                                                                                                       String query)
                                                                                                                throws Exception
        Throws:
        Exception
      • findRuleByJsonQueryAsync

        @Transactional(rollbackFor=java.lang.Exception.class)
        public com.soffid.iam.api.AsyncList<com.soffid.iam.api.PamRule> findRuleByJsonQueryAsync​(String text,
                                                                                                 String query)
                                                                                          throws es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        findRuleByJsonQueryAsync in interface com.soffid.iam.service.PamPolicyService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleFindRuleByJsonQueryAsync

        protected abstract com.soffid.iam.api.AsyncList<com.soffid.iam.api.PamRule> handleFindRuleByJsonQueryAsync​(String text,
                                                                                                                   String query)
                                                                                                            throws Exception
        Throws:
        Exception
      • findPolicyByJsonQuery

        @Transactional(rollbackFor=java.lang.Exception.class)
        public com.soffid.iam.api.PagedResult<com.soffid.iam.api.PamPolicy> findPolicyByJsonQuery​(String text,
                                                                                                  String query,
                                                                                                  Integer first,
                                                                                                  Integer pageSize)
                                                                                           throws es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        findPolicyByJsonQuery in interface com.soffid.iam.service.PamPolicyService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleFindPolicyByJsonQuery

        protected abstract com.soffid.iam.api.PagedResult<com.soffid.iam.api.PamPolicy> handleFindPolicyByJsonQuery​(String text,
                                                                                                                    String query,
                                                                                                                    Integer first,
                                                                                                                    Integer pageSize)
                                                                                                             throws Exception
        Throws:
        Exception
      • findRuleByJsonQuery

        @Transactional(rollbackFor=java.lang.Exception.class)
        public com.soffid.iam.api.PagedResult<com.soffid.iam.api.PamRule> findRuleByJsonQuery​(String text,
                                                                                              String query,
                                                                                              Integer first,
                                                                                              Integer pageSize)
                                                                                       throws es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        findRuleByJsonQuery in interface com.soffid.iam.service.PamPolicyService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleFindRuleByJsonQuery

        protected abstract com.soffid.iam.api.PagedResult<com.soffid.iam.api.PamRule> handleFindRuleByJsonQuery​(String text,
                                                                                                                String query,
                                                                                                                Integer first,
                                                                                                                Integer pageSize)
                                                                                                         throws Exception
        Throws:
        Exception
      • updateAction

        @Transactional(rollbackFor=java.lang.Exception.class)
        public com.soffid.iam.api.PamAction updateAction​(com.soffid.iam.api.PamAction action)
                                                  throws es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        updateAction in interface com.soffid.iam.service.PamPolicyService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleUpdateAction

        protected abstract com.soffid.iam.api.PamAction handleUpdateAction​(com.soffid.iam.api.PamAction action)
                                                                    throws Exception
        Throws:
        Exception
      • createPolicy

        @Transactional(rollbackFor=java.lang.Exception.class)
        public com.soffid.iam.api.PamPolicy createPolicy​(com.soffid.iam.api.PamPolicy policy)
                                                  throws es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        createPolicy in interface com.soffid.iam.service.PamPolicyService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleCreatePolicy

        protected abstract com.soffid.iam.api.PamPolicy handleCreatePolicy​(com.soffid.iam.api.PamPolicy policy)
                                                                    throws Exception
        Throws:
        Exception
      • updatePolicy

        @Transactional(rollbackFor=java.lang.Exception.class)
        public com.soffid.iam.api.PamPolicy updatePolicy​(com.soffid.iam.api.PamPolicy policy)
                                                  throws es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        updatePolicy in interface com.soffid.iam.service.PamPolicyService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleUpdatePolicy

        protected abstract com.soffid.iam.api.PamPolicy handleUpdatePolicy​(com.soffid.iam.api.PamPolicy policy)
                                                                    throws Exception
        Throws:
        Exception
      • createRule

        @Transactional(rollbackFor=java.lang.Exception.class)
        public com.soffid.iam.api.PamRule createRule​(com.soffid.iam.api.PamRule rule)
                                              throws es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        createRule in interface com.soffid.iam.service.PamPolicyService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleCreateRule

        protected abstract com.soffid.iam.api.PamRule handleCreateRule​(com.soffid.iam.api.PamRule rule)
                                                                throws Exception
        Throws:
        Exception
      • updateRule

        @Transactional(rollbackFor=java.lang.Exception.class)
        public com.soffid.iam.api.PamRule updateRule​(com.soffid.iam.api.PamRule rule)
                                              throws es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        updateRule in interface com.soffid.iam.service.PamPolicyService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleUpdateRule

        protected abstract com.soffid.iam.api.PamRule handleUpdateRule​(com.soffid.iam.api.PamRule rule)
                                                                throws Exception
        Throws:
        Exception
      • findPolicyActions

        @Transactional(rollbackFor=java.lang.Exception.class)
        public List<com.soffid.iam.api.PamAction> findPolicyActions​(com.soffid.iam.api.PamPolicy policy)
                                                             throws es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        findPolicyActions in interface com.soffid.iam.service.PamPolicyService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleFindPolicyActions

        protected abstract List<com.soffid.iam.api.PamAction> handleFindPolicyActions​(com.soffid.iam.api.PamPolicy policy)
                                                                               throws Exception
        Throws:
        Exception
      • applyRule

        @Transactional(rollbackFor=java.lang.Exception.class)
        public void applyRule​(String sessionKey,
                              String policyName,
                              String ruleName)
                       throws es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        applyRule in interface com.soffid.iam.service.PamPolicyService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • deletePolicy

        @Transactional(rollbackFor=java.lang.Exception.class)
        public void deletePolicy​(com.soffid.iam.api.PamPolicy policy)
                          throws es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        deletePolicy in interface com.soffid.iam.service.PamPolicyService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleDeletePolicy

        protected abstract void handleDeletePolicy​(com.soffid.iam.api.PamPolicy policy)
                                            throws Exception
        Throws:
        Exception
      • deleteRule

        @Transactional(rollbackFor=java.lang.Exception.class)
        public void deleteRule​(com.soffid.iam.api.PamRule rule)
                        throws es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        deleteRule in interface com.soffid.iam.service.PamPolicyService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleDeleteRule

        protected abstract void handleDeleteRule​(com.soffid.iam.api.PamRule rule)
                                          throws Exception
        Throws:
        Exception
      • getPrincipal

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