2020-11-02 13:05:53 +01:00
|
|
|
package org.gcube.portlets.user.geoportaldataviewer.shared.products.model;
|
|
|
|
|
|
|
|
import java.io.Serializable;
|
|
|
|
|
2020-11-04 16:00:13 +01:00
|
|
|
import com.google.gwt.user.client.rpc.IsSerializable;
|
|
|
|
|
2020-11-02 13:05:53 +01:00
|
|
|
/**
|
|
|
|
* The Class Record.
|
|
|
|
*
|
|
|
|
* @author Francesco Mangiacrapa at ISTI-CNR (francesco.mangiacrapa@isti.cnr.it)
|
|
|
|
*
|
|
|
|
* Nov 2, 2020
|
|
|
|
*/
|
2020-11-04 16:00:13 +01:00
|
|
|
public class RecordDV implements Serializable, IsSerializable {
|
|
|
|
|
2020-11-02 13:05:53 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
*
|
|
|
|
*/
|
2020-11-04 16:00:13 +01:00
|
|
|
private static final long serialVersionUID = 2913726613820175679L;
|
2020-11-02 13:05:53 +01:00
|
|
|
|
|
|
|
/** The id. */
|
2020-11-04 16:00:13 +01:00
|
|
|
private Long id;
|
2020-11-02 13:05:53 +01:00
|
|
|
|
|
|
|
/** The record type. */
|
|
|
|
private String recordType;
|
|
|
|
|
|
|
|
/** The version. */
|
|
|
|
private String version = "1.0.0";
|
|
|
|
|
|
|
|
/** The licenza ID. */
|
|
|
|
private String licenzaID;
|
|
|
|
|
2020-11-04 16:00:13 +01:00
|
|
|
private String policy;
|
2020-11-02 13:05:53 +01:00
|
|
|
|
|
|
|
/** The nome. */
|
|
|
|
// Nome del progetto
|
|
|
|
private String nome;
|
|
|
|
|
|
|
|
/** The folder id. */
|
|
|
|
// Storage Info
|
|
|
|
private String folderId;
|
|
|
|
|
|
|
|
/** The last update time. */
|
|
|
|
// Accounting
|
2020-11-03 13:09:08 +01:00
|
|
|
private String lastUpdateTime;
|
2020-11-02 13:05:53 +01:00
|
|
|
|
|
|
|
/** The last update user. */
|
|
|
|
private String lastUpdateUser;
|
|
|
|
|
|
|
|
/** The creation time. */
|
2020-11-03 13:09:08 +01:00
|
|
|
private String creationTime;
|
2020-11-02 13:05:53 +01:00
|
|
|
|
|
|
|
/** The creation user. */
|
|
|
|
private String creationUser;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Instantiates a new record.
|
|
|
|
*/
|
|
|
|
public RecordDV() {
|
2020-11-04 16:00:13 +01:00
|
|
|
|
2020-11-02 13:05:53 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Gets the id.
|
|
|
|
*
|
|
|
|
* @return the id
|
|
|
|
*/
|
2020-11-04 16:00:13 +01:00
|
|
|
public Long getId() {
|
2020-11-02 13:05:53 +01:00
|
|
|
return id;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Sets the id.
|
|
|
|
*
|
|
|
|
* @param id the new id
|
|
|
|
*/
|
2020-11-04 16:00:13 +01:00
|
|
|
public void setId(Long id) {
|
2020-11-02 13:05:53 +01:00
|
|
|
this.id = id;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Gets the record type.
|
|
|
|
*
|
|
|
|
* @return the record type
|
|
|
|
*/
|
|
|
|
public String getRecordType() {
|
|
|
|
return recordType;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Sets the record type.
|
|
|
|
*
|
|
|
|
* @param recordType the new record type
|
|
|
|
*/
|
|
|
|
public void setRecordType(String recordType) {
|
|
|
|
this.recordType = recordType;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Gets the version.
|
|
|
|
*
|
|
|
|
* @return the version
|
|
|
|
*/
|
|
|
|
public String getVersion() {
|
|
|
|
return version;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Sets the version.
|
|
|
|
*
|
|
|
|
* @param version the new version
|
|
|
|
*/
|
|
|
|
public void setVersion(String version) {
|
|
|
|
this.version = version;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Gets the licenza ID.
|
|
|
|
*
|
|
|
|
* @return the licenza ID
|
|
|
|
*/
|
|
|
|
public String getLicenzaID() {
|
|
|
|
return licenzaID;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Sets the licenza ID.
|
|
|
|
*
|
|
|
|
* @param licenzaID the new licenza ID
|
|
|
|
*/
|
|
|
|
public void setLicenzaID(String licenzaID) {
|
|
|
|
this.licenzaID = licenzaID;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Gets the accesso.
|
|
|
|
*
|
|
|
|
* @return the accesso
|
|
|
|
*/
|
2020-11-04 16:00:13 +01:00
|
|
|
public String getPolicy() {
|
|
|
|
return policy;
|
2020-11-02 13:05:53 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Sets the accesso.
|
|
|
|
*
|
2020-11-04 16:00:13 +01:00
|
|
|
* @param policy the new policy
|
2020-11-02 13:05:53 +01:00
|
|
|
*/
|
2020-11-04 16:00:13 +01:00
|
|
|
public void setPolicy(String policy) {
|
|
|
|
this.policy = policy;
|
2020-11-02 13:05:53 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Gets the nome.
|
|
|
|
*
|
|
|
|
* @return the nome
|
|
|
|
*/
|
|
|
|
public String getNome() {
|
|
|
|
return nome;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Sets the nome.
|
|
|
|
*
|
|
|
|
* @param nome the new nome
|
|
|
|
*/
|
|
|
|
public void setNome(String nome) {
|
|
|
|
this.nome = nome;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Gets the folder id.
|
|
|
|
*
|
|
|
|
* @return the folder id
|
|
|
|
*/
|
|
|
|
public String getFolderId() {
|
|
|
|
return folderId;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Sets the folder id.
|
|
|
|
*
|
|
|
|
* @param folderId the new folder id
|
|
|
|
*/
|
|
|
|
public void setFolderId(String folderId) {
|
|
|
|
this.folderId = folderId;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Gets the last update time.
|
|
|
|
*
|
|
|
|
* @return the last update time
|
|
|
|
*/
|
2020-11-03 13:09:08 +01:00
|
|
|
public String getLastUpdateTime() {
|
2020-11-02 13:05:53 +01:00
|
|
|
return lastUpdateTime;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Sets the last update time.
|
|
|
|
*
|
|
|
|
* @param lastUpdateTime the new last update time
|
|
|
|
*/
|
2020-11-03 13:09:08 +01:00
|
|
|
public void setLastUpdateTime(String lastUpdateTime) {
|
2020-11-02 13:05:53 +01:00
|
|
|
this.lastUpdateTime = lastUpdateTime;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Gets the last update user.
|
|
|
|
*
|
|
|
|
* @return the last update user
|
|
|
|
*/
|
|
|
|
public String getLastUpdateUser() {
|
|
|
|
return lastUpdateUser;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Sets the last update user.
|
|
|
|
*
|
|
|
|
* @param lastUpdateUser the new last update user
|
|
|
|
*/
|
|
|
|
public void setLastUpdateUser(String lastUpdateUser) {
|
|
|
|
this.lastUpdateUser = lastUpdateUser;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Gets the creation time.
|
|
|
|
*
|
|
|
|
* @return the creation time
|
|
|
|
*/
|
2020-11-03 13:09:08 +01:00
|
|
|
public String getCreationTime() {
|
2020-11-02 13:05:53 +01:00
|
|
|
return creationTime;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Sets the creation time.
|
|
|
|
*
|
|
|
|
* @param creationTime the new creation time
|
|
|
|
*/
|
2020-11-03 13:09:08 +01:00
|
|
|
public void setCreationTime(String creationTime) {
|
2020-11-02 13:05:53 +01:00
|
|
|
this.creationTime = creationTime;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Gets the creation user.
|
|
|
|
*
|
|
|
|
* @return the creation user
|
|
|
|
*/
|
|
|
|
public String getCreationUser() {
|
|
|
|
return creationUser;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Sets the creation user.
|
|
|
|
*
|
|
|
|
* @param creationUser the new creation user
|
|
|
|
*/
|
|
|
|
public void setCreationUser(String creationUser) {
|
|
|
|
this.creationUser = creationUser;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public String toString() {
|
|
|
|
StringBuilder builder = new StringBuilder();
|
2020-11-04 16:00:13 +01:00
|
|
|
builder.append("RecordDV [id=");
|
2020-11-02 13:05:53 +01:00
|
|
|
builder.append(id);
|
|
|
|
builder.append(", recordType=");
|
|
|
|
builder.append(recordType);
|
|
|
|
builder.append(", version=");
|
|
|
|
builder.append(version);
|
|
|
|
builder.append(", licenzaID=");
|
|
|
|
builder.append(licenzaID);
|
2020-11-04 16:00:13 +01:00
|
|
|
builder.append(", policy=");
|
|
|
|
builder.append(policy);
|
2020-11-02 13:05:53 +01:00
|
|
|
builder.append(", nome=");
|
|
|
|
builder.append(nome);
|
|
|
|
builder.append(", folderId=");
|
|
|
|
builder.append(folderId);
|
|
|
|
builder.append(", lastUpdateTime=");
|
|
|
|
builder.append(lastUpdateTime);
|
|
|
|
builder.append(", lastUpdateUser=");
|
|
|
|
builder.append(lastUpdateUser);
|
|
|
|
builder.append(", creationTime=");
|
|
|
|
builder.append(creationTime);
|
|
|
|
builder.append(", creationUser=");
|
|
|
|
builder.append(creationUser);
|
|
|
|
builder.append("]");
|
|
|
|
return builder.toString();
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|