Package com.portal.app.cc.event
Class ServiceChangeEvent
java.lang.Object
java.util.EventObject
com.portal.app.cc.event.ServiceChangeEvent
- All Implemented Interfaces:
Serializable
The event sent out when service data changes
- Version:
- %version: 2 % %date_modified: Fri Aug 31 17:51:58 2001 %
- Author:
- kapono
- See Also:
-
Field Summary
Fields inherited from class java.util.EventObject
source
-
Constructor Summary
ConstructorsConstructorDescriptionServiceChangeEvent
(Object source, PModelHandle pm) Constructs a ServiceChangeEvent object. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Retrieves the service that was changedGet the state name.int
Retrieves the new status for the event.boolean
boolean
void
setDeferredCountChanged
(boolean b) Used to indicate that the number of def.void
setLoginChanged
(boolean b) Used to indicate that the login for this service changedvoid
setPasswordChanged
(boolean b) Used to indicate that the password for this service changedvoid
setStateName
(String stateName) Set the state name.void
setStatus
(int status) Indicates the new status for this eventvoid
setStatusChanged
(boolean b) Used to indicate that the status for this service changedboolean
Methods inherited from class java.util.EventObject
getSource, toString
-
Constructor Details
-
ServiceChangeEvent
Constructs a ServiceChangeEvent object.- Parameters:
source
- the Object that is the source of the event (typicallythis
)pm
- the service object
-
-
Method Details
-
getService
Retrieves the service that was changed- Returns:
- The affected service
-
loginChanged
public boolean loginChanged()- Returns:
- true if the login changed; false otherwise
-
passwordChanged
public boolean passwordChanged()- Returns:
- true if the password changed; false otherwise
-
statusChanged
public boolean statusChanged()- Returns:
- true if the status changed; false otherwise
-
setStatus
public void setStatus(int status) Indicates the new status for this event- Parameters:
The
- new service status
-
getStatus
public int getStatus()Retrieves the new status for the event.
Will return -1 if the login or some other data has changed besides the status;- Returns:
- The new event status - only valid in this event if the event indicates the status has changed;
-
deferredCountChanged
public boolean deferredCountChanged()- Returns:
- true if the number of deferred actions changed; false otherwise
-
setLoginChanged
public void setLoginChanged(boolean b) Used to indicate that the login for this service changed- Parameters:
b
- set to true to indicate a change; false by default
-
setPasswordChanged
public void setPasswordChanged(boolean b) Used to indicate that the password for this service changed- Parameters:
b
- set to true to indicate a change; false by default
-
setStatusChanged
public void setStatusChanged(boolean b) Used to indicate that the status for this service changed- Parameters:
b
- set to true to indicate a change; false by default
-
setDeferredCountChanged
public void setDeferredCountChanged(boolean b) Used to indicate that the number of def. actions for this service changed- Parameters:
b
- set to true to indicate a change; false by default
-
setStateName
Set the state name.- Parameters:
stateName
- state name.
-
getStateName
Get the state name.- Returns:
- state name or null.
-