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 org.deltava.security.command.AccessControl
_ctx
-
Constructor Summary
ConstructorsConstructorDescriptionInitializes the Access Controller. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns if the user can create a new mailbox profile.boolean
Returns if the user can delete the mailbox profile.boolean
Returns if the user can edit the mailbox profile.void
validate()
Calculates access rights.Methods inherited from class org.deltava.security.command.AccessControl
validateContext
-
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
-