Class MailboxAccessControl
java.lang.Object
org.deltava.security.command.AccessControl
org.deltava.security.command.MailboxAccessControl
- All Implemented Interfaces:
Serializable
An Access Controller for mailbox profiles.
- Since:
- 1.0
- Version:
- 7.0
- Author:
- Luke
- See Also:
-
Field Summary
Fields inherited from class AccessControl
_ctx -
Constructor Summary
ConstructorsConstructorDescriptionInitializes the Access Controller. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns if the user can create a new mailbox profile.booleanReturns if the user can delete the mailbox profile.booleanReturns if the user can edit the mailbox profile.voidvalidate()Calculates access rights.Methods inherited from class AccessControl
validateContextModifier and TypeMethodDescriptionprotected voidValidates the command context for this access controller.
-
Constructor Details
-
MailboxAccessControl
Initializes the Access Controller.- Parameters:
ctx- the command contextcfg- the IMAP configuration bean
-
-
Method Details
-
validate
-
getCanCreate
public boolean getCanCreate()Returns if the user can create a new mailbox profile.- Returns:
- TRUE if a profile can be created, otherwise FALSE
-
getCanEdit
public boolean getCanEdit()Returns if the user can edit the mailbox profile.- Returns:
- TRUE if the profile can be edited, otherwise FALSE
-
getCanDelete
public boolean getCanDelete()Returns if the user can delete the mailbox profile.- Returns:
- TRUE if the profile can be deleted, otherwise FALSE
-