30 lines
873 B
Java
30 lines
873 B
Java
package org.gcube.application.geoportal.common.model.document;
|
|
|
|
import lombok.*;
|
|
import org.bson.Document;
|
|
|
|
import java.util.List;
|
|
|
|
|
|
@Getter
|
|
@Setter
|
|
@ToString (callSuper = true)
|
|
public class RegisteredFileSet extends Document {
|
|
|
|
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";
|
|
public static final String MATERIALIZATIONS="materializations";
|
|
|
|
|
|
public Object getCreationInfo(){ return this.get(CREATION_INFO); }
|
|
|
|
public Object getAccess(){ return this.get(ACCESS); }
|
|
|
|
public String getFolderId(){ return super.getString(FOLDER_ID); }
|
|
|
|
public List getPayloads(){return super.get(PAYLOADS,List.class);}
|
|
public List getMaterializations(){return super.get(MATERIALIZATIONS,List.class);}
|
|
}
|