|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
@Role public interface SecurityCache
A cache for fast access right rules checking.
| Method Summary | |
|---|---|
void |
add(SecurityAccessEntry entry)
Add an entry to this cache. |
void |
add(SecurityRuleEntry entry)
Add an entry to this cache. |
void |
add(SecurityRuleEntry entry,
Collection<GroupSecurityReference> groups)
Add a user entry to this cache. |
SecurityRuleEntry |
get(SecurityReference entity)
Get a cached entry. |
SecurityAccessEntry |
get(UserSecurityReference user,
SecurityReference entity)
Get a cached entry. |
void |
remove(SecurityReference entity)
Remove an entry from this cache. |
void |
remove(UserSecurityReference user,
SecurityReference entity)
Remove an entry from this cache. |
| Method Detail |
|---|
void add(SecurityRuleEntry entry)
throws ParentEntryEvictedException,
ConflictingInsertionException
entry - The rule entry to add.
ParentEntryEvictedException - when the parent entry of
this entry was evicted before this insertion. Since all
entries, except wiki-entries, must have a parent cached, the
SecurityCacheLoader must restart its load attempt.
ConflictingInsertionException - when another thread have
inserted this entry, but with a different content.
void add(SecurityAccessEntry entry)
throws ParentEntryEvictedException,
ConflictingInsertionException
entry - The access entry to add.
ParentEntryEvictedException - when the parent entry of
this entry was evicted before this insertion. Since all
entries, except wiki-entries, must have a parent cached, the
SecurityCacheLoader must restart its load attempt.
ConflictingInsertionException - when another thread have
inserted this entry, but with a different content.
void add(SecurityRuleEntry entry,
Collection<GroupSecurityReference> groups)
throws ParentEntryEvictedException,
ConflictingInsertionException
entry - The user entry to insert.groups - Groups references that this user is a member.
ParentEntryEvictedException - when the parent entry of
this entry was evicted before this insertion. Since all
entries, except wiki-entries, must have a parent cached, the
SecurityCacheLoader must restart its load attempt.
ConflictingInsertionException - when another thread have
inserted this entry, but with a different content.
SecurityAccessEntry get(UserSecurityReference user,
SecurityReference entity)
user - Entity representing the user.entity - The entity which is the object of this cache entry.
null.SecurityRuleEntry get(SecurityReference entity)
entity - The entity which is the object of this cache entry.
null.
void remove(UserSecurityReference user,
SecurityReference entity)
user - Entity representing the user.entity - The entity which is the object of this cache entry.void remove(SecurityReference entity)
entity - The entity which is the object of this cache entry.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||