public interface AclRepository
| Modifier and Type | Method and Description |
|---|---|
void |
deleteAcls(List<AclObjectIdentity> objectIdsToDelete)
Removes all relevant records for the provided
AclObjectIdentity
instances. |
AclObjectIdentity |
findAclObjectIdentity(AclObjectIdentity objectId)
Loads a fully populated
AclObjectIdentity object from the
database for the provided AclObjectIdentity. |
List<AclObjectIdentity> |
findAclObjectIdentityChildren(AclObjectIdentity objectId)
Loads the
AclObjectIdentity instances that use the specified
parent. |
Map<AclObjectIdentity,Set<AclEntry>> |
findAcls(List<AclObjectIdentity> objectIdsToLookup)
Loads the
AclEntry instances that apply for the passed
AclObjectIdentity objects. |
void |
saveAcl(AclObjectIdentity aoi)
Saves an
AclObjectIdentity record in the database. |
void |
updateAcl(AclObjectIdentity aoi,
List<AclEntry> entries)
Changes an existing
AclObjectIdentity or the related
AclEntry records in the database. |
Map<AclObjectIdentity,Set<AclEntry>> findAcls(List<AclObjectIdentity> objectIdsToLookup)
AclEntry instances that apply for the passed
AclObjectIdentity objects. The returned map is keyed on the
passed objects, with the values being sets of the applicable
AclEntry instances, sorted by the order parameter. Any unknown
objects will not have a map key.objectIdsToLookup - the objects to find AclEntry information
for.AclEntry instances for each
AclObjectIdentity passed as an argument.AclObjectIdentity findAclObjectIdentity(AclObjectIdentity objectId)
AclObjectIdentity object from the
database for the provided AclObjectIdentity. The provided object
must contain 'id' and 'objectClass' information.objectId - the AclObjectIdentity to load from the database.AclObjectIdentity object.List<AclObjectIdentity> findAclObjectIdentityChildren(AclObjectIdentity objectId)
AclObjectIdentity instances that use the specified
parent.objectId - the object to find children for.void deleteAcls(List<AclObjectIdentity> objectIdsToDelete)
AclObjectIdentity
instances.objectIdsToDelete - the AclObjectIdentity instances
representing the records to delete.void saveAcl(AclObjectIdentity aoi) throws AclAlreadyExistsException
AclObjectIdentity record in the database. It will have
no entries.aoi - the AclObjectIdentity to save.AclAlreadyExistsException - if the passed object identity already
has a record.void updateAcl(AclObjectIdentity aoi, List<AclEntry> entries) throws AclNotFoundException
AclObjectIdentity or the related
AclEntry records in the database.aoi - the AclObjectIdentity to update.entries - the list of AclEntry objects to update.AclNotFoundException - if the relevant record could not be found.Copyright © 2013–2020 Europeana Cloud Development Team. All rights reserved.