Constructor and Description |
---|
AciList(org.forgerock.opendj.ldap.Dn configDN)
Constructor to create an ACI list to cache ACI attribute types.
|
Modifier and Type | Method and Description |
---|---|
void |
addAci(org.forgerock.opendj.ldap.Dn dn,
SortedSet<Aci> acis)
Add a set of ACIs to the ACI list.
|
int |
addAci(Entry entry,
boolean hasAci,
boolean hasGlobalAci,
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(org.forgerock.opendj.ldap.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,
boolean hasAci,
boolean hasGlobalAci)
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,
boolean hasAci,
boolean hasGlobalAci)
Remove global and regular ACIs from the list.
|
void |
removeAci(LocalBackend<?> backend)
Remove all ACIs related to a backend.
|
void |
renameAci(org.forgerock.opendj.ldap.Dn oldDN,
org.forgerock.opendj.ldap.Dn newDN)
Rename all ACIs under the specified old DN to the new DN.
|
public AciList(org.forgerock.opendj.ldap.Dn configDN)
configDN
- The configuration entry DN.public List<Aci> getCandidateAcis(org.forgerock.opendj.ldap.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(org.forgerock.opendj.ldap.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 int addAci(Entry entry, boolean hasAci, boolean hasGlobalAci, List<LocalizableMessage> failedACIMsgs)
entry
- The entry containing the ACI attributes.hasAci
- True if the "aci" attribute type was seen in the entry.hasGlobalAci
- True if the "ds-cfg-global-aci" attribute type was
seen in the entry.failedACIMsgs
- List that will hold error messages from ACI decode
exceptions.public void modAciOldNewEntry(Entry oldEntry, Entry newEntry, boolean hasAci, boolean hasGlobalAci)
oldEntry
- The old entry possibly containing old ACI attribute
values.newEntry
- The new entry possibly containing new ACI attribute
values.hasAci
- True if the "aci" attribute type was seen in the entry.hasGlobalAci
- True if the "ds-cfg-global-aci" attribute type was
seen in the entry.public boolean removeAci(Entry entry, boolean hasAci, boolean hasGlobalAci)
entry
- The entry containing the global ACIs.hasAci
- True if the "aci" attribute type was seen in the entry.hasGlobalAci
- True if the "ds-cfg-global-aci" attribute type was
seen in the entry.public void removeAci(LocalBackend<?> backend)
backend
- The backend to check if each DN is handled by that
backend.public void renameAci(org.forgerock.opendj.ldap.Dn oldDN, org.forgerock.opendj.ldap.Dn newDN)
oldDN
- The DN of the original entry that was moved.newDN
- The DN of the new entry.Copyright © 2010-2017 ForgeRock AS. All Rights Reserved.