Newbie here. I would like to hold user-specific information in the NodeSubscription object. Whenever a new item is published on the Node, I would like to take information from the item and the subscription to perform database lookups to determine if the subscribing user is entitled to receive the item. Can someone point me in the right direction? Thanks.
I would like the subscribing user to be able send private data along with the subscription request. I would like that private data to be maintained in the NodeSubscription object.
I would like the publishing user to be able to send private data along with the published item. I would like that private data to be maintained in the PublishedItem object.
When NodeSubscription.canSendPublicationEvent is called, I would like to perform a database lookup using the private data from both the PublishedItem and the NodeSubscription to determine whether or not the subscribing used is entitled.
Can this be done without tearing the guts out of PubSub?
Thanks
… to determine whether or not the subscribing user is entitled to receive the PublishedItem.
I think the simplest solution would be to add a new custom field to the subscription form and then extend/modify NodeSubscription to store it. As for the published items, just add your custom info to the payload itself so no customization would be required on that part.
This does mean that the info would also be published though.