|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.jalios.jcms.mashup.ImportSource
public class ImportSource
This class represents an Import Source.
Field Summary | |
---|---|
static String |
REVISION
|
Fields inherited from interface com.jalios.jcms.mashup.ImportConstants |
---|
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 |
Fields inherited from interface com.jalios.jcms.mashup.MashupConstants |
---|
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 |
Fields inherited from interface com.jalios.util.JaliosConstants |
---|
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 Summary | |
---|---|
ImportSource()
Create an empty site |
|
ImportSource(String id,
JProperties prop)
Create a site from properties |
Method Summary | |
---|---|
String |
getHost()
Returns the host bound to the URL |
String |
getId()
|
ImportOptions |
getImportOptions()
Returns the ImportOptions. |
Date |
getLastImportDate()
Returns the last import date. |
ImportStatus |
getLastImportStatus()
Returns the last import status (since JCMS last restart). |
String |
getName()
|
Date |
getNextImportDate()
Returns the next import date. |
String |
getScheduleCron()
|
int |
getScheduleFrequency()
|
String |
getUrl()
|
ImportStatus |
importData()
Import data from this site. |
boolean |
isScheduleEnabled()
|
void |
resetLastImportDate()
Reset the last import date. |
void |
setId(String id)
|
void |
setImportOptions(ImportOptions importOptions)
Set the ImportOptions |
void |
setLastImportStatus(ImportStatus status)
|
void |
setName(String name)
|
void |
setScheduleCron(String scheduleCron)
|
void |
setScheduleEnabled(boolean isScheduleEnabled)
|
void |
setScheduleFrequency(int scheduleFrequency)
|
void |
setUrl(String url)
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final String REVISION
Constructor Detail |
---|
public ImportSource()
public ImportSource(String id, JProperties prop)
id
- the site's idprop
- the propertiesMethod Detail |
---|
public ImportStatus importData()
public void resetLastImportDate()
public String getHost()
public Date getNextImportDate()
public Date getLastImportDate()
public ImportStatus getLastImportStatus()
public void setLastImportStatus(ImportStatus status)
public String toString()
toString
in class Object
public String getName()
public void setName(String name)
name
- the name to setpublic String getUrl()
public void setUrl(String url)
url
- the url to setpublic String getScheduleCron()
public void setScheduleCron(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 String getId()
public void setId(String id)
id
- the id to setpublic ImportOptions getImportOptions()
public void setImportOptions(ImportOptions importOptions)
importOptions
- the ImportOptions to set.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |