com.engiweb.rpd.common.interfaces

Interface ITask



  • public interface ITask
    The Interface ITask.
    Author:
    ZinniL
    • Field Summary

      Fields 
      Modifier and Type Field and Description
      static java.lang.String COPYRIGHT
      Copyright
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method and Description
      void addApplication(ApplicationBean applicationBean, TaskBean taskBean, EnvironmentBean envBean, boolean hier, java.lang.String cod_oper, java.lang.String token, java.lang.String realm)
      Data un'applicazione assegna all'attivit� tutti i profili dell'applicazione.
      void addProfiles(com.engiweb.pm.entity.BeanList<EntitlementBean> blProfile, TaskBean taskBean, EnvironmentBean envBean, boolean hier, java.lang.String cod_oper, java.lang.String token, java.lang.String realm)
      Associa una lista di ProfileBean ad un TaskBean (esistente).
      void addProperties(com.engiweb.pm.entity.BeanList propBl, TaskBean taskBean, EnvironmentBean envBean, java.lang.String cod_oper, java.lang.String token, java.lang.String realm)
      Aggiunge una lista di oggetti TaskPropertyBean all'oggetto TaskBean passato.
      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, java.lang.String token, java.lang.String realm)
      Verifies for each adding or removing of a role, which are the tasks that are impacted for a user.
      void delete(TaskBean taskBean, EnvironmentBean envBean, boolean hier, java.lang.String cod_oper, java.lang.String token, java.lang.String realm)
      Aggiorna un oggetto TaskBean in una gerarchia.
      com.engiweb.pm.entity.BeanList<TaskBean> find(TaskBean taskBean, TaskBean taskBeanStart, EnvironmentBean envBean, com.engiweb.pm.entity.Paging paging, java.lang.String token, java.lang.String realm)
      Cerca oggetti TaskBean a partire da un TaskBean e EnvironmentBean.
      com.engiweb.pm.entity.BeanList<DomainBean> findDomain(DomainBean domainBean, TaskBean taskBean, EnvironmentBean envBean, com.engiweb.pm.entity.Paging paging, java.lang.String token, java.lang.String realm)
      Ricerca i DomainBean asscociati ad un TaskBean.
      com.engiweb.pm.entity.BeanList<EntitlementBean> findEntitlement(TaskBean taskBean, java.lang.String token, java.lang.String realm)
      Finds all the EntitlementBean related to the TaskBean.
      com.engiweb.pm.entity.BeanList<TaskBean> findIncomp(TaskBean incompTaskBean, TaskBean taskBean, EnvironmentBean envBean, com.engiweb.pm.entity.Paging paging, java.lang.String token, java.lang.String realm)
      Cerca una lista di TaskBean a partire dal TaskBean e dal suo incompatibile.
      com.engiweb.pm.entity.BeanList<TaskBean> findInHier(TaskBean taskBean, EnvironmentBean envBean, boolean oneLevel, com.engiweb.pm.entity.Paging paging, java.lang.String token, java.lang.String realm)
      Cerca gli oggetti TaskBean di livello gerarchicamente inferiore a partire da un TaskBean e EnvironmentBean.
      com.engiweb.pm.entity.BeanList<TaskBean> findParent(TaskBean taskBean, EnvironmentBean envBean, java.lang.String token, java.lang.String realm)
      Cerca gli oggetti TaskBean di livello gerarchicamente superiore a partire da un TaskBean e EnvironmentBean.
      com.engiweb.pm.entity.BeanList<EntitlementBean> findProfile(EntitlementBean filterProfileBean, TaskBean taskBean, EnvironmentBean envBean, boolean hier, com.engiweb.pm.entity.Paging paging, java.lang.String token, java.lang.String realm)
      Cerca ProfileBean associati ad un TaskBean.
      com.engiweb.pm.entity.BeanList findProperties(TaskPropertyBean propBean, TaskBean taskBean, com.engiweb.pm.entity.Paging paging, EnvironmentBean envBean, java.lang.String cod_oper, java.lang.String token, java.lang.String realm)
      Ricerca gli oggetti TaskPropertyBean associati all'oggetto TaskBean passato.
      com.engiweb.pm.entity.BeanList<RiskBean> findRisk(RiskBean riskBean, TaskBean taskBean, EnvironmentBean envBean, com.engiweb.pm.entity.Paging paging, java.lang.String token, java.lang.String realm)
      Find risk.
      com.engiweb.pm.entity.BeanList<TaskBean> findTaskByEntitlement(TaskBean filterTaskBean, EnvironmentBean filterEnvironmentBean, EntitlementBean entitlementBean, com.engiweb.pm.entity.Paging paging, java.lang.String token, java.lang.String realm)
      Return a list of tasks associated to an entitlement
      com.engiweb.pm.entity.BeanList<TaskBean> findTaskByGroup(TaskBean filterTaskBean, EnvironmentBean filterEnvironmentBean, HierarchyBean hierarchyBean, GroupBean groupBean, com.engiweb.pm.entity.Paging paging, java.lang.String token, java.lang.String realm)
      Return a list of tasks associated to a group
      com.engiweb.pm.entity.BeanList<TaskBean> findTaskByUser(TaskBean filterTaskBean, EnvironmentBean filterEnvironmentBean, UserBean userBean, com.engiweb.pm.entity.Paging paging, java.lang.String token, java.lang.String realm)
      Return a list of tasks associated to an user
      com.engiweb.pm.entity.BeanList<TaskBean> findTasksOfUserGroups(TaskBean filterTaskBean, EnvironmentBean filterEnvironmentBean, UserBean userBean, com.engiweb.pm.entity.Paging paging, java.lang.String token, java.lang.String realm)
      Return a list of tasks associated to all user groups
      TaskBean insert(TaskBean taskBean, TaskBean taskParentBean, EnvironmentBean envBean, java.lang.String cod_operation, java.lang.String token, java.lang.String realm)
      Inserisce un oggetto TaskBean in una gerarchia.
      void removeApplication(ApplicationBean applicationBean, TaskBean taskBean, EnvironmentBean envBean, boolean hier, java.lang.String cod_oper, java.lang.String token, java.lang.String realm)
      Data un'applicazione remuove dall'attivit� tutti i profili dell'applicazione.
      void removeProfiles(com.engiweb.pm.entity.BeanList<EntitlementBean> blProfile, TaskBean taskBean, EnvironmentBean envBean, boolean hier, java.lang.String cod_oper, java.lang.String token, java.lang.String realm)
      Disassocia una lista di ProfileBean da un TaskBean (esistente).
      void removeProperties(com.engiweb.pm.entity.BeanList propBl, TaskBean taskBean, EnvironmentBean envBean, java.lang.String cod_oper, java.lang.String token, java.lang.String realm)
      Rimuove una lista di oggetti TaskPropertyBean dall'oggetto TaskBean passato.
      void update(TaskBean taskBean, TaskBean taskParentBean, EnvironmentBean envBean, java.lang.String cod_oper, java.lang.String token, java.lang.String realm)
      Aggiorna un oggetto TaskBean in una gerarchia.
    • Method Detail

      • insert

        TaskBean insert(TaskBean taskBean,
                        TaskBean taskParentBean,
                        EnvironmentBean envBean,
                        java.lang.String cod_operation,
                        java.lang.String token,
                        java.lang.String realm)
                 throws com.engiweb.toolkit.common.BackendException
        Inserisce un oggetto TaskBean in una gerarchia.
        Parameters:
        taskBean - the task bean
        taskParentBean - the task parent bean
        envBean - the env bean
        cod_operation - the cod_operation
        token - the token
        realm - the realm
        Returns:
        oggetto TaskBean inserito
        Throws:
        com.engiweb.toolkit.common.BackendException - the backend exception
      • update

        void update(TaskBean taskBean,
                    TaskBean taskParentBean,
                    EnvironmentBean envBean,
                    java.lang.String cod_oper,
                    java.lang.String token,
                    java.lang.String realm)
             throws com.engiweb.toolkit.common.BackendException
        Aggiorna un oggetto TaskBean in una gerarchia.
        Parameters:
        taskBean - the task bean
        taskParentBean - the task parent bean
        envBean - the env bean
        cod_oper - the cod_oper
        token - the token
        realm - the realm
        Throws:
        com.engiweb.toolkit.common.BackendException - the backend exception
      • delete

        void delete(TaskBean taskBean,
                    EnvironmentBean envBean,
                    boolean hier,
                    java.lang.String cod_oper,
                    java.lang.String token,
                    java.lang.String realm)
             throws com.engiweb.toolkit.common.BackendException
        Aggiorna un oggetto TaskBean in una gerarchia.
        Parameters:
        taskBean - the task bean
        envBean - the env bean
        hier - the hier
        cod_oper - the cod_oper
        token - the token
        realm - the realm
        Throws:
        com.engiweb.toolkit.common.BackendException - the backend exception
      • find

        com.engiweb.pm.entity.BeanList<TaskBean> find(TaskBean taskBean,
                                                      TaskBean taskBeanStart,
                                                      EnvironmentBean envBean,
                                                      com.engiweb.pm.entity.Paging paging,
                                                      java.lang.String token,
                                                      java.lang.String realm)
                                               throws com.engiweb.toolkit.common.BackendException
        Cerca oggetti TaskBean a partire da un TaskBean e EnvironmentBean.
        Parameters:
        taskBean - the task bean
        taskBeanStart - the task bean start
        envBean - the env bean
        paging - the paging
        token - the token
        realm - the realm
        Returns:
        BeanList di TaskBean trovati
        Throws:
        com.engiweb.toolkit.common.BackendException - the backend exception
      • findParent

        com.engiweb.pm.entity.BeanList<TaskBean> findParent(TaskBean taskBean,
                                                            EnvironmentBean envBean,
                                                            java.lang.String token,
                                                            java.lang.String realm)
                                                     throws com.engiweb.toolkit.common.BackendException
        Cerca gli oggetti TaskBean di livello gerarchicamente superiore a partire da un TaskBean e EnvironmentBean.
        Parameters:
        taskBean - the task bean
        envBean - the env bean
        token - the token
        realm - the realm
        Returns:
        BeanList di TaskBean trovati
        Throws:
        com.engiweb.toolkit.common.BackendException - the backend exception
      • findInHier

        com.engiweb.pm.entity.BeanList<TaskBean> findInHier(TaskBean taskBean,
                                                            EnvironmentBean envBean,
                                                            boolean oneLevel,
                                                            com.engiweb.pm.entity.Paging paging,
                                                            java.lang.String token,
                                                            java.lang.String realm)
                                                     throws com.engiweb.toolkit.common.BackendException
        Cerca gli oggetti TaskBean di livello gerarchicamente inferiore a partire da un TaskBean e EnvironmentBean.
        Parameters:
        taskBean - the task bean
        envBean - the env bean
        oneLevel - the one level
        paging - the paging
        token - the token
        realm - the realm
        Returns:
        BeanList di TaskBean trovati
        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,
                         java.lang.String cod_oper,
                         java.lang.String token,
                         java.lang.String realm)
                  throws com.engiweb.toolkit.common.BackendException
        Associa una lista di ProfileBean ad un TaskBean (esistente).
        Parameters:
        blProfile - the bl profile
        taskBean - the task bean
        envBean - the env bean
        hier - the hier
        cod_oper - the cod_oper
        token - the token
        realm - the realm
        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,
                            java.lang.String cod_oper,
                            java.lang.String token,
                            java.lang.String realm)
                     throws com.engiweb.toolkit.common.BackendException
        Disassocia una lista di ProfileBean da un TaskBean (esistente).
        Parameters:
        blProfile - the bl profile
        taskBean - the task bean
        envBean - the env bean
        hier - the hier
        cod_oper - the cod_oper
        token - the token
        realm - the realm
        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,
                                                                    java.lang.String token,
                                                                    java.lang.String realm)
                                                             throws com.engiweb.toolkit.common.BackendException
        Cerca ProfileBean associati ad un TaskBean.
        Parameters:
        filterProfileBean - the filter profile bean
        taskBean - the task bean
        envBean - the env bean
        hier - the hier
        paging - the paging
        token - the token
        realm - the realm
        Returns:
        BeanList di ProfileBean
        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,
                                                                       java.lang.String token,
                                                                       java.lang.String realm)
                                                                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
        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,
                                                                 java.lang.String token,
                                                                 java.lang.String realm)
                                                          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
        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,
                                                                java.lang.String token,
                                                                java.lang.String realm)
                                                         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
        Returns:
        BeanList of TaskBen
        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,
                                                                       java.lang.String token,
                                                                       java.lang.String realm)
                                                                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
        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,
                                                            java.lang.String token,
                                                            java.lang.String realm)
                                                     throws com.engiweb.toolkit.common.BackendException
        Cerca una lista di TaskBean a partire dal TaskBean e dal suo incompatibile.
        Parameters:
        incompTaskBean - the incomp task bean
        taskBean - the task bean
        envBean - the env bean
        paging - the paging
        token - the token
        realm - the realm
        Returns:
        BeanList di 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,
                                                              java.lang.String token,
                                                              java.lang.String realm)
                                                       throws com.engiweb.toolkit.common.BackendException
        Ricerca i DomainBean asscociati ad un TaskBean.
        Parameters:
        domainBean - the domain bean
        taskBean - the task bean
        envBean - the env bean
        paging - the paging
        token - the token
        realm - the realm
        Returns:
        BeanList di DomainBean
        Throws:
        com.engiweb.toolkit.common.BackendException - the backend exception
      • addApplication

        void addApplication(ApplicationBean applicationBean,
                            TaskBean taskBean,
                            EnvironmentBean envBean,
                            boolean hier,
                            java.lang.String cod_oper,
                            java.lang.String token,
                            java.lang.String realm)
                     throws com.engiweb.toolkit.common.BackendException
        Data un'applicazione assegna all'attivit� tutti i profili dell'applicazione.
        Parameters:
        applicationBean - the application bean
        taskBean - the task bean
        envBean - the env bean
        hier - the hier
        cod_oper - the cod_oper
        token - the token
        realm - the realm
        Throws:
        com.engiweb.toolkit.common.BackendException - the backend exception
      • removeApplication

        void removeApplication(ApplicationBean applicationBean,
                               TaskBean taskBean,
                               EnvironmentBean envBean,
                               boolean hier,
                               java.lang.String cod_oper,
                               java.lang.String token,
                               java.lang.String realm)
                        throws com.engiweb.toolkit.common.BackendException
        Data un'applicazione remuove dall'attivit� tutti i profili dell'applicazione.
        Parameters:
        applicationBean - the application bean
        taskBean - the task bean
        envBean - the env bean
        hier - the hier
        cod_oper - the cod_oper
        token - the token
        realm - the realm
        Throws:
        com.engiweb.toolkit.common.BackendException - the backend exception
      • findProperties

        com.engiweb.pm.entity.BeanList findProperties(TaskPropertyBean propBean,
                                                      TaskBean taskBean,
                                                      com.engiweb.pm.entity.Paging paging,
                                                      EnvironmentBean envBean,
                                                      java.lang.String cod_oper,
                                                      java.lang.String token,
                                                      java.lang.String realm)
                                               throws com.engiweb.toolkit.common.BackendException
        Ricerca gli oggetti TaskPropertyBean associati all'oggetto TaskBean passato.
        Parameters:
        propBean - the prop bean
        taskBean - the task bean
        paging - : Paging
        envBean - the env bean
        cod_oper - the cod_oper
        token - the token
        realm - the realm
        Returns:
        BeanList di oggetti TaskPropertyBean
        Throws:
        com.engiweb.toolkit.common.BackendException - the backend exception
      • addProperties

        void addProperties(com.engiweb.pm.entity.BeanList propBl,
                           TaskBean taskBean,
                           EnvironmentBean envBean,
                           java.lang.String cod_oper,
                           java.lang.String token,
                           java.lang.String realm)
                    throws com.engiweb.toolkit.common.BackendException
        Aggiunge una lista di oggetti TaskPropertyBean all'oggetto TaskBean passato.
        Parameters:
        propBl - the prop bl
        taskBean - the task bean
        envBean - the env bean
        cod_oper - the cod_oper
        token - the token
        realm - the realm
        Throws:
        com.engiweb.toolkit.common.BackendException - the backend exception
      • removeProperties

        void removeProperties(com.engiweb.pm.entity.BeanList propBl,
                              TaskBean taskBean,
                              EnvironmentBean envBean,
                              java.lang.String cod_oper,
                              java.lang.String token,
                              java.lang.String realm)
                       throws com.engiweb.toolkit.common.BackendException
        Rimuove una lista di oggetti TaskPropertyBean dall'oggetto TaskBean passato.
        Parameters:
        propBl - the prop bl
        taskBean - the task bean
        envBean - the env bean
        cod_oper - the cod_oper
        token - the token
        realm - the realm
        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,
                                                          java.lang.String token,
                                                          java.lang.String realm)
                                                   throws com.engiweb.toolkit.common.BackendException
        Find risk.
        Parameters:
        riskBean - the risk bean
        taskBean - the task bean
        envBean - the env bean
        paging - the paging
        token - the token
        realm - the realm
        Returns:
        the bean list
        Throws:
        com.engiweb.toolkit.common.BackendException - the backend exception
      • findEntitlement

        com.engiweb.pm.entity.BeanList<EntitlementBean> findEntitlement(TaskBean taskBean,
                                                                        java.lang.String token,
                                                                        java.lang.String realm)
                                                                 throws com.engiweb.toolkit.common.BackendException
        Finds all the EntitlementBean related to the TaskBean.
        Parameters:
        taskBean - Task used to find the Entitlements.
        token - the token
        realm - the realm
        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,
                                                                          java.lang.String token,
                                                                          java.lang.String realm)
                                                                   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.
        token - The token.
        realm - The realm.
        Returns:
        BeanList of TaskBean.
        Throws:
        com.engiweb.toolkit.common.BackendException