org.nuxeo.core.resources.model
Interface ISiteOperationListener


public interface ISiteOperationListener

A listener notified when a site operation is performed

Author:
Bogdan Stefanescu

Method Summary
 boolean aboutToPerformOperation(ISiteOperation operation)
          Called before executing the given operation.
 int operationFlags()
          Get the accepted operation flags.
 void operationPerformed(ISiteOperation operation)
          Called after the given operation was performed.
 

Method Detail

operationFlags

int operationFlags()
Get the accepted operation flags. used to exclude non-interesting operations The check shlould be done as follow: if (operationFlags() & operation.getFlags() != operationFlags()) { // ignore operation

Returns:
a bit mask containing the accepted operation flags

aboutToPerformOperation

boolean aboutToPerformOperation(ISiteOperation operation)
Called before executing the given operation. Clients may do here any prerequiste checks on the operation The operation may be canceled by returning true

Parameters:
operation - the operation about to be performed
Returns:
boolean true if operation should be canceled, false otherwise

operationPerformed

void operationPerformed(ISiteOperation operation)
Called after the given operation was performed. The operation status is available by calling ISiteOperation.getStatus() This is used mainly for notification

Parameters:
operation - the operation performed