SalesPoint Framework v3.0

users.events
Class CapabilityDataEvent

java.lang.Object
  |
  +--java.util.EventObject
        |
        +--users.events.CapabilityDataEvent

public class CapabilityDataEvent
extends EventObject

An event indicating changes in a user's capabilities.

Since:
v2.0
Version:
2.0 05/05/1999
Author:
Steffen Zschaler
See Also:
User, Capability, CapabilityDataListener, Serialized Form

Fields inherited from class java.util.EventObject
source
 
Constructor Summary
CapabilityDataEvent(Object source, Set 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 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.
Override:
Never.
Parameters:
sCapName - the name of the capability to be tested
Returns:
true if the given capability is affected by this event.

getCapability

public Capability getCapability(String sCapName)
Return a capability if it is affected by this event.
Override:
Never.
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.

SalesPoint Framework v3.0