org.gcube.contentmanagement.contentmanager.consumers
Class ActivationRecordConsumer

java.lang.Object
  extended by BaseNotificationConsumer
      extended by org.gcube.contentmanagement.contentmanager.consumers.ActivationRecordConsumer

public class ActivationRecordConsumer
extends BaseNotificationConsumer

A BaseNotificationConsumer of events that relate to activation records in a given scope.

Author:
Fabio Simeoni (University of Strathclyde)

Constructor Summary
ActivationRecordConsumer(GCUBEScope scope)
          Creates an instance for a given scope.
 
Method Summary
 void onNewActivationRecord(ActivationRecord record)
          Self-stage with the payload of a new activation record resource that was not broadcasted by this running instance.
 void onNotificationReceived(NotificationEvent event)
          
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ActivationRecordConsumer

public ActivationRecordConsumer(GCUBEScope scope)
Creates an instance for a given scope.

Parameters:
scope - the scope.
Method Detail

onNotificationReceived

public void onNotificationReceived(NotificationEvent event)


onNewActivationRecord

public void onNewActivationRecord(ActivationRecord record)
Self-stage with the payload of a new activation record resource that was not broadcasted by this running instance.

Parameters:
resource - the resource.