|
g-Eclipse Release 1.0.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IACL
A generic Access Control List (ACL) for any kind of resource or object. An ACL consists of a list of entries, each defining an access rule.
| Method Summary | |
|---|---|
void |
addEntry(IACLEntry entry,
IProgressMonitor monitor)
Registers an additional entry in this ACL. |
boolean |
canSaveWholeACL()
Returns if the implementation is able to save changes to an ACL as a whole or single IACLEntry's must be stored independently. |
IACLEntry |
getEmptyEntry()
Returns an empty ACL entry corresponding to this ACL implementation, which can then be added with addEntry(...) |
IACLEntry[] |
getEntries(IProgressMonitor monitor)
Returns the list of access control entries contained in this ACL. |
void |
removeEntry(IACLEntry entry,
IProgressMonitor monitor)
Removes an entry from this ACL. |
void |
save(IProgressMonitor monitor)
Saves the changes made to this ACL, if canSaveWholeACL()
returns true. |
void |
saveEntry(IACLEntry entry,
IProgressMonitor monitor)
Saves the changes made to the given entry of the ACL, if canSaveWholeACL() returns false. |
| Method Detail |
|---|
IACLEntry[] getEntries(IProgressMonitor monitor)
throws ProblemException
monitor - used to monitor progress, can be null.
IACLEntrys.
ProblemException - if an error occurs while fetching the entries.IACLEntry getEmptyEntry()
addEntry(...).
IACLEntrys.
void addEntry(IACLEntry entry,
IProgressMonitor monitor)
throws ProblemException
canSaveWholeACL()
returns false the changes are stored immediately, i.e.,
online if the IProtectable object is remote.
entry - the ACL entry to set.monitor - used to monitor progress, can be null.
ProblemException - if the provided entry is not compatible
with the specific ACL implementation, or an error occurs
while adding the entry.
void removeEntry(IACLEntry entry,
IProgressMonitor monitor)
throws ProblemException
canSaveWholeACL()
returns false the changes are stored immediately, i.e.,
online if the IProtectable object is remote.
entry - the entry to remove.monitor - used to monitor progress, can be null.
ProblemException - if the entry can not be removed, for
instance because such entry was not present in this ACL,
or an error occurs while removing it.
void saveEntry(IACLEntry entry,
IProgressMonitor monitor)
throws ProblemException
canSaveWholeACL() returns false. Does nothing
otherwise, as save(IProgressMonitor) must be used in that case
for saving the changes of the ACL as a whole. For remote objects this is
an online operation.
entry - the entry to save.monitor - used to monitor progress, can be null.
ProblemException - if an error occurs while saving the entry.
void save(IProgressMonitor monitor)
throws ProblemException
canSaveWholeACL()
returns true. Does nothing otherwise, as each IACLEntry
must be saved separately. For remote objects this is an online operation.
monitor - used to monitor progress, can be null.
ProblemException - if an error occurs while saving the ACL.boolean canSaveWholeACL()
IACLEntry's must be stored independently.
Depending on the value returned by this method either
save(IProgressMonitor) (canSaveWholeACL = true) or
saveEntry(IACLEntry, IProgressMonitor)
(canSaveWholeACL = false) must be used for saving the ACL changes.
|
g-Eclipse Release 1.0.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||