Class MyDataUtil


  • public class MyDataUtil
    extends java.lang.Object
    This class provides helpful tools.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static Event checkedBlockingGet​(rx.Observable<Event> eventObservable)
      This helper method supports you in retrieving the enforced Event from a reactive PEP with checked exceptions.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • checkedBlockingGet

        public static Event checkedBlockingGet​(rx.Observable<Event> eventObservable)
                                        throws InhibitException,
                                               EvaluationUndecidableException,
                                               java.io.IOException
        This helper method supports you in retrieving the enforced Event from a reactive PEP with checked exceptions.
           
             final Event enforcedEvent = MyDataUtil.checkedBlockingGet(myPep.enforceUser(u));
           
         
        Parameters:
        eventObservable - the Observable we are interested in
        Returns:
        the enforced Event
        Throws:
        EvaluationUndecidableException - if PDP can't decide.
        InhibitException - if event is not allowed
        java.io.IOException - if connection to PDP is not established