Package org.kuali.rice.kim.impl.identity
Interface IdentityArchiveService
public interface IdentityArchiveService
This service archives EntityDefault. It's purpose is to provide long term
storage for basic identity data that may be removed from the IdentityService implementation's
backing store.
- Author:
- Kuali Rice Team (rice.collab@kuali.org)
-
Method Summary
Modifier and TypeMethodDescriptionvoidFlushesEntityDefaultto the archive.Gets aEntityDefaultwith an id from the archive.getEntityDefaultFromArchiveByEmployeeId(String employeeId) Gets aEntityDefaultwith an employeeId from the archive.getEntityDefaultFromArchiveByPrincipalId(String principalId) Gets aEntityDefaultwith an principalId from the archive.getEntityDefaultFromArchiveByPrincipalName(String principalName) Gets aEntityDefaultwith an principalName from the archive.voidsaveEntityDefaultToArchive(EntityDefault entityDefault) Saves aEntityDefaultto the archive.
-
Method Details
-
getEntityDefaultFromArchive
Gets aEntityDefaultwith an id from the archive.EntityDefaultis a condensed version ofEntitythat contains default values of its subclassesThis method will return null if the Entity does not exist.
- Parameters:
id- the unique id to retrieve the entity by. cannot be null.- Returns:
- a
EntityDefaultor null - Throws:
IllegalArgumentException- if the id is blank
-
getEntityDefaultFromArchiveByPrincipalId
EntityDefault getEntityDefaultFromArchiveByPrincipalId(String principalId) throws IllegalArgumentException Gets aEntityDefaultwith an principalId from the archive.EntityDefaultis a condensed version ofEntitythat contains default values of its subclassesThis method will return null if the Entity does not exist.
- Parameters:
principalId- the unique principalId to retrieve the entity by. cannot be null.- Returns:
- a
EntityDefaultor null - Throws:
IllegalArgumentException- if the principalId is blank
-
getEntityDefaultFromArchiveByPrincipalName
EntityDefault getEntityDefaultFromArchiveByPrincipalName(String principalName) throws IllegalArgumentException Gets aEntityDefaultwith an principalName from the archive.EntityDefaultis a condensed version ofEntitythat contains default values of its subclassesThis method will return null if the Entity does not exist.
- Parameters:
principalName- the unique principalName to retrieve the entity by. cannot be null.- Returns:
- a
EntityDefaultor null - Throws:
IllegalArgumentException- if the principalName is blank
-
getEntityDefaultFromArchiveByEmployeeId
EntityDefault getEntityDefaultFromArchiveByEmployeeId(String employeeId) throws IllegalArgumentException Gets aEntityDefaultwith an employeeId from the archive.EntityDefaultis a condensed version ofEntitythat contains default values of its subclassesThis method will return null if the Entity does not exist.
- Parameters:
employeeId- the unique employeeId to retrieve the entity by. cannot be null.- Returns:
- a
EntityDefaultor null - Throws:
IllegalArgumentException- if the employeeId is blank
-
saveEntityDefaultToArchive
Saves aEntityDefaultto the archive.EntityDefaultis a condensed version ofEntitythat contains default values of its subclassesThis method will return the saved EntityDefault object
- Parameters:
entityDefault- the unique principalName to retrieve the entity by. cannot be null.- Throws:
IllegalArgumentException- if the entityDefault is null
-
flushToArchive
FlushesEntityDefaultto the archive.This method flushes the "saved" entities to the database
- Throws:
IllegalArgumentException
-