public class AciList extends Object
Constructor and Description |
---|
AciList(Dn configDN)
Constructor to create an ACI list to cache ACI attribute types.
|
Modifier and Type | Method and Description |
---|---|
void |
addAci(Dn dn,
SortedSet<Aci> acis)
Add a set of ACIs to the ACI list.
|
void |
addAci(Entry entry,
List<LocalizableMessage> failedACIMsgs)
Add all of an entry's ACI (global or regular) attribute values to the ACI list.
|
int |
addAci(List<? extends Entry> entries,
LinkedList<LocalizableMessage> failedACIMsgs)
Add all the ACI from a set of entries to the ACI list.
|
List<Aci> |
getCandidateAcis(Dn baseDN)
Using the base DN, return a list of ACIs that are candidates for evaluation by walking up from the base DN
towards the root of the DIT gathering ACIs on parents.
|
void |
modAciOldNewEntry(Entry oldEntry,
Entry newEntry)
Remove all of the ACIs related to the old entry and then add all of the ACIs related to the new entry.
|
boolean |
removeAci(Entry entry)
Remove global and regular ACIs from the list.
|
void |
removeAci(LocalBackend<?> backend)
Remove all ACIs related to a backend.
|
void |
renameAci(Dn oldDN,
Dn newDN)
Rename all ACIs under the specified old DN to the new DN.
|
public AciList(Dn configDN)
configDN
- The configuration entry DN.public List<Aci> getCandidateAcis(Dn baseDN)
baseDN
- The DN to check.public int addAci(List<? extends Entry> entries, LinkedList<LocalizableMessage> failedACIMsgs)
entries
- The set of entries containing the "aci" attribute values.failedACIMsgs
- List that will hold error messages from ACI decode exceptions.public void addAci(Dn dn, SortedSet<Aci> acis)
dn
- The DN to add the ACIs under.acis
- A set of ACIs to add to the ACI list.public void addAci(Entry entry, List<LocalizableMessage> failedACIMsgs)
entry
- The entry containing the ACI attributes.failedACIMsgs
- List that will hold error messages from ACI decode exceptions.public void modAciOldNewEntry(Entry oldEntry, Entry newEntry)
oldEntry
- The old entry possibly containing old ACI attribute values.newEntry
- The new entry possibly containing new ACI attribute values.public boolean removeAci(Entry entry)
entry
- The entry containing the global ACIs.public void removeAci(LocalBackend<?> backend)
backend
- The backend to check if each DN is handled by that backend.Copyright 2010-2022 ForgeRock AS.