com.crossideas.certification.common.interfaces

Interface IOrgUnitReviewDirect

  • All Superinterfaces:
    common.direct.IDirect


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

      • findOrganizationalUnit

        com.engiweb.pm.entity.BeanList<OrgUnitReviewBean> findOrganizationalUnit(OrgUnitReviewBean orgUnitReviewBean,
                                                                                 boolean hier,
                                                                                 com.crossideas.certification.common.util.JobUnitReviewOption 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
        Returns all organization units include within campaign and in user logged visibility.
        Parameters:
        orgUnitReviewBean - OrgUnitReviewBean the organization unit review
        hier - boolean: if true research must be performed hierarchically, false otherwise
        reviewOption - JobUnitReviewOption the review option
        attestationBean - AttestationBean the attestation
        paging - Paging
        userLoggedCode - String the code of user logged
        connDao - DAO the connection dao
        Returns:
        BeanList of OrgUnitReviewBean
        Throws:
        com.engiweb.toolkit.common.BackendException - the backend exception
      • findOrganizationalUnit

        com.engiweb.pm.entity.BeanList<OrgUnitReviewBean> findOrganizationalUnit(OrgUnitReviewBean orgUnitReviewBean,
                                                                                 boolean hier,
                                                                                 com.crossideas.certification.common.util.JobUnitReviewOption 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
        Returns all organization units include within campaign and in user logged visibility.
        Parameters:
        orgUnitReviewBean - OrgUnitReviewBean the organization unit review
        hier - boolean: if true research must be performed hierarchically, false otherwise
        reviewOption - JobUnitReviewOption the review option
        taskBean - TaskBean: if null no filter is applied, otherwise the passed object is used as filter
        taskHier - boolean: if true research must be performed hierarchically, false otherwise
        attestationBean - AttestationBean the attestation
        paging - Paging
        userLoggedCode - String the code of user logged
        connDao - DAO the connection dao
        Returns:
        BeanList of OrgUnitReviewBean
        Throws:
        com.engiweb.toolkit.common.BackendException - the backend exception
      • findReview

        com.engiweb.pm.entity.BeanList<JobUnitReviewBean> findReview(JobUnitReviewBean jobUnitReviewBean,
                                                                     java.lang.Boolean incomp,
                                                                     com.crossideas.certification.common.util.JobUnitReviewOption jobUnitReviewOption,
                                                                     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
        Returns the jobunit reviewable by an user, filtered by entitlement /application /org unit to review set in jobUnitReviewOption
        Parameters:
        jobUnitReviewBean - JobUnitReviewBean the job unit review
        incomp - boolean incompatible or not
        jobUnitReviewOption - JobUnitReviewOption the job unit review option
        attestationBean - AttestationBean the attestation
        paging - Paging
        userLoggedCode - String the code of user logged
        connDao - DAO the connection dao
        Returns:
        BeanList of JobUnitReviewBean
        Throws:
        com.engiweb.toolkit.common.BackendException - the backend exception
      • approve

        void approve(com.engiweb.pm.entity.BeanList<JobUnitReviewBean> blReviewBean,
                     java.lang.String note,
                     java.lang.String userLoggedCode,
                     com.engiweb.pm.dao.db.DAO connDao)
              throws com.engiweb.toolkit.common.BackendException
        Approve passed entitlements
        Parameters:
        blReviewBean - BeanList of JobUnitReviewBean
        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<OrgUnitReviewBean> orgUnitReviewBeans,
                     AttestationBean attestationBean,
                     java.lang.String note,
                     java.lang.String userLoggedCode,
                     com.engiweb.pm.dao.db.DAO connDao)
              throws com.engiweb.toolkit.common.BackendException
        Approve.
        Parameters:
        orgUnitReviewBeans - OrgUnitReviewBean the organization unit review
        attestationBean - AttestationBean 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<JobUnitReviewBean> blReviewBean,
                    java.lang.String note,
                    java.lang.String userLoggedCode,
                    com.engiweb.pm.dao.db.DAO connDao)
             throws com.engiweb.toolkit.common.BackendException
        Revoke.
        Parameters:
        blReviewBean - BeanList of JobUnitReviewBean
        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<OrgUnitReviewBean> orgUnitReviewBeans,
                    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 ous
        Parameters:
        orgUnitReviewBeans - BeanList of OrgUnitReviewBean the organization unit review
        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
      • redirect

        void redirect(com.engiweb.pm.entity.BeanList<JobUnitReviewBean> jobUnitReviewBeans,
                      AttestationBean attestationBean,
                      ReviewNoteBean noteBean,
                      com.engiweb.pm.dao.db.DAO connDao)
               throws com.engiweb.toolkit.common.BackendException
        Redirect.
        Parameters:
        jobUnitReviewBeans - BeanList of JobUnitReviewBean
        attestationBean - AttestationBean the attestation
        noteBean - ReviewNoteBean
        connDao - DAO the connection dao
        Throws:
        com.engiweb.toolkit.common.BackendException - the backend exception
      • redirect

        void redirect(com.engiweb.pm.entity.BeanList<OrgUnitReviewBean> orgUnitReviewBeans,
                      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:
        orgUnitReviewBeans - BeanList of OrgUnitReviewBean the organization unit review
        attestationBean - AttestationBean the attestation
        toUser - UserBean user
        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
      • escalate

        void escalate(com.engiweb.pm.entity.BeanList<JobUnitReviewBean> jobUnitReviewBeans,
                      AttestationBean attestationBean,
                      ReviewNoteBean noteBean,
                      com.engiweb.pm.dao.db.DAO connDao)
               throws com.engiweb.toolkit.common.BackendException
        Escalate.
        Parameters:
        jobUnitReviewBeans - BeanList of JobUnitReviewBean the job unit review
        attestationBean - BeanList the attestation
        noteBean - ReviewNoteBean
        connDao - DAO the connection dao
        Throws:
        com.engiweb.toolkit.common.BackendException - the backend exception
      • escalate

        void escalate(com.engiweb.pm.entity.BeanList<OrgUnitReviewBean> orgUnitReviewBeans,
                      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 a supervisor
        Parameters:
        orgUnitReviewBeans - BeanList of OrgUnitReviewBean the organization unit review
        attestationBean - AttestationBean the attestation
        toSupervisor - UserBean to the supervisor
        noteBean - ReviewNoteBean
        userLoggedCode - String the code of user logged
        connDao - the connection dao
        Throws:
        com.engiweb.toolkit.common.BackendException - the backend exception
      • signOff

        void signOff(OrgUnitReviewBean orgUnitReviewBean,
                     AttestationBean attestationBean,
                     java.lang.String userLoggedCode,
                     com.engiweb.pm.dao.db.DAO connDao)
              throws com.engiweb.toolkit.common.BackendException
        Sign off.
        Parameters:
        orgUnitReviewBean - OrgUnitReviewBean the organization unit review
        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<JobUnitReviewBean> blJobUnitReview,
                     java.lang.String userLoggedCode,
                     com.engiweb.pm.dao.db.DAO connDao)
              throws com.engiweb.toolkit.common.BackendException
        Sign off.
        Parameters:
        blJobUnitReview - BeanList of JobUnitReviewBean
        userLoggedCode - String the code of user logged
        connDao - DAO the connection dao
        Throws:
        com.engiweb.toolkit.common.BackendException - the backend exception
      • findApplication

        com.engiweb.pm.entity.BeanList<ApplicationBean> findApplication(ApplicationBean applicationBean,
                                                                        GroupBean groupBean,
                                                                        HierarchyBean hierarchyBean,
                                                                        AttestationBean attestationBean,
                                                                        UserBean userLoggedBean,
                                                                        com.engiweb.pm.entity.Paging paging,
                                                                        com.engiweb.pm.dao.db.DAO connDao)
                                                                 throws com.engiweb.toolkit.common.BackendException
        Returns Applications associated to jobunits to review.
        Parameters:
        applicationBean - ApplicationBean the application
        groupBean - GroupBean the group
        hierarchyBean - HierarchyBean mandatory
        attestationBean - AttestationBean the attestation
        userLoggedBean - UserBean the user logged bean or another user
        paging - Paging the paging
        connDao - DAO the connection dao
        Returns:
        BeanList of ApplicationBean
        Throws:
        com.engiweb.toolkit.common.BackendException - the backend exception
      • findMessage

        com.engiweb.pm.entity.BeanList<ReviewNoteBean> findMessage(ReviewNoteBean reviewNoteBean,
                                                                   JobUnitReviewBean jobUnitReviewBean,
                                                                   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
        jobUnitReviewBean - JobUnitReviewBean the job unit 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<JobUnitReviewHistoryBean> findReviewHistory(java.lang.String entitlementName,
                                                                                   java.lang.String entitlementCode,
                                                                                   java.lang.String applicationName,
                                                                                   EntitlementType entitlementType,
                                                                                   GroupBean groupBean,
                                                                                   com.crossideas.certification.common.enumeration.ReviewStatus reviewStatus,
                                                                                   com.engiweb.pm.entity.Paging paging,
                                                                                   com.engiweb.pm.dao.db.DAO connDao)
                                                                            throws com.engiweb.toolkit.common.BackendException
        Find review history.
        Parameters:
        entitlementName - String the entitlement name
        entitlementCode - String the entitlement code
        applicationName - String the application name
        entitlementType - EntitlementType the entitlement type
        groupBean - GroupBean the organization unit
        reviewStatus - ReviewStatus the review status
        paging - Paging
        connDao - DAO the connection dao
        Returns:
        BeanList of JobUnitReviewHistoryBean
        Throws:
        com.engiweb.toolkit.common.BackendException - the backend exception
      • 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
        groupBean - GroupBean the group
        hierarchyBean - HierarchyBean mandatory
        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
      • 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
      • findOrganizationalUnitByReviewer

        com.engiweb.pm.entity.BeanList<OrgUnitReviewBean> findOrganizationalUnitByReviewer(OrgUnitReviewBean orgUnitReviewBean,
                                                                                           boolean hier,
                                                                                           com.crossideas.certification.common.util.JobUnitReviewOption 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 organizational unit by reviewer.
        Parameters:
        orgUnitReviewBean - OrgUnitReviewBean the organization unit review
        hier - boolean: if true research must be performed hierarchically, false otherwise
        reviewOption - JobUnitReviewOption the review option
        reviewerUserBean - UserBean the reviewer user bean
        attestationBean - AttestationBean the attestation bean
        paging - Paging
        connDao - the connection dao
        Returns:
        BeanList of OrgUnitReviewBean
        Throws:
        com.engiweb.toolkit.common.BackendException - the backend exception
      • findOrganizationalUnitByReviewer

        com.engiweb.pm.entity.BeanList<OrgUnitReviewBean> findOrganizationalUnitByReviewer(OrgUnitReviewBean orgUnitReviewBean,
                                                                                           boolean hier,
                                                                                           com.crossideas.certification.common.util.JobUnitReviewOption 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 organizational unit by reviewer.
        Parameters:
        orgUnitReviewBean - OrgUnitReviewBean the organization unit review
        hier - boolean: if true research must be performed hierarchically, false otherwise
        reviewOption - JobUnitReviewOption the review option
        reviewerUserBean - UserBean the reviewer user bean
        taskBean - TaskBean: if null no filter is applied, otherwise the passed object is used as filter
        taskHier - boolean: if true research must be performed hierarchically, false otherwise
        attestationBean - AttestationBean the attestation bean
        paging - Paging
        connDao - the connection dao
        Returns:
        BeanList of OrgUnitReviewBean
        Throws:
        com.engiweb.toolkit.common.BackendException - the backend exception
      • findReviewByReviewer

        com.engiweb.pm.entity.BeanList<JobUnitReviewBean> findReviewByReviewer(JobUnitReviewBean jobUnitReviewBean,
                                                                               java.lang.Boolean incomp,
                                                                               com.crossideas.certification.common.util.JobUnitReviewOption jobUnitReviewOption,
                                                                               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:
        jobUnitReviewBean - JobUnitReviewBean the job unit review
        incomp - boolean incompatibily or not
        jobUnitReviewOption - JobUnitReviewOption the job unit review option
        reviewerUserBean - UserBean the reviewer user bean
        attestationBean - AttestationBean the attestation bean
        paging - Paging
        connDao - DAO the connection dao
        Returns:
        BeanList of JobUnitReviewBean
        Throws:
        com.engiweb.toolkit.common.BackendException - the backend exception
      • rollback

        void rollback(com.engiweb.pm.entity.BeanList<JobUnitReviewBean> blReviewBean,
                      java.lang.String userLoggedCode,
                      com.engiweb.pm.dao.db.DAO connDao)
               throws com.engiweb.toolkit.common.BackendException
        Rollback.
        Parameters:
        blReviewBean - BeanList of JobUnitReviewBean
        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<JobUnitReviewBean> 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 JobUnitReviewBean
        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
      • findReviewersForRedirect

        com.engiweb.pm.entity.BeanList<UserBean> findReviewersForRedirect(UserBean userBean,
                                                                          GroupBean groupBean,
                                                                          HierarchyBean hierarchyBean,
                                                                          boolean hier,
                                                                          com.engiweb.pm.entity.BeanList<JobUnitReviewBean> orgUnitReviewBeans,
                                                                          com.engiweb.pm.dao.db.DAO connDao)
                                                                   throws com.engiweb.toolkit.common.BackendException
        Find reviewers for redirect.
        Parameters:
        userBean - UserBean the user
        ouBean - OrgUnitBean the organization unit
        hier - boolean: if true research must be performed hierarchically, false otherwise
        orgUnitReviewBeans - BeanList of JobUnitReviewBean the organization unit 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<OrgUnitReviewBean> orgUnitReviewBeans,
                                                                          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
        ouBean - OrgUnitBean the organization unit
        hier - boolean: if true research must be performed hierarchically, false otherwise
        orgUnitReviewBeans - BeanList of OrgUnitReviewBean the organization unit review
        attestationBean - AttestationBean the attestation
        userLoggedCode - String the code of user logged
        connDao - DAOthe 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<JobUnitReviewBean> orgUnitReviewBeans,
                                                                            com.engiweb.pm.dao.db.DAO connDao)
                                                                     throws com.engiweb.toolkit.common.BackendException
        Find supervisors for escalate.
        Parameters:
        orgUnitReviewBeans - BeanList of JobUnitReviewBean the organization unit review
        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<OrgUnitReviewBean> orgUnitReviewBeans,
                                                                            AttestationBean attestationBean,
                                                                            com.engiweb.pm.dao.db.DAO connDao)
                                                                     throws com.engiweb.toolkit.common.BackendException
        Find supervisors for escalate.
        Parameters:
        orgUnitReviewBeans - BeanList of OrgUnitReviewBean the organization unit review
        attestationBean - AttestationBean the attestation
        connDao - DAO the connection dao
        Returns:
        BeanList of UserBean
        Throws:
        com.engiweb.toolkit.common.BackendException - the backend exception