com.crossideas.certification.common.interfaces

Interface IEntitlementReviewDirect

  • All Superinterfaces:
    common.direct.IDirect


    public interface IEntitlementReviewDirect
    extends common.direct.IDirect
    The Interface IEntitlementReviewDirect.
    • Method Detail

      • findReview

        com.engiweb.pm.entity.BeanList<EntitlementReviewBean> findReview(EntitlementReviewBean entitlementReviewBean,
                                                                         com.crossideas.certification.common.util.EntitlementReviewOption entitlementReviewOption,
                                                                         AttestationBean attestationBean,
                                                                         UserBean userLogged,
                                                                         com.engiweb.pm.entity.Paging paging,
                                                                         com.engiweb.pm.dao.db.DAO connDao)
                                                                  throws com.engiweb.toolkit.common.BackendException
        Returns entitlement review beans certifiable by logged user according with the filters.
        Parameters:
        entitlementReviewBean - EntitlementReviewBean the entitlement review
        entitlementReviewOption - EntitlementReviewOption the entitlement review option
        attestationBean - AttestationBean the attestation
        userLogged - UserBean the user logged or the UserReviewBean reviewer user
        paging - Paging
        connDao - DAOthe connection dao
        Returns:
        BeanList of EntitlementReviewBean
        Throws:
        com.engiweb.toolkit.common.BackendException - the backend exception
      • approve

        void approve(com.engiweb.pm.entity.BeanList<EntitlementReviewBean> entitlementReviewBeans,
                     java.lang.String note,
                     java.lang.String userLoggedCode,
                     com.engiweb.pm.dao.db.DAO connDao)
              throws com.engiweb.toolkit.common.BackendException
        Approve.
        Parameters:
        entitlementReviewBeans - EntitlementReviewBean the entitlement 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<EntitlementReviewBean> entitlementReviewBeans,
                    java.lang.String note,
                    java.lang.String userLoggedCode,
                    com.engiweb.pm.dao.db.DAO connDao)
             throws com.engiweb.toolkit.common.BackendException
        Revoke.
        Parameters:
        entitlementReviewBeans - BeanList of EntitlementReviewBean the list of entitlement review
        note - the note
        userLoggedCode - 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<EntitlementReviewBean> entitlementReviewBeans,
                      AttestationBean attestationBean,
                      ReviewNoteBean noteBean,
                      com.engiweb.pm.dao.db.DAO connDao)
               throws com.engiweb.toolkit.common.BackendException
        Redirect a certification of a list of entitlement to another user.
        Parameters:
        entitlementReviewBeans - BeanList of EntitlementReviewBean the list of entitlement review
        attestationBean - AttestationBean 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<EntitlementReviewBean> entitlementReviewBeans,
                      AttestationBean attestationBean,
                      ReviewNoteBean noteBean,
                      com.engiweb.pm.dao.db.DAO connDao)
               throws com.engiweb.toolkit.common.BackendException
        Escalate.
        Parameters:
        entitlementReviewBeans - BeanList of EntitlementReviewBean the list of entitlement review
        attestationBean - AttestationBean the attestation
        noteBean - ReviewNoteBean
        connDao - DAO the connection dao
        Throws:
        com.engiweb.toolkit.common.BackendException - the backend exception
      • signOff

        void signOff(com.engiweb.pm.entity.BeanList<EntitlementReviewBean> blEntitlementReview,
                     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:
        blEntitlementReview - BeanList of EntitlementReviewBean the list of entitlement review
        userLoggedCode - String the code of user logged
        connDao - DAOthe connection dao
        Throws:
        com.engiweb.toolkit.common.BackendException - the backend exception
      • findApplication

        com.engiweb.pm.entity.BeanList<ApplicationBean> findApplication(ApplicationBean applicationBean,
                                                                        EntitlementBean entBean,
                                                                        UserBean userBean,
                                                                        AttestationBean attestationBean,
                                                                        com.engiweb.pm.entity.Paging paging,
                                                                        com.engiweb.pm.dao.db.DAO connDao)
                                                                 throws com.engiweb.toolkit.common.BackendException
        Find application.
        Parameters:
        applicationBean - ApplicationBean the application
        entBean - EntitlementBean the entitlement
        userBean - UserBean the user
        attestationBean - AttestationBean the attestation
        paging - 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,
                                                                   EntitlementReviewBean entitlementReviewBean,
                                                                   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 bean
        entitlementReviewBean - EntitlementReviewBean the entitlement review bean
        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<EntitlementReviewHistoryBean> findReviewHistory(java.lang.String entitlementName,
                                                                                       java.lang.String entitlementCode,
                                                                                       java.lang.String applicationName,
                                                                                       EntitlementType entitlementType,
                                                                                       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
        reviewStatus - ReviewStatus the review status
        paging - Paging
        connDao - DAO the connection dao
        Returns:
        BeanList of EntitlementReviewHistoryBean
        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 the hierarchy
        hier - boolean: if true research must be performed hierarchically, false otherwise
        attestationBean - AttestationBean the attestation
        paging - Paging the 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
      • rollback

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

        void updateNote(com.engiweb.pm.entity.BeanList<EntitlementReviewBean> 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 EntitlementReviewBean the list of entitlement 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
      • findReviewersForRedirect

        com.engiweb.pm.entity.BeanList<UserBean> findReviewersForRedirect(UserBean userBean,
                                                                          GroupBean groupBean,
                                                                          HierarchyBean hierarchyBean,
                                                                          boolean hier,
                                                                          com.engiweb.pm.entity.BeanList<EntitlementReviewBean> entitlementReviewBeans,
                                                                          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
        hierarchyBean - HierarchyBean hierarchy
        hier - boolean: if true research must be performed hierarchically, false otherwise
        entitlementReviewBeans - BeanList of EntitlementReviewBean the list of entitlement review
        connDao - DAO the connection dao
        Returns:
        BeanList of UserBean the list of reviewers founded
        Throws:
        com.engiweb.toolkit.common.BackendException - the backend exception
      • findSupervisorsForEscalate

        com.engiweb.pm.entity.BeanList<UserBean> findSupervisorsForEscalate(com.engiweb.pm.entity.BeanList<EntitlementReviewBean> entitlementReviewBeans,
                                                                            com.engiweb.pm.dao.db.DAO connDao)
                                                                     throws com.engiweb.toolkit.common.BackendException
        Find supervisors for escalate.
        Parameters:
        entitlementReviewBeans - BeanList of EntitlementReviewBean the list of entitlement review
        connDao - DAO the connection dao
        Returns:
        BeanList of UserBean the list of supervisor founded
        Throws:
        com.engiweb.toolkit.common.BackendException - the backend exception