2017-01-26 18:21:33 +01:00
|
|
|
package org.gcube.datacatalogue.grsf_manage_widget.shared;
|
|
|
|
|
|
|
|
import java.io.Serializable;
|
2017-02-20 12:21:52 +01:00
|
|
|
import java.util.Map;
|
2017-01-26 18:21:33 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* 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;
|
2017-08-01 18:00:19 +02:00
|
|
|
private String itemTitle; // title
|
|
|
|
private String semanticId; // Stock id or Fishery id
|
|
|
|
private String catalogueIdentifier; // catalogue id
|
|
|
|
private String knowledgeBaseIdentifier; // GRSF UUID
|
|
|
|
private String grsfType; // Fishery or Stock type (e.g., Assessment_Unit, Marine Resource and so on)
|
|
|
|
private String grsfDomain; // fishery/stock
|
|
|
|
private String sources; // sources for this record
|
2017-02-22 10:03:47 +01:00
|
|
|
private String description;
|
2017-08-01 18:00:19 +02:00
|
|
|
private String grsfName; // Fishery name or stock name
|
|
|
|
private Map<String, String> extrasIfAvailable; // read from GRSFManageEntries resource
|
2017-02-17 18:32:49 +01:00
|
|
|
|
|
|
|
// info that could change
|
2017-01-26 18:21:33 +01:00
|
|
|
private GRSFStatus currentStatus;
|
|
|
|
private GRSFStatus newStatus;
|
2017-02-17 18:32:49 +01:00
|
|
|
private String annotation; // added by the administrator
|
2017-08-01 18:00:19 +02:00
|
|
|
private String shortTitle;
|
|
|
|
private boolean traceabilityFlag; //from false to true etc
|
2017-01-26 18:21:33 +01:00
|
|
|
|
|
|
|
public ManageProductBean() {
|
|
|
|
super();
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
2017-02-17 18:32:49 +01:00
|
|
|
* @param itemTitle
|
2017-08-01 18:00:19 +02:00
|
|
|
* @param semanticId
|
2017-01-26 18:21:33 +01:00
|
|
|
* @param catalogueIdentifier
|
|
|
|
* @param knowledgeBaseIdentifier
|
2017-02-17 18:32:49 +01:00
|
|
|
* @param grsfType
|
2017-08-01 18:00:19 +02:00
|
|
|
* @param grsfDomain
|
|
|
|
* @param sources
|
2017-02-22 10:03:47 +01:00
|
|
|
* @param description
|
2017-08-01 18:00:19 +02:00
|
|
|
* @param grsfName
|
|
|
|
* @param extrasIfAvailable
|
2017-02-17 18:32:49 +01:00
|
|
|
* @param currentStatus
|
2017-01-26 18:21:33 +01:00
|
|
|
* @param newStatus
|
|
|
|
* @param annotation
|
2017-08-01 18:00:19 +02:00
|
|
|
* @param shortTitle
|
|
|
|
* @param traceabilityFlag
|
2017-01-26 18:21:33 +01:00
|
|
|
*/
|
2017-08-01 18:00:19 +02:00
|
|
|
public ManageProductBean(String itemTitle, String semanticId,
|
|
|
|
String catalogueIdentifier, String knowledgeBaseIdentifier,
|
|
|
|
String grsfType, String grsfDomain, String sources,
|
|
|
|
String description, String grsfName,
|
|
|
|
Map<String, String> extrasIfAvailable, GRSFStatus currentStatus,
|
|
|
|
GRSFStatus newStatus, String annotation, String shortTitle,
|
|
|
|
boolean traceabilityFlag) {
|
2017-01-26 18:21:33 +01:00
|
|
|
super();
|
2017-02-17 18:32:49 +01:00
|
|
|
this.itemTitle = itemTitle;
|
2017-08-01 18:00:19 +02:00
|
|
|
this.semanticId = semanticId;
|
2017-01-26 18:21:33 +01:00
|
|
|
this.catalogueIdentifier = catalogueIdentifier;
|
|
|
|
this.knowledgeBaseIdentifier = knowledgeBaseIdentifier;
|
2017-02-17 18:32:49 +01:00
|
|
|
this.grsfType = grsfType;
|
2017-08-01 18:00:19 +02:00
|
|
|
this.grsfDomain = grsfDomain;
|
|
|
|
this.sources = sources;
|
2017-02-22 10:03:47 +01:00
|
|
|
this.description = description;
|
2017-08-01 18:00:19 +02:00
|
|
|
this.grsfName = grsfName;
|
|
|
|
this.extrasIfAvailable = extrasIfAvailable;
|
2017-01-26 18:21:33 +01:00
|
|
|
this.currentStatus = currentStatus;
|
|
|
|
this.newStatus = newStatus;
|
|
|
|
this.annotation = annotation;
|
2017-08-01 18:00:19 +02:00
|
|
|
this.shortTitle = shortTitle;
|
|
|
|
this.traceabilityFlag = traceabilityFlag;
|
2017-01-26 18:21:33 +01:00
|
|
|
}
|
|
|
|
|
2017-08-01 18:00:19 +02:00
|
|
|
public String getItemTitle() {
|
|
|
|
return itemTitle;
|
2017-02-22 10:03:47 +01:00
|
|
|
}
|
2017-02-20 16:16:57 +01:00
|
|
|
|
2017-08-01 18:00:19 +02:00
|
|
|
public void setItemTitle(String itemTitle) {
|
|
|
|
this.itemTitle = itemTitle;
|
|
|
|
}
|
|
|
|
|
|
|
|
public String getSemanticId() {
|
|
|
|
return semanticId;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void setSemanticId(String semanticId) {
|
|
|
|
this.semanticId = semanticId;
|
2017-02-22 10:03:47 +01:00
|
|
|
}
|
2017-02-20 16:16:57 +01:00
|
|
|
|
2017-01-26 18:21:33 +01:00
|
|
|
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;
|
|
|
|
}
|
|
|
|
|
2017-08-01 18:00:19 +02:00
|
|
|
public String getGrsfType() {
|
|
|
|
return grsfType;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void setGrsfType(String grsfType) {
|
|
|
|
this.grsfType = grsfType;
|
|
|
|
}
|
|
|
|
|
|
|
|
public String getGrsfDomain() {
|
|
|
|
return grsfDomain;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void setGrsfDomain(String grsfDomain) {
|
|
|
|
this.grsfDomain = grsfDomain;
|
|
|
|
}
|
|
|
|
|
|
|
|
public String getSources() {
|
|
|
|
return sources;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void setSources(String sources) {
|
|
|
|
this.sources = sources;
|
|
|
|
}
|
|
|
|
|
|
|
|
public String getDescription() {
|
|
|
|
return description;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void setDescription(String description) {
|
|
|
|
this.description = description;
|
|
|
|
}
|
|
|
|
|
|
|
|
public String getGrsfName() {
|
|
|
|
return grsfName;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void setGrsfName(String grsfName) {
|
|
|
|
this.grsfName = grsfName;
|
|
|
|
}
|
|
|
|
|
|
|
|
public Map<String, String> getExtrasIfAvailable() {
|
|
|
|
return extrasIfAvailable;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void setExtrasIfAvailable(Map<String, String> extrasIfAvailable) {
|
|
|
|
this.extrasIfAvailable = extrasIfAvailable;
|
|
|
|
}
|
|
|
|
|
2017-01-26 18:21:33 +01:00
|
|
|
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;
|
|
|
|
}
|
2017-08-01 18:00:19 +02:00
|
|
|
|
2017-01-26 18:21:33 +01:00
|
|
|
public void setAnnotation(String annotation) {
|
|
|
|
this.annotation = annotation;
|
|
|
|
}
|
|
|
|
|
2017-08-01 18:00:19 +02:00
|
|
|
public String getShortTitle() {
|
|
|
|
return shortTitle;
|
2017-02-17 18:32:49 +01:00
|
|
|
}
|
|
|
|
|
2017-08-01 18:00:19 +02:00
|
|
|
public void setShortTitle(String shortTitle) {
|
|
|
|
this.shortTitle = shortTitle;
|
2017-02-17 18:32:49 +01:00
|
|
|
}
|
|
|
|
|
2017-08-01 18:00:19 +02:00
|
|
|
public boolean isTraceabilityFlag() {
|
|
|
|
return traceabilityFlag;
|
2017-02-17 18:32:49 +01:00
|
|
|
}
|
|
|
|
|
2017-08-01 18:00:19 +02:00
|
|
|
public void setTraceabilityFlag(boolean traceabilityFlag) {
|
|
|
|
this.traceabilityFlag = traceabilityFlag;
|
2017-02-20 12:21:52 +01:00
|
|
|
}
|
|
|
|
|
2017-01-26 18:21:33 +01:00
|
|
|
@Override
|
|
|
|
public String toString() {
|
2017-08-01 18:00:19 +02:00
|
|
|
return "ManageProductBean [itemTitle=" + itemTitle + ", semanticId="
|
|
|
|
+ semanticId + ", catalogueIdentifier=" + catalogueIdentifier
|
2017-01-26 18:21:33 +01:00
|
|
|
+ ", knowledgeBaseIdentifier=" + knowledgeBaseIdentifier
|
2017-08-01 18:00:19 +02:00
|
|
|
+ ", grsfType=" + grsfType + ", grsfDomain=" + grsfDomain
|
|
|
|
+ ", sources=" + sources + ", description=" + description
|
|
|
|
+ ", grsfName=" + grsfName + ", extrasIfAvailable="
|
|
|
|
+ extrasIfAvailable + ", currentStatus=" + currentStatus
|
|
|
|
+ ", newStatus=" + newStatus + ", annotation=" + annotation
|
|
|
|
+ ", shortTitle=" + shortTitle + ", traceabilityFlag="
|
|
|
|
+ traceabilityFlag + "]";
|
2017-01-26 18:21:33 +01:00
|
|
|
}
|
2017-08-01 18:00:19 +02:00
|
|
|
|
2017-01-26 18:21:33 +01:00
|
|
|
}
|