W - public abstract class AbstractComponentBootstrapFromProperties<W extends org.gytheio.content.ContentWorker> extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
PROP_WORKER_CONTENT_REF_HANDLER_CLASS_SUFFIX |
static String |
PROP_WORKER_CONTENT_REF_HANDLER_FILE_DIR_SUFFIX |
static String |
PROP_WORKER_CONTENT_REF_HANDLER_SOURCE_PREFIX |
static String |
PROP_WORKER_CONTENT_REF_HANDLER_WEBDAV_PASSWORD_SUFFIX |
static String |
PROP_WORKER_CONTENT_REF_HANDLER_WEBDAV_URL_SUFFIX |
static String |
PROP_WORKER_CONTENT_REF_HANDLER_WEBDAV_USERNAME_SUFFIX |
protected Properties |
properties |
protected W |
worker |
| Constructor and Description |
|---|
AbstractComponentBootstrapFromProperties(Properties properties,
W worker) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract org.gytheio.content.AbstractComponent<W> |
createComponent() |
protected org.gytheio.content.handler.ContentReferenceHandler |
createContentReferenceHandler(String propertiesKeyPrefix) |
protected org.gytheio.content.handler.ContentReferenceHandler |
createWebDavContentReferenceHandler(String propertiesKey)
Constructs a
FileContentReferenceHandlerImpl using the path
specified in the properties file under the given propertiesKey. |
protected abstract void |
initWorker() |
protected void |
run() |
protected void |
setFileContentReferenceHandlerProvider(org.gytheio.content.handler.FileContentReferenceHandlerImpl handler,
String dirPropertiesKey)
Constructs a
FileContentReferenceHandlerImpl using the path
specified in the properties file under the given propertiesKey. |
protected void |
setWebDavContentReferenceHandlerCredentials(org.gytheio.content.handler.webdav.WebDavContentReferenceHandlerImpl handler,
String urlPropertiesKey,
String usernamePropertiesKey,
String passwordPropertiesKey) |
public static final String PROP_WORKER_CONTENT_REF_HANDLER_SOURCE_PREFIX
public static final String PROP_WORKER_CONTENT_REF_HANDLER_CLASS_SUFFIX
public static final String PROP_WORKER_CONTENT_REF_HANDLER_FILE_DIR_SUFFIX
public static final String PROP_WORKER_CONTENT_REF_HANDLER_WEBDAV_URL_SUFFIX
public static final String PROP_WORKER_CONTENT_REF_HANDLER_WEBDAV_USERNAME_SUFFIX
public static final String PROP_WORKER_CONTENT_REF_HANDLER_WEBDAV_PASSWORD_SUFFIX
protected Properties properties
protected W extends org.gytheio.content.ContentWorker worker
public AbstractComponentBootstrapFromProperties(Properties properties, W worker)
protected void setFileContentReferenceHandlerProvider(org.gytheio.content.handler.FileContentReferenceHandlerImpl handler,
String dirPropertiesKey)
FileContentReferenceHandlerImpl using the path
specified in the properties file under the given propertiesKey.handler - the content reference handlerdirPropertiesKey - the properties key for getting the directory valueprotected void setWebDavContentReferenceHandlerCredentials(org.gytheio.content.handler.webdav.WebDavContentReferenceHandlerImpl handler,
String urlPropertiesKey,
String usernamePropertiesKey,
String passwordPropertiesKey)
protected org.gytheio.content.handler.ContentReferenceHandler createContentReferenceHandler(String propertiesKeyPrefix)
protected org.gytheio.content.handler.ContentReferenceHandler createWebDavContentReferenceHandler(String propertiesKey)
FileContentReferenceHandlerImpl using the path
specified in the properties file under the given propertiesKey.propertiesKey - protected abstract org.gytheio.content.AbstractComponent<W> createComponent()
protected abstract void initWorker()
protected void run()
Copyright © 2014 Alfresco Software. All rights reserved.