Class UserSegmentationDaoJdbc


  • public class UserSegmentationDaoJdbc
    extends Object
    Dao for User segmentation-related operations.
    Since:
    11.2.0
    Version:
    $Revision: 23667 $ $Date: 2020-03-14 17:15:47 -0300 (Sat, 14 Mar 2020) $
    • 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