Class IdentityArchiveServiceImpl

java.lang.Object
org.kuali.rice.kim.service.impl.IdentityArchiveServiceImpl
All Implemented Interfaces:
org.kuali.rice.kim.impl.identity.IdentityArchiveService, org.springframework.beans.factory.DisposableBean, org.springframework.beans.factory.InitializingBean

public class IdentityArchiveServiceImpl extends Object implements org.kuali.rice.kim.impl.identity.IdentityArchiveService, org.springframework.beans.factory.InitializingBean, org.springframework.beans.factory.DisposableBean
This is the default implementation for the IdentityArchiveService.
Author:
Kuali Rice Team (rice.collab@kuali.org)
See Also:
  • IdentityArchiveService
  • Field Details

    • dataObjectService

      protected org.kuali.rice.krad.data.DataObjectService dataObjectService
    • kualiConfigurationService

      protected org.kuali.rice.core.api.config.property.ConfigurationService kualiConfigurationService
    • transactionManager

      protected org.springframework.transaction.PlatformTransactionManager transactionManager
    • EXEC_INTERVAL_SECS

      protected static final String EXEC_INTERVAL_SECS
      See Also:
    • MAX_WRITE_QUEUE_SIZE

      protected static final String MAX_WRITE_QUEUE_SIZE
      See Also:
    • EXECUTION_INTERVAL_SECONDS_DEFAULT

      protected static final int EXECUTION_INTERVAL_SECONDS_DEFAULT
      See Also:
    • MAX_WRITE_QUEUE_SIZE_DEFAULT

      protected static final int MAX_WRITE_QUEUE_SIZE_DEFAULT
      See Also:
    • writeQueue

      protected final IdentityArchiveServiceImpl.WriteQueue writeQueue
    • writer

    • maxQueueSizeExceededWriter

      protected final Runnable maxQueueSizeExceededWriter
    • scheduledWriter

      protected final Runnable scheduledWriter
    • shutdownWriter

      protected final Runnable shutdownWriter
  • Constructor Details

    • IdentityArchiveServiceImpl

      public IdentityArchiveServiceImpl()
  • Method Details

    • getExecutionIntervalSeconds

      protected int getExecutionIntervalSeconds()
    • getMaxWriteQueueSize

      protected int getMaxWriteQueueSize()
    • getEntityDefaultFromArchive

      public org.kuali.rice.kim.api.identity.entity.EntityDefault getEntityDefaultFromArchive(String entityId)
      Specified by:
      getEntityDefaultFromArchive in interface org.kuali.rice.kim.impl.identity.IdentityArchiveService
    • getEntityDefaultFromArchiveByPrincipalId

      public org.kuali.rice.kim.api.identity.entity.EntityDefault getEntityDefaultFromArchiveByPrincipalId(String principalId)
      Specified by:
      getEntityDefaultFromArchiveByPrincipalId in interface org.kuali.rice.kim.impl.identity.IdentityArchiveService
    • getEntityDefaultFromArchiveByPrincipalName

      public org.kuali.rice.kim.api.identity.entity.EntityDefault getEntityDefaultFromArchiveByPrincipalName(String principalName)
      Specified by:
      getEntityDefaultFromArchiveByPrincipalName in interface org.kuali.rice.kim.impl.identity.IdentityArchiveService
    • getEntityDefaultFromArchiveByEmployeeId

      public org.kuali.rice.kim.api.identity.entity.EntityDefault getEntityDefaultFromArchiveByEmployeeId(String employeeId)
      Specified by:
      getEntityDefaultFromArchiveByEmployeeId in interface org.kuali.rice.kim.impl.identity.IdentityArchiveService
    • saveEntityDefaultToArchive

      public void saveEntityDefaultToArchive(org.kuali.rice.kim.api.identity.entity.EntityDefault entity)
      Specified by:
      saveEntityDefaultToArchive in interface org.kuali.rice.kim.impl.identity.IdentityArchiveService
    • flushToArchive

      public void flushToArchive()
      Specified by:
      flushToArchive in interface org.kuali.rice.kim.impl.identity.IdentityArchiveService
    • setKualiConfigurationService

      public void setKualiConfigurationService(org.kuali.rice.core.api.config.property.ConfigurationService kualiConfigurationService)
    • setTransactionManager

      public void setTransactionManager(org.springframework.transaction.PlatformTransactionManager txMgr)
    • afterPropertiesSet

      public void afterPropertiesSet() throws Exception
      schedule the writer on the KSB scheduled pool.
      Specified by:
      afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
      Throws:
      Exception
    • destroy

      public void destroy() throws Exception
      flush the write queue immediately.
      Specified by:
      destroy in interface org.springframework.beans.factory.DisposableBean
      Throws:
      Exception
    • setDataObjectService

      public void setDataObjectService(org.kuali.rice.krad.data.DataObjectService dataObjectService)
      Parameters:
      dataObjectService - the dataObjectService to set