本文整理汇总了Java中org.pentaho.di.core.ResultFile.getType方法的典型用法代码示例。如果您正苦于以下问题:Java ResultFile.getType方法的具体用法?Java ResultFile.getType怎么用?Java ResultFile.getType使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.pentaho.di.core.ResultFile
的用法示例。
在下文中一共展示了ResultFile.getType方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: loadXML
import org.pentaho.di.core.ResultFile; //导入方法依赖的package包/类
public void loadXML(Node entrynode, List<DatabaseMeta> databases, List<SlaveServer> slaveServers, Repository rep) throws KettleXMLException
{
try
{
super.loadXML(entrynode, databases, slaveServers);
setServer(XMLHandler.getTagValue(entrynode, "server"));
setPort(XMLHandler.getTagValue(entrynode, "port"));
setDestination(XMLHandler.getTagValue(entrynode, "destination"));
setDestinationCc(XMLHandler.getTagValue(entrynode, "destinationCc"));
setDestinationBCc(XMLHandler.getTagValue(entrynode, "destinationBCc"));
setReplyAddress(XMLHandler.getTagValue(entrynode, "replyto"));
setReplyName(XMLHandler.getTagValue(entrynode, "replytoname"));
setSubject(XMLHandler.getTagValue(entrynode, "subject"));
setIncludeDate("Y".equalsIgnoreCase(XMLHandler.getTagValue(entrynode, "include_date")));
setContactPerson(XMLHandler.getTagValue(entrynode, "contact_person"));
setContactPhone(XMLHandler.getTagValue(entrynode, "contact_phone"));
setComment(XMLHandler.getTagValue(entrynode, "comment"));
setIncludingFiles("Y".equalsIgnoreCase(XMLHandler.getTagValue(entrynode, "include_files")));
setUsingAuthentication("Y".equalsIgnoreCase(XMLHandler.getTagValue(entrynode, "use_auth")));
setUsingSecureAuthentication("Y".equalsIgnoreCase(XMLHandler.getTagValue(entrynode, "use_secure_auth")));
setAuthenticationUser(XMLHandler.getTagValue(entrynode, "auth_user"));
setAuthenticationPassword(Encr.decryptPasswordOptionallyEncrypted(XMLHandler.getTagValue(entrynode, "auth_password")));
setOnlySendComment("Y".equalsIgnoreCase(XMLHandler.getTagValue(entrynode, "only_comment")));
setUseHTML("Y".equalsIgnoreCase(XMLHandler.getTagValue(entrynode, "use_HTML")));
setUsePriority("Y".equalsIgnoreCase(XMLHandler.getTagValue(entrynode, "use_Priority")));
setEncoding(XMLHandler.getTagValue(entrynode, "encoding"));
setPriority(XMLHandler.getTagValue(entrynode, "priority"));
setImportance(XMLHandler.getTagValue(entrynode, "importance"));
setSecureConnectionType(XMLHandler.getTagValue(entrynode, "secureconnectiontype"));
Node ftsnode = XMLHandler.getSubNode(entrynode, "filetypes");
int nrTypes = XMLHandler.countNodes(ftsnode, "filetype");
allocate(nrTypes);
for (int i = 0; i < nrTypes; i++)
{
Node ftnode = XMLHandler.getSubNodeByNr(ftsnode, "filetype", i);
fileType[i] = ResultFile.getType(XMLHandler.getNodeValue(ftnode));
}
setZipFiles("Y".equalsIgnoreCase(XMLHandler.getTagValue(entrynode, "zip_files")));
setZipFilename(XMLHandler.getTagValue(entrynode, "zip_name"));
setReplyToAddresses(XMLHandler.getTagValue(entrynode, "replyToAddresses"));
} catch (KettleException xe)
{
throw new KettleXMLException("Unable to load job entry of type 'mail' from XML node", xe);
}
}
示例2: loadRep
import org.pentaho.di.core.ResultFile; //导入方法依赖的package包/类
public void loadRep(Repository rep, long id_jobentry, List<DatabaseMeta> databases, List<SlaveServer> slaveServers) throws KettleException
{
try
{
super.loadRep(rep, id_jobentry, databases, slaveServers);
// First load the common parts like name & description, then the attributes...
//
server = rep.getJobEntryAttributeString(id_jobentry, "server");
port = rep.getJobEntryAttributeString(id_jobentry, "port");
destination = rep.getJobEntryAttributeString(id_jobentry, "destination");
destinationCc = rep.getJobEntryAttributeString(id_jobentry, "destinationCc");
destinationBCc = rep.getJobEntryAttributeString(id_jobentry, "destinationBCc");
replyAddress = rep.getJobEntryAttributeString(id_jobentry, "replyto");
replyName = rep.getJobEntryAttributeString(id_jobentry, "replytoname");
subject = rep.getJobEntryAttributeString(id_jobentry, "subject");
includeDate = rep.getJobEntryAttributeBoolean(id_jobentry, "include_date");
contactPerson = rep.getJobEntryAttributeString(id_jobentry, "contact_person");
contactPhone = rep.getJobEntryAttributeString(id_jobentry, "contact_phone");
comment = rep.getJobEntryAttributeString(id_jobentry, "comment");
encoding = rep.getJobEntryAttributeString(id_jobentry, "encoding");
priority = rep.getJobEntryAttributeString(id_jobentry, "priority");
importance = rep.getJobEntryAttributeString(id_jobentry, "importance");
includingFiles = rep.getJobEntryAttributeBoolean(id_jobentry, "include_files");
usingAuthentication = rep.getJobEntryAttributeBoolean(id_jobentry, "use_auth");
usingSecureAuthentication = rep.getJobEntryAttributeBoolean(id_jobentry, "use_secure_auth");
authenticationUser = rep.getJobEntryAttributeString(id_jobentry, "auth_user");
authenticationPassword = Encr.decryptPasswordOptionallyEncrypted(rep.getJobEntryAttributeString(id_jobentry, "auth_password"));
onlySendComment = rep.getJobEntryAttributeBoolean(id_jobentry, "only_comment");
useHTML = rep.getJobEntryAttributeBoolean(id_jobentry, "use_HTML");
usePriority = rep.getJobEntryAttributeBoolean(id_jobentry, "use_Priority");
secureConnectionType = rep.getJobEntryAttributeString(id_jobentry, "secureconnectiontype");
int nrTypes = rep.countNrJobEntryAttributes(id_jobentry, "file_type");
allocate(nrTypes);
for (int i = 0; i < nrTypes; i++)
{
String typeCode = rep.getJobEntryAttributeString(id_jobentry, i, "file_type");
fileType[i] = ResultFile.getType(typeCode);
}
zipFiles = rep.getJobEntryAttributeBoolean(id_jobentry, "zip_files");
zipFilename = rep.getJobEntryAttributeString(id_jobentry, "zip_name");
replyToAddresses = rep.getJobEntryAttributeString(id_jobentry, "replyToAddresses");
} catch (KettleDatabaseException dbe)
{
throw new KettleException("Unable to load job entry of type 'mail' from the repository with id_jobentry="
+ id_jobentry, dbe);
}
}
示例3: readData
import org.pentaho.di.core.ResultFile; //导入方法依赖的package包/类
private void readData(Node stepnode)
{
filenameField = XMLHandler.getTagValue(stepnode, "filename_field"); //$NON-NLS-1$
fileType = ResultFile.getType( XMLHandler.getTagValue(stepnode, "file_type") ); //$NON-NLS-1$
}
示例4: readRep
import org.pentaho.di.core.ResultFile; //导入方法依赖的package包/类
public void readRep(Repository rep, long id_step, List<DatabaseMeta> databases, Map<String, Counter> counters)
throws KettleException
{
filenameField = rep.getStepAttributeString(id_step, "filename_field"); //$NON-NLS-1$
fileType = ResultFile.getType( rep.getStepAttributeString(id_step, "file_type") ); //$NON-NLS-1$
}
示例5: readData
import org.pentaho.di.core.ResultFile; //导入方法依赖的package包/类
private void readData(Node stepnode)
{
setServer(XMLHandler.getTagValue(stepnode, "server"));
setPort(XMLHandler.getTagValue(stepnode, "port"));
setDestination(XMLHandler.getTagValue(stepnode, "destination"));
setDestinationCc(XMLHandler.getTagValue(stepnode, "destinationCc"));
setDestinationBCc(XMLHandler.getTagValue(stepnode, "destinationBCc"));
setReplyToAddresses(XMLHandler.getTagValue(stepnode, "replyToAddresses"));
setReplyAddress(XMLHandler.getTagValue(stepnode, "replyto"));
setReplyName(XMLHandler.getTagValue(stepnode, "replytoname"));
setSubject(XMLHandler.getTagValue(stepnode, "subject"));
setIncludeDate("Y".equalsIgnoreCase(XMLHandler.getTagValue(stepnode, "include_date")));
setIncludeSubFolders("Y".equalsIgnoreCase(XMLHandler.getTagValue(stepnode, "include_subfolders")));
setZipFilenameDynamic("Y".equalsIgnoreCase(XMLHandler.getTagValue(stepnode, "zipFilenameDynamic")));
setisDynamicFilename("Y".equalsIgnoreCase(XMLHandler.getTagValue(stepnode, "isFilenameDynamic")));
setDynamicFieldname(XMLHandler.getTagValue(stepnode, "dynamicFieldname"));
setDynamicWildcard(XMLHandler.getTagValue(stepnode, "dynamicWildcard"));
setDynamicZipFilenameField(XMLHandler.getTagValue(stepnode, "dynamicZipFilename"));
setSourceFileFoldername(XMLHandler.getTagValue(stepnode, "sourcefilefoldername"));
setSourceWildcard(XMLHandler.getTagValue(stepnode, "sourcewildcard"));
setContactPerson(XMLHandler.getTagValue(stepnode, "contact_person"));
setContactPhone(XMLHandler.getTagValue(stepnode, "contact_phone"));
setComment(XMLHandler.getTagValue(stepnode, "comment"));
setIncludingFiles("Y".equalsIgnoreCase(XMLHandler.getTagValue(stepnode, "include_files")));
setUsingAuthentication("Y".equalsIgnoreCase(XMLHandler.getTagValue(stepnode, "use_auth")));
setUsingSecureAuthentication("Y".equalsIgnoreCase(XMLHandler.getTagValue(stepnode, "use_secure_auth")));
setAuthenticationUser(XMLHandler.getTagValue(stepnode, "auth_user"));
setAuthenticationPassword(Encr.decryptPasswordOptionallyEncrypted(XMLHandler.getTagValue(stepnode, "auth_password")));
setOnlySendComment("Y".equalsIgnoreCase(XMLHandler.getTagValue(stepnode, "only_comment")));
setUseHTML("Y".equalsIgnoreCase(XMLHandler.getTagValue(stepnode, "use_HTML")));
setUsePriority("Y".equalsIgnoreCase(XMLHandler.getTagValue(stepnode, "use_Priority")));
setEncoding(XMLHandler.getTagValue(stepnode, "encoding"));
setPriority(XMLHandler.getTagValue(stepnode, "priority"));
setImportance(XMLHandler.getTagValue(stepnode, "importance"));
setSecureConnectionType(XMLHandler.getTagValue(stepnode, "secureconnectiontype"));
Node ftsnode = XMLHandler.getSubNode(stepnode, "filetypes");
int nrTypes = XMLHandler.countNodes(ftsnode, "filetype");
allocate(nrTypes);
for (int i = 0; i < nrTypes; i++) {
Node ftnode = XMLHandler.getSubNodeByNr(ftsnode, "filetype", i);
fileType[i] = ResultFile.getType(XMLHandler.getNodeValue(ftnode));
}
setZipFiles("Y".equalsIgnoreCase(XMLHandler.getTagValue(stepnode, "zip_files")));
setZipFilename(XMLHandler.getTagValue(stepnode, "zip_name"));
setZipLimitSize(XMLHandler.getTagValue(stepnode, "zip_limit_size"));
}
示例6: readRep
import org.pentaho.di.core.ResultFile; //导入方法依赖的package包/类
public void readRep(Repository rep, long id_step, List<DatabaseMeta> databases, Map<String, Counter> counters)
throws KettleException
{
try
{
// First load the common parts like name & description, then the attributes...
//
this.server = rep.getStepAttributeString(id_step, "server");
this.port = rep.getStepAttributeString(id_step, "port");
this.destination = rep.getStepAttributeString(id_step, "destination");
this.destinationCc = rep.getStepAttributeString(id_step, "destinationCc");
this.destinationBCc = rep.getStepAttributeString(id_step, "destinationBCc");
this.replyToAddresses = rep.getStepAttributeString(id_step, "replyToAddresses");
this.replyAddress = rep.getStepAttributeString(id_step, "replyto");
this.replyName = rep.getStepAttributeString(id_step, "replytoname");
this.subject = rep.getStepAttributeString(id_step, "subject");
this.includeDate = rep.getStepAttributeBoolean(id_step, "include_date");
this.includeSubFolders = rep.getStepAttributeBoolean(id_step, "include_subfolders");
this.zipFilenameDynamic = rep.getStepAttributeBoolean(id_step, "zipFilenameDynamic");
this.isFilenameDynamic = rep.getStepAttributeBoolean(id_step, "isFilenameDynamic");
this.dynamicFieldname = rep.getStepAttributeString(id_step, "dynamicFieldname");
this.dynamicWildcard = rep.getStepAttributeString(id_step, "dynamicWildcard");
this.dynamicZipFilename = rep.getStepAttributeString(id_step, "dynamicZipFilename");
this.sourcefilefoldername = rep.getStepAttributeString(id_step, "sourcefilefoldername");
this.sourcewildcard = rep.getStepAttributeString(id_step, "sourcewildcard");
this.contactPerson = rep.getStepAttributeString(id_step, "contact_person");
this.contactPhone = rep.getStepAttributeString(id_step, "contact_phone");
this.comment = rep.getStepAttributeString(id_step, "comment");
this.encoding = rep.getStepAttributeString(id_step, "encoding");
this.priority = rep.getStepAttributeString(id_step, "priority");
this.importance = rep.getStepAttributeString(id_step, "importance");
this.includingFiles = rep.getStepAttributeBoolean(id_step, "include_files");
this.usingAuthentication = rep.getStepAttributeBoolean(id_step, "use_auth");
this.usingSecureAuthentication = rep.getStepAttributeBoolean(id_step, "use_secure_auth");
this.authenticationUser = rep.getStepAttributeString(id_step, "auth_user");
this.authenticationPassword = Encr.decryptPasswordOptionallyEncrypted(rep.getStepAttributeString(id_step, "auth_password"));
this.onlySendComment = rep.getStepAttributeBoolean(id_step, "only_comment");
this.useHTML = rep.getStepAttributeBoolean(id_step, "use_HTML");
this.usePriority = rep.getStepAttributeBoolean(id_step, "use_Priority");
this.secureconnectiontype = rep.getStepAttributeString(id_step, "secureconnectiontype");
int nrTypes = rep.countNrStepAttributes(id_step, "file_type");
allocate(nrTypes);
for (int i = 0; i < nrTypes; i++) {
String typeCode = rep.getStepAttributeString(id_step, i, "file_type");
this.fileType[i] = ResultFile.getType(typeCode);
}
this.zipFiles = rep.getStepAttributeBoolean(id_step, "zip_files");
this.zipFilename = rep.getStepAttributeString(id_step, "zip_name");
this.ziplimitsize = rep.getStepAttributeString(id_step, "zip_limit_size");
} catch (KettleDatabaseException dbe)
{
throw new KettleException("Unable to load step type 'mail' from the repository with id_step="
+ id_step, dbe);
}
}
示例7: loadXML
import org.pentaho.di.core.ResultFile; //导入方法依赖的package包/类
public void loadXML(Node entrynode, List<DatabaseMeta> databases, List<SlaveServer> slaveServers, Repository rep) throws KettleXMLException
{
try
{
super.loadXML(entrynode, databases, slaveServers);
setServer(XMLHandler.getTagValue(entrynode, "server"));
setPort(XMLHandler.getTagValue(entrynode, "port"));
setDestination(XMLHandler.getTagValue(entrynode, "destination"));
setDestinationCc(XMLHandler.getTagValue(entrynode, "destinationCc"));
setDestinationBCc(XMLHandler.getTagValue(entrynode, "destinationBCc"));
setReplyAddress(XMLHandler.getTagValue(entrynode, "replyto"));
setReplyName(XMLHandler.getTagValue(entrynode, "replytoname"));
setSubject(XMLHandler.getTagValue(entrynode, "subject"));
setIncludeDate("Y".equalsIgnoreCase(XMLHandler.getTagValue(entrynode, "include_date")));
setContactPerson(XMLHandler.getTagValue(entrynode, "contact_person"));
setContactPhone(XMLHandler.getTagValue(entrynode, "contact_phone"));
setComment(XMLHandler.getTagValue(entrynode, "comment"));
setIncludingFiles("Y".equalsIgnoreCase(XMLHandler.getTagValue(entrynode, "include_files")));
setUsingAuthentication("Y".equalsIgnoreCase(XMLHandler.getTagValue(entrynode, "use_auth")));
setUsingSecureAuthentication("Y".equalsIgnoreCase(XMLHandler.getTagValue(entrynode, "use_secure_auth")));
setAuthenticationUser(XMLHandler.getTagValue(entrynode, "auth_user"));
setAuthenticationPassword(Encr.decryptPasswordOptionallyEncrypted(XMLHandler.getTagValue(entrynode, "auth_password")));
setOnlySendComment("Y".equalsIgnoreCase(XMLHandler.getTagValue(entrynode, "only_comment")));
setUseHTML("Y".equalsIgnoreCase(XMLHandler.getTagValue(entrynode, "use_HTML")));
setUsePriority("Y".equalsIgnoreCase(XMLHandler.getTagValue(entrynode, "use_Priority")));
setEncoding(XMLHandler.getTagValue(entrynode, "encoding"));
setPriority(XMLHandler.getTagValue(entrynode, "priority"));
setImportance(XMLHandler.getTagValue(entrynode, "importance"));
setSecureConnectionType(XMLHandler.getTagValue(entrynode, "secureconnectiontype"));
Node ftsnode = XMLHandler.getSubNode(entrynode, "filetypes");
int nrTypes = XMLHandler.countNodes(ftsnode, "filetype");
allocate(nrTypes);
for (int i = 0; i < nrTypes; i++)
{
Node ftnode = XMLHandler.getSubNodeByNr(ftsnode, "filetype", i);
fileType[i] = ResultFile.getType(XMLHandler.getNodeValue(ftnode));
}
setZipFiles("Y".equalsIgnoreCase(XMLHandler.getTagValue(entrynode, "zip_files")));
setZipFilename(XMLHandler.getTagValue(entrynode, "zip_name"));
setReplyToAddresses(XMLHandler.getTagValue(entrynode, "replyToAddresses"));
Node images = XMLHandler.getSubNode(entrynode, "embeddedimages"); //$NON-NLS-1$
// How many field embedded images ?
int nrImages = XMLHandler.countNodes(images, "embeddedimage"); //$NON-NLS-1$
embeddedimages = new String[nrImages];
contentids = new String[nrImages];
// Read them all...
for (int i = 0; i < nrImages; i++) {
Node fnode = XMLHandler.getSubNodeByNr(images, "embeddedimage", i); //$NON-NLS-1$
embeddedimages[i] = XMLHandler.getTagValue(fnode, "image_name"); //$NON-NLS-1$
contentids[i] = XMLHandler.getTagValue(fnode, "content_id"); //$NON-NLS-1$
}
} catch (KettleException xe)
{
throw new KettleXMLException("Unable to load job entry of type 'mail' from XML node", xe);
}
}
示例8: loadRep
import org.pentaho.di.core.ResultFile; //导入方法依赖的package包/类
public void loadRep(Repository rep, ObjectId id_jobentry, List<DatabaseMeta> databases, List<SlaveServer> slaveServers) throws KettleException
{
try
{
// First load the common parts like name & description, then the attributes...
//
server = rep.getJobEntryAttributeString(id_jobentry, "server");
port = rep.getJobEntryAttributeString(id_jobentry, "port");
destination = rep.getJobEntryAttributeString(id_jobentry, "destination");
destinationCc = rep.getJobEntryAttributeString(id_jobentry, "destinationCc");
destinationBCc = rep.getJobEntryAttributeString(id_jobentry, "destinationBCc");
replyAddress = rep.getJobEntryAttributeString(id_jobentry, "replyto");
replyName = rep.getJobEntryAttributeString(id_jobentry, "replytoname");
subject = rep.getJobEntryAttributeString(id_jobentry, "subject");
includeDate = rep.getJobEntryAttributeBoolean(id_jobentry, "include_date");
contactPerson = rep.getJobEntryAttributeString(id_jobentry, "contact_person");
contactPhone = rep.getJobEntryAttributeString(id_jobentry, "contact_phone");
comment = rep.getJobEntryAttributeString(id_jobentry, "comment");
encoding = rep.getJobEntryAttributeString(id_jobentry, "encoding");
priority = rep.getJobEntryAttributeString(id_jobentry, "priority");
importance = rep.getJobEntryAttributeString(id_jobentry, "importance");
includingFiles = rep.getJobEntryAttributeBoolean(id_jobentry, "include_files");
usingAuthentication = rep.getJobEntryAttributeBoolean(id_jobentry, "use_auth");
usingSecureAuthentication = rep.getJobEntryAttributeBoolean(id_jobentry, "use_secure_auth");
authenticationUser = rep.getJobEntryAttributeString(id_jobentry, "auth_user");
authenticationPassword = Encr.decryptPasswordOptionallyEncrypted(rep.getJobEntryAttributeString(id_jobentry, "auth_password"));
onlySendComment = rep.getJobEntryAttributeBoolean(id_jobentry, "only_comment");
useHTML = rep.getJobEntryAttributeBoolean(id_jobentry, "use_HTML");
usePriority = rep.getJobEntryAttributeBoolean(id_jobentry, "use_Priority");
secureConnectionType = rep.getJobEntryAttributeString(id_jobentry, "secureconnectiontype");
int nrTypes = rep.countNrJobEntryAttributes(id_jobentry, "file_type");
allocate(nrTypes);
for (int i = 0; i < nrTypes; i++)
{
String typeCode = rep.getJobEntryAttributeString(id_jobentry, i, "file_type");
fileType[i] = ResultFile.getType(typeCode);
}
zipFiles = rep.getJobEntryAttributeBoolean(id_jobentry, "zip_files");
zipFilename = rep.getJobEntryAttributeString(id_jobentry, "zip_name");
replyToAddresses = rep.getJobEntryAttributeString(id_jobentry, "replyToAddresses");
// How many arguments?
int imagesnr = rep.countNrJobEntryAttributes(id_jobentry, "embeddedimage"); //$NON-NLS-1$
embeddedimages = new String[imagesnr];
contentids = new String[imagesnr];
// Read them all...
for (int a = 0; a < imagesnr; a++) {
embeddedimages[a] = rep.getJobEntryAttributeString(id_jobentry, a, "embeddedimage"); //$NON-NLS-1$
contentids[a] = rep.getJobEntryAttributeString(id_jobentry, a, "contentid"); //$NON-NLS-1$
}
} catch (KettleDatabaseException dbe)
{
throw new KettleException("Unable to load job entry of type 'mail' from the repository with id_jobentry="
+ id_jobentry, dbe);
}
}
示例9: readRep
import org.pentaho.di.core.ResultFile; //导入方法依赖的package包/类
public void readRep(Repository rep, ObjectId id_step, List<DatabaseMeta> databases, Map<String, Counter> counters)
throws KettleException
{
filenameField = rep.getStepAttributeString(id_step, "filename_field"); //$NON-NLS-1$
fileType = ResultFile.getType( rep.getStepAttributeString(id_step, "file_type") ); //$NON-NLS-1$
}
示例10: loadXML
import org.pentaho.di.core.ResultFile; //导入方法依赖的package包/类
public void loadXML(Node entrynode, List<DatabaseMeta> databases, List<SlaveServer> slaveServers, Repository rep) throws KettleXMLException
{
try
{
super.loadXML(entrynode, databases, slaveServers);
setServer(XMLHandler.getTagValue(entrynode, "server"));
setPort(XMLHandler.getTagValue(entrynode, "port"));
setDestination(XMLHandler.getTagValue(entrynode, "destination"));
setDestinationCc(XMLHandler.getTagValue(entrynode, "destinationCc"));
setDestinationBCc(XMLHandler.getTagValue(entrynode, "destinationBCc"));
setReplyAddress(XMLHandler.getTagValue(entrynode, "replyto"));
setReplyName(XMLHandler.getTagValue(entrynode, "replytoname"));
setSubject(XMLHandler.getTagValue(entrynode, "subject"));
setIncludeDate("Y".equalsIgnoreCase(XMLHandler.getTagValue(entrynode, "include_date")));
setContactPerson(XMLHandler.getTagValue(entrynode, "contact_person"));
setContactPhone(XMLHandler.getTagValue(entrynode, "contact_phone"));
setComment(XMLHandler.getTagValue(entrynode, "comment"));
setIncludingFiles("Y".equalsIgnoreCase(XMLHandler.getTagValue(entrynode, "include_files")));
setUsingAuthentication("Y".equalsIgnoreCase(XMLHandler.getTagValue(entrynode, "use_auth")));
setUsingSecureAuthentication("Y".equalsIgnoreCase(XMLHandler.getTagValue(entrynode, "use_secure_auth")));
setAuthenticationUser(XMLHandler.getTagValue(entrynode, "auth_user"));
setAuthenticationPassword(Encr.decryptPasswordOptionallyEncrypted(XMLHandler.getTagValue(entrynode, "auth_password")));
setOnlySendComment("Y".equalsIgnoreCase(XMLHandler.getTagValue(entrynode, "only_comment")));
setUseHTML("Y".equalsIgnoreCase(XMLHandler.getTagValue(entrynode, "use_HTML")));
setUsePriority("Y".equalsIgnoreCase(XMLHandler.getTagValue(entrynode, "use_Priority")));
setEncoding(XMLHandler.getTagValue(entrynode, "encoding"));
setPriority(XMLHandler.getTagValue(entrynode, "priority"));
setImportance(XMLHandler.getTagValue(entrynode, "importance"));
setSensitivity(XMLHandler.getTagValue(entrynode, "sensitivity"));
setSecureConnectionType(XMLHandler.getTagValue(entrynode, "secureconnectiontype"));
Node ftsnode = XMLHandler.getSubNode(entrynode, "filetypes");
int nrTypes = XMLHandler.countNodes(ftsnode, "filetype");
allocate(nrTypes);
for (int i = 0; i < nrTypes; i++)
{
Node ftnode = XMLHandler.getSubNodeByNr(ftsnode, "filetype", i);
fileType[i] = ResultFile.getType(XMLHandler.getNodeValue(ftnode));
}
setZipFiles("Y".equalsIgnoreCase(XMLHandler.getTagValue(entrynode, "zip_files")));
setZipFilename(XMLHandler.getTagValue(entrynode, "zip_name"));
setReplyToAddresses(XMLHandler.getTagValue(entrynode, "replyToAddresses"));
Node images = XMLHandler.getSubNode(entrynode, "embeddedimages"); //$NON-NLS-1$
// How many field embedded images ?
int nrImages = XMLHandler.countNodes(images, "embeddedimage"); //$NON-NLS-1$
embeddedimages = new String[nrImages];
contentids = new String[nrImages];
// Read them all...
for (int i = 0; i < nrImages; i++) {
Node fnode = XMLHandler.getSubNodeByNr(images, "embeddedimage", i); //$NON-NLS-1$
embeddedimages[i] = XMLHandler.getTagValue(fnode, "image_name"); //$NON-NLS-1$
contentids[i] = XMLHandler.getTagValue(fnode, "content_id"); //$NON-NLS-1$
}
} catch (KettleException xe)
{
throw new KettleXMLException("Unable to load job entry of type 'mail' from XML node", xe);
}
}
示例11: loadRep
import org.pentaho.di.core.ResultFile; //导入方法依赖的package包/类
public void loadRep(Repository rep, ObjectId id_jobentry, List<DatabaseMeta> databases, List<SlaveServer> slaveServers) throws KettleException
{
try
{
// First load the common parts like name & description, then the attributes...
//
server = rep.getJobEntryAttributeString(id_jobentry, "server");
port = rep.getJobEntryAttributeString(id_jobentry, "port");
destination = rep.getJobEntryAttributeString(id_jobentry, "destination");
destinationCc = rep.getJobEntryAttributeString(id_jobentry, "destinationCc");
destinationBCc = rep.getJobEntryAttributeString(id_jobentry, "destinationBCc");
replyAddress = rep.getJobEntryAttributeString(id_jobentry, "replyto");
replyName = rep.getJobEntryAttributeString(id_jobentry, "replytoname");
subject = rep.getJobEntryAttributeString(id_jobentry, "subject");
includeDate = rep.getJobEntryAttributeBoolean(id_jobentry, "include_date");
contactPerson = rep.getJobEntryAttributeString(id_jobentry, "contact_person");
contactPhone = rep.getJobEntryAttributeString(id_jobentry, "contact_phone");
comment = rep.getJobEntryAttributeString(id_jobentry, "comment");
encoding = rep.getJobEntryAttributeString(id_jobentry, "encoding");
priority = rep.getJobEntryAttributeString(id_jobentry, "priority");
importance = rep.getJobEntryAttributeString(id_jobentry, "importance");
sensitivity = rep.getJobEntryAttributeString(id_jobentry, "sensitivity");
includingFiles = rep.getJobEntryAttributeBoolean(id_jobentry, "include_files");
usingAuthentication = rep.getJobEntryAttributeBoolean(id_jobentry, "use_auth");
usingSecureAuthentication = rep.getJobEntryAttributeBoolean(id_jobentry, "use_secure_auth");
authenticationUser = rep.getJobEntryAttributeString(id_jobentry, "auth_user");
authenticationPassword = Encr.decryptPasswordOptionallyEncrypted(rep.getJobEntryAttributeString(id_jobentry, "auth_password"));
onlySendComment = rep.getJobEntryAttributeBoolean(id_jobentry, "only_comment");
useHTML = rep.getJobEntryAttributeBoolean(id_jobentry, "use_HTML");
usePriority = rep.getJobEntryAttributeBoolean(id_jobentry, "use_Priority");
secureConnectionType = rep.getJobEntryAttributeString(id_jobentry, "secureconnectiontype");
int nrTypes = rep.countNrJobEntryAttributes(id_jobentry, "file_type");
allocate(nrTypes);
for (int i = 0; i < nrTypes; i++)
{
String typeCode = rep.getJobEntryAttributeString(id_jobentry, i, "file_type");
fileType[i] = ResultFile.getType(typeCode);
}
zipFiles = rep.getJobEntryAttributeBoolean(id_jobentry, "zip_files");
zipFilename = rep.getJobEntryAttributeString(id_jobentry, "zip_name");
replyToAddresses = rep.getJobEntryAttributeString(id_jobentry, "replyToAddresses");
// How many arguments?
int imagesnr = rep.countNrJobEntryAttributes(id_jobentry, "embeddedimage"); //$NON-NLS-1$
embeddedimages = new String[imagesnr];
contentids = new String[imagesnr];
// Read them all...
for (int a = 0; a < imagesnr; a++) {
embeddedimages[a] = rep.getJobEntryAttributeString(id_jobentry, a, "embeddedimage"); //$NON-NLS-1$
contentids[a] = rep.getJobEntryAttributeString(id_jobentry, a, "contentid"); //$NON-NLS-1$
}
} catch (KettleDatabaseException dbe)
{
throw new KettleException("Unable to load job entry of type 'mail' from the repository with id_jobentry="
+ id_jobentry, dbe);
}
}
示例12: loadXML
import org.pentaho.di.core.ResultFile; //导入方法依赖的package包/类
public void loadXML( Node entrynode, List<DatabaseMeta> databases, List<SlaveServer> slaveServers,
Repository rep, IMetaStore metaStore ) throws KettleXMLException {
try {
super.loadXML( entrynode, databases, slaveServers );
setServer( XMLHandler.getTagValue( entrynode, "server" ) );
setPort( XMLHandler.getTagValue( entrynode, "port" ) );
setDestination( XMLHandler.getTagValue( entrynode, "destination" ) );
setDestinationCc( XMLHandler.getTagValue( entrynode, "destinationCc" ) );
setDestinationBCc( XMLHandler.getTagValue( entrynode, "destinationBCc" ) );
setReplyAddress( XMLHandler.getTagValue( entrynode, "replyto" ) );
setReplyName( XMLHandler.getTagValue( entrynode, "replytoname" ) );
setSubject( XMLHandler.getTagValue( entrynode, "subject" ) );
setIncludeDate( "Y".equalsIgnoreCase( XMLHandler.getTagValue( entrynode, "include_date" ) ) );
setContactPerson( XMLHandler.getTagValue( entrynode, "contact_person" ) );
setContactPhone( XMLHandler.getTagValue( entrynode, "contact_phone" ) );
setComment( XMLHandler.getTagValue( entrynode, "comment" ) );
setIncludingFiles( "Y".equalsIgnoreCase( XMLHandler.getTagValue( entrynode, "include_files" ) ) );
setUsingAuthentication( "Y".equalsIgnoreCase( XMLHandler.getTagValue( entrynode, "use_auth" ) ) );
setUsingSecureAuthentication( "Y".equalsIgnoreCase( XMLHandler.getTagValue( entrynode, "use_secure_auth" ) ) );
setAuthenticationUser( XMLHandler.getTagValue( entrynode, "auth_user" ) );
setAuthenticationPassword( Encr.decryptPasswordOptionallyEncrypted( XMLHandler.getTagValue(
entrynode, "auth_password" ) ) );
setOnlySendComment( "Y".equalsIgnoreCase( XMLHandler.getTagValue( entrynode, "only_comment" ) ) );
setUseHTML( "Y".equalsIgnoreCase( XMLHandler.getTagValue( entrynode, "use_HTML" ) ) );
setUsePriority( "Y".equalsIgnoreCase( XMLHandler.getTagValue( entrynode, "use_Priority" ) ) );
setEncoding( XMLHandler.getTagValue( entrynode, "encoding" ) );
setPriority( XMLHandler.getTagValue( entrynode, "priority" ) );
setImportance( XMLHandler.getTagValue( entrynode, "importance" ) );
setSensitivity( XMLHandler.getTagValue( entrynode, "sensitivity" ) );
setSecureConnectionType( XMLHandler.getTagValue( entrynode, "secureconnectiontype" ) );
Node ftsnode = XMLHandler.getSubNode( entrynode, "filetypes" );
int nrTypes = XMLHandler.countNodes( ftsnode, "filetype" );
allocate( nrTypes );
for ( int i = 0; i < nrTypes; i++ ) {
Node ftnode = XMLHandler.getSubNodeByNr( ftsnode, "filetype", i );
fileType[i] = ResultFile.getType( XMLHandler.getNodeValue( ftnode ) );
}
setZipFiles( "Y".equalsIgnoreCase( XMLHandler.getTagValue( entrynode, "zip_files" ) ) );
setZipFilename( XMLHandler.getTagValue( entrynode, "zip_name" ) );
setReplyToAddresses( XMLHandler.getTagValue( entrynode, "replyToAddresses" ) );
Node images = XMLHandler.getSubNode( entrynode, "embeddedimages" );
// How many field embedded images ?
int nrImages = XMLHandler.countNodes( images, "embeddedimage" );
allocateImages( nrImages );
// Read them all...
for ( int i = 0; i < nrImages; i++ ) {
Node fnode = XMLHandler.getSubNodeByNr( images, "embeddedimage", i );
embeddedimages[i] = XMLHandler.getTagValue( fnode, "image_name" );
contentids[i] = XMLHandler.getTagValue( fnode, "content_id" );
}
} catch ( KettleException xe ) {
throw new KettleXMLException( "Unable to load job entry of type 'mail' from XML node", xe );
}
}
示例13: loadRep
import org.pentaho.di.core.ResultFile; //导入方法依赖的package包/类
public void loadRep( Repository rep, IMetaStore metaStore, ObjectId id_jobentry, List<DatabaseMeta> databases,
List<SlaveServer> slaveServers ) throws KettleException {
try {
// First load the common parts like name & description, then the attributes...
//
server = rep.getJobEntryAttributeString( id_jobentry, "server" );
port = rep.getJobEntryAttributeString( id_jobentry, "port" );
destination = rep.getJobEntryAttributeString( id_jobentry, "destination" );
destinationCc = rep.getJobEntryAttributeString( id_jobentry, "destinationCc" );
destinationBCc = rep.getJobEntryAttributeString( id_jobentry, "destinationBCc" );
replyAddress = rep.getJobEntryAttributeString( id_jobentry, "replyto" );
replyName = rep.getJobEntryAttributeString( id_jobentry, "replytoname" );
subject = rep.getJobEntryAttributeString( id_jobentry, "subject" );
includeDate = rep.getJobEntryAttributeBoolean( id_jobentry, "include_date" );
contactPerson = rep.getJobEntryAttributeString( id_jobentry, "contact_person" );
contactPhone = rep.getJobEntryAttributeString( id_jobentry, "contact_phone" );
comment = rep.getJobEntryAttributeString( id_jobentry, "comment" );
encoding = rep.getJobEntryAttributeString( id_jobentry, "encoding" );
priority = rep.getJobEntryAttributeString( id_jobentry, "priority" );
importance = rep.getJobEntryAttributeString( id_jobentry, "importance" );
sensitivity = rep.getJobEntryAttributeString( id_jobentry, "sensitivity" );
includingFiles = rep.getJobEntryAttributeBoolean( id_jobentry, "include_files" );
usingAuthentication = rep.getJobEntryAttributeBoolean( id_jobentry, "use_auth" );
usingSecureAuthentication = rep.getJobEntryAttributeBoolean( id_jobentry, "use_secure_auth" );
authenticationUser = rep.getJobEntryAttributeString( id_jobentry, "auth_user" );
authenticationPassword =
Encr.decryptPasswordOptionallyEncrypted( rep.getJobEntryAttributeString( id_jobentry, "auth_password" ) );
onlySendComment = rep.getJobEntryAttributeBoolean( id_jobentry, "only_comment" );
useHTML = rep.getJobEntryAttributeBoolean( id_jobentry, "use_HTML" );
usePriority = rep.getJobEntryAttributeBoolean( id_jobentry, "use_Priority" );
secureConnectionType = rep.getJobEntryAttributeString( id_jobentry, "secureconnectiontype" );
int nrTypes = rep.countNrJobEntryAttributes( id_jobentry, "file_type" );
allocate( nrTypes );
for ( int i = 0; i < nrTypes; i++ ) {
String typeCode = rep.getJobEntryAttributeString( id_jobentry, i, "file_type" );
fileType[i] = ResultFile.getType( typeCode );
}
zipFiles = rep.getJobEntryAttributeBoolean( id_jobentry, "zip_files" );
zipFilename = rep.getJobEntryAttributeString( id_jobentry, "zip_name" );
replyToAddresses = rep.getJobEntryAttributeString( id_jobentry, "replyToAddresses" );
// How many arguments?
int imagesnr = rep.countNrJobEntryAttributes( id_jobentry, "embeddedimage" );
allocateImages( imagesnr );
// Read them all...
for ( int a = 0; a < imagesnr; a++ ) {
embeddedimages[a] = rep.getJobEntryAttributeString( id_jobentry, a, "embeddedimage" );
contentids[a] = rep.getJobEntryAttributeString( id_jobentry, a, "contentid" );
}
} catch ( KettleDatabaseException dbe ) {
throw new KettleException( "Unable to load job entry of type 'mail' from the repository with id_jobentry="
+ id_jobentry, dbe );
}
}
示例14: readData
import org.pentaho.di.core.ResultFile; //导入方法依赖的package包/类
private void readData( Node stepnode ) {
filenameField = XMLHandler.getTagValue( stepnode, "filename_field" );
fileType = ResultFile.getType( XMLHandler.getTagValue( stepnode, "file_type" ) );
}
示例15: readRep
import org.pentaho.di.core.ResultFile; //导入方法依赖的package包/类
public void readRep( Repository rep, IMetaStore metaStore, ObjectId id_step, List<DatabaseMeta> databases ) throws KettleException {
filenameField = rep.getStepAttributeString( id_step, "filename_field" );
fileType = ResultFile.getType( rep.getStepAttributeString( id_step, "file_type" ) );
}