SalesPoint v3.3 API

users.events
Class CapabilityDataEvent

java.lang.Object
  extended by java.util.EventObject
      extended by users.events.CapabilityDataEvent
All Implemented Interfaces:
Serializable

public class CapabilityDataEvent
extends EventObject

An event indicating changes in a user's capabilities.

Since:
v2.0
Author:
Steffen Zschaler
See Also:
User, Capability, CapabilityDataListener, Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
CapabilityDataEvent(Object source, Set<String> stCapNames)
          Create a new CapabilityDataEvent with a source and a set of affected capabilities
 
Method Summary
 boolean affectsCapability(String sCapName)
          Test whether a given capability is affected by this event.
 Capability getCapability(String sCapName)
          Return a capability if it is affected by this event.
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CapabilityDataEvent

public CapabilityDataEvent(Object source,
                           Set<String> stCapNames)
Create a new CapabilityDataEvent with a source and a set of affected capabilities

Parameters:
source - the source of the event, usually a User object.
stCapNames - the set of capabilities that changed.
Method Detail

affectsCapability

public boolean affectsCapability(String sCapName)
Test whether a given capability is affected by this event.

Parameters:
sCapName - the name of the capability to be tested
Returns:
true if the given capability is affected by this event.
Override:
Never

getCapability

public Capability getCapability(String sCapName)
Return a capability if it is affected by this event.

Parameters:
sCapName - the name of the capability to be returned.
Returns:
the capability with the given name, if it is affected by this event. null otherwise.
Override:
Never

SalesPoint v3.3 API