ws-synchronized-module-library/src/main/java/org/gcube/portal/wssynclibrary/DoCheckSyncItem.java

49 lines
1.3 KiB
Java
Raw Normal View History

/*
*
*/
package org.gcube.portal.wssynclibrary;
import org.gcube.portal.wssynclibrary.shared.ItemNotSynched;
import org.gcube.usecases.ws.thredds.faults.WorkspaceInteractionException;
import org.gcube.usecases.ws.thredds.faults.WorkspaceNotSynchedException;
/**
* The Interface DoCheckSyncItem.
*
2021-05-13 15:24:55 +02:00
* @author Francesco Mangiacrapa francesco.mangiacrapa@isti.cnr.it Feb 8, 2018
* @param <T> the generic type
*/
public interface DoCheckSyncItem<T> {
/**
* 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
*/
T checkItemSynched(String itemId) throws ItemNotSynched, Exception;
2021-05-13 15:24:55 +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
*/
T getConfiguration(String itemId) throws WorkspaceInteractionException, WorkspaceNotSynchedException, Exception;
2021-05-13 15:24:55 +02:00
/**
* Checks if is item synched.
*
* @param itemId the item id
* @return true, if is item synched
* @throws Exception the exception
*/
boolean isItemSynched(String itemId) throws Exception;
}