|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.deltava.security.command.AccessControl
org.deltava.security.command.PilotAccessControl
public class PilotAccessControl
An access controller for Pilot profile operations.
| Field Summary | |
|---|---|
protected Pilot |
_p
|
| Fields inherited from class org.deltava.security.command.AccessControl |
|---|
_ctx |
| Constructor Summary | |
|---|---|
PilotAccessControl(SecurityContext ctx,
Pilot p)
Initializes the Access controller. |
|
| Method Summary | |
|---|---|
boolean |
getCanActivate()
Returns if the pilot can be activated. |
boolean |
getCanAssignRide()
Returns if a check ride can be assigned to this Pilot. |
boolean |
getCanChangeMailProfile()
Returns if the pilot's IMAP mailbox profile can be edited. |
boolean |
getCanChangeRoles()
Returns if the pilot's access roles can be edited. |
boolean |
getCanChangeSignature()
Returns if the pilot's Water Cooler signature image can be edited. |
boolean |
getCanChangeStaffProfile()
Returns if the pilot's staff profile can be edited. |
boolean |
getCanChangeStatus()
Returns if the pilot's status can be edited. |
boolean |
getCanEdit()
Returns if the pilot profile can be edited. |
boolean |
getCanInactivate()
Returns if the Pilot can be suspended/inactivated. |
boolean |
getCanPromote()
Returns if the pilot can be promoted. |
boolean |
getCanTakeLeave()
Returns if the Pilot can be pleaced On Leave. |
boolean |
getCanTransfer()
Returns if the Pilot can be transferred to another airline. |
boolean |
getCanViewEmail()
Returns if the e-mail address can be viewed. |
boolean |
getCanViewExams()
Returns if the Pilot's examination history can be viewed. |
boolean |
getIsOurs()
Returns if we are currently accessing our own profile. |
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 |
| Field Detail |
|---|
protected Pilot _p
| Constructor Detail |
|---|
public PilotAccessControl(SecurityContext ctx,
Pilot p)
ctx - the command contextp - the Pilot profile| Method Detail |
|---|
public void validate()
validate in class AccessControlpublic boolean getIsOurs()
public boolean getCanEdit()
public boolean getCanTakeLeave()
public boolean getCanViewEmail()
public boolean getCanViewExams()
public boolean getCanChangeStatus()
public boolean getCanInactivate()
public boolean getCanAssignRide()
public boolean getCanPromote()
public boolean getCanChangeRoles()
public boolean getCanChangeStaffProfile()
public boolean getCanChangeMailProfile()
public boolean getCanChangeSignature()
public boolean getCanTransfer()
public boolean getCanActivate()
getCanChangeStatus()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||