org.gcube.common.mycontainer.dependencies
Class ProxyISNotifier

java.lang.Object
  extended by org.gcube.common.mycontainer.dependencies.ProxyISNotifier
All Implemented Interfaces:
org.gcube.common.core.informationsystem.notifier.ISNotifier

public class ProxyISNotifier
extends Object
implements org.gcube.common.core.informationsystem.notifier.ISNotifier

An ISNotifier that dispatches invocations to an implementation set on MyContainerDependencies, typically a mock created in the scope of a test.

Author:
Fabio Simeoni

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.gcube.common.core.informationsystem.notifier.ISNotifier
org.gcube.common.core.informationsystem.notifier.ISNotifier.BaseNotificationConsumer, org.gcube.common.core.informationsystem.notifier.ISNotifier.GCUBENotificationTopic, org.gcube.common.core.informationsystem.notifier.ISNotifier.NotificationEvent, org.gcube.common.core.informationsystem.notifier.ISNotifier.NotificationMessage, org.gcube.common.core.informationsystem.notifier.ISNotifier.NotificationTopic, org.gcube.common.core.informationsystem.notifier.ISNotifier.TopicData
 
Constructor Summary
ProxyISNotifier()
           
 
Method Summary
 boolean[] isTopicRegistered(org.gcube.common.core.security.GCUBESecurityManager securityManager, org.gcube.common.core.scope.GCUBEScope scope, List<org.gcube.common.core.informationsystem.notifier.ISNotifier.TopicData> topics)
           
 void registerISNotification(org.apache.axis.message.addressing.EndpointReferenceType producerEPR, List<? extends org.globus.wsrf.Topic> notifications, org.gcube.common.core.security.GCUBESecurityManager manager, org.gcube.common.core.scope.GCUBEScope... scope)
           
<T extends org.gcube.common.core.informationsystem.notifier.ISNotifier.BaseNotificationConsumer>
void
registerToISNotification(T consumer, List<org.gcube.common.core.informationsystem.notifier.ISNotifier.GCUBENotificationTopic> notifications, org.gcube.common.core.security.GCUBESecurityManager manager, org.gcube.common.core.scope.GCUBEScope... scope)
           
 void unregisterFromISNotification(org.gcube.common.core.security.GCUBESecurityManager manager, List<org.gcube.common.core.informationsystem.notifier.ISNotifier.GCUBENotificationTopic> notifications, org.gcube.common.core.scope.GCUBEScope... scope)
           
 void unregisterISNotification(org.apache.axis.message.addressing.EndpointReferenceType producerEPR, List<? extends org.globus.wsrf.Topic> notifications, org.gcube.common.core.security.GCUBESecurityManager manager, org.gcube.common.core.scope.GCUBEScope... scope)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProxyISNotifier

public ProxyISNotifier()
Method Detail

registerToISNotification

public <T extends org.gcube.common.core.informationsystem.notifier.ISNotifier.BaseNotificationConsumer> void registerToISNotification(T consumer,
                                                                                                                                      List<org.gcube.common.core.informationsystem.notifier.ISNotifier.GCUBENotificationTopic> notifications,
                                                                                                                                      org.gcube.common.core.security.GCUBESecurityManager manager,
                                                                                                                                      org.gcube.common.core.scope.GCUBEScope... scope)
                              throws org.gcube.common.core.informationsystem.notifier.ISNotifierException
Specified by:
registerToISNotification in interface org.gcube.common.core.informationsystem.notifier.ISNotifier
Throws:
org.gcube.common.core.informationsystem.notifier.ISNotifierException

unregisterFromISNotification

public void unregisterFromISNotification(org.gcube.common.core.security.GCUBESecurityManager manager,
                                         List<org.gcube.common.core.informationsystem.notifier.ISNotifier.GCUBENotificationTopic> notifications,
                                         org.gcube.common.core.scope.GCUBEScope... scope)
                                  throws org.gcube.common.core.informationsystem.notifier.ISNotifierException
Specified by:
unregisterFromISNotification in interface org.gcube.common.core.informationsystem.notifier.ISNotifier
Throws:
org.gcube.common.core.informationsystem.notifier.ISNotifierException

registerISNotification

public void registerISNotification(org.apache.axis.message.addressing.EndpointReferenceType producerEPR,
                                   List<? extends org.globus.wsrf.Topic> notifications,
                                   org.gcube.common.core.security.GCUBESecurityManager manager,
                                   org.gcube.common.core.scope.GCUBEScope... scope)
                            throws org.gcube.common.core.informationsystem.notifier.ISNotifierException
Specified by:
registerISNotification in interface org.gcube.common.core.informationsystem.notifier.ISNotifier
Throws:
org.gcube.common.core.informationsystem.notifier.ISNotifierException

unregisterISNotification

public void unregisterISNotification(org.apache.axis.message.addressing.EndpointReferenceType producerEPR,
                                     List<? extends org.globus.wsrf.Topic> notifications,
                                     org.gcube.common.core.security.GCUBESecurityManager manager,
                                     org.gcube.common.core.scope.GCUBEScope... scope)
                              throws org.gcube.common.core.informationsystem.notifier.ISNotifierException
Specified by:
unregisterISNotification in interface org.gcube.common.core.informationsystem.notifier.ISNotifier
Throws:
org.gcube.common.core.informationsystem.notifier.ISNotifierException

isTopicRegistered

public boolean[] isTopicRegistered(org.gcube.common.core.security.GCUBESecurityManager securityManager,
                                   org.gcube.common.core.scope.GCUBEScope scope,
                                   List<org.gcube.common.core.informationsystem.notifier.ISNotifier.TopicData> topics)
                            throws org.gcube.common.core.informationsystem.notifier.ISNotifierException
Specified by:
isTopicRegistered in interface org.gcube.common.core.informationsystem.notifier.ISNotifier
Throws:
org.gcube.common.core.informationsystem.notifier.ISNotifierException


Copyright © 2012. All Rights Reserved.