Adding a reference implementation
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-publishing/document-store-lib@121999 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
5012f704a5
commit
53f773791c
|
@ -39,13 +39,13 @@ public abstract class AbstractRecord implements Record {
|
|||
private static Logger logger = LoggerFactory.getLogger(AbstractRecord.class);
|
||||
|
||||
@RequiredField @NotEmpty
|
||||
private static final String ID = Record.ID;
|
||||
protected static final String ID = Record.ID;
|
||||
|
||||
@RequiredField @ValidLong
|
||||
private static final String CREATION_TIME = Record.CREATION_TIME;
|
||||
protected static final String CREATION_TIME = Record.CREATION_TIME;
|
||||
|
||||
@RequiredField @NotEmpty
|
||||
private static final String RECORD_TYPE = Record.RECORD_TYPE;
|
||||
protected static final String RECORD_TYPE = Record.RECORD_TYPE;
|
||||
|
||||
/** resource-specific properties */
|
||||
protected Map<String, Comparable<? extends Serializable>> resourceProperties;
|
||||
|
@ -129,7 +129,7 @@ public abstract class AbstractRecord implements Record {
|
|||
/**
|
||||
* Initialize variable
|
||||
*/
|
||||
private void init() {
|
||||
protected void init() {
|
||||
this.validation = new HashMap<String, List<FieldAction>>();
|
||||
this.requiredFields = new HashSet<String>();
|
||||
this.aggregatedFields = new HashSet<String>();
|
||||
|
|
Loading…
Reference in New Issue