org.deltava.security.command
Class AssignmentAccessControl

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

public class AssignmentAccessControl
extends AccessControl

An Access Controller for Flight Assignments.

Since:
1.0
Version:
2.6
Author:
Luke

Field Summary
 
Fields inherited from class org.deltava.security.command.AccessControl
_ctx
 
Constructor Summary
AssignmentAccessControl(SecurityContext ctx, AssignmentInfo ai)
          Initializes the Access Controller.
 
Method Summary
 boolean getCanCreateAvailable()
          Returns if the user can create available Flight Assignments (assignments for other people).
 boolean getCanDelete()
          Returns if the Assignment can be deleted.
 boolean getCanRelease()
          Returns if the Assignment can be released.
 boolean getCanReserve()
          Returns if the Assignment can be reserved.
 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

AssignmentAccessControl

public AssignmentAccessControl(SecurityContext ctx,
                               AssignmentInfo ai)
Initializes the Access Controller.

Parameters:
ctx - the Command context
ai - the Assignment Info object
Method Detail

validate

public void validate()
Calculates access rights.

Specified by:
validate in class AccessControl

getCanCreateAvailable

public boolean getCanCreateAvailable()
Returns if the user can create available Flight Assignments (assignments for other people).

Returns:
TRUE if the user can create avilable Assignments, otherwise FALSE

getCanReserve

public boolean getCanReserve()
Returns if the Assignment can be reserved.

Returns:
TRUE if the Assignment can be reserved, otherwise FALSE

getCanRelease

public boolean getCanRelease()
Returns if the Assignment can be released.

Returns:
TRUE if the Assignment can be released, otherwise FALSE

getCanDelete

public boolean getCanDelete()
Returns if the Assignment can be deleted.

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


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