2015-05-29 18:32:49 +02:00
|
|
|
package org.gcube.common.authorization.library.annotations;
|
|
|
|
|
|
|
|
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;
|
|
|
|
|
2016-02-01 15:14:51 +01:00
|
|
|
import org.gcube.common.authorization.library.policies.Mode;
|
|
|
|
|
2015-05-29 18:32:49 +02:00
|
|
|
@Inherited
|
|
|
|
@Retention(RetentionPolicy.RUNTIME)
|
|
|
|
@Target(ElementType.METHOD)
|
2016-02-01 15:14:51 +01:00
|
|
|
public @interface AuthorizationControl {
|
2015-05-29 18:32:49 +02:00
|
|
|
|
2016-02-01 15:14:51 +01:00
|
|
|
Mode[] check() default {Mode.ALL};
|
2015-05-29 18:32:49 +02:00
|
|
|
}
|