org.gcube.informationsystem.registry.impl.postprocessing.remove
Interface Purger<RESOURCE extends GCUBEResource>

Type Parameters:
RESOURCE -
All Known Implementing Classes:
GHNPurger, RIPurger

public interface Purger<RESOURCE extends GCUBEResource>

Base interface for purgers of GCUBEResource

Author:
Manuele Simi (ISTI-CNR)

Method Summary
 java.lang.String getName()
          Gets the type of resource managed by the purgerE
 java.util.Set<java.lang.String> purge(java.lang.String resourceId, GCUBEScope scope)
          Purges the RESOURCE
 

Method Detail

purge

java.util.Set<java.lang.String> purge(java.lang.String resourceId,
                                      GCUBEScope scope)
                                      throws java.lang.Exception
Purges the RESOURCE

Parameters:
resourceId - the resource identifier
scope - the operational scope
Returns:
the identifiers of the deleted resources
Throws:
java.lang.Exception - if the purging operation fails

getName

java.lang.String getName()
Gets the type of resource managed by the purgerE

Returns:
the type