com.engiweb.rpd.common.interfaces

Interface ITaskDirect

  • All Superinterfaces:
    common.direct.IDirect


    public interface ITaskDirect
    extends common.direct.IDirect
    The Interface ITask.
    Author:
    ZinniL
    • Method Detail

      • insert

        TaskBean insert(TaskBean taskBean,
                        TaskBean taskParentBean,
                        EnvironmentBean envBean,
                        java.lang.String code_scope,
                        com.engiweb.pm.dao.db.DAO connDao)
                 throws com.engiweb.toolkit.common.BackendException
        Add a task into a hierarchy.
        Parameters:
        taskBean - TaskBean the task to add (mandatory)
        taskParentBean - TaskBean the task parent witch add the task (mandatory)
        envBean - EnvironmentBean the environment
        code_scope - String the code_scope
        connDao - DAOthe connection dao
        Returns:
        TaskBean
        Throws:
        com.engiweb.toolkit.common.BackendException - the backend exception
      • update

        void update(TaskBean taskBean,
                    TaskBean taskParentBean,
                    EnvironmentBean envBean,
                    com.engiweb.pm.dao.db.DAO connDao)
             throws com.engiweb.toolkit.common.BackendException
        Modify a task into a hierarchy.
        Parameters:
        taskBean - TaskBean the task to modify (mandatory)
        taskParentBean - TaskBean the task parent
        envBean - EnvironmentBean the environment
        connDao - DAOthe connection dao
        Throws:
        com.engiweb.toolkit.common.BackendException - the backend exception
      • delete

        void delete(TaskBean taskBean,
                    EnvironmentBean envBean,
                    boolean hier,
                    com.engiweb.pm.dao.db.DAO connDao)
             throws com.engiweb.toolkit.common.BackendException
        Remove a task from a hierarchy.
        Parameters:
        taskBean - TaskBean the task to remove (mandatory)
        envBean - EnvironmentBean the environment
        hier - boolean if true remove must be performed hierarchically, false otherwise
        connDao - DAO the connection dao
        Throws:
        com.engiweb.toolkit.common.BackendException - the backend exception
      • find

        com.engiweb.pm.entity.BeanList<TaskBean> find(TaskBean taskBean,
                                                      TaskBean taskBeanStart,
                                                      EnvironmentBean envBean,
                                                      java.lang.Long 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 task from a task and environment.
        Parameters:
        taskBean - TaskBean the task, if null no filter is applied, otherwise the passed object is used as filter
        taskBeanStart - TaskBean the task from which start
        envBean - EnvironmentBean the environment
        code_scope - Long the code_scope
        paging - Paging the paging
        connDao - DAO the connection dao
        Returns:
        BeanList of TaskBean
        Throws:
        com.engiweb.toolkit.common.BackendException - the backend exception
      • findParent

        com.engiweb.pm.entity.BeanList<TaskBean> findParent(TaskBean taskBean,
                                                            EnvironmentBean envBean,
                                                            com.engiweb.pm.dao.db.DAO connDao)
                                                     throws com.engiweb.toolkit.common.BackendException
        Return the parent of a task.
        Parameters:
        taskBean - TaskBean the task which want the parent (mandatory)
        envBean - EnvironmentBean the environment
        connDao - DAO the connection dao
        Returns:
        BeanList of TaskBean
        Throws:
        com.engiweb.toolkit.common.BackendException - the backend exception
      • findInHier

        com.engiweb.pm.entity.BeanList<TaskBean> findInHier(TaskBean taskBean,
                                                            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 task which are children of a task.
        Parameters:
        taskBean - TaskBean the task
        envBean - EnvironmentBean the environment
        task_scope - Long the task_scope
        paging - Paging the paging
        connDao - DAO the connection dao
        Returns:
        BeanList of TaskBean
        Throws:
        com.engiweb.toolkit.common.BackendException - the backend exception
      • addProfiles

        void addProfiles(com.engiweb.pm.entity.BeanList<EntitlementBean> blProfile,
                         TaskBean taskBean,
                         EnvironmentBean envBean,
                         boolean hier,
                         com.engiweb.pm.dao.db.DAO connDao)
                  throws com.engiweb.toolkit.common.BackendException
        Add a list of profile to a task.
        Parameters:
        blProfile - BeanList of EntitlementBean the list of profile to add (mandatory)
        taskBean - TaskBean the task (mandatory)
        envBean - EnvironmentBean the environment
        hier - boolean if true add must be performed hierarchically, false otherwise
        connDao - DAO the connection dao
        Throws:
        com.engiweb.toolkit.common.BackendException - the backend exception
      • removeProfiles

        void removeProfiles(com.engiweb.pm.entity.BeanList<EntitlementBean> blProfile,
                            TaskBean taskBean,
                            EnvironmentBean envBean,
                            boolean hier,
                            com.engiweb.pm.dao.db.DAO connDao)
                     throws com.engiweb.toolkit.common.BackendException
        Remove a list of profile from an existing task.
        Parameters:
        blProfile - BeanList of EntitlementBean the list of profile to remove (mandatory)
        taskBean - TaskBean the task (mandatory)
        envBean - EnvironmentBean the environment
        hier - boolean if true remove must be performed hierarchically, false otherwise
        connDao - DAO the connection dao
        Throws:
        com.engiweb.toolkit.common.BackendException - the backend exception
      • findProfile

        com.engiweb.pm.entity.BeanList<EntitlementBean> findProfile(EntitlementBean filterProfileBean,
                                                                    TaskBean taskBean,
                                                                    EnvironmentBean envBean,
                                                                    boolean hier,
                                                                    com.engiweb.pm.entity.Paging paging,
                                                                    com.engiweb.pm.dao.db.DAO connDao)
                                                             throws com.engiweb.toolkit.common.BackendException
        Return a list of profile associated with a task
        Parameters:
        filterProfileBean - EntitlementBean the entitlement, if null no filter is applied, otherwise the passed object is used as filter
        taskBean - TaskBean the task
        envBean - EnvironmentBean the environment
        hier - boolean if true search must be performed hierarchically, false otherwise
        paging - Paging the paging
        connDao - DAO the connection dao
        Returns:
        BeanList of EntitlementBean
        Throws:
        com.engiweb.toolkit.common.BackendException - the backend exception
      • findTaskByEntitlement

        com.engiweb.pm.entity.BeanList<TaskBean> findTaskByEntitlement(TaskBean filterTaskBean,
                                                                       EnvironmentBean filterEnvironmentBean,
                                                                       EntitlementBean entitlementBean,
                                                                       com.engiweb.pm.entity.Paging paging,
                                                                       com.engiweb.pm.dao.db.DAO connDao)
                                                                throws com.engiweb.toolkit.common.BackendException
        Return a list of tasks associated to an entitlement
        Parameters:
        filterTaskBean - TaskBean the task, if null no filter is applied, otherwise the passed object is used as filter
        filterEnvironmentBean - EnvironmentBean the environment, if null no filter is applied, otherwise the passed object is used as filter
        entitlementBean - EntitlementBean the entitlement (mandatory)
        paging - Paging the paging
        connDao - DAO the connection dao
        Returns:
        BeanList of TaskBen
        Throws:
        com.engiweb.toolkit.common.BackendException - the backend exception
      • findTaskByGroup

        com.engiweb.pm.entity.BeanList<TaskBean> findTaskByGroup(TaskBean filterTaskBean,
                                                                 EnvironmentBean filterEnvironmentBean,
                                                                 HierarchyBean hierarchyBean,
                                                                 GroupBean groupBean,
                                                                 com.engiweb.pm.entity.Paging paging,
                                                                 com.engiweb.pm.dao.db.DAO connDao)
                                                          throws com.engiweb.toolkit.common.BackendException
        Return a list of tasks associated to a group
        Parameters:
        filterTaskBean - TaskBean the task, if null no filter is applied, otherwise the passed object is used as filter
        filterEnvironmentBean - EnvironmentBean the environment, if null no filter is applied, otherwise the passed object is used as filter
        hierarchyBean - HierarchyBean the hierarchy of the passed group
        groupBean - GroupBean the group (mandatory)
        paging - Paging the paging
        connDao - DAO the connection dao
        Returns:
        BeanList of TaskBen
        Throws:
        com.engiweb.toolkit.common.BackendException - the backend exception
      • findTaskByUser

        com.engiweb.pm.entity.BeanList<TaskBean> findTaskByUser(TaskBean filterTaskBean,
                                                                EnvironmentBean filterEnvironmentBean,
                                                                UserBean userBean,
                                                                com.engiweb.pm.entity.Paging paging,
                                                                com.engiweb.pm.dao.db.DAO connDao)
                                                         throws com.engiweb.toolkit.common.BackendException
        Return a list of tasks associated to an user
        Parameters:
        filterTaskBean - TaskBean the task, if null no filter is applied, otherwise the passed object is used as filter
        filterEnvironmentBean - EnvironmentBean the environment, if null no filter is applied, otherwise the passed object is used as filter
        userBean - UserBean the user (mandatory)
        paging - Paging the paging
        connDao - DAO the connection dao
        Returns:
        BeanList of TaskBen
        Throws:
        com.engiweb.toolkit.common.BackendException - the backend exception
      • findIncomp

        com.engiweb.pm.entity.BeanList<TaskBean> findIncomp(TaskBean incompTaskBean,
                                                            TaskBean taskBean,
                                                            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 an existing task and his incompatible task
        Parameters:
        incompTaskBean - TaskBean the incompatible task, if null no filter is applied, otherwise the passed object is used as filter
        taskBean - TaskBean the task (mandatory)
        envBean - EnvironmentBean the environment
        paging - Paging the paging
        connDao - DAO the connection dao
        Returns:
        BeanList of TaskBean
        Throws:
        com.engiweb.toolkit.common.BackendException - the backend exception
      • findDomain

        com.engiweb.pm.entity.BeanList<DomainBean> findDomain(DomainBean domainBean,
                                                              TaskBean taskBean,
                                                              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 associated with a task.
        Parameters:
        domainBean - DomainBean the domain
        taskBean - TaskBean the task (mandatory)
        envBean - EnvironmentBean the environment
        paging - Paging the paging
        connDao - DAO the connection dao
        Returns:
        BeanList of DomainBean
        Throws:
        com.engiweb.toolkit.common.BackendException - the backend exception
      • addApplication

        void addApplication(ApplicationBean applicationBean,
                            TaskBean taskBean,
                            EnvironmentBean envBean,
                            boolean hier,
                            com.engiweb.pm.dao.db.DAO connDao)
                     throws com.engiweb.toolkit.common.BackendException
        Add all profile of an application to a task.
        Parameters:
        applicationBean - ApplicationBean the application (mandatory)
        taskBean - TaskBean the task (mandatory)
        envBean - EnvironmentBean the environment
        hier - boolean if true add must be performed hierarchically for the child of task, false otherwise
        connDao - DAO the connection dao
        Throws:
        com.engiweb.toolkit.common.BackendException - the backend exception
      • removeApplication

        void removeApplication(ApplicationBean applicationBean,
                               TaskBean taskBean,
                               EnvironmentBean envBean,
                               boolean hier,
                               com.engiweb.pm.dao.db.DAO connDao)
                        throws com.engiweb.toolkit.common.BackendException
        Remove all profile of an application from a task.
        Parameters:
        applicationBean - ApplicationBean the application (mandatory)
        taskBean - TaskBean the task (mandatory)
        envBean - EnvironmentBean the environment
        hier - boolean if true remove must be performed hierarchically for the child of task, false otherwise
        connDao - DAO the connection dao
        Throws:
        com.engiweb.toolkit.common.BackendException - the backend exception
      • findProperties

        com.engiweb.pm.entity.BeanList findProperties(TaskPropertyBean propBean,
                                                      TaskBean taskBean,
                                                      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 TaskProperty associated with a task
        Parameters:
        propBean - TaskPropertyBean the task property
        taskBean - TaskBean the task bean (mandatory)
        envBean - EnvironmentBean the environment
        paging - Paging the paging
        connDao - DAO the connection dao
        Returns:
        BeanList
        Throws:
        com.engiweb.toolkit.common.BackendException - the backend exception
      • addProperties

        void addProperties(com.engiweb.pm.entity.BeanList propBl,
                           TaskBean taskBean,
                           EnvironmentBean envBean,
                           com.engiweb.pm.dao.db.DAO connDao)
                    throws com.engiweb.toolkit.common.BackendException
        Add a list of task property to a task.
        Parameters:
        propBl - BeanList of TaskPropertyBean the list of task property to add (mandatory)
        taskBean - TaskBean the task (mandatory)
        envBean - EnvironmentBean the environment
        connDao - DAO the connection dao
        Throws:
        com.engiweb.toolkit.common.BackendException - the backend exception
      • removeProperties

        void removeProperties(com.engiweb.pm.entity.BeanList propBl,
                              TaskBean taskBean,
                              EnvironmentBean envBean,
                              com.engiweb.pm.dao.db.DAO connDao)
                       throws com.engiweb.toolkit.common.BackendException
        Remove a list of task property from a task
        Parameters:
        propBl - BeanList of TaskPropertyBean a list of task property (mandatory)
        taskBean - TaskBean the task (mandatory)
        envBean - EnvironmentBean the environment
        connDao - DAO the connection dao
        Throws:
        com.engiweb.toolkit.common.BackendException - the backend exception
      • findRisk

        com.engiweb.pm.entity.BeanList<RiskBean> findRisk(RiskBean riskBean,
                                                          TaskBean taskBean,
                                                          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 for a task.
        Parameters:
        riskBean - RiskBean the risk, if null no filter is applied, otherwise the passed object is used as filter
        taskBean - TaskBean the task (mandatory)
        envBean - EnvironmentBean the environment
        paging - Paging the paging
        connDao - DAO the connection dao
        Returns:
        BeanList of RiskBean
        Throws:
        com.engiweb.toolkit.common.BackendException - the backend exception
      • findTasksOfUserGroups

        com.engiweb.pm.entity.BeanList<TaskBean> findTasksOfUserGroups(TaskBean filterTaskBean,
                                                                       EnvironmentBean filterEnvironmentBean,
                                                                       UserBean userBean,
                                                                       com.engiweb.pm.entity.Paging paging,
                                                                       com.engiweb.pm.dao.db.DAO connDao)
                                                                throws com.engiweb.toolkit.common.BackendException
        Return a list of tasks associated to all user groups
        Parameters:
        filterTaskBean - TaskBean the task, if null no filter is applied, otherwise the passed object is used as filter
        filterEnvironmentBean - EnvironmentBean the environment, if null no filter is applied, otherwise the passed object is used as filter
        userBean - UserBean the user (mandatory)
        paging - Paging the paging
        connDao - DAO the connection dao
        Returns:
        BeanList of TaskBen
        Throws:
        com.engiweb.toolkit.common.BackendException - the backend exception
      • findEntitlement

        com.engiweb.pm.entity.BeanList<EntitlementBean> findEntitlement(TaskBean taskBean,
                                                                        com.engiweb.pm.dao.db.DAO connDao)
                                                                 throws com.engiweb.toolkit.common.BackendException
        Finds all the EntitlementBean related to the TaskBean.
        Parameters:
        taskBean - Task used to find the Entitlements.
        connDao - DAO the connection dao.
        Returns:
        BeanList of EntitlementBean.
        Throws:
        com.engiweb.toolkit.common.BackendException
      • calculateEntitlementImpact

        java.util.Map<java.lang.Long,TaskBean> calculateEntitlementImpact(UserBean user,
                                                                          EnvironmentBean environment,
                                                                          GroupBean organizationalUnit,
                                                                          com.engiweb.pm.entity.BeanList<EntitlementBean> toAdd,
                                                                          com.engiweb.pm.entity.BeanList<EntitlementBean> toRemove,
                                                                          com.engiweb.pm.dao.db.DAO connDao)
                                                                   throws com.engiweb.toolkit.common.BackendException
        Verifies for each adding or removing of a role, which are the tasks that are impacted for a user.
        Parameters:
        user - UserBean on which the analysis is performed.
        environment - EnvironmentBean on which the analysis is performed.
        organizationalUnit - GroupBean on which the analysis is performed.
        toAdd - BeanList of EntitlementBean to add.
        toRemove - BeanList of EntitlementBean to remove.
        connDao - DAO the connection dao.
        Returns:
        Map of TaskBean.
        Throws:
        com.engiweb.toolkit.common.BackendException