/**
* Este arquivo é parte do Biblivre3.
*
* Biblivre3 é um software livre; você pode redistribuí-lo e/ou
* modificá-lo dentro dos termos da Licença Pública Geral GNU como
* publicada pela Fundação do Software Livre (FSF); na versão 3 da
* Licença, ou (caso queira) qualquer versão posterior.
*
* Este programa é distribuído na esperança de que possa ser útil,
* mas SEM NENHUMA GARANTIA; nem mesmo a garantia implícita de
* MERCANTIBILIDADE OU ADEQUAÇÃO PARA UM FIM PARTICULAR. Veja a
* Licença Pública Geral GNU para maiores detalhes.
*
* Você deve ter recebido uma cópia da Licença Pública Geral GNU junto
* com este programa, Se não, veja em <http://www.gnu.org/licenses/>.
*
* @author Alberto Wagner <alberto@biblivre.org.br>
* @author Danniel Willian <danniel@biblivre.org.br>
*
*/
package biblivre3.cataloging.authorities;
import java.io.Serializable;
import java.util.Date;
import java.util.Properties;
import mercury.DTO;
import mercury.IFJson;
import org.json.JSONException;
import org.json.JSONObject;
public class AuthoritiesResultRow extends DTO implements Serializable, IFJson {
private String recordSerial;
private String name;
private String date;
private Date created;
private Date modified;
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public Date getCreated() {
return created;
}
public void setCreated(Date created) {
this.created = created;
}
public Date getModified() {
return modified;
}
public void setModified(Date modified) {
this.modified = modified;
}
public String getDate() {
if (this.getCreated() != null) {
}
return date;
}
public void setDate(String date) {
this.date = date;
}
public String getRecordSerial() {
return recordSerial;
}
public void setRecordSerial(String recordSerial) {
this.recordSerial = recordSerial;
}
@Override
public JSONObject toJSONObject(Properties properties) {
JSONObject json = new JSONObject();
try {
json.put("serial", this.getRecordSerial());
json.put("name", this.getName());
json.put("created", this.getCreated());
json.put("modified", this.getModified());
} catch (JSONException e) {
}
return json;
}
}