2018-03-02 17:03:57 +01:00
|
|
|
package org.gcube.portlets.widgets.wsthreddssync.shared;
|
|
|
|
|
|
|
|
import java.io.Serializable;
|
|
|
|
|
|
|
|
import org.gcube.portal.wssynclibrary.shared.thredds.ThSyncFolderDescriptor;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* The Class WsThreddsSynchFolderDescriptor.
|
|
|
|
*
|
2021-05-10 18:08:39 +02:00
|
|
|
* @author Francesco Mangiacrapa at ISTI-CNR francesco.mangiacrapa@isti.cnr.it
|
|
|
|
*
|
2021-05-13 15:02:53 +02:00
|
|
|
* May 13, 2021
|
2018-03-02 17:03:57 +01:00
|
|
|
*/
|
|
|
|
public class WsThreddsSynchFolderDescriptor implements Serializable {
|
|
|
|
|
|
|
|
/**
|
2018-03-12 17:43:51 +01:00
|
|
|
*
|
2018-03-02 17:03:57 +01:00
|
|
|
*/
|
|
|
|
private static final long serialVersionUID = -5395986188613871699L;
|
|
|
|
|
2018-03-12 17:43:51 +01:00
|
|
|
private GcubeScope selectedScope;
|
2018-03-02 17:03:57 +01:00
|
|
|
|
|
|
|
private ThSyncFolderDescriptor serverFolderDescriptor;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Instantiates a new ws thredds synch folder configuration.
|
|
|
|
*/
|
|
|
|
public WsThreddsSynchFolderDescriptor() {
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Instantiates a new ws thredds synch folder descriptor.
|
|
|
|
*
|
2021-05-13 15:02:53 +02:00
|
|
|
* @param selectedScope the selected scope
|
2018-03-12 17:43:51 +01:00
|
|
|
* @param serverFolderDescriptor the server folder descriptor
|
2018-03-02 17:03:57 +01:00
|
|
|
*/
|
2021-05-13 15:02:53 +02:00
|
|
|
public WsThreddsSynchFolderDescriptor(GcubeScope selectedScope, ThSyncFolderDescriptor serverFolderDescriptor) {
|
2018-03-02 17:03:57 +01:00
|
|
|
super();
|
2018-03-12 17:43:51 +01:00
|
|
|
this.selectedScope = selectedScope;
|
2018-03-02 17:03:57 +01:00
|
|
|
this.serverFolderDescriptor = serverFolderDescriptor;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
2018-03-12 17:43:51 +01:00
|
|
|
* Gets the selected scope.
|
2018-03-02 17:03:57 +01:00
|
|
|
*
|
2018-03-12 17:43:51 +01:00
|
|
|
* @return the selectedScope
|
2018-03-02 17:03:57 +01:00
|
|
|
*/
|
2018-03-12 17:43:51 +01:00
|
|
|
public GcubeScope getSelectedScope() {
|
|
|
|
|
|
|
|
return selectedScope;
|
2018-03-02 17:03:57 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
2018-03-12 17:43:51 +01:00
|
|
|
* Sets the selected scope.
|
2018-03-02 17:03:57 +01:00
|
|
|
*
|
2018-03-12 17:43:51 +01:00
|
|
|
* @param selectedVRE the new selected scope
|
2018-03-02 17:03:57 +01:00
|
|
|
*/
|
2018-03-12 17:43:51 +01:00
|
|
|
public void setSelectedScope(GcubeScope selectedVRE) {
|
|
|
|
this.selectedScope = selectedVRE;
|
2018-03-02 17:03:57 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Gets the server folder descriptor.
|
|
|
|
*
|
|
|
|
* @return the server folder descriptor
|
|
|
|
*/
|
|
|
|
public ThSyncFolderDescriptor getServerFolderDescriptor() {
|
|
|
|
return serverFolderDescriptor;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Sets the server folder descriptor.
|
|
|
|
*
|
2021-05-13 15:02:53 +02:00
|
|
|
* @param serverFolderDescriptor the new server folder descriptor
|
2018-03-02 17:03:57 +01:00
|
|
|
*/
|
|
|
|
public void setServerFolderDescriptor(ThSyncFolderDescriptor serverFolderDescriptor) {
|
|
|
|
this.serverFolderDescriptor = serverFolderDescriptor;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public String toString() {
|
|
|
|
StringBuilder builder = new StringBuilder();
|
2021-05-13 15:02:53 +02:00
|
|
|
builder.append("WsThreddsSynchFolderDescriptor [selectedScope=");
|
2018-03-12 17:43:51 +01:00
|
|
|
builder.append(selectedScope);
|
2018-03-02 17:03:57 +01:00
|
|
|
builder.append(", serverFolderDescriptor=");
|
|
|
|
builder.append(serverFolderDescriptor);
|
|
|
|
builder.append("]");
|
|
|
|
return builder.toString();
|
|
|
|
}
|
2018-03-12 17:43:51 +01:00
|
|
|
|
2018-03-02 17:03:57 +01:00
|
|
|
}
|