Interface IPrivacyTermManager

  • All Known Subinterfaces:
    IPrivacyTermManagerSPI
    All Known Implementing Classes:
    PrivacyTermManager

    @StableMinor(version="16.1",
                 sinceVersion="12.3")
    public interface IPrivacyTermManager
    This interface provides methods to handle privacy terms actions.
    The privacy terms are published using service instances of the service with id lumis.service.privacyterm and become bound to the service instance used to be publish them.
    Thus, any action on the privacy terms depends on a service instance of the privacy term service.
    Also, all actions are performed on the current monitored user. If there's no current monitored user (i.e. IMonitorManager.getCurrentMonitorUserId() returns null), an error will be generated.
    Since:
    12.3.0
    Version:
    $Revision: 26156 $ $Date: 2024-01-13 10:26:46 -0300 (Sat, 13 Jan 2024) $
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void acceptAllPurposesOfPrivacyTerm​(java.lang.String serviceInstanceId, java.lang.String sourceIp)
      This method is used to make the current monitored user to accept all purposes of the privacy term with the given service instance.
      boolean isAllPurposesOfPrivacyTermAccepted​(java.lang.String serviceInstanceId)
      Returns whether current monitor user has accepted all processing purposes of the privacy term with the given service instance with the given identifier.
      void revokeConsentOfAllPurposesOfPrivacyTerm​(java.lang.String serviceInstanceId)
      Revokes the consent of the current monitored user on all purposes of the privacy term of the given service instance.
    • Method Detail

      • isAllPurposesOfPrivacyTermAccepted

        boolean isAllPurposesOfPrivacyTermAccepted​(java.lang.String serviceInstanceId)
                                            throws PortalException
        Returns whether current monitor user has accepted all processing purposes of the privacy term with the given service instance with the given identifier.
        Parameters:
        serviceInstanceId - the service instance identifier.
        Returns:
        whether current monitor user has accepted the privacy term.
        Throws:
        java.lang.IllegalArgumentException - if the serviceInstanceId parameter is null.
        java.lang.IllegalArgumentException - if the given service instance identifier does not refer to a service instance of a service with id lumis.service.privacyterm.
        PortalObjectNotFoundException - if there is no service instance with the given identifier.
        java.lang.IllegalStateException - if there is no current monitored user.
        PortalException - if another error occur.
        Since:
        12.3.0
      • acceptAllPurposesOfPrivacyTerm

        void acceptAllPurposesOfPrivacyTerm​(java.lang.String serviceInstanceId,
                                            java.lang.String sourceIp)
                                     throws PortalException
        This method is used to make the current monitored user to accept all purposes of the privacy term with the given service instance. If the user has provided the consent, nothing is performed.
        Parameters:
        serviceInstanceId - the service instance identifier.
        sourceIp - the source IP from where the accept request was performed.
        Throws:
        java.lang.IllegalArgumentException - if the serviceInstanceId parameter is null.
        java.lang.IllegalArgumentException - if the sourceIp parameter is null.
        java.lang.IllegalArgumentException - if the given service instance identifier does not refer to a service instance of a service with id lumis.service.privacyterm.
        PortalObjectNotFoundException - if there is no service instance with the given identifier.
        PortalObjectNotFoundException - if there is no published privacy term on the given service instance.
        java.lang.IllegalStateException - if there is no current monitored user.
        PortalException - if another error occur.
        Since:
        12.3.0
      • revokeConsentOfAllPurposesOfPrivacyTerm

        void revokeConsentOfAllPurposesOfPrivacyTerm​(java.lang.String serviceInstanceId)
                                              throws PortalException
        Revokes the consent of the current monitored user on all purposes of the privacy term of the given service instance. If the user did not provided the consent, nothing is performed.
        Parameters:
        serviceInstanceId - the service instance identifier.
        Throws:
        java.lang.IllegalArgumentException - if the serviceInstanceId parameter is null.
        java.lang.IllegalArgumentException - if the given service instance identifier does not refer to a service instance of a service with id lumis.service.privacyterm.
        PortalObjectNotFoundException - if there is no service instance with the given identifier.
        PortalObjectNotFoundException - if there is no published privacy term on the given service instance.
        java.lang.IllegalStateException - if there is no current monitored user.
        PortalException - if another error occur.
        Since:
        12.3.0