Package org.cyclos.entities.system
Class ImportedFile
- java.lang.Object
-
- org.cyclos.entities.SimpleEntity
-
- org.cyclos.entities.NetworkedEntity
-
- org.cyclos.entities.BaseEntity
-
- org.cyclos.entities.system.ImportedFile
-
- All Implemented Interfaces:
Cloneable,ProcessableForDataTranslation,DefinesNetwork,ImageOwner<ImportedFile,ImportedImage>,IEntity
- Direct Known Subclasses:
AdImportedFile,GeneralReferenceImportedFile,PaymentImportedFile,RecordImportedFile,TokenImportedFile,TransferImportedFile,UserImportedFile,UserSpecificImportedFile
@Entity public abstract class ImportedFile extends BaseEntity implements DefinesNetwork, ImageOwner<ImportedFile,ImportedImage>
Stores common data for imports
-
-
Field Summary
Fields Modifier and Type Field Description protected Userbyprotected DatecreationDateprotected ImportedStoredFilecsvFileprotected StringerrorMessageprotected StringfileNameprotected StringignoredFieldsprotected IntegerimageCounterprotected List<ImportedImage>imagesprotected IntegerimportErrorsprotected IntegerimportSuccessesprotected Set<ImportedFileInfo>infosprotected IntegerlineCounterprotected List<ImportedLine>linesprotected ListSeparatorlistSeparatorprotected Networknetworkprotected booleanpermanentprotected booleanprocessAutomaticallyprotected DateprocessingDateprotected Integerskippedprotected ImportedFileStatusstatusprotected IntegertotalImagesprotected IntegertotalLinesprotected IntegervalidationErrorsprotected IntegervalidationSuccessesprotected ImportedStoredFilezipFile
-
Constructor Summary
Constructors Constructor Description ImportedFile()
-
Method Summary
-
Methods inherited from class org.cyclos.entities.BaseEntity
getDataTranslationType, getVersion
-
Methods inherited from class org.cyclos.entities.NetworkedEntity
isGlobal
-
Methods inherited from class org.cyclos.entities.SimpleEntity
clone, equals, getId, getId, getIds, getUniqueIds, getUniqueIds, hashCode, isPersistent, isTransient, toShortString, toString
-
-
-
-
Field Detail
-
processAutomatically
protected boolean processAutomatically
-
permanent
protected boolean permanent
-
images
protected List<ImportedImage> images
-
by
protected User by
-
network
protected Network network
-
infos
protected Set<ImportedFileInfo> infos
-
creationDate
protected Date creationDate
-
processingDate
protected Date processingDate
-
listSeparator
protected ListSeparator listSeparator
-
fileName
protected String fileName
-
lines
protected List<ImportedLine> lines
-
csvFile
protected ImportedStoredFile csvFile
-
zipFile
protected ImportedStoredFile zipFile
-
status
protected ImportedFileStatus status
-
validationErrors
protected Integer validationErrors
-
validationSuccesses
protected Integer validationSuccesses
-
importErrors
protected Integer importErrors
-
importSuccesses
protected Integer importSuccesses
-
lineCounter
protected Integer lineCounter
-
totalLines
protected Integer totalLines
-
imageCounter
protected Integer imageCounter
-
totalImages
protected Integer totalImages
-
skipped
protected Integer skipped
-
ignoredFields
protected String ignoredFields
-
errorMessage
protected String errorMessage
-
-
Method Detail
-
abort
public void abort()
-
getBy
public User getBy()
-
getChannel
public Channel getChannel()
-
getCreationDate
public Date getCreationDate()
-
getCsvFile
public ImportedStoredFile getCsvFile()
-
getDescription
public String getDescription()
-
getErrorMessage
public String getErrorMessage()
-
getFileName
public String getFileName()
-
getIgnoredFields
public String getIgnoredFields()
-
getImage
public ImportedImage getImage()
Description copied from interface:ImageOwnerEither the single image or a de-normalized reference to the first image- Specified by:
getImagein interfaceImageOwner<ImportedFile,ImportedImage>
-
getImageCounter
public Integer getImageCounter()
-
getImages
public List<ImportedImage> getImages()
Description copied from interface:ImageOwnerEither all images or a collection with the single image- Specified by:
getImagesin interfaceImageOwner<ImportedFile,ImportedImage>
-
getImportedFileInfo
public ImportedFileInfo getImportedFileInfo()
-
getImportErrors
public Integer getImportErrors()
-
getImportSuccesses
public Integer getImportSuccesses()
-
getImportType
public abstract ImportType getImportType()
-
getLineCounter
public Integer getLineCounter()
-
getListSeparator
public ListSeparator getListSeparator()
-
getNetwork
public Network getNetwork()
Description copied from class:NetworkedEntityReturns the network this entity belongs to- Specified by:
getNetworkin classNetworkedEntity
-
getProcessingDate
public Date getProcessingDate()
-
getSkipped
public Integer getSkipped()
-
getStatus
public ImportedFileStatus getStatus()
-
getTotalImages
public Integer getTotalImages()
-
getTotalLines
public Integer getTotalLines()
-
getValidationErrors
public Integer getValidationErrors()
-
getValidationSuccesses
public Integer getValidationSuccesses()
-
getZipFile
public ImportedStoredFile getZipFile()
-
isAborted
public boolean isAborted()
-
isPermanent
public boolean isPermanent()
-
isProcessAutomatically
public boolean isProcessAutomatically()
-
setBy
public void setBy(User by)
-
setChannel
public void setChannel(Channel channel)
-
setCreationDate
public void setCreationDate(Date creationDate)
-
setCsvFile
public void setCsvFile(ImportedStoredFile csvFile)
-
setDescription
public void setDescription(String description)
-
setErrorMessage
public void setErrorMessage(String errorMessage)
-
setFileName
public void setFileName(String fileName)
-
setIgnoredFields
public void setIgnoredFields(String ignoredFields)
-
setImage
public void setImage(ImportedImage image)
Description copied from interface:ImageOwnerEither the single image or a de-normalized reference to the first image- Specified by:
setImagein interfaceImageOwner<ImportedFile,ImportedImage>
-
setImageCounter
public void setImageCounter(Integer imageCounter)
-
setImages
public void setImages(List<ImportedImage> images)
Description copied from interface:ImageOwnerAssigns either all images or the first image if the owner has a single one- Specified by:
setImagesin interfaceImageOwner<ImportedFile,ImportedImage>
-
setImportedFileInfo
public void setImportedFileInfo(ImportedFileInfo info)
-
setImportErrors
public void setImportErrors(Integer importErrors)
-
setImportSuccesses
public void setImportSuccesses(Integer importSuccesses)
-
setLineCounter
public void setLineCounter(Integer lineCounter)
-
setLines
public void setLines(List<ImportedLine> lines)
-
setListSeparator
public void setListSeparator(ListSeparator listSeparator)
-
setNetwork
public void setNetwork(Network network)
- Specified by:
setNetworkin interfaceDefinesNetwork
-
setPermanent
public void setPermanent(boolean permanent)
-
setProcessAutomatically
public void setProcessAutomatically(boolean processAutomatically)
-
setProcessingDate
public void setProcessingDate(Date processingDate)
-
setSkipped
public void setSkipped(Integer skipped)
-
setStatus
public void setStatus(ImportedFileStatus status)
-
setTotalImages
public void setTotalImages(Integer totalImages)
-
setTotalLines
public void setTotalLines(Integer totalLines)
-
setValidationErrors
public void setValidationErrors(Integer validationErrors)
-
setValidationSuccesses
public void setValidationSuccesses(Integer validationSuccesses)
-
setZipFile
public void setZipFile(ImportedStoredFile zipFile)
-
-