org.deltava.security.command
Class FileEntryAccessControl

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

public class FileEntryAccessControl
extends FleetEntryAccessControl

An Access Controller for File Library entires.

Since:
1.0
Version:
1.0
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
FileEntryAccessControl(SecurityContext ctx, FileEntry e)
          Initializes the Access Controller.
 
Method Summary
 boolean getCanCreate()
          Returns if a new File Library entry can be created.
 boolean getCanEdit()
          Returns if the File Library entry can be edited.
 
Methods inherited from class org.deltava.security.command.FleetEntryAccessControl
getCanDelete, getCanView, setEntry, validate
 
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

FileEntryAccessControl

public FileEntryAccessControl(SecurityContext ctx,
                              FileEntry e)
Initializes the Access Controller.

Parameters:
ctx - the Security context
e - the File Library entry
Method Detail

getCanCreate

public boolean getCanCreate()
Returns if a new File Library entry can be created.

Overrides:
getCanCreate in class FleetEntryAccessControl
Returns:
TRUE if a new entry can be created, otherwise FALSE

getCanEdit

public boolean getCanEdit()
Returns if the File Library entry can be edited.

Overrides:
getCanEdit in class FleetEntryAccessControl
Returns:
TRUE if the entry can be edited, otherwise FALSE


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