com.engiweb.rpd.common.interfaces

Interface IRemediationDirect

  • All Superinterfaces:
    common.direct.IDirect


    public interface IRemediationDirect
    extends common.direct.IDirect
    Provides method to manage remediations.
    Author:
    ZinniL
    • Method Detail

      • find

        com.engiweb.pm.entity.BeanList<RemediationBean> find(RemediationBean remediationBean,
                                                             EnvironmentBean envBean,
                                                             com.engiweb.pm.entity.Paging paging,
                                                             com.engiweb.pm.dao.db.DAO connDao)
                                                      throws com.engiweb.toolkit.common.BackendException
        Returns remediations of an environment.
        Parameters:
        remediationBean - RemediationBean Remediation used as filter
        envBean - EnvironmentBean Environment
        paging - Paging the paging
        connDao - DAO the connection dao
        Returns:
        BeanList of RemediationBean
        Throws:
        com.engiweb.toolkit.common.BackendException - the backend exception
      • insert

        RemediationBean insert(RemediationBean remediationBean,
                               EnvironmentBean envBean,
                               com.engiweb.pm.dao.db.DAO connDao)
                        throws com.engiweb.toolkit.common.BackendException
        Inserts a remediation to an environemnt.
        Parameters:
        remediationBean - RemediationBean Remediation to insert
        envBean - EnvironmentBean Environment in which to insert the remediation
        connDao - DAO the connection dao
        Returns:
        RemediationBean
        Throws:
        com.engiweb.toolkit.common.BackendException - the backend exception
      • update

        RemediationBean update(RemediationBean remediationBean,
                               EnvironmentBean envBean,
                               com.engiweb.pm.dao.db.DAO connDao)
                        throws com.engiweb.toolkit.common.BackendException
        Update a remediation to an environemnt.
        Parameters:
        remediationBean - RemediationBean Remediation to update
        envBean - EnvironmentBean Environment of the remediation
        connDao - DAO the connection dao
        Returns:
        RemediationBean
        Throws:
        com.engiweb.toolkit.common.BackendException - the backend exception
      • delete

        void delete(RemediationBean remediationBean,
                    EnvironmentBean envBean,
                    com.engiweb.pm.dao.db.DAO connDao)
             throws com.engiweb.toolkit.common.BackendException
        Removes a remediation from an environemnt.
        Parameters:
        remediationBean - RemediationBean Remediation to delete
        envBean - EnvironmentBean Environment of the remediation
        connDao - DAO the connection dao
        Throws:
        com.engiweb.toolkit.common.BackendException - the backend exception
      • findUser

        com.engiweb.pm.entity.BeanList<UserBean> findUser(UserBean userBean,
                                                          OrgUnitBean orgUnitBean,
                                                          RemediationBean remBean,
                                                          boolean hier,
                                                          java.lang.String code_scope,
                                                          com.engiweb.pm.entity.Paging paging,
                                                          com.engiweb.pm.dao.db.DAO connDao)
                                                   throws com.engiweb.toolkit.common.BackendException
        Deprecated. Replaced by findUser(UserBean, GroupBean, HierarchyBean, RemediationBean, boolean, String, Paging, DAO) Return a list of user with remediation, if the remBean is not null return the list of user with the specific remediation
        Parameters:
        userBean - UserBean the user, if null no filter is applied, otherwise the passed object is used as filter
        orgUnitBean - OrgUnitBean the orgunit where search users
        remBean - RemediationBean find user with this remediation (well defined)
        hier - boolean: if true the research is performed hierarchically
        code_scope - String the code_scope
        paging - Paging the paging
        connDao - DAO the connection dao
        Returns:
        BeanList of UserBean
        Throws:
        com.engiweb.toolkit.common.BackendException - the backend exception
      • findUser

        com.engiweb.pm.entity.BeanList<UserBean> findUser(UserBean userBean,
                                                          GroupBean groupBean,
                                                          HierarchyBean hierarchyBean,
                                                          RemediationBean remBean,
                                                          boolean hier,
                                                          java.lang.String code_scope,
                                                          com.engiweb.pm.entity.Paging paging,
                                                          com.engiweb.pm.dao.db.DAO connDao)
                                                   throws com.engiweb.toolkit.common.BackendException
        Return a list of user with remediation, if the remBean is not null return the list of user with the specific remediation
        Parameters:
        userBean - UserBean the user, if null no filter is applied, otherwise the passed object is used as filter
        groupBean - GroupBean the group where search users
        hierarchyBean - HierarchyBean mandatory
        remBean - RemediationBean find user with this remediation (well defined)
        hier - boolean: if true the research is performed hierarchically
        code_scope - String the code_scope
        paging - Paging the paging
        connDao - DAO the connection dao
        Returns:
        BeanList of UserBean
        Throws:
        com.engiweb.toolkit.common.BackendException - the backend exception
      • findDomain

        com.engiweb.pm.entity.BeanList<DomainBean> findDomain(DomainBean domainBean,
                                                              RemediationBean remediationBean,
                                                              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 domain for the passed remediation
        Parameters:
        domainBean - DomainBean the domain, if null no filter is applied, otherwise the passed object is used as filter
        remediationBean - RemediationBean the remediation
        envBean - EnvironmentBean Environment bean
        paging - Paging the paging
        connDao - DAO the connection dao
        Returns:
        BeanList of DomainBean
        Throws:
        com.engiweb.toolkit.common.BackendException - the backend exception
      • addDomain

        void addDomain(DomainBean domainBean,
                       RemediationBean remediationBean,
                       EnvironmentBean envBean,
                       com.engiweb.pm.dao.db.DAO connDao)
                throws com.engiweb.toolkit.common.BackendException
        Add a domain to a remediation
        Parameters:
        domainBean - DomainBean the domain to add
        remediationBean - RemediationBean the remediation to which the domain must be added
        envBean - EnvironmentBean the environment
        connDao - DAO the connection dao
        Throws:
        com.engiweb.toolkit.common.BackendException - the backend exception
      • removeDomain

        void removeDomain(DomainBean domainBean,
                          RemediationBean remediationBean,
                          EnvironmentBean envBean,
                          com.engiweb.pm.dao.db.DAO connDao)
                   throws com.engiweb.toolkit.common.BackendException
        Remove a domain from a remediation
        Parameters:
        domainBean - DomainBean the domain to remove
        remediationBean - RemediationBean the remediation to which the domain must be removed
        envBean - EnvironmentBean the environment
        connDao - DAO the connection dao
        Throws:
        com.engiweb.toolkit.common.BackendException - the backend exception
      • findProperties

        com.engiweb.pm.entity.BeanList<PropertyBean> findProperties(RemediationPropertyBean propBean,
                                                                    RemediationBean remediationBean,
                                                                    com.engiweb.pm.entity.Paging paging,
                                                                    com.engiweb.pm.dao.db.DAO connDao)
                                                             throws com.engiweb.toolkit.common.BackendException
        Find properties of a remediation.
        Parameters:
        propBean - RemediationPropertyBean the remediation property, if null no filter is applied, otherwise the passed object is used as filter
        remediationBean - RemediationBean the remediation
        paging - Paging the paging
        connDao - DAO the connection dao
        Returns:
        BeanList of PropertyBean
        Throws:
        com.engiweb.toolkit.common.BackendException - the backend exception
      • insertProperty

        PropertyBean insertProperty(PropertyBean bean,
                                    RemediationBean remediationBean,
                                    com.engiweb.pm.dao.db.DAO connDao)
                             throws com.engiweb.toolkit.common.BackendException
        Add a property to a remediation
        Parameters:
        bean - PropertyBean the property to add
        remediationBean - RemediationBean the remediation
        connDao - DAOthe connection dao
        Returns:
        PropertyBean
        Throws:
        com.engiweb.toolkit.common.BackendException - the backend exception
      • deleteProperty

        void deleteProperty(PropertyBean bean,
                            com.engiweb.pm.dao.db.DAO connDao)
                     throws com.engiweb.toolkit.common.BackendException
        Delete property.
        Parameters:
        bean - PropertyBean the property to remove
        connDao - DAOthe connection dao
        Throws:
        com.engiweb.toolkit.common.BackendException - the backend exception
      • modifyProperty

        void modifyProperty(com.engiweb.pm.entity.BeanList<PropertyBean> bl,
                            com.engiweb.pm.dao.db.DAO connDao)
                     throws com.engiweb.toolkit.common.BackendException
        Modify a property list.
        Parameters:
        bl - BeanList of PropertyBean list of property to modify
        connDao - DAO the connection dao
        Throws:
        com.engiweb.toolkit.common.BackendException - the backend exception
      • findRisk

        com.engiweb.pm.entity.BeanList<RiskBean> findRisk(RiskBean riskBean,
                                                          RemediationBean remediationBean,
                                                          EnvironmentBean envBean,
                                                          com.engiweb.pm.entity.Paging paging,
                                                          com.engiweb.pm.dao.db.DAO connDao)
                                                   throws com.engiweb.toolkit.common.BackendException
        Returns the remediation associated risks.
        Parameters:
        riskBean - RiskBean riskBean optional
        remediationBean - RemediationBean remediationBean mandatory
        envBean - EnvironmentBean envBean optional: if null operates on working environment
        paging - Paging paging
        connDao - DAO the connection dao
        Returns:
        BeanList of RiskBean
        Throws:
        com.engiweb.toolkit.common.BackendException - the backend exception
      • addRisk

        void addRisk(com.engiweb.pm.entity.BeanList<RiskBean> blRiskBean,
                     RemediationBean remediationBean,
                     EnvironmentBean envBean,
                     com.engiweb.pm.dao.db.DAO connDao)
              throws com.engiweb.toolkit.common.BackendException
        Adds a list of risk to a remediation
        Parameters:
        blRiskBean - BeanList of RiskBean the list of risk to add
        remediationBean - RemediationBean the remediation (mandatory)
        envBean - EnvironmentBean envBean optional: if null operates on working environment
        connDao - DAO the connection dao
        Throws:
        com.engiweb.toolkit.common.BackendException - the backend exception
      • removeRisk

        void removeRisk(com.engiweb.pm.entity.BeanList<RiskBean> blRiskBean,
                        RemediationBean remediationBean,
                        EnvironmentBean envBean,
                        com.engiweb.pm.dao.db.DAO connDao)
                 throws com.engiweb.toolkit.common.BackendException
        Removes a list of risk from a remediation.
        Parameters:
        blRiskBean - BeanList of RiskBean the list of risk to remove
        remediationBean - RemediationBean the remediation (mandatory)
        envBean - EnvironmentBean envBean optional: if null operates on working environment
        connDao - DAO the connection dao
        Throws:
        com.engiweb.toolkit.common.BackendException - the backend exception