ca.bc.gov.webade
Class EUser

java.lang.Object
  extended byca.bc.gov.webade.EUser
All Implemented Interfaces:
java.io.Serializable, User

public final class EUser
extends java.lang.Object
implements User, java.io.Serializable

Author:
jross
See Also:
Serialized Form

Constructor Summary
EUser(UserCredentials credentials, WebADEUserPermissions permissions, WebADEUserInfo info)
          Deprecated. Basic constructor.
EUser(WebADEUserPermissions permissions, WebADEUserInfo info)
          Deprecated. Basic constructor.
 
Method Summary
 boolean canPerformAction(java.lang.String actionName)
          Deprecated. Returns a boolean indicating whether a user is authorized to perform action
 boolean equals(java.lang.Object obj)
          Deprecated.  
 java.util.Date getEffectiveDate()
          Deprecated.  
 java.lang.String getEmailAddress()
          Deprecated.  
 long getEuserId()
          Deprecated.  
 java.util.Date getExpiryDate()
          Deprecated.  
 java.lang.String getFirstName()
          Deprecated.  
 Organization[] getGovernmentOrganizations()
          Deprecated. Returns the Government Organizations a user has access to.
 java.lang.String getGuid()
          Deprecated.  
 java.lang.String getLastName()
          Deprecated.  
 java.lang.String getMiddleInitial()
          Deprecated.  
 Organization[] getNonGovernmentOrganizations()
          Deprecated. Returns the Non-Government Organizations a user has access to.
 Organization[] getOrganizations()
          Deprecated.  
 java.lang.String getPhoneNumber()
          Deprecated.  
 Role[] getRoles()
          Deprecated.  
 Role[] getRolesByOrganization(Organization targetOrg)
          Deprecated. Returns the set of roles assigned to the user by the given organization.
 Organization getSelectedOrganization()
          Deprecated.  
 java.lang.String getSourceDirectory()
          Deprecated.  
 java.lang.String getUserId()
          Deprecated. Get the User id from the user object
 java.lang.String getUserType()
          Deprecated.  
 boolean isEmployee()
          Deprecated.  
 boolean isUserInOrganization(Organization org)
          Deprecated. Returns a boolean indicating whether a user is authorized to act on behalf of an Organization.
 boolean isUserInRole(Role role)
          Deprecated. Returns a boolean indicating whether a user is authorized to act in the given role.
 void setSelectedOrganization(Organization selectedOrg)
          Deprecated. Sets the selected organization.
 java.lang.String toString()
          Deprecated.  
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

EUser

public EUser(WebADEUserPermissions permissions,
             WebADEUserInfo info)
Deprecated. 
Basic constructor. Creates an instance using the given permissions and info about the given user.

Parameters:
permissions - The permissions object to wrap around.
info - The info object to wrap around.

EUser

public EUser(UserCredentials credentials,
             WebADEUserPermissions permissions,
             WebADEUserInfo info)
Deprecated. 
Basic constructor. Creates an instance using the given permissions and info about the given user.

Parameters:
credentials - The user's credentials.
permissions - The permissions object to wrap around.
info - The info object to wrap around.
Method Detail

getEffectiveDate

public final java.util.Date getEffectiveDate()
Deprecated. 
Specified by:
getEffectiveDate in interface User
Returns:
Returns the effectiveDate.

getEmailAddress

public final java.lang.String getEmailAddress()
Deprecated. 
Specified by:
getEmailAddress in interface User
Returns:
Returns the emailAddress.

isEmployee

public final boolean isEmployee()
Deprecated. 
Specified by:
isEmployee in interface User
Returns:
Returns the employee.

getExpiryDate

public final java.util.Date getExpiryDate()
Deprecated. 
Specified by:
getExpiryDate in interface User
Returns:
Returns the expiryDate.

getFirstName

public final java.lang.String getFirstName()
Deprecated. 
Specified by:
getFirstName in interface User
Returns:
Returns the firstName.

