2015-07-03 12:18:27 +02:00
|
|
|
/**
|
2016-09-14 12:17:14 +02:00
|
|
|
*
|
2015-07-03 12:18:27 +02:00
|
|
|
*/
|
|
|
|
package org.gcube.portlets.user.workspace.shared;
|
|
|
|
|
|
|
|
import java.io.Serializable;
|
|
|
|
|
2016-09-14 12:17:14 +02:00
|
|
|
|
2015-07-03 12:18:27 +02:00
|
|
|
/**
|
2016-09-14 12:17:14 +02:00
|
|
|
* The Class PublicLink.
|
|
|
|
*
|
2019-02-22 12:18:03 +01:00
|
|
|
* @author Francesco Mangiacrapa francesco.mangiacrapaATisti.cnr.it
|
2016-09-14 12:17:14 +02:00
|
|
|
* Sep 13, 2016
|
2015-07-03 12:18:27 +02:00
|
|
|
*/
|
|
|
|
public class PublicLink implements Serializable {
|
|
|
|
|
|
|
|
/**
|
2016-09-14 12:17:14 +02:00
|
|
|
*
|
2015-07-03 12:18:27 +02:00
|
|
|
*/
|
|
|
|
private static final long serialVersionUID = -8157172818802297440L;
|
|
|
|
|
|
|
|
private String completeURL;
|
|
|
|
private String shortURL;
|
|
|
|
|
2016-09-14 12:17:14 +02:00
|
|
|
/**
|
|
|
|
* Instantiates a new public link.
|
|
|
|
*/
|
2015-07-03 12:18:27 +02:00
|
|
|
public PublicLink() {
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
2016-09-14 12:17:14 +02:00
|
|
|
* Instantiates a new public link.
|
|
|
|
*
|
|
|
|
* @param completeURL the complete url
|
|
|
|
* @param shortURL the short url
|
2015-07-03 12:18:27 +02:00
|
|
|
*/
|
|
|
|
public PublicLink(String completeURL, String shortURL) {
|
|
|
|
super();
|
|
|
|
this.completeURL = completeURL;
|
|
|
|
this.shortURL = shortURL;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
2016-09-14 12:17:14 +02:00
|
|
|
* Gets the complete url.
|
|
|
|
*
|
2015-07-03 12:18:27 +02:00
|
|
|
* @return the completeURL
|
|
|
|
*/
|
|
|
|
public String getCompleteURL() {
|
|
|
|
return completeURL;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
2016-09-14 12:17:14 +02:00
|
|
|
* Gets the short url.
|
|
|
|
*
|
2015-07-03 12:18:27 +02:00
|
|
|
* @return the shortURL
|
|
|
|
*/
|
|
|
|
public String getShortURL() {
|
|
|
|
return shortURL;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
2016-09-14 12:17:14 +02:00
|
|
|
* Sets the complete url.
|
|
|
|
*
|
|
|
|
* @param completeURL the completeURL to set
|
2015-07-03 12:18:27 +02:00
|
|
|
*/
|
|
|
|
public void setCompleteURL(String completeURL) {
|
|
|
|
this.completeURL = completeURL;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
2016-09-14 12:17:14 +02:00
|
|
|
* Sets the short url.
|
|
|
|
*
|
|
|
|
* @param shortURL the shortURL to set
|
2015-07-03 12:18:27 +02:00
|
|
|
*/
|
|
|
|
public void setShortURL(String shortURL) {
|
|
|
|
this.shortURL = shortURL;
|
|
|
|
}
|
|
|
|
|
|
|
|
/*
|
|
|
|
* (non-Javadoc)
|
2016-09-14 12:17:14 +02:00
|
|
|
*
|
2015-07-03 12:18:27 +02:00
|
|
|
* @see java.lang.Object#toString()
|
|
|
|
*/
|
|
|
|
@Override
|
|
|
|
public String toString() {
|
|
|
|
StringBuilder builder = new StringBuilder();
|
|
|
|
builder.append("PublicLink [completeURL=");
|
|
|
|
builder.append(completeURL);
|
|
|
|
builder.append(", shortURL=");
|
|
|
|
builder.append(shortURL);
|
|
|
|
builder.append("]");
|
|
|
|
return builder.toString();
|
|
|
|
}
|
|
|
|
}
|