2018-03-05 17:51:05 +01:00
|
|
|
/*
|
2018-03-13 16:50:59 +01:00
|
|
|
*
|
2018-03-05 17:51:05 +01:00
|
|
|
*/
|
|
|
|
package org.gcube.portal.wssynclibrary;
|
|
|
|
|
|
|
|
import org.gcube.portal.wssynclibrary.shared.ItemNotSynched;
|
2021-05-10 10:12:46 +02:00
|
|
|
import org.gcube.usecases.ws.thredds.faults.WorkspaceInteractionException;
|
|
|
|
import org.gcube.usecases.ws.thredds.faults.WorkspaceNotSynchedException;
|
2018-03-05 17:51:05 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* The Interface DoCheckSyncItem.
|
|
|
|
*
|
2021-05-13 15:24:55 +02:00
|
|
|
* @author Francesco Mangiacrapa francesco.mangiacrapa@isti.cnr.it Feb 8, 2018
|
2018-03-05 17:51:05 +01:00
|
|
|
* @param <T> the generic type
|
|
|
|
*/
|
|
|
|
public interface DoCheckSyncItem<T> {
|
2018-03-13 16:50:59 +01:00
|
|
|
|
2018-03-05 17:51:05 +01:00
|
|
|
/**
|
|
|
|
* Check item synched.
|
|
|
|
*
|
|
|
|
* @param itemId the item id
|
|
|
|
* @return the t
|
|
|
|
* @throws ItemNotSynched the item not synched
|
2021-05-13 15:24:55 +02:00
|
|
|
* @throws Exception the exception
|
2018-03-05 17:51:05 +01:00
|
|
|
*/
|
|
|
|
T checkItemSynched(String itemId) throws ItemNotSynched, Exception;
|
2021-05-13 15:24:55 +02:00
|
|
|
|
2021-05-10 10:12:46 +02:00
|
|
|
/**
|
|
|
|
* Gets the configuration.
|
|
|
|
*
|
|
|
|
* @param itemId the item id
|
|
|
|
* @return the configuration
|
|
|
|
* @throws WorkspaceInteractionException the workspace interaction exception
|
2021-05-13 15:24:55 +02:00
|
|
|
* @throws WorkspaceNotSynchedException the workspace not synched exception
|
|
|
|
* @throws Exception the exception
|
2021-05-10 10:12:46 +02:00
|
|
|
*/
|
|
|
|
T getConfiguration(String itemId) throws WorkspaceInteractionException, WorkspaceNotSynchedException, Exception;
|
2018-03-05 17:51:05 +01:00
|
|
|
}
|