org.deltava.security.command
Class ChartAccessControl

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

public class ChartAccessControl
extends AccessControl

An Access Controller for Approach Charts.

Since:
1.0
Version:
1.0
Author:
Luke

Field Summary
 
Fields inherited from class org.deltava.security.command.AccessControl
_ctx
 
Constructor Summary
ChartAccessControl(SecurityContext ctx)
          Initializes the Access Controller.
 
Method Summary
 boolean getCanCreate()
          Returns if a new Approach Chart can be created.
 boolean getCanDelete()
          Returns if an Approach Chart can be deleted.
 boolean getCanEdit()
          Returns if an Approach Chart can be edited.
 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

ChartAccessControl

public ChartAccessControl(SecurityContext ctx)
Initializes the Access Controller.

Parameters:
ctx - the Command context
Method Detail

validate

public void validate()
              throws AccessControlException
Calculates access rights.

Specified by:
validate in class AccessControl
Throws:
AccessControlException - if the user is unauthenticated

getCanCreate

public boolean getCanCreate()
Returns if a new Approach Chart can be created.

Returns:
TRUE if a new Chart can be created, otherwise FALSE

getCanEdit

public boolean getCanEdit()
Returns if an Approach Chart can be edited.

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

getCanDelete

public boolean getCanDelete()
Returns if an Approach Chart can be deleted.

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


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