@Documented @Inherited @Retention(value=RUNTIME) @Target(value={METHOD,TYPE}) public @interface RequirePermission
| Modifier and Type | Required Element and Description |
|---|---|
String |
value |
| Modifier and Type | Optional Element and Description |
|---|---|
boolean |
before
Set the time of check method access permission, usually it should be true But in rare case when it needs to check after the method executed (e.g.
|
int |
target
Indicate which object should be used to check against with account.
|
public abstract String value
public abstract boolean before
Set the time of check method access permission, usually it should be true But in rare case when it needs to check after the method executed (e.g. constructor) then it could be set to false;
true if check method access should be prior to method invocation or `false otherwisepublic abstract int target
Indicate which object should be used to check against with account. This only impact dynamic right checking
Note
Copyright © 2017–2020 OSGL (Open Source General Library). All rights reserved.