org.deltava.security.command
Class ManualAccessControl

java.lang.Object
  extended by org.deltava.security.command.AccessControl
      extended by org.deltava.security.command.FleetEntryAccessControl
          extended by org.deltava.security.command.ManualAccessControl

public class ManualAccessControl
extends FleetEntryAccessControl

An Access Controller for Document Library entries.

Since:
1.0
Version:
2.6
Author:
Luke

Field Summary
 
Fields inherited from class org.deltava.security.command.FleetEntryAccessControl
_canView, _entry
 
Fields inherited from class org.deltava.security.command.AccessControl
_ctx
 
Constructor Summary
ManualAccessControl(SecurityContext ctx, Collection<Course> courses)
          Initializes the access controller.
 
Method Summary
 void setEntry(LibraryEntry e)
          Updates the Fleet Entry to validate access to.
 void validate()
          Calculates access rights.
 
Methods inherited from class org.deltava.security.command.FleetEntryAccessControl
getCanCreate, getCanDelete, getCanEdit, getCanView
 
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

ManualAccessControl

public ManualAccessControl(SecurityContext ctx,
                           Collection<Course> courses)
Initializes the access controller.

Parameters:
ctx - the security context
courses - the User's active Flight Academy courses
Method Detail

setEntry

public final void setEntry(LibraryEntry e)
Updates the Fleet Entry to validate access to.

Overrides:
setEntry in class FleetEntryAccessControl
Parameters:
e - the entry
Throws:
SecurityException - if e is not a manual

validate

public void validate()
Calculates access rights.

Overrides:
validate in class FleetEntryAccessControl


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