gcube-cms-suite/geoportal-common/src/main/java/org/gcube/application/geoportal/common/model/document/filesets/RegisteredFileSet.java

33 lines
972 B
Java
Raw Normal View History

2022-02-14 12:23:13 +01:00
package org.gcube.application.geoportal.common.model.document.filesets;
2022-01-14 12:31:11 +01:00
import lombok.*;
import org.bson.Document;
import java.util.List;
2022-02-01 15:24:39 +01:00
@ToString (callSuper = true)
public class RegisteredFileSet extends Document {
2022-01-14 12:31:11 +01:00
2022-02-14 12:23:13 +01:00
public static final String UUID="uuid";
2022-01-14 12:31:11 +01:00
public static final String CREATION_INFO="creationInfo";
public static final String ACCESS="access";
public static final String FOLDER_ID="folderID";
public static final String PAYLOADS="payloads";
2022-02-01 15:24:39 +01:00
public static final String MATERIALIZATIONS="materializations";
public Object getCreationInfo(){ return this.get(CREATION_INFO); }
public Object getAccess(){ return this.get(ACCESS); }
2022-01-14 12:31:11 +01:00
2022-02-01 15:24:39 +01:00
public String getFolderId(){ return super.getString(FOLDER_ID); }
2022-01-14 12:31:11 +01:00
2022-02-01 15:24:39 +01:00
public List getPayloads(){return super.get(PAYLOADS,List.class);}
public List getMaterializations(){return super.get(MATERIALIZATIONS,List.class);}
2022-02-14 12:23:13 +01:00
public String getUUID(){return super.getString(UUID);}
2022-01-14 12:31:11 +01:00
}