Class UserSegmentationDaoJdbc


  • public class UserSegmentationDaoJdbc
    extends Object
    Dao for User segmentation-related operations.
    Since:
    11.2.0
    Version:
    $Revision: 24878 $ $Date: 2022-03-15 01:44:27 -0300 (Tue, 15 Mar 2022) $
    • Constructor Detail

      • UserSegmentationDaoJdbc

        public UserSegmentationDaoJdbc()
    • Method Detail

      • getCurrentMembers

        public static Set<String> getCurrentMembers​(String segmentationId)
                                             throws PortalException
        Returns the current members of the given segmentation.
        Parameters:
        segmentationId - the segmentation identifier.
        Returns:
        the current members of the given segmentation.
        Throws:
        PortalException
        Since:
        11.2.0
      • getCurrentPortalMembers

        public static Set<String> getCurrentPortalMembers​(String segmentationId)
                                                   throws PortalException
        Returns the current members of the given segmentation.
        Parameters:
        segmentationId - the segmentation identifier.
        Returns:
        the current members of the given segmentation.
        Throws:
        PortalException
        Since:
        12.0.0
      • getCurrentSegmentations

        public static Set<String> getCurrentSegmentations​(String monitorUserId)
                                                   throws PortalException
        Returns the current segmentations of the given monitor user.
        Parameters:
        monitorUserId - the monitor user identifier.
        Returns:
        the current segmentations of the given monitor user.
        Throws:
        PortalException
        Since:
        11.2.0
      • deleteSegmentationMemberships

        public static void deleteSegmentationMemberships​(String segmentationId)
        Deletes all memberships of the given segmentation.
        Parameters:
        segmentationId - the segmentation identifier.
        Since:
        11.2.0
      • deleteSegmentationMemberships

        public static void deleteSegmentationMemberships​(String segmentationId,
                                                         Collection<String> monitorUserIds)
                                                  throws PortalException
        Delete members of segmentation.
        Parameters:
        segmentationId - the segmentation.
        monitorUserIds - the members.
        Throws:
        PortalException
        Since:
        11.2.0