com.knowgate.scheduler.jobs
Class FTPPublisher

java.lang.Object
  extended by com.knowgate.dataobjs.DBPersist
      extended by com.knowgate.scheduler.Job
          extended by com.knowgate.scheduler.jobs.FTPPublisher
All Implemented Interfaces:
java.io.Serializable, java.util.Map

public class FTPPublisher
extends Job

Publishes Files via FTP

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from interface java.util.Map
java.util.Map.Entry<K,V>
 
Field Summary
 
Fields inherited from class com.knowgate.scheduler.Job
COMMAND_DUMY, COMMAND_FAX, COMMAND_FTP, COMMAND_MAIL, COMMAND_SAVE, COMMAND_SEND, iPendingAtoms, STATUS_ABORTED, STATUS_FINISHED, STATUS_INTERRUPTED, STATUS_PENDING, STATUS_RUNNING, STATUS_SUSPENDED
 
Fields inherited from class com.knowgate.dataobjs.DBPersist
AllVals, sAuditCls, sAuditUsr, sTransactId
 
Constructor Summary
FTPPublisher()
           
 
Method Summary
 void free()
          Process PageSet pointed by Atom and sends transformed document throught FTP Base workareas path is taken from "workareasput" property of hipergate.cnf
 java.lang.Object process(Atom oAtm)
          Process an atom Concrete atom processing implementation must be provided by each derived subclass.
 
Methods inherited from class com.knowgate.scheduler.Job
abort, delete, delete, getDataBaseBind, getIdFromTitle, getParameter, getParameters, getProperties, getProperty, getStatus, insertRecipients, instantiate, instantiate, load, log, logFile, main, pending, resolveAtomsEMails, setDataBaseBind, setStatus, store
 
Methods inherited from class com.knowgate.dataobjs.DBPersist
allcaps, allcaps, changelog, clear, clone, containsKey, containsValue, entrySet, exists, get, get, getAuditClassName, getCreationDate, getDate, getDateFormated, getDateShort, getDateTime, getDateTime24, getDecimal, getDecimalFormated, getDecimalFormated, getDouble, getDoubleFormated, getFloat, getFloatFormated, getInt, getInteger, getIntervalPart, getItemMap, getItems, getMoney, getShort, getSQLDate, getSQLTime, getString, getStringHtml, getStringNull, getTable, getTable, getTableName, getTime, getTimeOfDay, getTimestamp, getUIdFromName, isEmpty, isNull, iterator, keySet, load, parseXML, put, put, put, put, put, put, put, put, put, put, put, put, put, put, put, put, put, putAll, putAll, remove, remove, replace, replace, replace, replace, replace, replace, replace, replace, setAuditTransact, setAuditUser, setCreationDate, size, toLowerCase, toUpperCase, toXML, toXML, toXML, toXML, values
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.Map
equals, hashCode
 

Constructor Detail

FTPPublisher

public FTPPublisher()
Method Detail

free

public void free()

Process PageSet pointed by Atom and sends transformed document throught FTP

Base workareas path is taken from "workareasput" property of hipergate.cnf

Specified by:
free in class Job
Parameters:
oAtm - Atom holding a reference to PageSet instance to be dumped
Atom must have the following parameters set:
gu_workareaGUID of WorkArea owner of document to be sent
gu_pagesetGUID of PageSet to be sent
nm_pagesetName of PageSet document instance to be sent
tx_nicknameFTP User Nickname for login
tx_pwdFTP User Password for login
nm_serverFTP server name or IP address
pathFTP target path
bo_mkpath"1" if path must be created at target server
nm_fileTarget file name for nm_pageset
Throws:
java.io.IOException

process

public java.lang.Object process(Atom oAtm)
                         throws java.io.IOException
Description copied from class: Job

Process an atom

Concrete atom processing implementation must be provided by each derived subclass.

Specified by:
process in class Job
Parameters:
oAtm - Atom to be processed
Returns:
Custom subclass defined Object
Throws:
java.io.FileNotFoundException
java.io.IOException