com.cinecolombia.cinecolombia.control.event
Class CambioPasswordEvent

java.lang.Object
  |
  +--com.cinecolombia.cinecolombia.control.event.CinecolombiaEventSupport
        |
        +--com.cinecolombia.cinecolombia.control.event.CambioPasswordEvent
All Implemented Interfaces:
CinecolombiaEvent, java.io.Serializable

public class CambioPasswordEvent
extends CinecolombiaEventSupport

cambioPassword usecase: This event is sent from the web tier to the EJB Controller to notify the EJB Controller that an action needs to be made in the model data.

Author:
CincoSOFT
See Also:
Serialized Form
Created:
Abril 2003

Field Summary
private  int actionType
          action requested by the user
private  java.lang.String companyId
          current company
private  Debug debug
          The ubiquitous debugging object.
static int LIST
          action constant of LIST
static int UPDATE_PASSWORD
          action constant of UPDATE_PASSWORD
private  java.lang.Long userId
          current user
private  CambioPasswordValue value
          value for sending to the ejbs
 
Constructor Summary
CambioPasswordEvent(int actionType, java.lang.String companyId, java.lang.Long userId, CambioPasswordValue value)
          constructor: initializes attributes
 
Method Summary
 int getActionType()
          get method for actionType
 java.lang.String getCompanyId()
          get method for companyId
 java.lang.String getEventName()
          JNDI name for the event: Controller EJB registers this env variable
 java.lang.Long getUserId()
          get method for userId
 CambioPasswordValue getValue()
          get method for value
 java.lang.String toString()
          String representation of the event
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

LIST

public static final int LIST
action constant of LIST

See Also:
Constant Field Values

UPDATE_PASSWORD

public static final int UPDATE_PASSWORD
action constant of UPDATE_PASSWORD

See Also:
Constant Field Values

actionType

private int actionType
action requested by the user


companyId

private java.lang.String companyId
current company


userId

private java.lang.Long userId
current user


value

private CambioPasswordValue value
value for sending to the ejbs


debug

private Debug debug
The ubiquitous debugging object.

Constructor Detail

CambioPasswordEvent

public CambioPasswordEvent(int actionType,
                           java.lang.String companyId,
                           java.lang.Long userId,
                           CambioPasswordValue value)
constructor: initializes attributes

Parameters:
actionType - action requested by the user
companyId - current company
userId - current user
value - value for sending to the ejbs
Method Detail

getActionType

public int getActionType()
get method for actionType

Returns:
The actionType value

getCompanyId

public java.lang.String getCompanyId()
get method for companyId

Returns:
The companyId value

getUserId

public java.lang.Long getUserId()
get method for userId

Returns:
The userId value

getValue

public CambioPasswordValue getValue()
get method for value

Returns:
The value

toString

public java.lang.String toString()
String representation of the event

Overrides:
toString in class java.lang.Object
Returns:
text of event

getEventName

public java.lang.String getEventName()
JNDI name for the event: Controller EJB registers this env variable

Specified by:
getEventName in interface CinecolombiaEvent
Overrides:
getEventName in class CinecolombiaEventSupport
Returns:
The eventName value