Package de.fraunhofer.iese.mydata.util
Class MyDataUtil
java.lang.Object
de.fraunhofer.iese.mydata.util.MyDataUtil
This class provides helpful tools.
-
Method Summary
Modifier and TypeMethodDescriptionstatic Event
checkedBlockingGet
(rx.Observable<Event> eventObservable) This helper method supports you in retrieving the enforced Event from a reactive PEP with checked exceptions.
-
Method Details
-
checkedBlockingGet
public static Event checkedBlockingGet(rx.Observable<Event> eventObservable) throws InhibitException, EvaluationUndecidableException, 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 Observablewe are interested in - Returns:
- the enforced Event
- Throws:
EvaluationUndecidableException
- if PDP can't decide.InhibitException
- if event is not allowedIOException
- if connection to PDP is not established
-