org.equanda.test.dm.client
Class EquandaUser

java.lang.Object
  extended by org.equanda.persistence.EquandaProxy<Uoid,EquandaUser>
      extended by org.equanda.test.dm.client.EquandaUser
All Implemented Interfaces:
Serializable, EquandaUserInfo, HasId<Uoid>

public class EquandaUser
extends EquandaProxy<Uoid,EquandaUser>
implements Serializable, EquandaUserInfo

Proxy object for table EquandaUser No constraints are being checked when modifying this object, this only happens when setting the value! Definition of a user for a GUI application.

See Also:
Serialized Form

Field Summary
protected  boolean _obtainedRoles
           
 
Fields inherited from class org.equanda.persistence.EquandaProxy
equandaModificationDate, equandaStatusModified, equandaType, equandaVersion, id, update
 
Constructor Summary
  EquandaUser()
          Creator which is used to build value objects based on the real object.
protected EquandaUser(EquandaEquandaUserState proxy)
           
protected EquandaUser(Uoid uoid, ObjectType equandaType, Timestamp equandaCreationDate, Timestamp equandaModificationDate, String equandaStatus, long equandaVersion, String userName, String firstName, String name, String password, String language, String authAndConfig, String startPage)
           
 
Method Summary
 EquandaUser equandaClone(boolean cloneUoid)
           
static EquandaUser equandaCreate()
           
static EquandaUser equandaCreate(String type)
           
 void equandaReset()
          Reset the proxy state.
 void equandaUpdate(boolean updateTypeFieldsOnly)
           
 String getAuthAndConfig()
          Authorization and configuration details for this user.
 Timestamp getEquandaCreationDate()
           
 String getEquandaStatus()
           
 String getFirstName()
           
 String getLanguage()
           
 String getName()
           
 String getPassword()
           
 Collection<EquandaRole> getRoles()
          Grouping of security rights for this user
 String getStartPage()
          Starting page in GUI
 String getUserName()
           
 boolean isAuthAndConfigModified()
          Authorization and configuration details for this user.
 boolean isFirstNameModified()
           
 boolean isLanguageModified()
           
 boolean isModified(boolean typeFieldsOnly)
           
 boolean isNameModified()
           
 boolean isPasswordModified()
           
 boolean isRolesModified()
          Grouping of security rights for this user
 boolean isStartPageModified()
          Starting page in GUI
 boolean isUserNameModified()
           
 void login()
          Action which should be called automatically when logging in.
 void logout()
          Action which should be called automatically when logging out.
 void removeEntityBean()
           
static List<EquandaUser> selectAllUsers()
           
static List<EquandaUser> selectEquandaAll()
           
static List<EquandaUser> selectFullName(String firstName, String name)
           
static EquandaUser selectId(Uoid uoid)
           
static EquandaUser selectUserName(String userName)
           
static EquandaUser selectUserPassword(String userName, String password)
           
 void setAuthAndConfig(String value)
          Authorization and configuration details for this user.
 void setEquandaStatus(String status)
           
 void setEquandaType(String type)
          Set the type of object which should be used.
 void setFirstName(String value)
           
protected  void setId(Uoid uoid)
           
 void setLanguage(String value)
           
 void setName(String value)
           
 void setPassword(String value)
           
 void setRoles(Collection<EquandaRole> value)
          Grouping of security rights for this user
 void setStartPage(String value)
          Starting page in GUI
 void setUserName(String value)
           
protected  void updateInternalState()
           
 
Methods inherited from class org.equanda.persistence.EquandaProxy
equals, equandaClone, equandaUpdate, getEquandaModificationDate, getEquandaName, getEquandaType, getEquandaVersion, getId, hashCode, isEquandaModificationDateModified, isEquandaType, isModified, objectEquals, setEquandaUpdate, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

_obtainedRoles

protected boolean _obtainedRoles
Constructor Detail

EquandaUser

protected EquandaUser(EquandaEquandaUserState proxy)

EquandaUser

public EquandaUser()
Creator which is used to build value objects based on the real object. Should only be used server side, client side proxies should be obtained using equandaCreate()


EquandaUser

protected EquandaUser(Uoid uoid,
                      ObjectType equandaType,
                      Timestamp equandaCreationDate,
                      Timestamp equandaModificationDate,
                      String equandaStatus,
                      long equandaVersion,
                      String userName,
                      String firstName,
                      String name,
                      String password,
                      String language,
                      String authAndConfig,
                      String startPage)
Method Detail

equandaClone

public EquandaUser equandaClone(boolean cloneUoid)
Specified by:
equandaClone in class EquandaProxy<Uoid,EquandaUser>

setId

protected void setId(Uoid uoid)

updateInternalState

protected void updateInternalState()

equandaCreate

public static EquandaUser equandaCreate()
                                 throws EquandaPersistenceException
Throws:
EquandaPersistenceException

equandaCreate

public static EquandaUser equandaCreate(String type)
                                 throws EquandaPersistenceException
Throws:
EquandaPersistenceException

setEquandaType

