public interface IUserSegmentationManagerSPI extends IUserSegmentationManager
Modifier and Type | Method and Description |
---|---|
void |
deleteSegmentations(Collection<String> ids,
String serviceInstanceId)
Delete the given segmentations.
|
void |
deleteSegmentationsByServiceInstanceId(String serviceInstanceId)
Deletes all segmentations of the given service instance.
|
List<IUserSegmentation> |
findByServiceInstanceAndLikeName(String name,
String serviceInstanceId)
Returns the segmentations of the given service instance that matches the given
name parameter. |
IUserSegmentation |
getById(String id)
Returns the segmentation with the given identifier or
null if no segmentation exists with the given identifier. |
List<IUserSegmentation> |
getByServiceInstance(String serviceInstanceId)
Returns the segmentations of the given service instance.
|
Collection<String> |
getMemberSegmentations(String monitorUserId)
Returns a collection of segmentations of the given user.
|
Collection<String> |
getMemberSegmentations(String monitorUserId,
boolean useSessionCache)
Returns a collection of segmentations of the given user.
|
Collection<String> |
getPortalMembers(String segmentationId)
Returns the segmentation members.
|
default Collection<String> |
getPortalMemberSegmentations(String portalUserId)
Returns a collection of segmentations of the given (portal) user.
|
Collection<String> |
getPortalMemberSegmentations(String portalUserId,
boolean useSessionCache)
Returns a collection of segmentations of the given (portal) user.
|
Collection<IUserSegmentation> |
getSegmentationsThatNeedToHaveMembershipUpdated()
Returns a collection of user segmentations that must have the memberships updated.
|
IMonitorValuesProvider |
getUserSegmentationMonitorValuesProvider(IUserSegmentation segmentation)
Returns a
IMonitorValuesProvider that fills user segmentation information. |
boolean |
isMember(Collection<String> segmentationIds,
String monitorUserId)
Verifies if a user is a member of one of the specified segmentations.
The given user identifier refers to monitor user, not to the portal user. |
String |
saveSegmentation(String name,
String serviceInstanceId,
org.json.JSONObject segmentationFilter)
Save the given segmentation and returns the identifier of the segmentation added or updated.
|
IUserSegmentation |
updateSegmentation(String id,
String serviceInstanceId,
org.json.JSONObject filter)
Updates the given segmentation with the given filters.
|
getByNameAndServiceInstance, updateSegmentationMembership, updateSegmentationMembership
String saveSegmentation(String name, String serviceInstanceId, org.json.JSONObject segmentationFilter) throws PortalException
name
- the segmentation name.serviceInstanceId
- the service instance identifier.segmentationFilter
- the segmentation filter.PortalException
IUserSegmentation updateSegmentation(String id, String serviceInstanceId, org.json.JSONObject filter) throws PortalException
id
- the segmentation identifier.serviceInstanceId
- the service instance identifier.filter
- the segmentation filter.PortalException
void deleteSegmentations(Collection<String> ids, String serviceInstanceId) throws PortalException
ids
- the segmentation identifiers.serviceInstanceId
- the service instance identifier.PortalException
void deleteSegmentationsByServiceInstanceId(String serviceInstanceId) throws PortalException
serviceInstanceId
- the service instance identifier.PortalException
List<IUserSegmentation> findByServiceInstanceAndLikeName(String name, String serviceInstanceId) throws PortalException
name
parameter.name
- the segmentation name.serviceInstanceId
- the service instance identifier.name
parameter.PortalException
IUserSegmentation getById(String id) throws PortalException
null
if no segmentation exists with the given identifier.id
- the segmentation identifier.null
if no segmentation exists with the given identifier.PortalException
List<IUserSegmentation> getByServiceInstance(String serviceInstanceId) throws PortalException
serviceInstanceId
- the service instance identifier.PortalException
boolean isMember(Collection<String> segmentationIds, String monitorUserId) throws PortalException
segmentationIds
- the segmentation identifiers.monitorUserId
- the monitor user identifier.PortalException
Collection<String> getPortalMembers(String segmentationId) throws PortalException
segmentationId
- the segmentation identifier.PortalException
Collection<String> getMemberSegmentations(String monitorUserId) throws PortalException
monitorUserId
- the monitor user identifier.PortalException
Collection<String> getMemberSegmentations(String monitorUserId, boolean useSessionCache) throws PortalException
monitorUserId
- the monitor user identifier.useSessionCache
- indicates whether session cache should be used.PortalException
default Collection<String> getPortalMemberSegmentations(String portalUserId) throws PortalException
monitorUserId
- the portal user identifier.PortalException
Collection<String> getPortalMemberSegmentations(String portalUserId, boolean useSessionCache) throws PortalException
monitorUserId
- the portal user identifier.PortalException
Collection<IUserSegmentation> getSegmentationsThatNeedToHaveMembershipUpdated() throws PortalException
PortalException
IMonitorValuesProvider getUserSegmentationMonitorValuesProvider(IUserSegmentation segmentation)
IMonitorValuesProvider
that fills user segmentation information.segmentation
- the user segmentation.IMonitorValuesProvider
that fills user segmentation information.LumisXP 12.3.0.200408 - Copyright © 2006–2020 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.