getGuid

public final java.lang.String getGuid()
Deprecated. 
Specified by:
getGuid in interface User
Returns:
Returns the guid.

getLastName

public final java.lang.String getLastName()
Deprecated. 
Specified by:
getLastName in interface User
Returns:
Returns the lastName.

getMiddleInitial

public final java.lang.String getMiddleInitial()
Deprecated. 
Specified by:
getMiddleInitial in interface User
Returns:
Returns the middleInitial.

getPhoneNumber

public final java.lang.String getPhoneNumber()
Deprecated. 
Specified by:
getPhoneNumber in interface User
Returns:
Returns the phoneNumber.

getSourceDirectory

public final java.lang.String getSourceDirectory()
Deprecated. 
Specified by:
getSourceDirectory in interface User
Returns:
Returns the sourceDirectory.

getEuserId

public final long getEuserId()
Deprecated. 
Returns:
Returns the euserId.

getUserType

public final java.lang.String getUserType()
Deprecated. 
Specified by:
getUserType in interface User
Returns:
Returns the userType.

getOrganizations

public final Organization[] getOrganizations()
Deprecated. 
Specified by:
getOrganizations in interface User
Returns:
Returns the orgs.

getRoles

public final Role[] getRoles()
Deprecated. 
Specified by:
getRoles in interface User
Returns:
Returns the roles.

getRolesByOrganization

public final Role[] getRolesByOrganization(Organization targetOrg)
Deprecated. 
Returns the set of roles assigned to the user by the given organization.

Specified by:
getRolesByOrganization in interface User
Parameters:
targetOrg - The target organization.
Returns:
Returns the roles assigned to the user for that orgzniation.

getUserId

public final java.lang.String getUserId()
Deprecated. 
Get the User id from the user object

Specified by:
getUserId in interface User
Returns:
The full userId, including domain.

isUserInRole

public final boolean isUserInRole(Role role)
Deprecated. 
Returns a boolean indicating whether a user is authorized to act in the given role.

Specified by:
isUserInRole in interface User
Parameters:
role - the name of a role
Returns:
true if the user is authorized to act in the role

canPerformAction

public final boolean canPerformAction(java.lang.String actionName)
Deprecated. 
Returns a boolean indicating whether a user is authorized to perform action

Specified by:
canPerformAction in interface User
Parameters:
actionName - the name of an action
Returns:
true if the user is authorized to perform action

getSelectedOrganization

public final Organization getSelectedOrganization()
Deprecated. 
Specified by:
getSelectedOrganization in interface User
Returns:
Returns the selected organization.

setSelectedOrganization

public final void setSelectedOrganization(Organization selectedOrg)
Deprecated. 
Sets the selected organization.

Specified by:
setSelectedOrganization in interface User
Parameters:
selectedOrg - The selected organization.

getGovernmentOrganizations

public final Organization[] getGovernmentOrganizations()
Deprecated. 
Returns the Government Organizations a user has access to.

Specified by:
getGovernmentOrganizations in interface User
Returns:
The set of organizations this user is assigned to

getNonGovernmentOrganizations

public final Organization[] getNonGovernmentOrganizations()
Deprecated. 
Returns the Non-Government Organizations a user has access to.

Specified by:
getNonGovernmentOrganizations in interface User
Returns:
The set of organizations this user is assigned to

isUserInOrganization

public final boolean isUserInOrganization(Organization org)
Deprecated. 
Returns a boolean indicating whether a user is authorized to act on behalf of an Organization.

Specified by:
isUserInOrganization in interface User
Parameters:
org - the name of an organization
Returns:
true if the user is authorized access Org Unit

toString

public java.lang.String toString()
Deprecated. 
See Also:
Object.toString()

equals

public final boolean equals(java.lang.Object obj)
Deprecated. 
See Also:
Object.equals(java.lang.Object)