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 de.fraunhofer.iese.mydata.policy.event.Event
checkedBlockingGet(rx.Observable<de.fraunhofer.iese.mydata.policy.event.Event> eventObservable)
This helper method supports you in retrieving the enforced Event from a reactive PEP with checked exceptions.
-
-
-
Method Detail
-
checkedBlockingGet
public static de.fraunhofer.iese.mydata.policy.event.Event checkedBlockingGet(rx.Observable<de.fraunhofer.iese.mydata.policy.event.Event> eventObservable) throws de.fraunhofer.iese.mydata.policy.exception.InhibitException, de.fraunhofer.iese.mydata.policy.exception.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:
de.fraunhofer.iese.mydata.policy.exception.EvaluationUndecidableException
- if PDP can't decide.de.fraunhofer.iese.mydata.policy.exception.InhibitException
- if event is not allowedIOException
- if connection to PDP is not established
-
-