mirror of
https://github.com/Athou/commafeed.git
synced 2026-03-21 21:37:29 +00:00
23 lines
572 B
Java
23 lines
572 B
Java
|
|
package com.commafeed.frontend.rest;
|
||
|
|
|
||
|
|
import java.lang.annotation.ElementType;
|
||
|
|
import java.lang.annotation.Inherited;
|
||
|
|
import java.lang.annotation.Retention;
|
||
|
|
import java.lang.annotation.RetentionPolicy;
|
||
|
|
import java.lang.annotation.Target;
|
||
|
|
|
||
|
|
import javax.enterprise.util.Nonbinding;
|
||
|
|
import javax.interceptor.InterceptorBinding;
|
||
|
|
|
||
|
|
@Inherited
|
||
|
|
@InterceptorBinding
|
||
|
|
@Target({ ElementType.TYPE, ElementType.METHOD })
|
||
|
|
@Retention(RetentionPolicy.RUNTIME)
|
||
|
|
public @interface SecurityCheck {
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Roles needed.
|
||
|
|
*/
|
||
|
|
@Nonbinding
|
||
|
|
String[] value() default {};
|
||
|
|
}
|