sections in the article
This article outlines the changes you need to make in the API to be able to use the Content Segmentation functionality in inriver.
About content segmentation
Content Segmentation is an optional functionality that can be activated in inriver. It makes content of your choice available only to certain users. When Content Segmentation is activated, users are given access to one or more segments. The user is assigned a separate role in each accessed segment.
Required API changes
ModelService method:
List GetAllSegments();
DataService methods:
Entity SetEntitySegment(int entityId, int segmentId);
bool SetSegmentForEntities(List<int> entityIds, int segmentId);
Entity class member:
public Segment Segment { get; set; }
User class member:
public List<SegmentRole> SegmentRoles { get; set; }
User class methods:
public List<Segment> GetSegments()
public List<Role> GetRolesForSegmentId(int segmentId)
public List<Segment> GetSegmentsForRoleId(int roleId)
public List<Permission> GetPermissionsForSegmentId(int segmentId)
SystemQuery class member:
public List<int> SegmentIds { get; set; }
Event:
EntitySegmentationChanged
Comments
6 comments
Hello, is it possible with these methods to massively update users and their segments ?
For example, a Customer has 1000 users, he has 300 differents segments, is it possible for him manage them all through the API if he creates a dedicated tool out of the PIM. This tool will then massively give segments to users on their roles.
Also , are we speaking about the .net API or the REST API ?
Hi Naim,
You can currently not assign sements to users using our API:s.
The above examples concern the remoting API.
Hi I am not able to access the Segment object or these API methods using inRiver.Remoting.iPMC.7.0.18156.2 version.
Are these API's only available in some specific version ?
Thanks
Rajanish
Hi Rajanish,
I see that you have posted in the inRiver 6.3 forum, Content Segmentation is only available in iPMC.
Hello @Thomas,
Any GetSegmentByName ?
Kind regards
EL Mehdi MOZOUNA (ICP) no, I'll add it as an idea for the future
Please sign in to leave a comment.