@Retention(value=RUNTIME) @Target(value=TYPE) @Documented public @interface SecurityCheck
NOTE: The class you annotated must be a@SecurityCheck("i am an expression")
public static class Inline<Post> extends OperationCheck<Post> {@Override
public boolean ok(Post object, RequestScope requestScope, Optional<ChangeSpec> changeSpec) { return false; } }
Check
,
otherwise a RuntimeException is thrown.Modifier and Type | Required Element and Description |
---|---|
String |
value
The expression which will be used for
ReadPermission.expression() ,
UpdatePermission.expression() ,
CreatePermission.expression() ,
DeletePermission.expression() . |
public abstract String value
ReadPermission.expression()
,
UpdatePermission.expression()
,
CreatePermission.expression()
,
DeletePermission.expression()
.Copyright © 2015–2021 Yahoo! Inc.. All rights reserved.