com.crossideas.certification.common.interfaces

Interface IAttestationDirect

  • All Superinterfaces:
    common.direct.IDirect


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

      • find

        com.engiweb.pm.entity.BeanList<AttestationBean> find(AttestationBean attestationBean,
                                                             com.engiweb.pm.entity.Paging paging,
                                                             com.engiweb.pm.dao.db.DAO connDao)
                                                      throws com.engiweb.toolkit.common.BackendException
        Find attestation.
        Parameters:
        attestationBean - AttestationBean the attestation bean
        paging - Paging the paging
        connDao - DAO the connection dao
        Returns:
        BeanList of AttestationBean
        Throws:
        com.engiweb.toolkit.common.BackendException - the backend exception
      • findHierarchy

        com.engiweb.pm.entity.BeanList<HierarchyBean> findHierarchy(HierarchyBean hierarchyBean,
                                                                    com.engiweb.pm.web.bean.AbstractBean abstractBean,
                                                                    AttestationBean attestationBean,
                                                                    com.engiweb.pm.entity.Paging paging,
                                                                    com.engiweb.pm.dao.db.DAO connDao)
                                                             throws com.engiweb.toolkit.common.BackendException
        Returns hierarchies involved in campaign.
        Parameters:
        hierarchyBean - HierarchyBean
        abstractBean - filter bean that can be set to UserBean if attestationBean type is PERSON_ENTITLEMENT or GroupBean if attestationBean type is OU_ENTITLEMENT
        attestationBean - AttestationBean mandatory the attestation bean
        paging - Paging the paging
        connDao - DAO the connection dao
        Returns:
        BeanList of AttestationBean
        Throws:
        com.engiweb.toolkit.common.BackendException - the backend exception if attestatation type is different by PERSON_ENTITLEMENT or OU_ENTITLEMENT
      • findComplete

        com.engiweb.pm.entity.BeanList<AttestationBean> findComplete(AttestationBean attestationBean,
                                                                     com.engiweb.pm.entity.Paging paging,
                                                                     com.engiweb.pm.dao.db.DAO connDao)
                                                              throws com.engiweb.toolkit.common.BackendException
        Find attestation.
        Parameters:
        attestationBean - AttestationBean the attestation bean
        paging - Paging the paging
        connDao - DAO the connection dao
        Returns:
        BeanList of AttestationBean
        Throws:
        com.engiweb.toolkit.common.BackendException - the backend exception
      • insert

        AttestationBean insert(AttestationBean attestationBean,
                               com.engiweb.pm.entity.BeanList<AttestationPropBean> attPropList,
                               com.engiweb.pm.entity.BeanList<UserBean> blackList,
                               com.engiweb.pm.entity.BeanList<UserBean> supervisorList,
                               java.lang.String userInfo,
                               com.engiweb.pm.dao.db.DAO connDao)
                        throws com.engiweb.toolkit.common.BackendException
        Insert an attestation.
        Parameters:
        attestationBean - AttestationBean the attestation to insert
        attPropList - BeanList of AttestationPropBean the attestation property list
        blackList - BeanList of UserBean the black list
        supervisorList - BeanList of UserBean the supervisor list
        userInfo - String the user info (insert with this format: 'userSurname userName [userCode]')
        connDao - DAO the connection dao
        Returns:
        AttestationBean the attestation bean
        Throws:
        com.engiweb.toolkit.common.BackendException - the backend exception
      • updateAttestation

        void updateAttestation(AttestationBean attestationBean,
                               com.engiweb.pm.entity.BeanList<AttestationPropBean> attPropList,
                               com.engiweb.pm.entity.BeanList<UserBean> blackList,
                               com.engiweb.pm.entity.BeanList<UserBean> supervisorList,
                               java.lang.String userCode,
                               java.lang.String cod_oper,
                               com.engiweb.pm.dao.db.DAO connDao)
                        throws com.engiweb.toolkit.common.BackendException
        Update an attestation with passed values.
        Parameters:
        attestationBean - AttestationBean the attestation to update
        attPropList - BeanList of AttestationPropBean the attestation property list
        blackList - BeanList of UserBean the black list
        supervisorList - BeanList of UserBean the supervisor list
        userCode - String the code of current user
        cod_oper - String Code operation.
        connDao - DAO the connection dao
        Throws:
        com.engiweb.toolkit.common.BackendException - the backend exception
      • delete

        void delete(AttestationBean attestationBean,
                    com.engiweb.pm.dao.db.DAO connDao)
             throws com.engiweb.toolkit.common.BackendException
        Delete an attestation.
        Parameters:
        attestationBean - AttestationBean the attestation to delete
        connDao - DAO the connection dao
        Throws:
        com.engiweb.toolkit.common.BackendException - the backend exception
      • createCampaign

        void createCampaign(AttestationBean attestationBean,
                            com.crossideas.certification.common.enumeration.CampaignStatus status,
                            java.lang.String userCode,
                            java.lang.String cod_oper,
                            com.engiweb.pm.dao.db.DAO connDao)
                     throws com.engiweb.toolkit.common.BackendException
        Creates the campaign in status ACTIVE or PROCESSING or PREVIEW
        Parameters:
        attestationBean - AttestationBean the attestation bean
        status - CampaignStatus the possible campaign status
        • CampaignStatus.ACTIVE
        • CampaignStatus.PROCESSING
        • CampaignStatus.PREVIEW
        userCode - Stringthe code of current user
        cod_oper - String Code operation.
        connDao - DAO the connection dao
        Throws:
        com.engiweb.toolkit.common.BackendException - the backend exception
      • findAttestationProp

        com.engiweb.pm.entity.BeanList<AttestationPropBean> findAttestationProp(AttestationBean attestationBean,
                                                                                com.engiweb.pm.dao.db.DAO connDao)
                                                                         throws com.engiweb.toolkit.common.BackendException
        Find attestation properties.
        Parameters:
        attestationBean - AttestationBean the attestation which find the properties
        connDao - DAO the connection dao
        Returns:
        BeanList of AttestationPropBean
        Throws:
        com.engiweb.toolkit.common.BackendException - the backend exception
      • findSupervisor

        com.engiweb.pm.entity.BeanList<UserBean> findSupervisor(UserBean supervisor,
                                                                AttestationBean attestationBean,
                                                                com.engiweb.pm.entity.Paging paging,
                                                                com.engiweb.pm.dao.db.DAO connDao)
                                                         throws com.engiweb.toolkit.common.BackendException
        Find supervisor.
        Parameters:
        supervisor - UserBean the supervisor
        attestationBean - AttestationBean the attestation bean
        paging - Paging the paging
        connDao - DAO the connection dao
        Returns:
        BeanList of UserBean
        Throws:
        com.engiweb.toolkit.common.BackendException - the backend exception
      • findAttestationBlackList

        com.engiweb.pm.entity.BeanList<UserBean> findAttestationBlackList(AttestationBean attestationBean,
                                                                          com.engiweb.pm.dao.db.DAO connDao)
                                                                   throws com.engiweb.toolkit.common.BackendException
        Find attestation black list.
        Parameters:
        attestationBean - AttestationBean the attestation bean
        connDao - DAO the connection dao
        Returns:
        BeanList of UserBean
        Throws:
        com.engiweb.toolkit.common.BackendException - the backend exception
      • findAttestationByUserVisibility

        com.engiweb.pm.entity.BeanList<AttestationBean> findAttestationByUserVisibility(AttestationBean attestationBean,
                                                                                        UserBean userBean,
                                                                                        int campaignType,
                                                                                        com.engiweb.pm.entity.Paging paging,
                                                                                        com.engiweb.pm.dao.db.DAO connDao)
                                                                                 throws com.engiweb.toolkit.common.BackendException
        Find attestation by user visibility.
        Parameters:
        attestationBean - AttestationBean the attestation bean
        userBean - UserBean the user bean
        campaignType - int : the possible campaign type
        • AttestationTypes.PERSON_ENTITLEMENT
        • AttestationTypes.OU_ENTITLEMENT
        • AttestationTypes.PERSON_REMEDIATION
        paging - Paging the paging
        connDao - DAO the connection dao
        Returns:
        BeanList of AttestationBean
        Throws:
        com.engiweb.toolkit.common.BackendException - the backend exception
      • findAttestationByUserVisibility

        com.engiweb.pm.entity.BeanList<AttestationBean> findAttestationByUserVisibility(AttestationBean attestationBean,
                                                                                        UserBean userBean,
                                                                                        java.lang.Integer campaignType,
                                                                                        int reviewerOrSupervisor,
                                                                                        com.engiweb.pm.dao.db.DAO connDao)
                                                                                 throws com.engiweb.toolkit.common.BackendException
        Find attestation by user visibility.
        Parameters:
        attestationBean - AttestationBean the attestation bean
        userBean - UserBean the user bean
        campaignType - Integer : the possible campaign type
        • AttestationTypes.PERSON_ENTITLEMENT
        • AttestationTypes.OU_ENTITLEMENT
        • AttestationTypes.PERSON_REMEDIATION
        • AttestationTypes.ENTITLEMENT AttestationTypes.ACCOUNT
        reviewerOrSupervisor - int : AttestationRes.REVIEWER or AttestationRes.SUPERVISOR
        connDao - DAO the connection dao
        Returns:
        BeanList of AttestationBean
        Throws:
        com.engiweb.toolkit.common.BackendException - the backend exception
      • cloneAttestation

        AttestationBean cloneAttestation(java.lang.String attestationReviewName,
                                         AttestationBean attestationBean,
                                         com.engiweb.pm.dao.db.DAO connDao)
                                  throws com.engiweb.toolkit.common.BackendException
        Clone attestation.
        Parameters:
        attestationReviewName - String The name of the new review, clone of the passed review. It is no mandadtory. If null or empty the name of the new review will be the old review name concat with random number
        attestationBean - AttestationBean The review to be cloned
        connDao - DAO the connection dao
        Returns:
        AttestationBean the attestation bean cloned.
        Throws:
        com.engiweb.toolkit.common.BackendException - the backend exception
      • findAttestationView

        com.engiweb.pm.entity.BeanList<AttestationViewBean> findAttestationView(AttestationViewBean attViewBean,
                                                                                AttestationBean attestationBean,
                                                                                com.engiweb.pm.dao.db.DAO connDao)
                                                                         throws com.engiweb.toolkit.common.BackendException
        Find attestation view.
        Parameters:
        attViewBean - AttestationViewBean the attestation view
        attestationBean - AttestationBean the attestation
        connDao - DAO the connection dao
        Returns:
        BeanList of AttestationViewBean
        Throws:
        com.engiweb.toolkit.common.BackendException - the backend exception
      • updateAttestationView

        void updateAttestationView(com.engiweb.pm.entity.BeanList<AttestationViewBean> attestationViewBeanList,
                                   AttestationBean attestationBean,
                                   com.engiweb.pm.dao.db.DAO connDao)
                            throws com.engiweb.toolkit.common.BackendException
        Update attestation view.
        Parameters:
        attestationViewBeanList - BeanList of AttestationViewBean the list of attestation view
        attestationBean - AttestationBean the attestation bean
        connDao - DAO the connection dao
        Throws:
        com.engiweb.toolkit.common.BackendException - the backend exception