2020-06-09 16:51:53 +02:00
|
|
|
package org.gcube.data_catalogue.grsf_publish_ws.AAA_PORTED;
|
2016-10-07 21:50:21 +02:00
|
|
|
|
|
|
|
import java.lang.annotation.ElementType;
|
|
|
|
import java.lang.annotation.Retention;
|
|
|
|
import java.lang.annotation.RetentionPolicy;
|
|
|
|
import java.lang.annotation.Target;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Group annotation
|
2018-09-03 11:07:06 +02:00
|
|
|
* @author Costantino Perciante (ISTI - CNR)
|
|
|
|
* @author Luca Frosini (ISTI - CNR)
|
2016-10-07 21:50:21 +02:00
|
|
|
*/
|
|
|
|
@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 {
|
2018-09-03 11:07:06 +02:00
|
|
|
|
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 "";
|
|
|
|
|
2018-09-03 11:07:06 +02:00
|
|
|
/**
|
|
|
|
* When the group is created the source is prepended to the group name.
|
|
|
|
* Set to false to avoid source prepending
|
|
|
|
* @return
|
|
|
|
*/
|
|
|
|
boolean prependSourceToGroupName() default true;
|
|
|
|
|
2016-10-07 21:50:21 +02:00
|
|
|
}
|