In DSpace 5.1.
I start with the ID of an Item, the ID of an ePerson and the IP of the
request.
I need to know can the ePerson read the item (from this IP).

- I create a Context
- I create the ePerson
- I set the ePerson in the context
- I create the Item
- I check

AuthorizeManager.authorizeAction(
    context,
    item,
    org.dspace.core.Constants.READ);

- I would like to know how can I use the IP address. My guess is that the
SpecialGroups of the context should be populated but I don't know how.
Could you help?

Best regards
Evgeni
------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud 
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
_______________________________________________
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette

Reply via email to