compleated the bean ThSyncElementInfo
This commit is contained in:
parent
5ac0e064dc
commit
6506500f91
|
@ -2,6 +2,8 @@ package org.gcube.portal.wssynclibrary.shared.thredds;
|
||||||
|
|
||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
||||||
|
|
||||||
|
import org.gcube.usecases.ws.thredds.model.StepReport;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The Class ThSyncElementInfo.
|
* The Class ThSyncElementInfo.
|
||||||
*
|
*
|
||||||
|
@ -18,23 +20,86 @@ public class ThSyncElementInfo implements Serializable {
|
||||||
|
|
||||||
private Sync_Status syncStatus;
|
private Sync_Status syncStatus;
|
||||||
|
|
||||||
|
private StepReport.Status lastSynchronizationStatus;
|
||||||
|
|
||||||
|
private String lastupdateTime;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Instantiates a new th sync element info.
|
||||||
|
*/
|
||||||
public ThSyncElementInfo() {
|
public ThSyncElementInfo() {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Instantiates a new th sync element info.
|
||||||
|
*
|
||||||
|
* @param syncStatus the sync status
|
||||||
|
*/
|
||||||
public ThSyncElementInfo(Sync_Status syncStatus) {
|
public ThSyncElementInfo(Sync_Status syncStatus) {
|
||||||
super();
|
super();
|
||||||
this.syncStatus = syncStatus;
|
this.syncStatus = syncStatus;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Gets the sync status.
|
||||||
|
*
|
||||||
|
* @return the sync status
|
||||||
|
*/
|
||||||
public Sync_Status getSyncStatus() {
|
public Sync_Status getSyncStatus() {
|
||||||
return syncStatus;
|
return syncStatus;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Sets the sync status.
|
||||||
|
*
|
||||||
|
* @param syncStatus the new sync status
|
||||||
|
*/
|
||||||
public void setSyncStatus(Sync_Status syncStatus) {
|
public void setSyncStatus(Sync_Status syncStatus) {
|
||||||
this.syncStatus = syncStatus;
|
this.syncStatus = syncStatus;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Gets the last synchronization status.
|
||||||
|
*
|
||||||
|
* @return the last synchronization status
|
||||||
|
*/
|
||||||
|
public StepReport.Status getLastSynchronizationStatus() {
|
||||||
|
return lastSynchronizationStatus;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Sets the last synchronization status.
|
||||||
|
*
|
||||||
|
* @param lastSynchronizationStatus the new last synchronization status
|
||||||
|
*/
|
||||||
|
public void setLastSynchronizationStatus(StepReport.Status lastSynchronizationStatus) {
|
||||||
|
this.lastSynchronizationStatus = lastSynchronizationStatus;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Gets the lastupdate time.
|
||||||
|
*
|
||||||
|
* @return the lastupdate time
|
||||||
|
*/
|
||||||
|
public String getLastupdateTime() {
|
||||||
|
return lastupdateTime;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Sets the lastupdate time.
|
||||||
|
*
|
||||||
|
* @param lastupdateTime the new lastupdate time
|
||||||
|
*/
|
||||||
|
public void setLastupdateTime(String lastupdateTime) {
|
||||||
|
this.lastupdateTime = lastupdateTime;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* To string.
|
||||||
|
*
|
||||||
|
* @return the string
|
||||||
|
*/
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
StringBuilder builder = new StringBuilder();
|
StringBuilder builder = new StringBuilder();
|
||||||
|
|
|
@ -208,6 +208,8 @@ public class ThreddsConverter {
|
||||||
ThSyncElementInfo toReturn = new ThSyncElementInfo();
|
ThSyncElementInfo toReturn = new ThSyncElementInfo();
|
||||||
Sync_Status theSyncStatus = toSyncStatus.apply(sei.getStatus());
|
Sync_Status theSyncStatus = toSyncStatus.apply(sei.getStatus());
|
||||||
toReturn.setSyncStatus(theSyncStatus);
|
toReturn.setSyncStatus(theSyncStatus);
|
||||||
|
toReturn.setLastupdateTime(sei.getLastupdateTime());
|
||||||
|
toReturn.setLastSynchronizationStatus(sei.getLastSynchronizationStatus());
|
||||||
return toReturn;
|
return toReturn;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue