Class UserSegmentationDaoJdbc
- java.lang.Object
-
- lumis.service.analytics.usersegmentation.dao.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 Summary
Constructors Constructor Description UserSegmentationDaoJdbc()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
addMembers(String segmentationId, Collection<String> monitorUserIds)
Add members to segmentation.static void
deleteSegmentationMemberships(String segmentationId)
Deletes all memberships of the given segmentation.static void
deleteSegmentationMemberships(String segmentationId, Collection<String> monitorUserIds)
Delete members of segmentation.static Collection<UserSegmentationMembership>
getAllMemberships()
Returns all memberships.static Set<String>
getCurrentMembers(String segmentationId)
Returns the current members of the given segmentation.static Set<String>
getCurrentPortalMembers(String segmentationId)
Returns the current members of the given segmentation.static Set<String>
getCurrentSegmentations(String monitorUserId)
Returns the current segmentations of the given monitor user.
-
-
-
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
-
getAllMemberships
public static Collection<UserSegmentationMembership> getAllMemberships() throws PortalException
Returns all memberships.- Returns:
- all memberships.
- Throws:
PortalException
- Since:
- 11.2.0
-
addMembers
public static void addMembers(String segmentationId, Collection<String> monitorUserIds) throws PortalException, UnexpectedException
Add members to segmentation.- Parameters:
segmentationId
- the identifier of segmentation.monitorUserIds
- the users identifier.- Throws:
PortalException
UnexpectedException
- 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
-
-