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