|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object SK.gnome.dwarf.GenericService SK.gnome.dwarf.mail.store.GenericFileStore SK.gnome.dwarf.mail.store.FileACLStore
This class provides a filesystem-based ACL store.
Field Summary |
Fields inherited from class SK.gnome.dwarf.mail.store.GenericFileStore |
autoCreate, backupObjects, letterSubdirs, userBaseDir |
Fields inherited from class SK.gnome.dwarf.GenericService |
initParameters, parent |
Fields inherited from interface SK.gnome.dwarf.Service |
INITIALIZED, LOG_DEBUG, LOG_ERROR, LOG_FATAL, LOG_INFO, LOG_TRACE, LOG_WARN, LOG_XFER, SHUTDOWN, STARTED, STOPPED |
Constructor Summary | |
FileACLStore(java.lang.String name)
Creates a new FileACLStore. |
Method Summary | |
void |
addPermission(java.lang.String user,
MailPermission perm)
Grants the mail permission to the given user. |
MailPermission[] |
getPermissions(java.lang.String user)
Returns all mail permissions granted to the given user. |
void |
removePermission(java.lang.String user,
MailPermission perm)
Revokes the mail permission from the given user. |
void |
removePermissions(java.lang.String user,
java.lang.String mailbox)
Revokes all mail permission from the given user and mailbox. |
void |
setPermission(java.lang.String user,
MailPermission perm)
Replaces the mail permission of the given user. |
Methods inherited from class SK.gnome.dwarf.mail.store.GenericFileStore |
create, exists, getUserDirectory, init, listUsers, lock, readObject, remove, setAutoCreate, setBackupObjects, setLetterSubdirs, setUserBaseDir, storeObject, unlock |
Methods inherited from class SK.gnome.dwarf.GenericService |
getAuthenticator, getAuthFacility, getFullName, getInitParameter, getInitParameterNames, getLogFacility, getLogger, getName, getParameters, getPrincipal, getShutdownTimeout, getState, log, log, login, logout, setAuthFacility, setInitParameters, setLogFacility, shutdown, start, stop, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface SK.gnome.dwarf.mail.store.ACLStore |
listUsers |
Constructor Detail |
public FileACLStore(java.lang.String name)
Method Detail |
public void addPermission(java.lang.String user, MailPermission perm) throws MailException
ACLStore
addPermission
in interface ACLStore
user
- the user identificationperm
- the mail permission
MailException
- if an error occuredpublic void setPermission(java.lang.String user, MailPermission perm) throws MailException
ACLStore
setPermission
in interface ACLStore
user
- the user identificationperm
- the mail permission
MailException
- if an error occuredpublic void removePermission(java.lang.String user, MailPermission perm) throws MailException
ACLStore
removePermission
in interface ACLStore
user
- the user identificationperm
- the mail permission
MailException
- if an error occuredpublic void removePermissions(java.lang.String user, java.lang.String mailbox) throws MailException
ACLStore
removePermissions
in interface ACLStore
user
- the user identificationmailbox
- the full mailbox name
MailException
- if an error occuredpublic MailPermission[] getPermissions(java.lang.String user) throws MailException
ACLStore
getPermissions
in interface ACLStore
user
- the user identification
MailException
- if an error occured
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |