First you have to configure IP addresses to mean anything:
https://wiki.duraspace.org/display/DSDOC4x/Authentication+Plugins#AuthenticationPlugins-IPAuthentication

________________
Peter Dietz
Longsight
www.longsight.com
pe...@longsight.com
p: 740-599-5005 x809

On Fri, May 8, 2015 at 3:25 PM, Evgeni Dimitrov <dimitrove....@gmail.com>
wrote:

> 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
>
------------------------------------------------------------------------------
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