2018-03-05 17:51:05 +01:00
|
|
|
package org.gcube.portal.wssynclibrary.shared.thredds;
|
|
|
|
|
|
|
|
import java.io.Serializable;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* The Class ThSyncFolderDescriptor.
|
|
|
|
*
|
2021-05-13 12:51:40 +02:00
|
|
|
* @author Francesco Mangiacrapa at ISTI-CNR francesco.mangiacrapa@isti.cnr.it
|
|
|
|
*
|
|
|
|
* May 13, 2021
|
2018-03-05 17:51:05 +01:00
|
|
|
*/
|
2021-05-13 12:51:40 +02:00
|
|
|
public class ThSyncFolderDescriptor implements Serializable {
|
2018-03-05 17:51:05 +01:00
|
|
|
|
|
|
|
private static final long serialVersionUID = 4134777763175272691L;
|
|
|
|
|
|
|
|
private String folderId;
|
|
|
|
|
|
|
|
private String folderPath;
|
|
|
|
|
|
|
|
private ThSynchFolderConfiguration configuration;
|
|
|
|
|
2021-05-13 12:51:40 +02:00
|
|
|
private boolean isLocked = false;
|
|
|
|
|
|
|
|
private ThSyncElementInfo elementInfo;
|
|
|
|
|
|
|
|
private ThProcessDescriptor localProcessDescriptor = null;
|
|
|
|
|
2018-03-05 17:51:05 +01:00
|
|
|
/**
|
|
|
|
* Instantiates a new s sync folder descriptor.
|
|
|
|
*/
|
|
|
|
public ThSyncFolderDescriptor() {
|
2021-05-13 12:51:40 +02:00
|
|
|
|
2018-03-05 17:51:05 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
2021-05-13 12:51:40 +02:00
|
|
|
* Instantiates a new th sync folder descriptor.
|
2018-03-05 17:51:05 +01:00
|
|
|
*
|
2021-05-13 12:51:40 +02:00
|
|
|
* @param folderId the folder id
|
|
|
|
* @param folderPath the folder path
|
|
|
|
* @param configuration the configuration
|
|
|
|
* @param isLocked the is locked
|
|
|
|
* @param elementInfo the element info
|
2018-03-05 17:51:05 +01:00
|
|
|
* @param localProcessDescriptor the local process descriptor
|
|
|
|
*/
|
|
|
|
public ThSyncFolderDescriptor(String folderId, String folderPath, ThSynchFolderConfiguration configuration,
|
2021-05-13 12:51:40 +02:00
|
|
|
boolean isLocked, ThSyncElementInfo elementInfo, ThProcessDescriptor localProcessDescriptor) {
|
2018-03-05 17:51:05 +01:00
|
|
|
super();
|
|
|
|
this.folderId = folderId;
|
|
|
|
this.folderPath = folderPath;
|
|
|
|
this.configuration = configuration;
|
|
|
|
this.isLocked = isLocked;
|
2021-05-13 12:51:40 +02:00
|
|
|
this.elementInfo = elementInfo;
|
2018-03-05 17:51:05 +01:00
|
|
|
this.localProcessDescriptor = localProcessDescriptor;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 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 folder path.
|
|
|
|
*
|
|
|
|
* @return the folder path
|
|
|
|
*/
|
|
|
|
public String getFolderPath() {
|
|
|
|
return folderPath;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Sets the folder path.
|
|
|
|
*
|
|
|
|
* @param folderPath the new folder path
|
|
|
|
*/
|
|
|
|
public void setFolderPath(String folderPath) {
|
|
|
|
this.folderPath = folderPath;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Gets the configuration.
|
|
|
|
*
|
|
|
|
* @return the configuration
|
|
|
|
*/
|
|
|
|
public ThSynchFolderConfiguration getConfiguration() {
|
|
|
|
return configuration;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Sets the configuration.
|
|
|
|
*
|
|
|
|
* @param configuration the new configuration
|
|
|
|
*/
|
|
|
|
public void setConfiguration(ThSynchFolderConfiguration configuration) {
|
|
|
|
this.configuration = configuration;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Checks if is locked.
|
|
|
|
*
|
|
|
|
* @return true, if is locked
|
|
|
|
*/
|
|
|
|
public boolean isLocked() {
|
|
|
|
return isLocked;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Sets the locked.
|
|
|
|
*
|
|
|
|
* @param isLocked the new locked
|
|
|
|
*/
|
|
|
|
public void setLocked(boolean isLocked) {
|
|
|
|
this.isLocked = isLocked;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Gets the local process descriptor.
|
|
|
|
*
|
|
|
|
* @return the local process descriptor
|
|
|
|
*/
|
|
|
|
public ThProcessDescriptor getLocalProcessDescriptor() {
|
|
|
|
return localProcessDescriptor;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Sets the local process descriptor.
|
|
|
|
*
|
|
|
|
* @param localProcessDescriptor the new local process descriptor
|
|
|
|
*/
|
|
|
|
public void setLocalProcessDescriptor(ThProcessDescriptor localProcessDescriptor) {
|
|
|
|
this.localProcessDescriptor = localProcessDescriptor;
|
|
|
|
}
|
|
|
|
|
2021-05-13 12:51:40 +02:00
|
|
|
/**
|
|
|
|
* Gets the element info.
|
|
|
|
*
|
|
|
|
* @return the element info
|
|
|
|
*/
|
|
|
|
public ThSyncElementInfo getElementInfo() {
|
|
|
|
return elementInfo;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Sets the element info.
|
|
|
|
*
|
|
|
|
* @param elementInfo the new element info
|
|
|
|
*/
|
|
|
|
public void setElementInfo(ThSyncElementInfo elementInfo) {
|
|
|
|
this.elementInfo = elementInfo;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* To string.
|
|
|
|
*
|
|
|
|
* @return the string
|
2018-03-05 17:51:05 +01:00
|
|
|
*/
|
|
|
|
@Override
|
|
|
|
public String toString() {
|
|
|
|
StringBuilder builder = new StringBuilder();
|
|
|
|
builder.append("ThSyncFolderDescriptor [folderId=");
|
|
|
|
builder.append(folderId);
|
|
|
|
builder.append(", folderPath=");
|
|
|
|
builder.append(folderPath);
|
|
|
|
builder.append(", configuration=");
|
|
|
|
builder.append(configuration);
|
|
|
|
builder.append(", isLocked=");
|
|
|
|
builder.append(isLocked);
|
2021-05-13 12:51:40 +02:00
|
|
|
builder.append(", elementInfo=");
|
|
|
|
builder.append(elementInfo);
|
2018-03-05 17:51:05 +01:00
|
|
|
builder.append(", localProcessDescriptor=");
|
|
|
|
builder.append(localProcessDescriptor);
|
|
|
|
builder.append("]");
|
|
|
|
return builder.toString();
|
|
|
|
}
|
2021-05-13 12:51:40 +02:00
|
|
|
|
2018-03-05 17:51:05 +01:00
|
|
|
}
|