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,HasNetwork,ProcessableForProxying,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
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.cyclos.entities.SimpleEntity
SimpleEntity.EntityLoadNotifier
-
-
Field Summary
Fields Modifier and Type Field Description protected Userbyprotected DatecreationDateprotected StringerrorMessageprotected List<ImportedField>fieldsprotected StringfileNameprotected StringignoredFieldsprotected List<ImportedImage>imagesprotected List<ImportedLine>linesprotected IntegerlinesImportedprotected IntegerlinesImportErrorprotected IntegerlinesReadyprotected IntegerlinesSkippedprotected IntegerlinesValidationErrorprotected ListSeparatorlistSeparatorprotected Networknetworkprotected booleanpermanentprotected booleanprocessAutomaticallyprotected DateprocessingDateprotected ImportedFileStatusstatusprotected Set<ImportedStoredFile>storedFiles
-
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
equals, getId, hashCode, id, ids, isPersistent, isTransient, register, setId, toShortString, toString, uniqueIds, uniqueIds
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.cyclos.entities.ProcessableForProxying
getProxyClass
-
-
-
-
Field Detail
-
network
protected Network network
-
processAutomatically
protected boolean processAutomatically
-
permanent
protected boolean permanent
-
images
protected List<ImportedImage> images
-
by
protected User by
-
storedFiles
protected Set<ImportedStoredFile> storedFiles
-
creationDate
protected Date creationDate
-
processingDate
protected Date processingDate
-
listSeparator
protected ListSeparator listSeparator
-
fileName
protected String fileName
-
lines
protected List<ImportedLine> lines
-
status
protected ImportedFileStatus status
-
linesReady
protected Integer linesReady
-
linesValidationError
protected Integer linesValidationError
-
linesSkipped
protected Integer linesSkipped
-
linesImportError
protected Integer linesImportError
-
linesImported
protected Integer linesImported
-
ignoredFields
protected String ignoredFields
-
errorMessage
protected String errorMessage
-
fields
protected List<ImportedField> fields
-
-
Method Detail
-
getBy
public User getBy()
-
getChannel
public Channel getChannel()
-
getCreationDate
public Date getCreationDate()
-
getDescription
public String getDescription()
-
getErrorMessage
public String getErrorMessage()
-
getField
public ImportedField getField(ImportField field)
-
getField
public ImportedField getField(ImportField field, String id)
-
getField
public ImportedField getField(String name)
-
getField
public ImportedField getField(String name, String id)
-
getFields
public List<ImportedField> getFields()
-
getFileName
public String getFileName()
-
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>
-
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>
-
getImportType
public abstract ImportType getImportType()
-
getLinesImported
public Integer getLinesImported()
-
getLinesImportError
public Integer getLinesImportError()
-
getLinesReady
public Integer getLinesReady()
-
getLinesSkipped
public Integer getLinesSkipped()
-
getLinesValidationError
public Integer getLinesValidationError()
-
getListSeparator
public ListSeparator getListSeparator()
-
getNetwork
public Network getNetwork()
Description copied from interface:HasNetworkReturns the network this entity belongs to- Specified by:
getNetworkin interfaceHasNetwork
-
getProcessingDate
public Date getProcessingDate()
-
getStatus
public ImportedFileStatus getStatus()
-
getStoredFile
public ImportedStoredFile getStoredFile()
-
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)
-
setDescription
public void setDescription(String description)
-
setErrorMessage
public void setErrorMessage(String errorMessage)
-
setFields
public void setFields(List<ImportedField> fields)
-
setFileName
public void setFileName(String fileName)
-
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>
-
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>
-
setLinesImported
public void setLinesImported(Integer linesImported)
-
setLinesImportError
public void setLinesImportError(Integer linesImportError)
-
setLinesReady
public void setLinesReady(Integer linesReady)
-
setLinesSkipped
public void setLinesSkipped(Integer linesSkipped)
-
setLinesValidationError
public void setLinesValidationError(Integer linesValidationError)
-
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)
-
setStatus
public void setStatus(ImportedFileStatus status)
-
setStoredFile
public void setStoredFile(ImportedStoredFile storedFile)
-
-