com.u2d.app
Class User

java.lang.Object
  extended by com.u2d.model.AbstractEObject
      extended by com.u2d.model.AbstractComplexEObject
          extended by com.u2d.app.User
All Implemented Interfaces:
Searchable, ChangeNotifier, ComplexEObject, EObject, PostChangeNotifier, PropertyChangeNotifier, Typed, Viewable, PersistorListener, AppEventNotifier, ValidationNotifier, java.awt.datatransfer.Transferable, java.io.Serializable

public class User
extends AbstractComplexEObject

Author:
Eitan Suez
See Also:
Serialized Form

Nested Class Summary
 class User.LockedState
           
 class User.UnlockedState
           
 
Nested classes/interfaces inherited from class com.u2d.model.AbstractComplexEObject
AbstractComplexEObject.EditState, AbstractComplexEObject.NullState, AbstractComplexEObject.ReadState, AbstractComplexEObject.TransientState
 
Field Summary
static java.lang.String[] fieldOrder
           
static java.lang.String[] identities
           
static java.lang.String[] readOnly
           
static java.lang.String roleInverseFieldName
           
 
Fields inherited from class com.u2d.model.AbstractComplexEObject
_associations, _changeSupport, _createdOn, _currentState, _editState, _nullState, _readState, _stateMap, _transientState, _type, commandOrderEditState, commandOrderReadState, commandOrderTransientState
 
Fields inherited from class com.u2d.model.AbstractEObject
_listenerList, _postListeners, _validationEvent, _validationListenerList, changeEvent
 
Constructor Summary
User()
           
User(java.lang.String username)
           
User(java.lang.String username, java.lang.String password)
           
User(java.lang.String username, java.lang.String password, Role role)
           
 
Method Summary
 java.lang.String ChangePassword(CommandInfo cmdInfo, Password password)
           
 boolean equals(java.lang.Object obj)
           
 TextEO getDesktop()
           
 BooleanEO getLocked()
           
 Name getName()
           
 Password getPassword()
           
 Photo getPhoto()
           
 Role getRole()
           
 StringEO getUsername()
           
 int hashCode()
           
 javax.swing.Icon iconLg()
           
 javax.swing.Icon iconSm()
           
 State restoredState()
           
 void setRole(Role role)
           
 State startState()
           
 Title title()
           
 
Methods inherited from class com.u2d.model.AbstractComplexEObject
addAppEventListener, addPropertyChangeListener, addPropertyChangeListener, association, cancelTransition, childFields, cleanCGILibEnhancer, clearEditor, command, command, commands, createInstance, defaultCommand, defaultCommandName, delete, doSave, field, fieldSublist, fireAppEventNotification, fireAppEventNotification, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getCreatedOn, getDeleted, getDeletedOn, getExpandableView, getFormView, getIconView, getID, getInequalities, getListItemView, getMainView, getState, getTabBodyView, getTransferData, getTransferDataFlavors, getTreeView, getView, initialize, isDataFlavorSupported, isEditableState, isEditState, isEmpty, isMeta, isNullState, isTransientState, log, makeCopy, onBeforeCreate, onBeforeSave, onCreate, onDelete, onLoad, onSave, popState, pushState, removeAppEventListener, removePropertyChangeListener, removePropertyChangeListener, restoreCopy, restoreState, save, saveCopy, setEditor, setEditState, setID, setNullState, setReadState, setStartState, setState, setState, setTransientState, setValue, setValue, toString, treeModel, type, validate
 
Methods inherited from class com.u2d.model.AbstractEObject
addChangeListener, addPostChangeListener, addValidationListener, currentUser, field, fireStateChanged, fireValidationException, fireValidationException, hbmPersistor, parentObject, persistor, removeChangeListener, removePostChangeListener, removeValidationListener, setField, vmech
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.u2d.model.EObject
field, parentObject, setField
 
Methods inherited from interface com.u2d.validation.ValidationNotifier
addValidationListener, fireValidationException, fireValidationException, removeValidationListener
 
Methods inherited from interface com.u2d.model.ChangeNotifier
addChangeListener, fireStateChanged, removeChangeListener
 
Methods inherited from interface com.u2d.model.PostChangeNotifier
addPostChangeListener, fireStateChanged, removePostChangeListener
 

Field Detail

roleInverseFieldName

public static java.lang.String roleInverseFieldName

fieldOrder

public static java.lang.String[] fieldOrder

identities

public static java.lang.String[] identities

readOnly

public static java.lang.String[] readOnly
Constructor Detail

User

public User()

User

public User(java.lang.String username)

User

public User(java.lang.String username,
            java.lang.String password)

User

public User(java.lang.String username,
            java.lang.String password,
            Role role)
Method Detail

getUsername

public StringEO getUsername()

getPassword

public Password getPassword()

getLocked

public BooleanEO getLocked()

getName

public Name getName()

getPhoto

public Photo getPhoto()

getDesktop

public TextEO getDesktop()

getRole

public Role getRole()

setRole

public void setRole(Role role)

title

public Title title()
Specified by:
title in interface EObject
Specified by:
title in class AbstractComplexEObject

ChangePassword

public java.lang.String ChangePassword(CommandInfo cmdInfo,
                                       Password password)

startState

public State startState()
Overrides:
startState in class AbstractComplexEObject

restoredState

public State restoredState()
Overrides:
restoredState in class AbstractComplexEObject

iconLg

public javax.swing.Icon iconLg()
Specified by:
iconLg in interface EObject
Overrides:
iconLg in class AbstractComplexEObject

iconSm

public javax.swing.Icon iconSm()
Specified by:
iconSm in interface EObject
Overrides:
iconSm in class AbstractComplexEObject

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class AbstractComplexEObject

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object