com.engiweb.rpd.common.interfaces

Interface IRiskDirect

  • All Superinterfaces:
    common.direct.IDirect


    public interface IRiskDirect
    extends common.direct.IDirect
    The Interface IRiskDirect.
    Author:
    VenturiniS
    • Method Detail

      • insert

        RiskBean insert(RiskBean riskBean,
                        EnvironmentBean envBean,
                        com.engiweb.pm.dao.db.DAO connDao)
                 throws com.engiweb.toolkit.common.BackendException
        Add and associate a risk to an environment.
        Parameters:
        riskBean - RiskBean risk to add (mandatory)
        envBean - EnvironmentBean the environment (must be unique)
        connDao - DAO the connection dao
        Returns:
        RiskBean
        Throws:
        com.engiweb.toolkit.common.BackendException - the backend exception
      • update

        void update(RiskBean riskBean,
                    EnvironmentBean envBean,
                    com.engiweb.pm.dao.db.DAO connDao)
             throws com.engiweb.toolkit.common.BackendException
        Modify a risk associated to an environment.
        Parameters:
        riskBean - RiskBean Risk to modify (mandatory)
        envBean - EnvironmentBean the environment (must be unique)
        connDao - DAO the connection dao
        Throws:
        com.engiweb.toolkit.common.BackendException - the backend exception
      • delete

        void delete(RiskBean riskBean,
                    EnvironmentBean envBean,
                    com.engiweb.pm.dao.db.DAO connDao)
             throws com.engiweb.toolkit.common.BackendException
        remove a risk from an environment.
        Parameters:
        riskBean - RiskBean the risk to remove (mandatory)
        envBean - EnvironmentBean the environment (must be unique)
        connDao - DAO the connection dao
        Throws:
        com.engiweb.toolkit.common.BackendException - the backend exception
      • findRisk

        com.engiweb.pm.entity.BeanList<RiskBean> findRisk(RiskBean riskBean,
                                                          EnvironmentBean envBean,
                                                          java.lang.Long codeScope,
                                                          com.engiweb.pm.entity.Paging paging,
                                                          com.engiweb.pm.dao.db.DAO connDao)
                                                   throws com.engiweb.toolkit.common.BackendException
        Return a list of risk by the visibility of task of the user logged.
        Parameters:
        riskBean - RiskBean the risk, if null no filter is applied, otherwise the passed object is used as filter
        envBean - EnvironmentBean the environment (must be unique)
        codeScope - the code scope
        paging - Paging the paging
        connDao - the conn dao
        Returns:
        BeanList of RiskBean
        Throws:
        com.engiweb.toolkit.common.BackendException - the backend exception
      • findAllRisk

        com.engiweb.pm.entity.BeanList<RiskBean> findAllRisk(RiskBean riskBean,
                                                             EnvironmentBean envBean,
                                                             java.lang.Long task_scope,
                                                             com.engiweb.pm.entity.Paging paging,
                                                             com.engiweb.pm.dao.db.DAO connDao)
                                                      throws com.engiweb.toolkit.common.BackendException
        Return a list of risk.
        Parameters:
        riskBean - RiskBean the risk, if null no filter is applied, otherwise the passed object is used as filter
        envBean - EnvironmentBean the environment (must be unique)
        task_scope - the task_scope
        paging - Paging the paging
        connDao - DAO the connection dao
        Returns:
        BeanList of RiskBean
        Throws:
        com.engiweb.toolkit.common.BackendException - the backend exception
      • findRiskEmpty

        com.engiweb.pm.entity.BeanList<RiskBean> findRiskEmpty(RiskBean riskBean,
                                                               EnvironmentBean envBean,
                                                               com.engiweb.pm.entity.Paging paging,
                                                               com.engiweb.pm.dao.db.DAO connDao)
                                                        throws com.engiweb.toolkit.common.BackendException
        Return a list of risk wich have associated task.
        Parameters:
        riskBean - RiskBean the risk, if null no filter is applied, otherwise the passed object is used as filter
        envBean - EnvironmentBean the environment (must be unique)
        paging - Paging the paging
        connDao - DAO the connection dao
        Returns:
        BeanList of RiskBean
        Throws:
        com.engiweb.toolkit.common.BackendException - the backend exception
      • addTask

        void addTask(com.engiweb.pm.entity.BeanList<TaskBean> blTask,
                     RiskBean riskBean,
                     boolean hier,
                     EnvironmentBean envBean,
                     com.engiweb.pm.dao.db.DAO connDao)
              throws com.engiweb.toolkit.common.BackendException
        Add a list of task to a risk.
        Parameters:
        blTask - BeanList of Task list of existing task to add
        riskBean - RiskBean the risk
        hier - boolean: if true list of task must be add hierarchically, false otherwise
        envBean - EnvironmentBean the environment (must be unique)
        connDao - DAO the connection dao
        Throws:
        com.engiweb.toolkit.common.BackendException - the backend exception
      • removeTask

        void removeTask(com.engiweb.pm.entity.BeanList<TaskBean> blTask,
                        RiskBean riskBean,
                        EnvironmentBean envBean,
                        com.engiweb.pm.dao.db.DAO connDao)
                 throws com.engiweb.toolkit.common.BackendException
        Remove a list of task froma a risk.
        Parameters:
        blTask - BeanList of TaskBean list of existing task to remove
        riskBean - RiskBean the risk
        envBean - EnvironmentBean the environment
        connDao - DAO the connection dao
        Throws:
        com.engiweb.toolkit.common.BackendException - the backend exception
      • findTask

        com.engiweb.pm.entity.BeanList<TaskBean> findTask(TaskBean taskBean,
                                                          RiskBean riskBean,
                                                          EnvironmentBean envBean,
                                                          com.engiweb.pm.entity.Paging paging,
                                                          com.engiweb.pm.dao.db.DAO connDao)
                                                   throws com.engiweb.toolkit.common.BackendException
        Return a list of task from a risk.
        Parameters:
        taskBean - TaskBean the task, if null no filter is applied, otherwise the passed object is used as filter
        riskBean - RiskBean the risk (mandatory)
        envBean - EnvironmentBean the environment (must be unique)
        paging - Paging the paging
        connDao - DAO the connection dao
        Returns:
        BeanList of TaskBean
        Throws:
        com.engiweb.toolkit.common.BackendException - the backend exception
      • addRemediation

        void addRemediation(com.engiweb.pm.entity.BeanList<RemediationBean> blRemediation,
                            RiskBean riskBean,
                            EnvironmentBean envBean,
                            com.engiweb.pm.dao.db.DAO connDao)
                     throws com.engiweb.toolkit.common.BackendException
        Add a list of remediation to a risk.
        Parameters:
        blRemediation - BeanList of RemediationBean the list of remediation to add (mandatory)
        riskBean - RiskBean the risk (mandatory)
        envBean - EnvironmentBean the environment (must be unique)
        connDao - DAO the connection dao
        Throws:
        com.engiweb.toolkit.common.BackendException - the backend exception
      • removeRemediation

        void removeRemediation(com.engiweb.pm.entity.BeanList<RemediationBean> blRemediation,
                               RiskBean riskBean,
                               EnvironmentBean envBean,
                               com.engiweb.pm.dao.db.DAO connDao)
                        throws com.engiweb.toolkit.common.BackendException
        Remove a list of remediation from a risk.
        Parameters:
        blRemediation - BeanList of RemediationBean the list of remediation to remove from risk (mandatory)
        riskBean - RiskBean the risk (mandatory)
        envBean - EnvironmentBean the environment
        connDao - DAO the connection dao
        Throws:
        com.engiweb.toolkit.common.BackendException - the backend exception
      • findRemediationIntersected

        com.engiweb.pm.entity.BeanList<RemediationBean> findRemediationIntersected(RemediationBean remediationBean,
                                                                                   RiskBean riskBean,
                                                                                   EnvironmentBean envBean,
                                                                                   com.engiweb.pm.entity.Paging paging,
                                                                                   com.engiweb.pm.dao.db.DAO connDao)
                                                                            throws com.engiweb.toolkit.common.BackendException
        Find remediations associated to the risk intersected with remediations associated to domains in which the risk is involved.
        Parameters:
        remediationBean - RemediationBean the remediation, if null no filter is applied, otherwise the passed object is used as filter
        riskBean - RiskBean the risk (mandatory)
        envBean - EnvironmentBean the environment
        paging - Paging the paging
        connDao - DAO the connection dao
        Returns:
        BeanList of RemediationBean
        Throws:
        com.engiweb.toolkit.common.BackendException - the backend exception
      • findRemediation

        com.engiweb.pm.entity.BeanList<RemediationBean> findRemediation(RemediationBean remediationBean,
                                                                        RiskBean riskBean,
                                                                        EnvironmentBean envBean,
                                                                        com.engiweb.pm.entity.Paging paging,
                                                                        com.engiweb.pm.dao.db.DAO connDao)
                                                                 throws com.engiweb.toolkit.common.BackendException
        Find remediation .
        Parameters:
        remediationBean - RemediationBean the remediation, if null no filter is applied, otherwise the passed object is used as filter
        riskBean - RiskBean the risk (mandatory)
        envBean - EnvironmentBean the environment
        paging - Paging the paging
        connDao - DAO the connection dao
        Returns:
        BeanList of RemediationBean
        Throws:
        com.engiweb.toolkit.common.BackendException - the backend exception
      • findRemediation

        com.engiweb.pm.entity.BeanList<RemediationBean> findRemediation(RemediationBean remediationBean,
                                                                        java.util.List<RiskBean> riskList,
                                                                        EnvironmentBean envBean,
                                                                        com.engiweb.pm.entity.Paging paging,
                                                                        com.engiweb.pm.dao.db.DAO connDao)
                                                                 throws com.engiweb.toolkit.common.BackendException
        Find remediation .
        Parameters:
        remediationBean - RemediationBean the remediation, if null no filter is applied, otherwise the passed object is used as filter
        riskList - List if RiskBean the risk list
        envBean - EnvironmentBean the environment
        paging - Paging the paging
        connDao - DAO the connection dao
        Returns:
        BeanList of RemediationBean
        Throws:
        com.engiweb.toolkit.common.BackendException - the backend exception
      • findUserByIntRiskAndProfile

        com.engiweb.pm.entity.BeanList findUserByIntRiskAndProfile(UserBean userBean,
                                                                   OrgUnitBean ouBean,
                                                                   RiskBean riskBean,
                                                                   com.engiweb.pm.entity.BeanList<EntitlementBean> blEntBean,
                                                                   boolean hier,
                                                                   boolean delegated,
                                                                   com.engiweb.pm.entity.Paging paging,
                                                                   java.lang.String code_scope,
                                                                   com.engiweb.pm.dao.db.DAO connDao)
                                                            throws com.engiweb.toolkit.common.BackendException
        Returns user having visibility on a risk (associated to some task in visibility) with given profiles.
        Parameters:
        userBean - UserBean the user, if null no filter is applied, otherwise the passed object is used as filter
        ouBean - OrgUnitBean the organization unit, if null no filter is applied, otherwise the passed object is used as filter
        riskBean - RiskBean the risk (mandatory)
        blEntBean - BeanList of EntitlementBean the list of entitlement (mandatory)
        hier - boolean if true research must be performed hierarchically, false otherwise
        delegated - boolean if true research a delegated user, false otherwise
        paging - Paging the paging
        code_scope - the code_scope
        connDao - DAO the connection dao
        Returns:
        BeanList
        Throws:
        com.engiweb.toolkit.common.BackendException - the backend exception
      • findUser

        com.engiweb.pm.entity.BeanList<UserBean> findUser(UserBean userBean,
                                                          OrgUnitBean ouBean,
                                                          RiskBean riskBean,
                                                          boolean hier,
                                                          com.engiweb.pm.entity.Paging paging,
                                                          java.lang.String code_scope,
                                                          com.engiweb.pm.dao.db.DAO connDao)
                                                   throws com.engiweb.toolkit.common.BackendException
        Returns users having risk.
        Parameters:
        userBean - UserBean the user, if null no filter is applied, otherwise the passed object is used as filter
        ouBean - OrgUnitBean the organization unit, if null no filter is applied, otherwise the passed object is used as filter
        riskBean - RiskBean the risk (mandatory)
        hier - boolean if true research must be performed hierarchically, false otherwise
        paging - Paging the paging
        code_scope - the code_scope
        connDao - DAO the connection dao
        Returns:
        BeanList of UserBean
        Throws:
        com.engiweb.toolkit.common.BackendException - the backend exception