org.deltava.security.command
Class ApplicantAccessControl

java.lang.Object
  extended by org.deltava.security.command.AccessControl
      extended by org.deltava.security.command.ApplicantAccessControl

public final class ApplicantAccessControl
extends AccessControl

An Access Controller to support Applicant profile operations.

Since:
1.0
Version:
1.0
Author:
Luke

Field Summary
 
Fields inherited from class org.deltava.security.command.AccessControl
_ctx
 
Constructor Summary
ApplicantAccessControl(SecurityContext ctx, Applicant a)
          Initializes the controller.
 
Method Summary
 boolean getCanApprove()
          Returns if the Applicant can be approved.
 boolean getCanDelete()
          Returns if the user can delete the Applicant.
 boolean getCanEdit()
          Returns if the Applicant profile can be edited.
 boolean getCanNotify()
          Returns if the user can send a notification message to the Applicant.
 boolean getCanRead()
          Returns if the Applicant profile can be read.
 boolean getCanReject()
          Returns if the Applicant can be rejected.
 void validate()
          Calculates access rights.
 
Methods inherited from class org.deltava.security.command.AccessControl
validateContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ApplicantAccessControl

public ApplicantAccessControl(SecurityContext ctx,
                              Applicant a)
Initializes the controller.

Parameters:
ctx - the Command context
a - the Applicant profile
Method Detail

validate

public void validate()
              throws AccessControlException
Calculates access rights.

Specified by:
validate in class AccessControl
Throws:
AccessControlException - if the user cannot even read the profile

getCanRead

public boolean getCanRead()
Returns if the Applicant profile can be read.

Returns:
TRUE if the profile can be read, otherwise FALSE

getCanEdit

public boolean getCanEdit()
Returns if the Applicant profile can be edited.

Returns:
TRUE if the profile can be edited, otherwise FALSE

getCanApprove

public boolean getCanApprove()
Returns if the Applicant can be approved.

Returns:
TRUE if the Applicant can be approved, otherwise FALSE

getCanReject

public boolean getCanReject()
Returns if the Applicant can be rejected.

Returns:
TRUE if the Applicant can be rejected, otherwise FALSE

getCanNotify

public boolean getCanNotify()
Returns if the user can send a notification message to the Applicant.

Returns:
TRUE if the Applicant can be notified, otherwise FALSE

getCanDelete

public boolean getCanDelete()
Returns if the user can delete the Applicant.

Returns:
TRUE if the Applicant can be deleted, otherwise FALSE


Copyright © 2004-2009 Global Virtual Airlines Group. All Rights Reserved.