ca.bc.gov.webade
Interface User

All Known Implementing Classes:
EUser

Deprecated. Use WebADEUserPermissions and WebADEUserInfo instead.

public interface User

This class represents a user of a single WebADE application. It contains the information that WebADE keeps about the user for an application. User objects are immutable.

By default, the euserid is hidden. If an application needs to view this value, extend the User object and provide a public getter for the euserid value. (getEuserId is protected) Then, create a new instance of your User object, passing in the target User to the super.User(User) constructor. This will populate your custom User object with the same information as the target User object, allowing you access to the euserid.


Method Summary
 boolean canPerformAction(java.lang.String actionName)
          Deprecated. Returns a boolean indicating whether a user is authorized to perform action
 java.util.Date getEffectiveDate()
          Deprecated.  
 java.lang.String getEmailAddress()
          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.
 

Method Detail

getEffectiveDate

public java.util.Date getEffectiveDate()
Deprecated. 
Returns:
Returns the effectiveDate.

getEmailAddress

public java.lang.String getEmailAddress()
Deprecated. 
Returns:
Returns the emailAddress.

isEmployee

public boolean isEmployee()
Deprecated. 
Returns:
Returns the employee.

getExpiryDate

public java.util.Date getExpiryDate()
Deprecated. 
Returns:
Returns the expiryDate.

getFirstName

public java.lang.String getFirstName()
Deprecated. 
Returns:
Returns the firstName.

getGuid

public java.lang.String getGuid()
Deprecated. 
Returns:
Returns the guid.

getLastName

public java.lang.String getLastName()
Deprecated. 
Returns:
Returns the lastName.

getMiddleInitial

public java.lang.String getMiddleInitial()
Deprecated. 
Returns:
Returns the middleInitial.

getPhoneNumber

public java.lang.String getPhoneNumber()
Deprecated. 
Returns:
Returns the phoneNumber.

getSourceDirectory

public java.lang.String getSourceDirectory()
Deprecated. 
Returns:
Returns the sourceDirectory.

getUserType

public java.lang.String getUserType()
Deprecated. 
Returns:
Returns the userType.

getOrganizations

public Organization[] getOrganizations()
Deprecated. 
Returns:
Returns the orgs.

getRoles

public Role[] getRoles()
Deprecated. 
Returns:
Returns the roles.

getRolesByOrganization

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

Parameters:
targetOrg - The target organization.
Returns:
Returns the roles assigned to the user for that organization.

getUserId

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

Returns:
The full userId, including domain.

isUserInRole

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

Parameters:
role - the name of a role
Returns:
true if the user is authorized to act in the role

canPerformAction

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

Parameters:
actionName - the name of an action
Returns:
true if the user is authorized to perform action

getSelectedOrganization

public Organization getSelectedOrganization()
Deprecated. 
Returns:
Returns the selected organization.

setSelectedOrganization

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

Parameters:
selectedOrg - The selected organization.

getGovernmentOrganizations

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

Returns:
The set of organizations this user is assigned to

getNonGovernmentOrganizations

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

Returns:
The set of organizations this user is assigned to

isUserInOrganization

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

Parameters:
org - the name of an organization
Returns:
true if the user is authorized access Org Unit