de.novanic.eventservice.client.event.command
Class DeactivationCommand

java.lang.Object
  extended by de.novanic.eventservice.client.event.command.ServerCallCommand<java.lang.Void>
      extended by de.novanic.eventservice.client.event.command.DeactivationCommand
All Implemented Interfaces:
ClientCommand<java.lang.Void>

public class DeactivationCommand
extends ServerCallCommand<java.lang.Void>

Deactivates the event listening of the client completely or for a specified domain/context.

Author:
sstrohschein
Date: 27.03.2009
Time: 23:33:35

Constructor Summary
DeactivationCommand(RemoteEventConnector aRemoteEventConnector)
          Creates a DeactivationCommand to deactivate the event listening of the client completely.
DeactivationCommand(RemoteEventConnector aRemoteEventConnector, Domain aDomain, com.google.gwt.user.client.rpc.AsyncCallback<java.lang.Void> aAsyncCallback)
          Creates a DeactivationCommand to deactivate the event listening of the client for a specified domain.
DeactivationCommand(RemoteEventConnector aRemoteEventConnector, java.util.Set<Domain> aDomains, com.google.gwt.user.client.rpc.AsyncCallback<java.lang.Void> aAsyncCallback)
          Creates a DeactivationCommand to deactivate the event listening of the client for a set of domains.
 
Method Summary
 void execute()
          Deactivates the event listening of the client completely or for a specified domain/context.
 
Methods inherited from class de.novanic.eventservice.client.event.command.ServerCallCommand
getCommandCallback, getRemoteEventConnector
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DeactivationCommand

public DeactivationCommand(RemoteEventConnector aRemoteEventConnector)
Creates a DeactivationCommand to deactivate the event listening of the client completely.

Parameters:
aRemoteEventConnector - RemoteEventConnector

DeactivationCommand

public DeactivationCommand(RemoteEventConnector aRemoteEventConnector,
                           Domain aDomain,
                           com.google.gwt.user.client.rpc.AsyncCallback<java.lang.Void> aAsyncCallback)
Creates a DeactivationCommand to deactivate the event listening of the client for a specified domain.

Parameters:
aRemoteEventConnector - RemoteEventConnector
aDomain - domain which should be deactivated for event listening
aAsyncCallback - callback for the command

DeactivationCommand

public DeactivationCommand(RemoteEventConnector aRemoteEventConnector,
                           java.util.Set<Domain> aDomains,
                           com.google.gwt.user.client.rpc.AsyncCallback<java.lang.Void> aAsyncCallback)
Creates a DeactivationCommand to deactivate the event listening of the client for a set of domains. That should be used instead of DeactivationCommand(de.novanic.eventservice.client.event.RemoteEventConnector, de.novanic.eventservice.client.event.domain.Domain, com.google.gwt.user.client.rpc.AsyncCallback) when more than one domain should be deactivated, to reduce server calls.

Parameters:
aRemoteEventConnector - RemoteEventConnector
aDomains - domains which should be deactivated for event listening
aAsyncCallback - callback for the command
Method Detail

execute

public void execute()
Deactivates the event listening of the client completely or for a specified domain/context.

See Also:
DeactivationCommand(de.novanic.eventservice.client.event.RemoteEventConnector), DeactivationCommand(de.novanic.eventservice.client.event.RemoteEventConnector, de.novanic.eventservice.client.event.domain.Domain, com.google.gwt.user.client.rpc.AsyncCallback), DeactivationCommand(de.novanic.eventservice.client.event.RemoteEventConnector, java.util.Set, com.google.gwt.user.client.rpc.AsyncCallback)