org.kuali.rice.kim.api.identity
Interface IdentityArchiveService

All Known Implementing Classes:
IdentityArchiveServiceImpl

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
 EntityDefault getEntityDefaultFromArchive(String entityId)
          Gets a EntityDefault with an id from the archive.
 EntityDefault getEntityDefaultFromArchiveByPrincipalId(String principalId)
          Gets a EntityDefault with an principalId from the archive.
 EntityDefault getEntityDefaultFromArchiveByPrincipalName(String principalName)
          Gets a EntityDefault with an principalName from the archive.
 void saveEntityDefaultToArchive(EntityDefault entityDefault)
          Saves a EntityDefault to the archive.
 

Method Detail

getEntityDefaultFromArchive

EntityDefault getEntityDefaultFromArchive(String entityId)
Gets a EntityDefault with an id from the archive. EntityDefault is a condensed version of Entity that contains default values of its subclasses

This 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 EntityDefault or null
Throws:
IllegalArgumentException - if the id is blank

getEntityDefaultFromArchiveByPrincipalId

EntityDefault getEntityDefaultFromArchiveByPrincipalId(String principalId)
Gets a EntityDefault with an principalId from the archive. EntityDefault is a condensed version of Entity that contains default values of its subclasses

This 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 EntityDefault or null
Throws:
IllegalArgumentException - if the principalId is blank

getEntityDefaultFromArchiveByPrincipalName

EntityDefault getEntityDefaultFromArchiveByPrincipalName(String principalName)
Gets a EntityDefault with an principalName from the archive. EntityDefault is a condensed version of Entity that contains default values of its subclasses

This 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 EntityDefault or null
Throws:
IllegalArgumentException - if the principalName is blank

saveEntityDefaultToArchive

void saveEntityDefaultToArchive(EntityDefault entityDefault)
Saves a EntityDefault to the archive. EntityDefault is a condensed version of Entity that contains default values of its subclasses

This method will return the saved EntityDefault object

Parameters:
entityDefault - the unique principalName to retrieve the entity by. cannot be null.
Throws:
IllegalArgumentException - if the principalName is blank


Copyright © 2004-2011 The Kuali Foundation. All Rights Reserved.