public void setEquandaType(String type)
Set the type of object which should be used. This is a helper routine to allow using isEquandaType() for checking of object type. This method is only allowed for object building (not for objects which already exists on the server. When an invalid type identifier is specified, then later calls to read the type will throw IllegalStateException.

Specified by:
setEquandaType in class EquandaProxy<Uoid,EquandaUser>
Parameters:
type - base type which will be used to build the actual object
Throws:
IllegalStateException

isModified

public boolean isModified(boolean typeFieldsOnly)
Specified by:
isModified in interface EquandaUserInfo
Specified by:
isModified in class EquandaProxy<Uoid,EquandaUser>

getEquandaStatus

public String getEquandaStatus()
Specified by:
getEquandaStatus in interface EquandaUserInfo
Specified by:
getEquandaStatus in class EquandaProxy<Uoid,EquandaUser>

setEquandaStatus

public void setEquandaStatus(String status)
Specified by:
setEquandaStatus in class EquandaProxy<Uoid,EquandaUser>

getEquandaCreationDate

public Timestamp getEquandaCreationDate()
Specified by:
getEquandaCreationDate in interface EquandaUserInfo

getUserName

public String getUserName()
                   throws EquandaPersistenceException
Specified by:
getUserName in interface EquandaUserInfo
Throws:
EquandaPersistenceException

setUserName

public void setUserName(String value)

isUserNameModified

public boolean isUserNameModified()

getFirstName

public String getFirstName()
                    throws EquandaPersistenceException
Specified by:
getFirstName in interface EquandaUserInfo
Throws:
EquandaPersistenceException

setFirstName

public void setFirstName(String value)

isFirstNameModified

public boolean isFirstNameModified()

getName

public String getName()
               throws EquandaPersistenceException
Specified by:
getName in interface EquandaUserInfo
Throws:
EquandaPersistenceException

setName

public void setName(String value)

isNameModified

public boolean isNameModified()

getPassword

public String getPassword()
                   throws EquandaPersistenceException
Specified by:
getPassword in interface EquandaUserInfo
Throws:
EquandaPersistenceException

setPassword

public void setPassword(String value)

isPasswordModified

public boolean isPasswordModified()

getRoles

public Collection<EquandaRole> getRoles()
                                 throws EquandaPersistenceException
Grouping of security rights for this user

Throws:
EquandaPersistenceException

setRoles

public void setRoles(Collection<EquandaRole> value)
Grouping of security rights for this user


isRolesModified

public boolean isRolesModified()
Grouping of security rights for this user


getLanguage

public String getLanguage()
                   throws EquandaPersistenceException
Specified by:
getLanguage in interface EquandaUserInfo
Throws:
EquandaPersistenceException

setLanguage

public void setLanguage(String value)

isLanguageModified

public boolean isLanguageModified()

getAuthAndConfig

public String getAuthAndConfig()
                        throws EquandaPersistenceException
Authorization and configuration details for this user.

Specified by:
getAuthAndConfig in interface EquandaUserInfo
Throws:
EquandaPersistenceException

setAuthAndConfig

public void setAuthAndConfig(String value)
Authorization and configuration details for this user.


isAuthAndConfigModified

public boolean isAuthAndConfigModified()
Authorization and configuration details for this user.


getStartPage

public String getStartPage()
                    throws EquandaPersistenceException
Starting page in GUI

Throws:
EquandaPersistenceException

setStartPage

public void setStartPage(String value)
Starting page in GUI


isStartPageModified

public boolean isStartPageModified()
Starting page in GUI


login

public void login()
           throws EquandaPersistenceException
Action which should be called automatically when logging in.

Throws:
EquandaPersistenceException

logout

public void logout()
            throws EquandaPersistenceException
Action which should be called automatically when logging out. It is not guaranteed that this is called, specifically it will not be called when the session times out. It may also not be called in other cases.

Throws:
EquandaPersistenceException

equandaUpdate

public void equandaUpdate(boolean updateTypeFieldsOnly)
                   throws EquandaPersistenceException
Specified by:
equandaUpdate in class EquandaProxy<Uoid,EquandaUser>
Throws:
EquandaPersistenceException

equandaReset

public void equandaReset()
                  throws EquandaPersistenceException
Reset the proxy state. If the proxy was not modified, nothing happens, otherwise the state is retrieved from the server again.

Specified by:
equandaReset in class EquandaProxy<Uoid,EquandaUser>
Throws:
EquandaPersistenceException - oops

removeEntityBean

public void removeEntityBean()
                      throws EquandaPersistenceException
Overrides:
removeEntityBean in class EquandaProxy<Uoid,EquandaUser>
Throws:
EquandaPersistenceException

selectId

public static EquandaUser selectId(Uoid uoid)
                            throws EquandaPersistenceException
Throws:
EquandaPersistenceException

selectFullName

public static List<EquandaUser> selectFullName(String firstName,
                                               String name)
                                        throws EquandaPersistenceException
Throws:
EquandaPersistenceException

selectUserName

public static EquandaUser selectUserName(String userName)
                                  throws EquandaPersistenceException
Throws:
EquandaPersistenceException

selectUserPassword

public static EquandaUser selectUserPassword(String userName,
                                             String password)
                                      throws EquandaPersistenceException
Throws:
EquandaPersistenceException

selectAllUsers

public static List<EquandaUser> selectAllUsers()
                                        throws EquandaPersistenceException
Throws:
EquandaPersistenceException

selectEquandaAll

public static List<EquandaUser> selectEquandaAll()
                                          throws EquandaPersistenceException
Throws:
EquandaPersistenceException


Copyright © 2007-2008. All Rights Reserved.