ca.bc.gov.webade.user
Class DefaultWebADECurrentUserPermissions

java.lang.Object
  extended byca.bc.gov.webade.user.DefaultWebADEUserPermissions
      extended byca.bc.gov.webade.user.DefaultWebADECurrentUserPermissions
All Implemented Interfaces:
java.io.Serializable, WebADECurrentUserPermissions, WebADEUserPermissions

public class DefaultWebADECurrentUserPermissions
extends DefaultWebADEUserPermissions
implements WebADECurrentUserPermissions, java.io.Serializable

Author:
jross
See Also:
Serialized Form

Constructor Summary
DefaultWebADECurrentUserPermissions(WebADEUserPermissions permissions, boolean isUserAuthenticated, boolean isWebADEUser)
           
 
Method Summary
 boolean isUserAuthenticated()
          Returns a boolean indicating whether the current user has passed authentication to access the WebADE application.
 boolean isWebADEUser()
          Returns a boolean indicating whether the current user has been located in the WebADE system.
 
Methods inherited from class ca.bc.gov.webade.user.DefaultWebADEUserPermissions
canPerformAction, getGovernmentOrganizations, getNonGovernmentOrganizations, getOrganizations, getRoles, getRolesByOrganization, getRolesNotSecuredByOrganization, getSelectedOrganization, getUserCredentials, isUserInOrganization, isUserInRole, setSelectedOrganization, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface ca.bc.gov.webade.user.WebADEUserPermissions
canPerformAction, getGovernmentOrganizations, getNonGovernmentOrganizations, getOrganizations, getRoles, getRolesByOrganization, getRolesNotSecuredByOrganization, getSelectedOrganization, getUserCredentials, isUserInOrganization, isUserInRole, setSelectedOrganization
 

Constructor Detail

DefaultWebADECurrentUserPermissions

public DefaultWebADECurrentUserPermissions(WebADEUserPermissions permissions,
                                           boolean isUserAuthenticated,
                                           boolean isWebADEUser)
Parameters:
permissions -
isUserAuthenticated -
isWebADEUser -
Method Detail

isUserAuthenticated

public boolean isUserAuthenticated()
Description copied from interface: WebADECurrentUserPermissions
Returns a boolean indicating whether the current user has passed authentication to access the WebADE application.

Specified by:
isUserAuthenticated in interface WebADECurrentUserPermissions
Returns:
true if the user is authenticated.
See Also:
WebADECurrentUserPermissions.isUserAuthenticated()

isWebADEUser

public boolean isWebADEUser()
Description copied from interface: WebADECurrentUserPermissions
Returns a boolean indicating whether the current user has been located in the WebADE system. If the user has been authenticated but cannot be located within the WebADE itself, this value will be false.

Specified by:
isWebADEUser in interface WebADECurrentUserPermissions
Returns:
true if the user is a valid WebADE user.
See Also:
WebADECurrentUserPermissions.isWebADEUser()