org.alfresco.repo.importer
Class AVMZipBootstrap

java.lang.Object
  extended by org.springframework.extensions.surf.util.AbstractLifecycleBean
      extended by org.alfresco.repo.importer.AVMZipBootstrap
All Implemented Interfaces:
java.util.EventListener, org.springframework.context.ApplicationContextAware, org.springframework.context.ApplicationListener

public class AVMZipBootstrap
extends org.springframework.extensions.surf.util.AbstractLifecycleBean

A Bootstrap-time Importer which allows the loading of part of an AVM filesystem from a Zip file


Field Summary
 
Fields inherited from class org.springframework.extensions.surf.util.AbstractLifecycleBean
log
 
Constructor Summary
AVMZipBootstrap()
           
 
Method Summary
 void bootstrap()
          Bootstrap the Repository
protected  void onBootstrap(org.springframework.context.ApplicationEvent event)
           
protected  void onShutdown(org.springframework.context.ApplicationEvent event)
           
 void setAllowWrite(boolean write)
          Set whether we write or not
 void setAuthenticationContext(AuthenticationContext authenticationContext)
          Set the authentication component
 void setAvmRoot(java.lang.String avmRoot)
          Sets the Root of the AVM store to import to.
 void setAvmService(AVMService avmService)
          Sets the AVM Service to be used for exporting from
 void setAvmZipImporter(AVMZipImporter avmZipImporter)
          Sets the AVM Importer to be used for importing to
 void setLocation(java.lang.String location)
          Sets the location of the zip file to import from
 void setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)
          Sets the node service
 void setRetryingTransactionHelper(RetryingTransactionHelper retryingTransactionHelper)
          Sets the retrying transaction helper specific to the importer bootstrap.
 void setTransactionService(TransactionService transactionService)
          Sets the Transaction Service
 
Methods inherited from class org.springframework.extensions.surf.util.AbstractLifecycleBean
getApplicationContext, onApplicationEvent, setApplicationContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AVMZipBootstrap

public AVMZipBootstrap()
Method Detail

setAllowWrite

public void setAllowWrite(boolean write)
Set whether we write or not

Parameters:
write - true (default) if the import must go ahead, otherwise no import will occur

setAvmRoot

public void setAvmRoot(java.lang.String avmRoot)
Sets the Root of the AVM store to import to.


setLocation

public void setLocation(java.lang.String location)
Sets the location of the zip file to import from


setAvmZipImporter

public void setAvmZipImporter(AVMZipImporter avmZipImporter)
Sets the AVM Importer to be used for importing to

Parameters:
avmZipImporter - The AVM Importer Service

setAvmService

public void setAvmService(AVMService avmService)
Sets the AVM Service to be used for exporting from

Parameters:
avmService - The AVM Service

setTransactionService

public void setTransactionService(TransactionService transactionService)
Sets the Transaction Service

Parameters:
userTransaction - the transaction service

setRetryingTransactionHelper

public void setRetryingTransactionHelper(RetryingTransactionHelper retryingTransactionHelper)
Sets the retrying transaction helper specific to the importer bootstrap. This transaction helper's parameters are tuned to the longer-running import transaction.

Parameters:
retryingTransactionHelper - the retrying transaction helper

setNodeService

public void setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)
Sets the node service

Parameters:
nodeService - the node service

setAuthenticationContext

public void setAuthenticationContext(AuthenticationContext authenticationContext)
Set the authentication component

Parameters:
authenticationContext -

bootstrap

public void bootstrap()
Bootstrap the Repository


onBootstrap

protected void onBootstrap(org.springframework.context.ApplicationEvent event)
Specified by:
onBootstrap in class org.springframework.extensions.surf.util.AbstractLifecycleBean

onShutdown

protected void onShutdown(org.springframework.context.ApplicationEvent event)
Specified by:
onShutdown in class org.springframework.extensions.surf.util.AbstractLifecycleBean


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.