|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.jalios.jcms.mashup.ImportStatus
public class ImportStatus
This class represents an Import Status.
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 |
Constructor Summary | |
---|---|
ImportStatus()
|
|
ImportStatus(String logEntry)
|
Method Summary | |
---|---|
void |
addFileError(String filename)
|
void |
addFileSuccess(String filename)
|
void |
addImportedData(Data data)
|
String |
getBatch()
|
int |
getConflictCount()
|
int |
getCreateCount()
|
int |
getDataCount()
|
String |
getErrorMsg()
|
File |
getFile()
|
int |
getFileCount()
|
int |
getFileErrorCount()
|
List |
getFileErrorList()
|
List |
getFileSuccessList()
|
Date |
getGreatestMdate()
Returns the greatest mdate. |
String |
getHost()
Returns the host bound to the URL |
Date |
getImportDate()
|
Set<Data> |
getImportedDataSet()
|
String |
getResource()
Returns the resource used to performed the import (i.e. |
ImportSource |
getSource()
|
long |
getStartTime()
|
long |
getTime()
Returns the time (duration) of the import. |
int |
getUpdateCount()
|
String |
getUrl()
|
int |
getWriteCount()
Returns the number of writes done during this import. |
boolean |
hasFailed()
Returns true if the import was in error. |
void |
incConflictCount()
|
void |
incCreateCount()
|
void |
incDataCount()
|
void |
incUpdateCount()
|
boolean |
isFile()
Returns true if the import has been done from a file. |
boolean |
isMilestoneAdded()
|
boolean |
isSuccess()
|
boolean |
isText()
Returns true if the import has been done from a text. |
boolean |
isUrl()
Returns true if the import has been done from an URL. |
void |
setBatch(String batch)
|
void |
setConflictCount(int conflictCount)
|
void |
setCreateCount(int createCount)
|
void |
setDataCount(int dataCount)
|
void |
setEndTime(long endTime)
|
void |
setErrorMsg(String errorMsg)
|
void |
setFile(File file)
|
void |
setFileCount(int fileCount)
|
void |
setFileErrorCount(int fileErrorCount)
|
void |
setImportDate(Date importDate)
|
void |
setMilestoneAdded(boolean milestoneAdded)
|
void |
setSource(ImportSource source)
|
void |
setStartTime(long startTime)
|
void |
setSuccess(boolean success)
|
void |
setTime(long time)
Sets the time (duration) of the import. |
void |
setUpdateCount(int updateCount)
|
void |
setUrl(String url)
|
String |
toString()
|
void |
updateGreatestMdate(Date mdate)
Update the greatest imported mdate with the given date. |
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 ImportStatus()
public ImportStatus(String logEntry) throws IllegalArgumentException
IllegalArgumentException
Method Detail |
---|
public String toString()
toString
in class Object
public String getHost()
public String getResource()
public boolean isText()
public boolean isFile()
public boolean isUrl()
public long getTime()
public void setTime(long time)
time
- the time (duration) to set.public File getFile()
public void setFile(File file)
file
- the file to setpublic String getUrl()
public void setUrl(String url)
url
- the url to setpublic long getStartTime()
public void setStartTime(long startTime)
startTime
- the startTime to setpublic void addImportedData(Data data)
data
- the imported data to add.public Set<Data> getImportedDataSet()
public void incDataCount()
public void incCreateCount()
public void incUpdateCount()
public void incConflictCount()
public void addFileSuccess(String filename)
public List getFileSuccessList()
public void addFileError(String filename)
public List getFileErrorList()
public void updateGreatestMdate(Date mdate)
mdate
- an imported mdatepublic Date getGreatestMdate()
public boolean hasFailed()
public int getWriteCount()
public boolean isSuccess()
public void setSuccess(boolean success)
success
- the success to setpublic ImportSource getSource()
public void setSource(ImportSource source)
source
- the source to setpublic String getBatch()
public void setBatch(String batch)
batch
- the batch to setpublic int getDataCount()
public void setDataCount(int dataCount)
dataCount
- the dataCount to setpublic int getCreateCount()
public void setCreateCount(int createCount)
createCount
- the createCount to setpublic int getUpdateCount()
public void setUpdateCount(int updateCount)
updateCount
- the updateCount to setpublic int getConflictCount()
public void setConflictCount(int conflictCount)
conflictCount
- the conflictCount to setpublic int getFileCount()
public void setFileCount(int fileCount)
fileCount
- the fileCount to setpublic int getFileErrorCount()
public void setFileErrorCount(int fileErrorCount)
fileErrorCount
- the fileErrorCount to setpublic void setEndTime(long endTime)
endTime
- the endTime to setpublic String getErrorMsg()
public void setErrorMsg(String errorMsg)
errorMsg
- the errorMsg to setpublic Date getImportDate()
public void setImportDate(Date importDate)
importDate
- the importDate to setpublic boolean isMilestoneAdded()
public void setMilestoneAdded(boolean milestoneAdded)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |