grsf-manage-widget/src/main/java/org/gcube/datacatalogue/grsf_manage_widget/shared/ManageProductBean.java

174 lines
4.3 KiB
Java

package org.gcube.datacatalogue.grsf_manage_widget.shared;
import java.io.Serializable;
import java.util.Map;
/**
* The bean to be managed by some people (e.g., GRSF).
* @author Costantino Perciante at ISTI-CNR (costantino.perciante@isti.cnr.it)
*/
public class ManageProductBean implements Serializable{
private static final long serialVersionUID = -4882608487467259326L;
private String itemTitle;
private String semanticId; // Stock id or Fishery id
private String shortTitle;
private String catalogueIdentifier;
private String knowledgeBaseIdentifier;
private String type; // Fishery or Stock type (e.g., Assessment_Unit, Marine Resource and so on)
private String grsfType; // fishery/stock
private String source; // the current source
private Map<String, String> extrasIfAvailable;
// info that could change
private GRSFStatus currentStatus;
private GRSFStatus newStatus;
private String annotation; // added by the administrator
public ManageProductBean() {
super();
}
/**
* @param itemTitle
* @param semanticId
* @param shortTitle
* @param catalogueIdentifier
* @param knowledgeBaseIdentifier
* @param type
* @param grsfType
* @param source
* @param extrasIfAvailable
* @param currentStatus
* @param newStatus
* @param annotation
*/
public ManageProductBean(String itemTitle, String semanticId,
String shortTitle, String catalogueIdentifier,
String knowledgeBaseIdentifier, String type, String grsfType,
String source, Map<String, String> extrasIfAvailable,
GRSFStatus currentStatus, GRSFStatus newStatus, String annotation) {
super();
this.itemTitle = itemTitle;
this.semanticId = semanticId;
this.shortTitle = shortTitle;
this.catalogueIdentifier = catalogueIdentifier;
this.knowledgeBaseIdentifier = knowledgeBaseIdentifier;
this.type = type;
this.grsfType = grsfType;
this.source = source;
this.extrasIfAvailable = extrasIfAvailable;
this.currentStatus = currentStatus;
this.newStatus = newStatus;
this.annotation = annotation;
}
public String getCatalogueIdentifier() {
return catalogueIdentifier;
}
public void setCatalogueIdentifier(String catalogueIdentifier) {
this.catalogueIdentifier = catalogueIdentifier;
}
public String getKnowledgeBaseIdentifier() {
return knowledgeBaseIdentifier;
}
public void setKnowledgeBaseIdentifier(String knowledgeBaseIdentifier) {
this.knowledgeBaseIdentifier = knowledgeBaseIdentifier;
}
public GRSFStatus getCurrentStatus() {
return currentStatus;
}
public void setCurrentStatus(GRSFStatus currentStatus) {
this.currentStatus = currentStatus;
}
public GRSFStatus getNewStatus() {
return newStatus;
}
public void setNewStatus(GRSFStatus newStatus) {
this.newStatus = newStatus;
}
public String getAnnotation() {
return annotation;
}
public void setAnnotation(String annotation) {
this.annotation = annotation;
}
public String getItemTitle() {
return itemTitle;
}
public void setItemTitle(String itemTitle) {
this.itemTitle = itemTitle;
}
public String getType() {
return type;
}
public void setType(String type) {
this.type = type;
}
public String getGrsfType() {
return grsfType;
}
public void setGrsfType(String grsfType) {
this.grsfType = grsfType;
}
public String getSource() {
return source;
}
public void setSource(String source) {
this.source = source;
}
public String getSemanticId() {
return semanticId;
}
public void setSemanticId(String semanticId) {
this.semanticId = semanticId;
}
public String getShortTitle() {
return shortTitle;
}
public void setShortTitle(String shortTitle) {
this.shortTitle = shortTitle;
}
public Map<String, String> getExtrasIfAvailable() {
return extrasIfAvailable;
}
public void setExtrasIfAvailable(Map<String, String> extrasIfAvailable) {
this.extrasIfAvailable = extrasIfAvailable;
}
@Override
public String toString() {
return "ManageProductBean [itemTitle=" + itemTitle + ", semanticId="
+ semanticId + ", shortTitle=" + shortTitle
+ ", catalogueIdentifier=" + catalogueIdentifier
+ ", knowledgeBaseIdentifier=" + knowledgeBaseIdentifier
+ ", type=" + type + ", grsfType=" + grsfType + ", source="
+ source + ", extrasIfAvailable=" + extrasIfAvailable
+ ", currentStatus=" + currentStatus + ", newStatus="
+ newStatus + ", annotation=" + annotation + "]";
}
}