planetj.dataengine.security
Interface IUser

All Superinterfaces:
Principal
All Known Subinterfaces:
IDEUser
All Known Implementing Classes:
DEUser, SignOnReceipt

public interface IUser
extends Principal

Author:
PlanetJ Corp.

Method Summary
 String getFirstName()
          Gets the name for this user, which should uniquely identify the user in the current context.
 String getLastName()
          Gets the name for this user, which should uniquely identify the user in the current context.
 int getOwnerId()
           
 int getSecurityLevel()
           
 String getSystemAlias()
          Gets the system alias of this user's personal connection pool, or null if no such pool exists
 String getUserMode()
          Gets the MODE of the user.
 String getUserName()
          Gets the name for this user, which should uniquely identify the user in the current context.
 Object getUserSQLValue(String key)
          Gets the value of the specified user field as an Object for use as an SQL parameter
 Object getUserValue(String key)
          Gets the value of the specified user field as an Object
 Object getValueByUsageId(int usageId)
           
 boolean hasSecurityLevel()
          Method that can be used to determine if the user has a security level.
 boolean isAdmin()
           
 boolean isPJAdmin()
           
 void setUserMode(String pMode)
          Sets the MODE of this user
 
Methods inherited from interface java.security.Principal
equals, getName, hashCode, toString
 

Method Detail

getFirstName

public String getFirstName()
Gets the name for this user, which should uniquely identify the user in the current context.


getLastName

public String getLastName()
Gets the name for this user, which should uniquely identify the user in the current context.


getOwnerId

public int getOwnerId()

getSecurityLevel

public int getSecurityLevel()

getUserMode

public String getUserMode()
Gets the MODE of the user. This has to do with usability. NOVICE, ADVANCED


getUserName

public String getUserName()
Gets the name for this user, which should uniquely identify the user in the current context.


getUserSQLValue

public Object getUserSQLValue(String key)
                       throws CMException
Gets the value of the specified user field as an Object for use as an SQL parameter

CMException

getUserValue

public Object getUserValue(String key)
Gets the value of the specified user field as an Object


getValueByUsageId

public Object getValueByUsageId(int usageId)
                         throws CMException
CMException

isAdmin

public boolean isAdmin()

isPJAdmin

public boolean isPJAdmin()

getSystemAlias

public String getSystemAlias()
Gets the system alias of this user's personal connection pool, or null if no such pool exists


hasSecurityLevel

public boolean hasSecurityLevel()
Method that can be used to determine if the user has a security level.

Returns:
true if the user has a security level; false otherwise

setUserMode

public void setUserMode(String pMode)
Sets the MODE of this user