public class ImporterBootstrap
extends org.springframework.extensions.surf.util.AbstractLifecycleBean
Modifier and Type | Field and Description |
---|---|
static String |
VIEW_CHILDASSOCTYPE_PROPERTY |
static String |
VIEW_ENCODING |
static String |
VIEW_LOCATION_VIEW |
static String |
VIEW_MESSAGES_PROPERTY |
static String |
VIEW_PATH_PROPERTY |
static String |
VIEW_UUID_BINDING |
Constructor and Description |
---|
ImporterBootstrap() |
Modifier and Type | Method and Description |
---|---|
void |
addBootstrapViews(List<Properties> bootstrapViews)
Sets the bootstrap views
|
void |
bootstrap()
Bootstrap the Repository
|
Properties |
getConfiguration()
Gets the Configuration values for binding place holders
|
static File |
getFile(String view)
Get a File representation of an XML view
|
String |
getLocale()
Get Locale
|
org.alfresco.service.cmr.repository.StoreRef |
getStoreRef()
Gets the Store Reference
|
boolean |
hasPerformedBootstrap()
Determine if bootstrap was performed?
|
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 |
setBootstrapViews(List<Properties> bootstrapViews)
Sets the bootstrap views
|
void |
setConfiguration(Properties configuration)
Sets the Configuration values for binding place holders
|
void |
setImporterService(ImporterService importerService)
Sets the importer service
|
void |
setLocale(String locale)
Sets the Locale
|
void |
setLog(boolean logEnabled)
Deprecated.
Was never used
|
void |
setMustNotExistStoreUrls(List<String> storeUrls)
If any of the store urls exist, the bootstrap does not take place
|
void |
setNamespaceService(org.alfresco.service.namespace.NamespaceService namespaceService)
Sets the namespace service
|
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 |
setStoreUrl(String storeUrl)
Sets the Store Ref to bootstrap into
|
void |
setTransactionService(TransactionService transactionService)
Sets the Transaction Service
|
void |
setUseExistingStore(boolean useExistingStore)
Set whether the importer bootstrap should only perform an import if the store
being referenced doesn't already exist.
|
void |
setUuidBinding(ImporterBinding.UUID_BINDING uuidBinding)
Set the behaviour for generating UUIDs in the import.
|
public static final String VIEW_PATH_PROPERTY
public static final String VIEW_CHILDASSOCTYPE_PROPERTY
public static final String VIEW_MESSAGES_PROPERTY
public static final String VIEW_LOCATION_VIEW
public static final String VIEW_ENCODING
public static final String VIEW_UUID_BINDING
public void setAllowWrite(boolean write)
write
- true (default) if the import must go ahead, otherwise no import will occurpublic void setUseExistingStore(boolean useExistingStore)
useExistingStore
- true to allow imports into an existing store,
otherwise false (default) to only import if the store doesn't exist.public void setUuidBinding(ImporterBinding.UUID_BINDING uuidBinding)
ImporterBinding.UUID_BINDING
enum and default to ImporterBinding.UUID_BINDING.CREATE_NEW_WITH_UUID
.
This setting overrides the UUID binding behaviour specified in the view properties.uuidBinding
- the UUID generation behaviourpublic void setTransactionService(TransactionService transactionService)
transactionService
- the transaction servicepublic void setRetryingTransactionHelper(RetryingTransactionHelper retryingTransactionHelper)
retryingTransactionHelper
- the retrying transaction helperpublic void setNamespaceService(org.alfresco.service.namespace.NamespaceService namespaceService)
namespaceService
- the namespace servicepublic void setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)
nodeService
- the node servicepublic void setImporterService(ImporterService importerService)
importerService
- the importer servicepublic void setAuthenticationContext(AuthenticationContext authenticationContext)
authenticationContext
- AuthenticationContextpublic void setBootstrapViews(List<Properties> bootstrapViews)
public void addBootstrapViews(List<Properties> bootstrapViews)
public void setStoreUrl(String storeUrl)
storeUrl
- Stringpublic void setMustNotExistStoreUrls(List<String> storeUrls)
storeUrls
- the list of store urls to checkpublic org.alfresco.service.cmr.repository.StoreRef getStoreRef()
public void setConfiguration(Properties configuration)
configuration
- Propertiespublic Properties getConfiguration()
public void setLocale(String locale)
locale
- (language_country_variant)public String getLocale()
public void setLog(boolean logEnabled)
public boolean hasPerformedBootstrap()
public void bootstrap()
public static File getFile(String view)
view
- the view locationprotected void onBootstrap(org.springframework.context.ApplicationEvent event)
onBootstrap
in class org.springframework.extensions.surf.util.AbstractLifecycleBean
protected void onShutdown(org.springframework.context.ApplicationEvent event)
onShutdown
in class org.springframework.extensions.surf.util.AbstractLifecycleBean
Copyright © 2005–2017 Alfresco Software. All rights reserved.