C - as contextAU - as unit that needs to be validated against the Context Cpublic interface VerifyAccessTransformer<C,AU> extends Predicate<AU>, org.apache.commons.collections.Transformer, ContextConsumer<C>
User or a Shell has the right type of access
#getAuthorizedUnits()| Modifier and Type | Method and Description |
|---|---|
boolean |
test(AU unit)
Return true if authorized to access unit
If #getAuthorizedUnits() is null or
input is null then return false. |
Object |
transform(Object unit)
If a unit is authorized then return the input as is , else throw a
RuntimeException |
deriveContextObject transform(Object unit)
RuntimeExceptiontransform in interface org.apache.commons.collections.TransformerCopyright © 2018. All rights reserved.