public class ImportSource extends java.lang.Object implements ImportConstants, JaliosConstants
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
REVISION |
IMPORT_ALARM_MGR, IMPORT_AUTHOR_PROP, IMPORT_CATEGORY_DEFAULT, IMPORT_DC_ATTR, IMPORT_DC_STEP, IMPORT_DIR, IMPORT_ENABLED, IMPORT_JDOM_ELEMENT, IMPORT_LOG_FILE, IMPORT_LOG_MAX, IMPORT_OPTIONS, IMPORT_OPTIONS_DC_CONTEXT, IMPORT_ROOT_PROP, IMPORT_SOURCE_FILE, IMPORT_SOURCE_PREFIX_PROP, IMPORT_SOURCES_DIR, IMPORT_STEP_CLEAN, IMPORT_STEP_IMPORT, IMPORT_STEP_UPDATE_REF, IMPORT_WS_PROP
DATA_TAG, DATASET_TAG, FIELD_CLASS, FIELD_ENTRY, FIELD_ITEM, FIELD_KEY, FIELD_NAME, FIELD_TAG, FIELD_VALUE, FILE_FIELD, FILE_ID, FILE_MTIME, FILE_SIZE, FILE_TAG, FILE_TICKET, FILESET_TAG, RELATED_TAG
CRLF, MILLIS_IN_ONE_DAY, MILLIS_IN_ONE_HOUR, MILLIS_IN_ONE_MINUTE, MILLIS_IN_ONE_MONTH, MILLIS_IN_ONE_SECOND, MILLIS_IN_ONE_WEEK, MILLIS_IN_ONE_YEAR
Constructor and Description |
---|
ImportSource()
Create an empty site
|
ImportSource(java.lang.String id,
JProperties prop)
Create a site from properties
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getHost()
Returns the host bound to the URL
|
java.lang.String |
getId() |
ImportOptions |
getImportOptions()
Returns the ImportOptions.
|
java.util.Date |
getLastImportDate()
Returns the last import date.
|
ImportStatus |
getLastImportStatus()
Returns the last import status (since JCMS last restart).
|
java.lang.String |
getName() |
java.util.Date |
getNextImportDate()
Returns the next import date.
|
java.lang.String |
getScheduleCron() |
int |
getScheduleFrequency() |
java.lang.String |
getUrl() |
ImportStatus |
importData()
Import data from this site.
|
boolean |
isScheduleEnabled() |
void |
resetLastImportDate()
Reset the last import date.
|
void |
setId(java.lang.String id) |
void |
setImportOptions(ImportOptions importOptions)
Set the ImportOptions
|
void |
setLastImportStatus(ImportStatus status) |
void |
setName(java.lang.String name) |
void |
setScheduleCron(java.lang.String scheduleCron) |
void |
setScheduleEnabled(boolean isScheduleEnabled) |
void |
setScheduleFrequency(int scheduleFrequency) |
void |
setUrl(java.lang.String url) |
java.lang.String |
toString() |
public static final java.lang.String REVISION
public ImportSource()
public ImportSource(java.lang.String id, JProperties prop)
id
- the site's idprop
- the propertiespublic ImportStatus importData()
public void resetLastImportDate()
public java.lang.String getHost()
public java.util.Date getNextImportDate()
public java.util.Date getLastImportDate()
public ImportStatus getLastImportStatus()
public void setLastImportStatus(ImportStatus status)
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String getName()
public void setName(java.lang.String name)
name
- the name to setpublic java.lang.String getUrl()
public void setUrl(java.lang.String url)
url
- the url to setpublic java.lang.String getScheduleCron()
public void setScheduleCron(java.lang.String scheduleCron)
scheduleCron
- the scheduleCron to setpublic int getScheduleFrequency()
public void setScheduleFrequency(int scheduleFrequency)
scheduleFrequency
- the scheduleFrequency to setpublic boolean isScheduleEnabled()
public void setScheduleEnabled(boolean isScheduleEnabled)
isScheduleEnabled
- the isScheduleEnabled to setpublic java.lang.String getId()
public void setId(java.lang.String id)
id
- the id to setpublic ImportOptions getImportOptions()
public void setImportOptions(ImportOptions importOptions)
importOptions
- the ImportOptions to set.Copyright © 2001-2018 Jalios SA. All Rights Reserved.