grsf-publisher-ws/src/main/java/org/gcube/data_catalogue/grsf_publish_ws/custom_annotations/CkanResource.java

19 lines
528 B
Java

package org.gcube.data_catalogue.grsf_publish_ws.custom_annotations;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* Annotate a field of the json input representing a future CKAN resource
* @author Costantino Perciante at ISTI-CNR (costantino.perciante@isti.cnr.it)
*/
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.FIELD)
public @interface CkanResource {
boolean inspect() default false;
}