users.events
Class CapabilityDataEvent
java.lang.Object
java.util.EventObject
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
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.
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