2016-10-07 21:50:21 +02:00
|
|
|
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;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Group annotation
|
|
|
|
* @author Costantino Perciante at ISTI-CNR (costantino.perciante@isti.cnr.it)
|
|
|
|
*/
|
|
|
|
@Retention(RetentionPolicy.RUNTIME)
|
2016-12-01 22:20:46 +01:00
|
|
|
@Target(ElementType.FIELD)
|
2016-10-07 21:50:21 +02:00
|
|
|
public @interface Group {
|
2017-02-15 15:11:45 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Define a REGEX condition to be checked before the record
|
|
|
|
* is actually added to the group.
|
|
|
|
*/
|
|
|
|
String condition() default "";
|
2016-11-30 18:29:44 +01:00
|
|
|
|
2017-02-20 18:44:26 +01:00
|
|
|
/**
|
2018-02-27 11:58:18 +01:00
|
|
|
* If this value is set, it is the name of the group (apart the source, i.e. "grsf", "ram", "firms", "fishsource" that will be prepended) to which the
|
2017-02-20 18:44:26 +01:00
|
|
|
* record needs to be put.
|
|
|
|
* @return
|
|
|
|
*/
|
|
|
|
String groupNameOverValue() default "";
|
|
|
|
|
2016-10-07 21:50:21 +02:00
|
|
|
}
|