com.crossideas.certification.common.interfaces

Interface IPersonRemediationReviewDirect

  • All Superinterfaces:
    common.direct.IDirect


    public interface IPersonRemediationReviewDirect
    extends common.direct.IDirect
    • Method Detail

      • findUser

        com.engiweb.pm.entity.BeanList<UserReviewBean> findUser(UserReviewBean userReviewBean,
                                                                java.lang.Boolean incomp,
                                                                boolean hier,
                                                                com.crossideas.certification.common.util.PersonRemediationReviewOption reviewOption,
                                                                AttestationBean attestationBean,
                                                                com.engiweb.pm.entity.Paging paging,
                                                                java.lang.String userLoggedCode,
                                                                com.engiweb.pm.dao.db.DAO connDao)
                                                         throws com.engiweb.toolkit.common.BackendException
        Find user.
        Parameters:
        userReviewBean - UserReviewBean the user review
        incomp - boolean
        hier - boolean: if true research must be performed hierarchically, false otherwise
        reviewOption - PersonRemediationReviewOption the review option
        attestationBean - AttestationBean the attestation
        paging - Paging
        userLoggedCode - String the code of user logged
        connDao - DAO the connection dao
        Returns:
        BeanList of UserReviewBean
        Throws:
        com.engiweb.toolkit.common.BackendException - the backend exception
      • findUser

        com.engiweb.pm.entity.BeanList<UserReviewBean> findUser(UserReviewBean userReviewBean,
                                                                java.lang.Boolean incomp,
                                                                boolean hier,
                                                                com.crossideas.certification.common.util.PersonRemediationReviewOption reviewOption,
                                                                TaskBean taskBean,
                                                                boolean taskHier,
                                                                AttestationBean attestationBean,
                                                                com.engiweb.pm.entity.Paging paging,
                                                                java.lang.String userLoggedCode,
                                                                com.engiweb.pm.dao.db.DAO connDao)
                                                         throws com.engiweb.toolkit.common.BackendException
        Find user.
        Parameters:
        userReviewBean - UserReviewBean the user review
        incomp - boolean
        hier - boolean: if true research must be performed hierarchically, false otherwise
        reviewOption - PersonRemediationReviewOption the review option
        taskBean - TaskBean: if null no filter is applied, otherwise the passed object is used as filter
        taskHier - boolean: if true resources will be add to group in hierarchical mode
        attestationBean - AttestationBean the attestation
        paging - Paging
        userLoggedCode - String the code of user logged
        connDao - DAO the connection dao
        Returns:
        BeanList of UserReviewBean
        Throws:
        com.engiweb.toolkit.common.BackendException - the backend exception
      • findReview

        com.engiweb.pm.entity.BeanList<PersonRemediationReviewBean> findReview(PersonRemediationReviewBean personRemediationReviewBean,
                                                                               com.crossideas.certification.common.util.PersonRemediationReviewOption reviewOption,
                                                                               AttestationBean attestationBean,
                                                                               com.engiweb.pm.entity.Paging paging,
                                                                               java.lang.String userLoggedCode,
                                                                               com.engiweb.pm.dao.db.DAO connDao)
                                                                        throws com.engiweb.toolkit.common.BackendException
        Find review.
        Parameters:
        personRemediationReviewBean - PersonRemediationReviewBean the person remediation review
        reviewOption - PersonRemediationReviewOption the review option
        attestationBean - AttestationBean the attestation
        paging - Paging
        userLoggedCode - String the code of user logged
        connDao - DAO the connection dao
        Returns:
        BeanList of PersonRemediationReviewBean
        Throws:
        com.engiweb.toolkit.common.BackendException - the backend exception
      • approve

        void approve(com.engiweb.pm.entity.BeanList<PersonRemediationReviewBean> personRemediationReviewBeans,
                     java.lang.String note,
                     java.lang.String userLoggedCode,
                     com.engiweb.pm.dao.db.DAO connDao)
              throws com.engiweb.toolkit.common.BackendException
        Approve passed review bean. If reviewBean has no remediation associated and note is missing, operation is aborted on it.
        Parameters:
        personRemediationReviewBeans - BeanList of PersonRemediationReviewBean the person remediation review
        note - String the note
        userLoggedCode - String the code of user logged
        connDao - DAO the connection dao
        Throws:
        com.engiweb.toolkit.common.BackendException - the backend exception
      • approve

        void approve(com.engiweb.pm.entity.BeanList<UserBean> userBeanBl,
                     AttestationBean attestationBean,
                     java.lang.String note,
                     java.lang.String userLoggedCode,
                     com.engiweb.pm.dao.db.DAO connDao)
              throws com.engiweb.toolkit.common.BackendException
        Approve passed users.
        Parameters:
        userBeanBl - BeanList of UserBean the users to approve
        attestationBean - Attestation the attestation
        note - String the note
        userLoggedCode - String the code of user logged
        connDao - DAO the connection dao
        Throws:
        com.engiweb.toolkit.common.BackendException - the backend exception
      • revoke

        void revoke(com.engiweb.pm.entity.BeanList<PersonRemediationReviewBean> personRemediationReviewBeans,
                    java.lang.String note,
                    java.lang.String userLoggedCode,
                    com.engiweb.pm.dao.db.DAO connDao)
             throws com.engiweb.toolkit.common.BackendException
        Revoke passed review bean.
        Parameters:
        personRemediationReviewBeans - BeanList of PersonRemediationReviewBean the person remediation review
        note - String the note
        userLoggedCode - String the code of user logged
        connDao - DAO the connection dao
        Throws:
        com.engiweb.toolkit.common.BackendException - the backend exception
      • revoke

        void revoke(com.engiweb.pm.entity.BeanList<UserReviewBean> userReviewBeans,
                    AttestationBean attestationBean,
                    java.lang.String note,
                    java.lang.String userLoggedCode,
                    com.engiweb.pm.dao.db.DAO connDao)
             throws com.engiweb.toolkit.common.BackendException
        Revoke all entitlement belonging to a list of users
        Parameters:
        userReviewBeans - UserReviewBean the user review
        attestationBean - AttestationBean the attestation
        note - String the note
        userLoggedCode - String the code of user logged code
        connDao - DAO the connection dao
        Throws:
        com.engiweb.toolkit.common.BackendException - the backend exception
      • redirect

        void redirect(com.engiweb.pm.entity.BeanList<PersonRemediationReviewBean> personRemediationReviewBeans,
                      AttestationBean attestationBean,
                      ReviewNoteBean noteBean,
                      com.engiweb.pm.dao.db.DAO connDao)
               throws com.engiweb.toolkit.common.BackendException
        Redirect.
        Parameters:
        personRemediationReviewBeans - BeanList of PersonRemediationReviewBean the person remediation review
        attestationBean - String the attestation
        noteBean - String the note
        connDao - DAO the connection dao
        Throws:
        com.engiweb.toolkit.common.BackendException - the backend exception
      • escalate

        void escalate(com.engiweb.pm.entity.BeanList<PersonRemediationReviewBean> personRemediationReviewBeans,
                      AttestationBean attestationBean,
                      ReviewNoteBean noteBean,
                      com.engiweb.pm.dao.db.DAO connDao)
               throws com.engiweb.toolkit.common.BackendException
        Escalate.
        Parameters:
        personRemediationReviewBeans - BeanList of PersonRemediationReviewBean the person remediation review
        attestationBean - AttestationBean the attestation
        noteBean - ReviewNoteBean the note bean
        userLoggedCode - String the code of user logged
        connDao - DAO the connection dao
        Throws:
        com.engiweb.toolkit.common.BackendException - the backend exception
      • redirect

        void redirect(com.engiweb.pm.entity.BeanList<UserReviewBean> userReviewBeans,
                      AttestationBean attestationBean,
                      UserBean toUser,
                      ReviewNoteBean noteBean,
                      java.lang.String userLoggedCode,
                      com.engiweb.pm.dao.db.DAO connDao)
               throws com.engiweb.toolkit.common.BackendException
        Redirect a review from an user to another user.
        Parameters:
        userReviewBeans - BeanList of UserReviewBean the user review
        attestationBean - AttestationBean the attestation
        toUser - UserBean user to redirect
        noteBean - ReviewNoteBean the note
        userLoggedCode - String the code of user logged
        connDao - DAO the conn dao
        Throws:
        com.engiweb.toolkit.common.BackendException - the backend exception
      • escalate

        void escalate(com.engiweb.pm.entity.BeanList<UserReviewBean> userReviewBeans,
                      AttestationBean attestationBean,
                      UserBean toSupervisor,
                      ReviewNoteBean noteBean,
                      java.lang.String userLoggedCode,
                      com.engiweb.pm.dao.db.DAO connDao)
               throws com.engiweb.toolkit.common.BackendException
        Escalate to supervisor.
        Parameters:
        userReviewBeans - BeanList of UserReviewBean the user review
        attestationBean - AttestationBean the attestation
        toSupervisor - UserBean the supervisor to escalate
        noteBean - ReviewNoteBean the note
        userLoggedCode - String the code of user logged
        connDao - DAO the connection dao
        Throws:
        com.engiweb.toolkit.common.BackendException - the backend exception
      • findMessage

        com.engiweb.pm.entity.BeanList<ReviewNoteBean> findMessage(ReviewNoteBean reviewNoteBean,
                                                                   PersonRemediationReviewBean personRemediationReviewBean,
                                                                   com.engiweb.pm.entity.Paging paging,
                                                                   com.engiweb.pm.dao.db.DAO connDao)
                                                            throws com.engiweb.toolkit.common.BackendException
        Find message.
        Parameters:
        reviewNoteBean - ReviewNoteBean the review note
        personRemediationReviewBean - PersonRemediationReviewBean the person remediation review
        paging - Paging
        connDao - DAO the connection dao
        Returns:
        BeanList of ReviewNoteBean
        Throws:
        com.engiweb.toolkit.common.BackendException - the backend exception
      • findReviewHistory

        com.engiweb.pm.entity.BeanList<PersonRemediationReviewHistoryBean> findReviewHistory(java.lang.String riskName,
                                                                                             com.crossideas.certification.common.enumeration.ReviewStatus reviewStatus,
                                                                                             UserBean userBean,
                                                                                             com.engiweb.pm.entity.Paging paging,
                                                                                             com.engiweb.pm.dao.db.DAO connDao)
                                                                                      throws com.engiweb.toolkit.common.BackendException
        Find review history.
        Parameters:
        riskName - String the risk name
        reviewStatus - ReviewStatus the review status
        userBean - UserBean the user bean
        paging - Paging
        connDao - DAO the connection dao
        Returns:
        BeanList of PersonRemediationReviewHistoryBean
        Throws:
        com.engiweb.toolkit.common.BackendException - the backend exception
      • findReviewer

        @Deprecated
        com.engiweb.pm.entity.BeanList<UserReviewBean> findReviewer(UserBean userBean,
                                                                                OrgUnitBean ouBean,
                                                                                boolean hier,
                                                                                AttestationBean attestationBean,
                                                                                com.engiweb.pm.entity.Paging paging,
                                                                                com.engiweb.pm.dao.db.DAO connDao)
                                                                         throws com.engiweb.toolkit.common.BackendException
        Deprecated. Replaced by #findReviewer(UserBean, GroupBean, boolean, AttestationBean, Paging, String, String)
        Throws:
        com.engiweb.toolkit.common.BackendException
      • findReviewer

        com.engiweb.pm.entity.BeanList<UserReviewBean> findReviewer(UserBean userBean,
                                                                    GroupBean groupBean,
                                                                    HierarchyBean hierarchyBean,
                                                                    boolean hier,
                                                                    AttestationBean attestationBean,
                                                                    com.engiweb.pm.entity.Paging paging,
                                                                    com.engiweb.pm.dao.db.DAO connDao)
                                                             throws com.engiweb.toolkit.common.BackendException
        Find reviewer.
        Parameters:
        userBean - UserBean the user
        ouBean - OrgUnitBean the organization user
        hier - boolean: if true research must be performed hierarchically, false otherwise
        attestationBean - AttestationBean the attestation
        paging - Paging
        connDao - DAO the connection dao
        Returns:
        BeanList of UserReviewBean
        Throws:
        com.engiweb.toolkit.common.BackendException - the backend exception
      • signOff

        void signOff(UserReviewBean userBeanToSignOff,
                     AttestationBean attestationBean,
                     java.lang.String userLoggedCode,
                     com.engiweb.pm.dao.db.DAO connDao)
              throws com.engiweb.toolkit.common.BackendException
        SignOff all user processed (approved or revoked) belonging to an user and not just signed off
        Parameters:
        userBeanToSignOff - UserReviewBean user to sign off {mandatory}
        attestationBean - AttestationBean the attestation
        userLoggedCode - String the code of user logged
        connDao - DAO the connection dao
        Throws:
        com.engiweb.toolkit.common.BackendException - the backend exception
      • signOff

        void signOff(com.engiweb.pm.entity.BeanList<PersonRemediationReviewBean> blPersonRemediationReview,
                     java.lang.String userLoggedCode,
                     com.engiweb.pm.dao.db.DAO connDao)
              throws com.engiweb.toolkit.common.BackendException
        Sign off all user entitlements passed that have been processed (approved or revoked), valid, and not signed off yet.
        Parameters:
        blPersonRemediationReview - BeanList of PersonRemediationReviewBean person remediation review
        userLoggedCode - String the code of user logged
        connDao - DAO the connection dao
        Throws:
        com.engiweb.toolkit.common.BackendException - the backend exception
      • findReviewStats

        java.util.HashMap<java.lang.String,java.lang.Integer> findReviewStats(UserBean userBean,
                                                                              AttestationBean attestationBean,
                                                                              com.engiweb.pm.dao.db.DAO connDao)
                                                                       throws com.engiweb.toolkit.common.BackendException
        Find review statistics.
        Parameters:
        userBean - UserBean the user
        attestationBean - AttestationBean the attestation
        connDao - DAO the connection dao
        Returns:
        HashMap the hash map with the statistics, where the key is a String with the AttestationRes and the value is an Integer of the corresponding statistics.
        The keys are:
        • AttestationRes.STATS_ITEM_TOTAL
        • AttestationRes.STATS_ITEM_PENDING
        • AttestationRes.STATS_ITEM_APPROVED
        • AttestationRes.STATS_ITEM_REVOKED
        • AttestationRes.STATS_ITEM_REDIRECTED
        • AttestationRes.STATS_ITEM_APPROVED_SO
        • AttestationRes.STATS_ITEM_REVOKED_SO
        • AttestationRes.STATS_ENTITY_TOTAL
        • AttestationRes.STATS_ENTITY_TOTAL_SO
        • AttestationRes.STATS_ENTITY_TOTAL_WORKED
        Throws:
        com.engiweb.toolkit.common.BackendException - the backend exception
      • findUserByReviewer

        com.engiweb.pm.entity.BeanList<UserReviewBean> findUserByReviewer(UserReviewBean userReviewBean,
                                                                          java.lang.Boolean incomp,
                                                                          boolean hier,
                                                                          com.crossideas.certification.common.util.PersonRemediationReviewOption reviewOption,
                                                                          UserBean reviewerUserBean,
                                                                          AttestationBean attestationBean,
                                                                          com.engiweb.pm.entity.Paging paging,
                                                                          com.engiweb.pm.dao.db.DAO connDao)
                                                                   throws com.engiweb.toolkit.common.BackendException
        Find user by reviewer.
        Parameters:
        userReviewBean - UserReviewBean the user review
        incomp - boolean the incomp
        hier - boolean: if true research must be performed hierarchically, false otherwise
        reviewOption - PersonRemediationReviewOption the review option
        reviewerUserBean - UserBean the reviewer user
        attestationBean - AttestationBean the attestation
        paging - Paging
        connDao - DAOthe connection dao
        Returns:
        BeanList of UserReviewBean
        Throws:
        com.engiweb.toolkit.common.BackendException - the backend exception
      • findUserByReviewer

        com.engiweb.pm.entity.BeanList<UserReviewBean> findUserByReviewer(UserReviewBean userReviewBean,
                                                                          java.lang.Boolean incomp,
                                                                          boolean hier,
                                                                          com.crossideas.certification.common.util.PersonRemediationReviewOption reviewOption,
                                                                          UserBean reviewerUserBean,
                                                                          TaskBean taskBean,
                                                                          boolean taskHier,
                                                                          AttestationBean attestationBean,
                                                                          com.engiweb.pm.entity.Paging paging,
                                                                          com.engiweb.pm.dao.db.DAO connDao)
                                                                   throws com.engiweb.toolkit.common.BackendException
        Find user by reviewer.
        Parameters:
        userReviewBean - UserReviewBean the user review
        incomp - boolean the incomp
        hier - boolean: if true research must be performed hierarchically, false otherwise
        reviewOption - PersonRemediationReviewOption the review option
        reviewerUserBean - UserBean the reviewer user
        taskBean - TaskBean: if null no filter is applied, otherwise the passed object is used as filter
        taskHier - boolean: if true resources will be add to group in hierarchical mode
        attestationBean - AttestationBean the attestation
        paging - Paging
        connDao - DAOthe connection dao
        Returns:
        BeanList of UserReviewBean
        Throws:
        com.engiweb.toolkit.common.BackendException - the backend exception
      • findReviewByReviewer

        com.engiweb.pm.entity.BeanList<PersonRemediationReviewBean> findReviewByReviewer(PersonRemediationReviewBean personRemediationReviewBean,
                                                                                         com.crossideas.certification.common.util.PersonRemediationReviewOption reviewOption,
                                                                                         UserBean reviewerUserBean,
                                                                                         AttestationBean attestationBean,
                                                                                         com.engiweb.pm.entity.Paging paging,
                                                                                         com.engiweb.pm.dao.db.DAO connDao)
                                                                                  throws com.engiweb.toolkit.common.BackendException
        Find review by reviewer.
        Parameters:
        personRemediationReviewBean - PersonRemediationReviewBeanthe person remediation review
        reviewOption - PersonRemediationReviewOption the review option
        reviewerUserBean - UserBeanthe reviewer user
        attestationBean - AttestationBean the attestation
        paging - Paging
        connDao - DAO the connection dao
        Returns:
        BeanList of PersonRemediationReviewBean
        Throws:
        com.engiweb.toolkit.common.BackendException - the backend exception
      • rollback

        void rollback(com.engiweb.pm.entity.BeanList<PersonRemediationReviewBean> blReviewBean,
                      java.lang.String userLoggedCode,
                      com.engiweb.pm.dao.db.DAO connDao)
               throws com.engiweb.toolkit.common.BackendException
        Rollback.
        Parameters:
        blReviewBean - BeanList of PersonRemediationReviewBean
        userLoggedCode - String the code of user logged
        connDao - DAO the connection dao
        Throws:
        com.engiweb.toolkit.common.BackendException - the backend exception
      • updateNote

        void updateNote(com.engiweb.pm.entity.BeanList<PersonRemediationReviewBean> blReviewBean,
                        java.lang.String note,
                        java.lang.String userLoggedCode,
                        com.engiweb.pm.dao.db.DAO connDao)
                 throws com.engiweb.toolkit.common.BackendException
        Update note.
        Parameters:
        blReviewBean - BeanList of PersonRemediationReviewBean
        note - String the note
        connDao - DAO the connection dao
        Throws:
        com.engiweb.toolkit.common.BackendException - the backend exception
      • findReviewersForRedirect

        com.engiweb.pm.entity.BeanList<UserBean> findReviewersForRedirect(UserBean userBean,
                                                                          GroupBean groupBean,
                                                                          HierarchyBean hierarchyBean,
                                                                          boolean hier,
                                                                          com.engiweb.pm.entity.BeanList<PersonRemediationReviewBean> personRemediationReviewBeans,
                                                                          com.engiweb.pm.dao.db.DAO connDao)
                                                                   throws com.engiweb.toolkit.common.BackendException
        Find reviewers for redirect.
        Parameters:
        userBean - UserBean the user
        groupBean - GroupBean the group Bean
        hierarchyBean - HierarchyBean mandatory
        hier - boolean: if true research must be performed hierarchically, false otherwise
        personRemediationReviewBeans - BeanList of PersonRemediationReviewBean the person remediation review
        connDao - DAO the connection dao
        Returns:
        BeanList of UserBean
        Throws:
        com.engiweb.toolkit.common.BackendException - the backend exception
      • findReviewersForRedirect

        com.engiweb.pm.entity.BeanList<UserBean> findReviewersForRedirect(UserBean userBean,
                                                                          GroupBean groupBean,
                                                                          HierarchyBean hierarchyBean,
                                                                          boolean hier,
                                                                          com.engiweb.pm.entity.BeanList<UserReviewBean> userReviewBeans,
                                                                          AttestationBean attestationBean,
                                                                          java.lang.String userLoggedCode,
                                                                          com.engiweb.pm.dao.db.DAO connDao)
                                                                   throws com.engiweb.toolkit.common.BackendException
        Find reviewers for redirect.
        Parameters:
        userBean - UserBean the user
        groupBean - GroupBean the group Bean
        hierarchyBean - HierarchyBean mandatory
        hier - boolean: if true research must be performed hierarchically, false otherwise
        userReviewBeans - BeanList of UserReviewBean the user review
        attestationBean - AttestationBean the attestation
        userLoggedCode - String the code of user logged
        connDao - DAO the connection dao
        Returns:
        BeanList of UserBean
        Throws:
        com.engiweb.toolkit.common.BackendException - the backend exception
      • findSupervisorsForEscalate

        com.engiweb.pm.entity.BeanList<UserBean> findSupervisorsForEscalate(com.engiweb.pm.entity.BeanList<PersonRemediationReviewBean> personRemediationReviewBeans,
                                                                            com.engiweb.pm.dao.db.DAO connDao)
                                                                     throws com.engiweb.toolkit.common.BackendException
        Find supervisors for escalate.
        Parameters:
        personRemediationReviewBeans - BeanList of PersonRemediationReviewBean the person remediation review
        connDao - DAO the connection dao
        Returns:
        BenList of UserBean
        Throws:
        com.engiweb.toolkit.common.BackendException - the backend exception
      • findSupervisorsForEscalate

        com.engiweb.pm.entity.BeanList<UserBean> findSupervisorsForEscalate(com.engiweb.pm.entity.BeanList<UserReviewBean> userReviewBeans,
                                                                            AttestationBean attestationBean,
                                                                            com.engiweb.pm.dao.db.DAO connDao)
                                                                     throws com.engiweb.toolkit.common.BackendException
        Find supervisors for escalate.
        Parameters:
        userReviewBeans - BeanList of UserReviewBean the user review
        attestationBean - AttestationBean the attestation
        connDao - DAO the connection dao
        Returns:
        BeanList of UserBean
        Throws:
        com.engiweb.toolkit.common.BackendException - the backend exception