File tree 2 files changed +4
-4
lines changed
plugin/src/main/groovy/org/clarify4j
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 5
5
@ Documented
6
6
@ Retention (RetentionPolicy .RUNTIME )
7
7
@ Target ({ElementType .METHOD , ElementType .TYPE })
8
- public @interface WithAuthHeader {
8
+ public @interface SagaAuthHeader {
9
9
boolean disabled () default false ;
10
10
11
11
String message () default "Access denied" ;
Original file line number Diff line number Diff line change 5
5
import org .aspectj .lang .annotation .Aspect ;
6
6
import org .aspectj .lang .reflect .MethodSignature ;
7
7
import org .clarify4j .common .Clarify4j ;
8
- import org .clarify4j .common .annotation .WithAuthHeader ;
8
+ import org .clarify4j .common .annotation .SagaAuthHeader ;
9
9
import org .slf4j .Logger ;
10
10
import org .slf4j .LoggerFactory ;
11
11
import org .springframework .security .access .AccessDeniedException ;
20
20
public class WithAuthHeaderHandler {
21
21
protected static final Logger logger = LoggerFactory .getLogger (WithAuthHeaderHandler .class );
22
22
23
- @ Around (value = "@annotation(org.clarify4j.common.annotation.WithAuthHeader )" )
23
+ @ Around (value = "@annotation(org.clarify4j.common.annotation.SagaAuthHeader )" )
24
24
public Object execute (ProceedingJoinPoint joinPoint ) throws Throwable {
25
25
Object proceed = joinPoint .proceed ();
26
26
MethodSignature signature = (MethodSignature ) joinPoint .getSignature ();
27
27
Method method = signature .getMethod ();
28
- WithAuthHeader auth = method .getAnnotation (WithAuthHeader .class );
28
+ SagaAuthHeader auth = method .getAnnotation (SagaAuthHeader .class );
29
29
if (auth .disabled ()) {
30
30
return proceed ;
31
31
}
You can’t perform that action at this time.
0 commit comments