Skip navigation links


com.essbase.eas.essbase.defs
Class DefaultUser

java.lang.Object
  extended by com.essbase.eas.essbase.defs.DefaultUser

All Implemented Interfaces:
User
Direct Known Subclasses:
FactoryUser

public class DefaultUser
extends java.lang.Object
implements User
Version:
1.00, 03/28/2001
Author:
Namita Varma
See Also:

Constructor Summary
DefaultUser()
           
DefaultUser(java.lang.String userName)
           
DefaultUser(java.lang.String userName, java.lang.String pwd)
           
DefaultUser(java.lang.String userName, java.lang.String pwd, Server s)
           

 

Method Summary
 void addUserListener(UserListener l)
          add a listener to the User's collection of listeners.
protected  void fireUserRenamedEvent()
          fires User renamed events to the listeners.
 java.lang.String getCSSToken()
          Implementation changed for this method.
 java.lang.String getName()
          Get the User's name
 java.lang.String getPassword()
          sets the password of this user.
 UserProperties getProperties()
          returns properties object associated with this user.
 UserProperties getPropertiesCondensed()
          returns properties object associated with this user.
 java.lang.String getProviderName()
           
 Server getServer()
          get the server that this user object is defined in.
 void removeUserListener(UserListener l)
          removes an event listener from an User
 java.util.Properties serializeProperties(java.util.Properties params)
           
 void setCSSToken(java.lang.String token)
           
 void setName(java.lang.String value)
          implementation of the User interface setName() method.
 void setPassword(java.lang.String pwd)
          returns the password of this user.
 void setProperties(User user)
           
 void setProperties(UserProperties props)
          sets properties object associated with this user.
 void setProviderName(java.lang.String providerName)
           
 void setServer(Server value)
          Set the User's server
 java.lang.String toString()
           

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

 

Constructor Detail

DefaultUser

public DefaultUser()

DefaultUser

public DefaultUser(java.lang.String userName)

DefaultUser

public DefaultUser(java.lang.String userName,
                   java.lang.String pwd)

DefaultUser

public DefaultUser(java.lang.String userName,
                   java.lang.String pwd,
                   Server s)

Method Detail

getServer

public Server getServer()
get the server that this user object is defined in.
Specified by:
getServer in interface User

setServer

public void setServer(Server value)
Description copied from interface: User
Set the User's server
Specified by:
setServer in interface User

getName

public java.lang.String getName()
Description copied from interface: User
Get the User's name
Specified by:
getName in interface User

setName

public void setName(java.lang.String value)
implementation of the User interface setName() method. Changes the name of this Essbase user and generates an UserEvent for the name change.
Specified by:
setName in interface User

setPassword

public void setPassword(java.lang.String pwd)
Description copied from interface: User
returns the password of this user.
Specified by:
setPassword in interface User

getPassword

public java.lang.String getPassword()
Description copied from interface: User
sets the password of this user.
Specified by:
getPassword in interface User

setProviderName

public void setProviderName(java.lang.String providerName)
Specified by:
setProviderName in interface User

getProviderName

public java.lang.String getProviderName()
Specified by:
getProviderName in interface User

getProperties

public UserProperties getProperties()
returns properties object associated with this user.
Specified by:
getProperties in interface User

getPropertiesCondensed

public UserProperties getPropertiesCondensed()
returns properties object associated with this user. can be used to retrieve minimal properties
Specified by:
getPropertiesCondensed in interface User

setProperties

public void setProperties(UserProperties props)
sets properties object associated with this user.
Specified by:
setProperties in interface User

addUserListener

public void addUserListener(UserListener l)
add a listener to the User's collection of listeners.
Specified by:
addUserListener in interface User

removeUserListener

public void removeUserListener(UserListener l)
removes an event listener from an User
Specified by:
removeUserListener in interface User

fireUserRenamedEvent

protected void fireUserRenamedEvent()
fires User renamed events to the listeners.

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

serializeProperties

public java.util.Properties serializeProperties(java.util.Properties params)
Specified by:
serializeProperties in interface User

setProperties

public void setProperties(User user)
Specified by:
setProperties in interface User

getCSSToken

public java.lang.String getCSSToken()
Implementation changed for this method. Now if the FrameworkUser object exists inside Login Instance and if it contains a token then that token would be returned. Otherwise the token value set using setCSSToken(String) method of this class will be returned. The implementation is changed because FrameworkUser object always contains a valid css token (i.e. even after eas session timeouts the User token value is updated inside FrameworkUser on relogin).
Specified by:
getCSSToken in interface User

setCSSToken

public void setCSSToken(java.lang.String token)
Specified by:
setCSSToken in interface User

Skip navigation links


Copyright © 2001, 2012, Oracle. All rights reserved.