Package de.fraunhofer.iese.mydata.util
Class MyDataUtil
- java.lang.Object
-
- de.fraunhofer.iese.mydata.util.MyDataUtil
-
public class MyDataUtil extends 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.
-
-
-
Method Detail
-
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
-
-