Class ServiceChangeEvent

java.lang.Object
java.util.EventObject
com.portal.app.cc.event.ServiceChangeEvent
All Implemented Interfaces:
Serializable

public class ServiceChangeEvent extends EventObject
The event sent out when service data changes
Version:
%version: 2 % %date_modified: Fri Aug 31 17:51:58 2001 %
Author:
kapono
See Also:
  • Constructor Details

    • ServiceChangeEvent

      public ServiceChangeEvent(Object source, PModelHandle pm)
      Constructs a ServiceChangeEvent object.
      Parameters:
      source - the Object that is the source of the event (typically this)
      pm - the service object
  • Method Details

    • getService

      public PModelHandle 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

      public void setStateName(String stateName)
      Set the state name.
      Parameters:
      stateName - state name.
    • getStateName

      public String getStateName()
      Get the state name.
      Returns:
      state name or null.