Java Code Examples for org.pentaho.di.repository.Repository#getJobEntryAttributeInteger()
The following examples show how to use
org.pentaho.di.repository.Repository#getJobEntryAttributeInteger() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: JobEntryMysqlBulkLoad.java From pentaho-kettle with Apache License 2.0 | 6 votes |
public void loadRep( Repository rep, IMetaStore metaStore, ObjectId id_jobentry, List<DatabaseMeta> databases, List<SlaveServer> slaveServers ) throws KettleException { try { schemaname = rep.getJobEntryAttributeString( id_jobentry, "schemaname" ); tablename = rep.getJobEntryAttributeString( id_jobentry, "tablename" ); filename = rep.getJobEntryAttributeString( id_jobentry, "filename" ); separator = rep.getJobEntryAttributeString( id_jobentry, "separator" ); enclosed = rep.getJobEntryAttributeString( id_jobentry, "enclosed" ); escaped = rep.getJobEntryAttributeString( id_jobentry, "escaped" ); linestarted = rep.getJobEntryAttributeString( id_jobentry, "linestarted" ); lineterminated = rep.getJobEntryAttributeString( id_jobentry, "lineterminated" ); replacedata = rep.getJobEntryAttributeBoolean( id_jobentry, "replacedata" ); ignorelines = rep.getJobEntryAttributeString( id_jobentry, "ignorelines" ); listattribut = rep.getJobEntryAttributeString( id_jobentry, "listattribut" ); localinfile = rep.getJobEntryAttributeBoolean( id_jobentry, "localinfile" ); prorityvalue = (int) rep.getJobEntryAttributeInteger( id_jobentry, "prorityvalue" ); addfiletoresult = rep.getJobEntryAttributeBoolean( id_jobentry, "addfiletoresult" ); connection = rep.loadDatabaseMetaFromJobEntryAttribute( id_jobentry, "connection", "id_database", databases ); } catch ( KettleDatabaseException dbe ) { throw new KettleException( "Unable to load job entry of type 'Mysql bulk load' from the repository for id_jobentry=" + id_jobentry, dbe ); } }
Example 2
Source File: JobEntrySpecial.java From pentaho-kettle with Apache License 2.0 | 6 votes |
public void loadRep( Repository rep, IMetaStore metaStore, ObjectId id_jobentry, List<DatabaseMeta> databases, List<SlaveServer> slaveServers ) throws KettleException { try { start = rep.getJobEntryAttributeBoolean( id_jobentry, "start" ); dummy = rep.getJobEntryAttributeBoolean( id_jobentry, "dummy" ); repeat = rep.getJobEntryAttributeBoolean( id_jobentry, "repeat" ); schedulerType = (int) rep.getJobEntryAttributeInteger( id_jobentry, "schedulerType" ); intervalSeconds = (int) rep.getJobEntryAttributeInteger( id_jobentry, "intervalSeconds" ); intervalMinutes = (int) rep.getJobEntryAttributeInteger( id_jobentry, "intervalMinutes" ); hour = (int) rep.getJobEntryAttributeInteger( id_jobentry, "hour" ); minutes = (int) rep.getJobEntryAttributeInteger( id_jobentry, "minutes" ); weekDay = (int) rep.getJobEntryAttributeInteger( id_jobentry, "weekDay" ); dayOfMonth = (int) rep.getJobEntryAttributeInteger( id_jobentry, "dayOfMonth" ); } catch ( KettleDatabaseException dbe ) { throw new KettleException( "Unable to load job entry of type 'special' from the repository for id_jobentry=" + id_jobentry, dbe ); } }
Example 3
Source File: JobEntryZipFile.java From pentaho-kettle with Apache License 2.0 | 6 votes |
public void loadRep( Repository rep, IMetaStore metaStore, ObjectId id_jobentry, List<DatabaseMeta> databases, List<SlaveServer> slaveServers ) throws KettleException { try { zipFilename = rep.getJobEntryAttributeString( id_jobentry, "zipfilename" ); compressionRate = (int) rep.getJobEntryAttributeInteger( id_jobentry, "compressionrate" ); ifZipFileExists = (int) rep.getJobEntryAttributeInteger( id_jobentry, "ifzipfileexists" ); afterZip = (int) rep.getJobEntryAttributeInteger( id_jobentry, "afterzip" ); wildCard = rep.getJobEntryAttributeString( id_jobentry, "wildcard" ); excludeWildCard = rep.getJobEntryAttributeString( id_jobentry, "wildcardexclude" ); sourceDirectory = rep.getJobEntryAttributeString( id_jobentry, "sourcedirectory" ); movetoDirectory = rep.getJobEntryAttributeString( id_jobentry, "movetodirectory" ); addFileToResult = rep.getJobEntryAttributeBoolean( id_jobentry, "addfiletoresult" ); isFromPrevious = rep.getJobEntryAttributeBoolean( id_jobentry, "isfromprevious" ); createParentFolder = rep.getJobEntryAttributeBoolean( id_jobentry, "createparentfolder" ); addDate = rep.getJobEntryAttributeBoolean( id_jobentry, "adddate" ); addTime = rep.getJobEntryAttributeBoolean( id_jobentry, "addtime" ); specifyFormat = rep.getJobEntryAttributeBoolean( id_jobentry, "SpecifyFormat" ); dateTimeFormat = rep.getJobEntryAttributeString( id_jobentry, "date_time_format" ); createMoveToDirectory = rep.getJobEntryAttributeBoolean( id_jobentry, "createMoveToDirectory" ); includingSubFolders = rep.getJobEntryAttributeBoolean( id_jobentry, "include_subfolders" ); storedSourcePathDepth = rep.getJobEntryAttributeString( id_jobentry, "stored_source_path_depth" ); } catch ( KettleException dbe ) { throw new KettleException( BaseMessages.getString( PKG, "JobEntryZipFile.UnableLoadJobEntryRep", "" + id_jobentry ), dbe ); } }
Example 4
Source File: JobEntryUnZip.java From pentaho-kettle with Apache License 2.0 | 5 votes |
public void loadRep( Repository rep, IMetaStore metaStore, ObjectId id_jobentry, List<DatabaseMeta> databases, List<SlaveServer> slaveServers ) throws KettleException { try { zipFilename = rep.getJobEntryAttributeString( id_jobentry, "zipfilename" ); afterunzip = (int) rep.getJobEntryAttributeInteger( id_jobentry, "afterunzip" ); wildcard = rep.getJobEntryAttributeString( id_jobentry, "wildcard" ); wildcardexclude = rep.getJobEntryAttributeString( id_jobentry, "wildcardexclude" ); sourcedirectory = rep.getJobEntryAttributeString( id_jobentry, "targetdirectory" ); movetodirectory = rep.getJobEntryAttributeString( id_jobentry, "movetodirectory" ); addfiletoresult = rep.getJobEntryAttributeBoolean( id_jobentry, "addfiletoresult" ); isfromprevious = rep.getJobEntryAttributeBoolean( id_jobentry, "isfromprevious" ); adddate = rep.getJobEntryAttributeBoolean( id_jobentry, "adddate" ); addtime = rep.getJobEntryAttributeBoolean( id_jobentry, "addtime" ); addOriginalTimestamp = rep.getJobEntryAttributeBoolean( id_jobentry, "addOriginalTimestamp" ); SpecifyFormat = rep.getJobEntryAttributeBoolean( id_jobentry, "SpecifyFormat" ); date_time_format = rep.getJobEntryAttributeString( id_jobentry, "date_time_format" ); rootzip = rep.getJobEntryAttributeBoolean( id_jobentry, "rootzip" ); createfolder = rep.getJobEntryAttributeBoolean( id_jobentry, "createfolder" ); nr_limit = rep.getJobEntryAttributeString( id_jobentry, "nr_limit" ); wildcardSource = rep.getJobEntryAttributeString( id_jobentry, "wildcardSource" ); success_condition = rep.getJobEntryAttributeString( id_jobentry, "success_condition" ); if ( Utils.isEmpty( success_condition ) ) { success_condition = SUCCESS_IF_NO_ERRORS; } iffileexist = getIfFileExistsInt( rep.getJobEntryAttributeString( id_jobentry, "iffileexists" ) ); createMoveToDirectory = rep.getJobEntryAttributeBoolean( id_jobentry, "create_move_to_directory" ); setOriginalModificationDate = rep.getJobEntryAttributeBoolean( id_jobentry, "setOriginalModificationDate" ); } catch ( KettleException dbe ) { throw new KettleException( "Unable to load job entry of type 'unzip' from the repository for id_jobentry=" + id_jobentry, dbe ); } }
Example 5
Source File: JobEntryMysqlBulkFile.java From pentaho-kettle with Apache License 2.0 | 5 votes |
public void loadRep( Repository rep, IMetaStore metaStore, ObjectId id_jobentry, List<DatabaseMeta> databases, List<SlaveServer> slaveServers ) throws KettleException { try { schemaname = rep.getJobEntryAttributeString( id_jobentry, "schemaname" ); tablename = rep.getJobEntryAttributeString( id_jobentry, "tablename" ); filename = rep.getJobEntryAttributeString( id_jobentry, "filename" ); separator = rep.getJobEntryAttributeString( id_jobentry, "separator" ); enclosed = rep.getJobEntryAttributeString( id_jobentry, "enclosed" ); lineterminated = rep.getJobEntryAttributeString( id_jobentry, "lineterminated" ); limitlines = rep.getJobEntryAttributeString( id_jobentry, "limitlines" ); listcolumn = rep.getJobEntryAttributeString( id_jobentry, "listcolumn" ); highpriority = rep.getJobEntryAttributeBoolean( id_jobentry, "highpriority" ); optionenclosed = rep.getJobEntryAttributeBoolean( id_jobentry, "optionenclosed" ); outdumpvalue = (int) rep.getJobEntryAttributeInteger( id_jobentry, "outdumpvalue" ); iffileexists = (int) rep.getJobEntryAttributeInteger( id_jobentry, "iffileexists" ); addfiletoresult = rep.getJobEntryAttributeBoolean( id_jobentry, "addfiletoresult" ); connection = rep.loadDatabaseMetaFromJobEntryAttribute( id_jobentry, "connection", "id_database", databases ); } catch ( KettleDatabaseException dbe ) { throw new KettleException( "Unable to load job entry of type 'table exists' from the repository for id_jobentry=" + id_jobentry, dbe ); } }
Example 6
Source File: JobEntryFTPSPUT.java From pentaho-kettle with Apache License 2.0 | 5 votes |
public void loadRep( Repository rep, IMetaStore metaStore, ObjectId id_jobentry, List<DatabaseMeta> databases, List<SlaveServer> slaveServers ) throws KettleException { try { serverName = rep.getJobEntryAttributeString( id_jobentry, "servername" ); serverPort = rep.getJobEntryAttributeString( id_jobentry, "serverport" ); userName = rep.getJobEntryAttributeString( id_jobentry, "username" ); password = Encr.decryptPasswordOptionallyEncrypted( rep.getJobEntryAttributeString( id_jobentry, "password" ) ); remoteDirectory = rep.getJobEntryAttributeString( id_jobentry, "remoteDirectory" ); localDirectory = rep.getJobEntryAttributeString( id_jobentry, "localDirectory" ); wildcard = rep.getJobEntryAttributeString( id_jobentry, "wildcard" ); binaryMode = rep.getJobEntryAttributeBoolean( id_jobentry, "binary" ); timeout = (int) rep.getJobEntryAttributeInteger( id_jobentry, "timeout" ); remove = rep.getJobEntryAttributeBoolean( id_jobentry, "remove" ); onlyPuttingNewFiles = rep.getJobEntryAttributeBoolean( id_jobentry, "only_new" ); activeConnection = rep.getJobEntryAttributeBoolean( id_jobentry, "active" ); proxyHost = rep.getJobEntryAttributeString( id_jobentry, "proxy_host" ); proxyPort = rep.getJobEntryAttributeString( id_jobentry, "proxy_port" ); proxyUsername = rep.getJobEntryAttributeString( id_jobentry, "proxy_username" ); proxyPassword = rep.getJobEntryAttributeString( id_jobentry, "proxy_password" ); connectionType = FTPSConnection.getConnectionTypeByCode( Const.NVL( rep.getJobEntryAttributeString( id_jobentry, "connection_type" ), "" ) ); } catch ( KettleException dbe ) { throw new KettleException( BaseMessages.getString( PKG, "JobFTPSPUT.UnableToLoadFromRepo", String .valueOf( id_jobentry ) ), dbe ); } }
Example 7
Source File: JobEntryDelay.java From pentaho-kettle with Apache License 2.0 | 5 votes |
@Override public void loadRep( Repository rep, IMetaStore metaStore, ObjectId id_jobentry, List<DatabaseMeta> databases, List<SlaveServer> slaveServers ) throws KettleException { try { maximumTimeout = rep.getJobEntryAttributeString( id_jobentry, "maximumTimeout" ); scaleTime = (int) rep.getJobEntryAttributeInteger( id_jobentry, "scaletime" ); } catch ( KettleDatabaseException dbe ) { throw new KettleException( BaseMessages.getString( PKG, "JobEntryDelay.UnableToLoadFromRepo.Label" ) + id_jobentry, dbe ); } }
Example 8
Source File: JobEntryXSLT.java From pentaho-kettle with Apache License 2.0 | 5 votes |
public void loadRep( Repository rep, IMetaStore metaStore, ObjectId id_jobentry, List<DatabaseMeta> databases, List<SlaveServer> slaveServers ) throws KettleException { try { xmlfilename = rep.getJobEntryAttributeString( id_jobentry, "xmlfilename" ); xslfilename = rep.getJobEntryAttributeString( id_jobentry, "xslfilename" ); outputfilename = rep.getJobEntryAttributeString( id_jobentry, "outputfilename" ); iffileexists = (int) rep.getJobEntryAttributeInteger( id_jobentry, "iffileexists" ); addfiletoresult = rep.getJobEntryAttributeBoolean( id_jobentry, "addfiletoresult" ); filenamesfromprevious = rep.getJobEntryAttributeBoolean( id_jobentry, "filenamesfromprevious" ); xsltfactory = rep.getJobEntryAttributeString( id_jobentry, "xsltfactory" ); if ( xsltfactory == null ) { xsltfactory = FACTORY_JAXP; } int nrparams = rep.countNrJobEntryAttributes( id_jobentry, "param_name" ); int nroutputprops = rep.countNrJobEntryAttributes( id_jobentry, "output_property_name" ); allocate( nrparams, nroutputprops ); for ( int i = 0; i < nrparams; i++ ) { parameterField[i] = rep.getJobEntryAttributeString( id_jobentry, i, "param_field" ); parameterName[i] = rep.getJobEntryAttributeString( id_jobentry, i, "param_name" ); } for ( int i = 0; i < nroutputprops; i++ ) { outputPropertyName[i] = rep.getJobEntryAttributeString( id_jobentry, i, "output_property_name" ); outputPropertyValue[i] = rep.getJobEntryAttributeString( id_jobentry, i, "output_property_value" ); } } catch ( KettleException dbe ) { throw new KettleException( "Unable to load job entry of type 'xslt' from the repository for id_jobentry=" + id_jobentry, dbe ); } }
Example 9
Source File: JobEntrySSH2GET.java From pentaho-kettle with Apache License 2.0 | 5 votes |
@Override public void loadRep( Repository rep, IMetaStore metaStore, ObjectId id_jobentry, List<DatabaseMeta> databases, List<SlaveServer> slaveServers ) throws KettleException { try { serverName = rep.getJobEntryAttributeString( id_jobentry, "servername" ); userName = rep.getJobEntryAttributeString( id_jobentry, "username" ); password = Encr.decryptPasswordOptionallyEncrypted( rep.getJobEntryAttributeString( id_jobentry, "password" ) ); serverPort = rep.getJobEntryAttributeString( id_jobentry, "serverport" ); ftpDirectory = rep.getJobEntryAttributeString( id_jobentry, "ftpdirectory" ); localDirectory = rep.getJobEntryAttributeString( id_jobentry, "localdirectory" ); wildcard = rep.getJobEntryAttributeString( id_jobentry, "wildcard" ); onlyGettingNewFiles = rep.getJobEntryAttributeBoolean( id_jobentry, "only_new" ); usehttpproxy = rep.getJobEntryAttributeBoolean( id_jobentry, "usehttpproxy" ); httpProxyHost = rep.getJobEntryAttributeString( id_jobentry, "httpproxyhost" ); httpproxyport = rep.getJobEntryAttributeString( id_jobentry, "httpproxyport" ); httpproxyusername = rep.getJobEntryAttributeString( id_jobentry, "httpproxyusername" ); httpProxyPassword = rep.getJobEntryAttributeString( id_jobentry, "httpproxypassword" ); publicpublickey = rep.getJobEntryAttributeBoolean( id_jobentry, "publicpublickey" ); keyFilename = rep.getJobEntryAttributeString( id_jobentry, "keyfilename" ); keyFilePass = rep.getJobEntryAttributeString( id_jobentry, "keyfilepass" ); useBasicAuthentication = rep.getJobEntryAttributeBoolean( id_jobentry, "usebasicauthentication" ); afterFtpPut = rep.getJobEntryAttributeString( id_jobentry, "afterftpput" ); destinationfolder = rep.getJobEntryAttributeString( id_jobentry, "destinationfolder" ); createdestinationfolder = rep.getJobEntryAttributeBoolean( id_jobentry, "createdestinationfolder" ); cachehostkey = rep.getJobEntryAttributeBoolean( id_jobentry, "cachehostkey" ); timeout = (int) rep.getJobEntryAttributeInteger( id_jobentry, "timeout" ); createtargetfolder = rep.getJobEntryAttributeBoolean( id_jobentry, "createtargetfolder" ); includeSubFolders = rep.getJobEntryAttributeBoolean( id_jobentry, "includeSubFolders" ); } catch ( KettleException dbe ) { throw new KettleException( BaseMessages.getString( PKG, "JobSSH2GET.Log.UnableLoadRep", "" + id_jobentry, dbe.getMessage() ) ); } }
Example 10
Source File: JobEntrySSH2PUT.java From pentaho-kettle with Apache License 2.0 | 5 votes |
@Override public void loadRep( Repository rep, IMetaStore metaStore, ObjectId id_jobentry, List<DatabaseMeta> databases, List<SlaveServer> slaveServers ) throws KettleException { try { serverName = rep.getJobEntryAttributeString( id_jobentry, "servername" ); userName = rep.getJobEntryAttributeString( id_jobentry, "username" ); password = Encr.decryptPasswordOptionallyEncrypted( rep.getJobEntryAttributeString( id_jobentry, "password" ) ); serverPort = rep.getJobEntryAttributeString( id_jobentry, "serverport" ); ftpDirectory = rep.getJobEntryAttributeString( id_jobentry, "ftpdirectory" ); localDirectory = rep.getJobEntryAttributeString( id_jobentry, "localdirectory" ); wildcard = rep.getJobEntryAttributeString( id_jobentry, "wildcard" ); onlyGettingNewFiles = rep.getJobEntryAttributeBoolean( id_jobentry, "only_new" ); usehttpproxy = rep.getJobEntryAttributeBoolean( id_jobentry, "usehttpproxy" ); httpproxyhost = rep.getJobEntryAttributeString( id_jobentry, "httpproxyhost" ); httpproxyusername = rep.getJobEntryAttributeString( id_jobentry, "httpproxyusername" ); httpProxyPassword = rep.getJobEntryAttributeString( id_jobentry, "httpproxypassword" ); publicpublickey = rep.getJobEntryAttributeBoolean( id_jobentry, "publicpublickey" ); keyFilename = rep.getJobEntryAttributeString( id_jobentry, "keyfilename" ); keyFilePass = rep.getJobEntryAttributeString( id_jobentry, "keyfilepass" ); useBasicAuthentication = rep.getJobEntryAttributeBoolean( id_jobentry, "usebasicauthentication" ); createRemoteFolder = rep.getJobEntryAttributeBoolean( id_jobentry, "createremotefolder" ); afterFtpPut = rep.getJobEntryAttributeString( id_jobentry, "afterftpput" ); destinationfolder = rep.getJobEntryAttributeString( id_jobentry, "destinationfolder" ); createDestinationFolder = rep.getJobEntryAttributeBoolean( id_jobentry, "createdestinationfolder" ); cachehostkey = rep.getJobEntryAttributeBoolean( id_jobentry, "cachehostkey" ); timeout = (int) rep.getJobEntryAttributeInteger( id_jobentry, "timeout" ); } catch ( KettleException dbe ) { throw new KettleException( BaseMessages.getString( PKG, "JobSSH2PUT.Log.UnableLoadRep", "" + id_jobentry, dbe.getMessage() ) ); } }
Example 11
Source File: JobEntryGetPOP.java From pentaho-kettle with Apache License 2.0 | 4 votes |
public void loadRep( Repository rep, IMetaStore metaStore, ObjectId id_jobentry, List<DatabaseMeta> databases, List<SlaveServer> slaveServers ) throws KettleException { try { servername = rep.getJobEntryAttributeString( id_jobentry, "servername" ); username = rep.getJobEntryAttributeString( id_jobentry, "username" ); password = Encr.decryptPasswordOptionallyEncrypted( rep.getJobEntryAttributeString( id_jobentry, "password" ) ); usessl = rep.getJobEntryAttributeBoolean( id_jobentry, "usessl" ); sslport = rep.getJobEntryAttributeString( id_jobentry, "sslport" ); // backward compatible. outputdirectory = rep.getJobEntryAttributeString( id_jobentry, "outputdirectory" ); filenamepattern = rep.getJobEntryAttributeString( id_jobentry, "filenamepattern" ); if ( Utils.isEmpty( filenamepattern ) ) { filenamepattern = DEFAULT_FILE_NAME_PATTERN; } retrievemails = (int) rep.getJobEntryAttributeInteger( id_jobentry, "retrievemails" ); firstmails = rep.getJobEntryAttributeString( id_jobentry, "firstmails" ); delete = rep.getJobEntryAttributeBoolean( id_jobentry, "delete" ); protocol = Const.NVL( rep.getJobEntryAttributeString( id_jobentry, "protocol" ), MailConnectionMeta.PROTOCOL_STRING_POP3 ); String sv = rep.getJobEntryAttributeString( id_jobentry, "savemessage" ); if ( Utils.isEmpty( sv ) ) { savemessage = true; } else { savemessage = rep.getJobEntryAttributeBoolean( id_jobentry, "savemessage" ); } String sa = rep.getJobEntryAttributeString( id_jobentry, "saveattachment" ); if ( Utils.isEmpty( sa ) ) { saveattachment = true; } else { saveattachment = rep.getJobEntryAttributeBoolean( id_jobentry, "saveattachment" ); } usedifferentfolderforattachment = rep.getJobEntryAttributeBoolean( id_jobentry, "usedifferentfolderforattachment" ); attachmentfolder = rep.getJobEntryAttributeString( id_jobentry, "attachmentfolder" ); attachmentwildcard = rep.getJobEntryAttributeString( id_jobentry, "attachmentwildcard" ); valueimaplist = MailConnectionMeta.getValueListImapListByCode( Const.NVL( rep.getJobEntryAttributeString( id_jobentry, "valueimaplist" ), "" ) ); imapfirstmails = rep.getJobEntryAttributeString( id_jobentry, "imapfirstmails" ); imapfolder = rep.getJobEntryAttributeString( id_jobentry, "imapfolder" ); // search term senderSearch = rep.getJobEntryAttributeString( id_jobentry, "sendersearch" ); notTermSenderSearch = rep.getJobEntryAttributeBoolean( id_jobentry, "nottermsendersearch" ); receipientSearch = rep.getJobEntryAttributeString( id_jobentry, "receipientsearch" ); notTermReceipientSearch = rep.getJobEntryAttributeBoolean( id_jobentry, "nottermreceipientsearch" ); subjectSearch = rep.getJobEntryAttributeString( id_jobentry, "subjectsearch" ); notTermSubjectSearch = rep.getJobEntryAttributeBoolean( id_jobentry, "nottermsubjectsearch" ); bodySearch = rep.getJobEntryAttributeString( id_jobentry, "bodysearch" ); notTermBodySearch = rep.getJobEntryAttributeBoolean( id_jobentry, "nottermbodysearch" ); conditionReceivedDate = MailConnectionMeta.getConditionByCode( Const.NVL( rep.getJobEntryAttributeString( id_jobentry, "conditionreceiveddate" ), "" ) ); notTermReceivedDateSearch = rep.getJobEntryAttributeBoolean( id_jobentry, "nottermreceiveddatesearch" ); receivedDate1 = rep.getJobEntryAttributeString( id_jobentry, "receiveddate1" ); receivedDate2 = rep.getJobEntryAttributeString( id_jobentry, "receiveddate2" ); actiontype = MailConnectionMeta.getActionTypeByCode( Const.NVL( rep.getJobEntryAttributeString( id_jobentry, "actiontype" ), "" ) ); moveToIMAPFolder = rep.getJobEntryAttributeString( id_jobentry, "movetoimapfolder" ); createmovetofolder = rep.getJobEntryAttributeBoolean( id_jobentry, "createmovetofolder" ); createlocalfolder = rep.getJobEntryAttributeBoolean( id_jobentry, "createlocalfolder" ); aftergetimap = MailConnectionMeta.getAfterGetIMAPByCode( Const.NVL( rep.getJobEntryAttributeString( id_jobentry, "aftergetimap" ), "" ) ); includesubfolders = rep.getJobEntryAttributeBoolean( id_jobentry, "includesubfolders" ); useproxy = rep.getJobEntryAttributeBoolean( id_jobentry, "useproxy" ); proxyusername = rep.getJobEntryAttributeString( id_jobentry, "proxyusername" ); } catch ( KettleException dbe ) { throw new KettleException( "Unable to load job entry of type 'get pop' exists from the repository for id_jobentry=" + id_jobentry, dbe ); } }
Example 12
Source File: JobEntryFTP.java From pentaho-kettle with Apache License 2.0 | 4 votes |
public void loadRep( Repository rep, IMetaStore metaStore, ObjectId id_jobentry, List<DatabaseMeta> databases, List<SlaveServer> slaveServers ) throws KettleException { try { port = rep.getJobEntryAttributeString( id_jobentry, "port" ); serverName = rep.getJobEntryAttributeString( id_jobentry, "servername" ); userName = rep.getJobEntryAttributeString( id_jobentry, "username" ); password = Encr.decryptPasswordOptionallyEncrypted( rep.getJobEntryAttributeString( id_jobentry, "password" ) ); ftpDirectory = rep.getJobEntryAttributeString( id_jobentry, "ftpdirectory" ); targetDirectory = rep.getJobEntryAttributeString( id_jobentry, "targetdirectory" ); wildcard = rep.getJobEntryAttributeString( id_jobentry, "wildcard" ); binaryMode = rep.getJobEntryAttributeBoolean( id_jobentry, "binary" ); timeout = (int) rep.getJobEntryAttributeInteger( id_jobentry, "timeout" ); remove = rep.getJobEntryAttributeBoolean( id_jobentry, "remove" ); onlyGettingNewFiles = rep.getJobEntryAttributeBoolean( id_jobentry, "only_new" ); activeConnection = rep.getJobEntryAttributeBoolean( id_jobentry, "active" ); controlEncoding = rep.getJobEntryAttributeString( id_jobentry, "control_encoding" ); if ( controlEncoding == null ) { // if we couldn't retrieve an encoding, assume it's an old instance and // put in the the encoding used before v 2.4.0 controlEncoding = LEGACY_CONTROL_ENCODING; } movefiles = rep.getJobEntryAttributeBoolean( id_jobentry, "movefiles" ); movetodirectory = rep.getJobEntryAttributeString( id_jobentry, "movetodirectory" ); adddate = rep.getJobEntryAttributeBoolean( id_jobentry, "adddate" ); addtime = rep.getJobEntryAttributeBoolean( id_jobentry, "addtime" ); SpecifyFormat = rep.getJobEntryAttributeBoolean( id_jobentry, "SpecifyFormat" ); date_time_format = rep.getJobEntryAttributeString( id_jobentry, "date_time_format" ); AddDateBeforeExtension = rep.getJobEntryAttributeBoolean( id_jobentry, "AddDateBeforeExtension" ); String addToResult = rep.getJobEntryAttributeString( id_jobentry, "isaddresult" ); if ( Utils.isEmpty( addToResult ) ) { isaddresult = true; } else { isaddresult = rep.getJobEntryAttributeBoolean( id_jobentry, "isaddresult" ); } createmovefolder = rep.getJobEntryAttributeBoolean( id_jobentry, "createmovefolder" ); proxyHost = rep.getJobEntryAttributeString( id_jobentry, "proxy_host" ); proxyPort = rep.getJobEntryAttributeString( id_jobentry, "proxy_port" ); proxyUsername = rep.getJobEntryAttributeString( id_jobentry, "proxy_username" ); proxyPassword = Encr .decryptPasswordOptionallyEncrypted( rep.getJobEntryAttributeString( id_jobentry, "proxy_password" ) ); socksProxyHost = rep.getJobEntryAttributeString( id_jobentry, "socksproxy_host" ); socksProxyPort = rep.getJobEntryAttributeString( id_jobentry, "socksproxy_port" ); socksProxyUsername = rep.getJobEntryAttributeString( id_jobentry, "socksproxy_username" ); socksProxyPassword = Encr.decryptPasswordOptionallyEncrypted( rep.getJobEntryAttributeString( id_jobentry, "socksproxy_password" ) ); SifFileExists = rep.getJobEntryAttributeString( id_jobentry, "ifFileExists" ); if ( Utils.isEmpty( SifFileExists ) ) { ifFileExists = ifFileExistsSkip; } else { if ( SifFileExists.equals( SifFileExistsCreateUniq ) ) { ifFileExists = ifFileExistsCreateUniq; } else if ( SifFileExists.equals( SifFileExistsFail ) ) { ifFileExists = ifFileExistsFail; } else { ifFileExists = ifFileExistsSkip; } } nr_limit = rep.getJobEntryAttributeString( id_jobentry, "nr_limit" ); success_condition = Const.NVL( rep.getJobEntryAttributeString( id_jobentry, "success_condition" ), SUCCESS_IF_NO_ERRORS ); } catch ( KettleException dbe ) { throw new KettleException( "Unable to load job entry of type 'ftp' from the repository for id_jobentry=" + id_jobentry, dbe ); } }
Example 13
Source File: JobEntryFTPSGet.java From pentaho-kettle with Apache License 2.0 | 4 votes |
public void loadRep( Repository rep, IMetaStore metaStore, ObjectId id_jobentry, List<DatabaseMeta> databases, List<SlaveServer> slaveServers ) throws KettleException { try { port = rep.getJobEntryAttributeString( id_jobentry, "port" ); serverName = rep.getJobEntryAttributeString( id_jobentry, "servername" ); userName = rep.getJobEntryAttributeString( id_jobentry, "username" ); password = Encr.decryptPasswordOptionallyEncrypted( rep.getJobEntryAttributeString( id_jobentry, "password" ) ); FTPSDirectory = rep.getJobEntryAttributeString( id_jobentry, "FTPSdirectory" ); targetDirectory = rep.getJobEntryAttributeString( id_jobentry, "targetdirectory" ); wildcard = rep.getJobEntryAttributeString( id_jobentry, "wildcard" ); binaryMode = rep.getJobEntryAttributeBoolean( id_jobentry, "binary" ); timeout = (int) rep.getJobEntryAttributeInteger( id_jobentry, "timeout" ); remove = rep.getJobEntryAttributeBoolean( id_jobentry, "remove" ); onlyGettingNewFiles = rep.getJobEntryAttributeBoolean( id_jobentry, "only_new" ); activeConnection = rep.getJobEntryAttributeBoolean( id_jobentry, "active" ); movefiles = rep.getJobEntryAttributeBoolean( id_jobentry, "movefiles" ); movetodirectory = rep.getJobEntryAttributeString( id_jobentry, "movetodirectory" ); adddate = rep.getJobEntryAttributeBoolean( id_jobentry, "adddate" ); addtime = rep.getJobEntryAttributeBoolean( id_jobentry, "adddate" ); SpecifyFormat = rep.getJobEntryAttributeBoolean( id_jobentry, "SpecifyFormat" ); date_time_format = rep.getJobEntryAttributeString( id_jobentry, "date_time_format" ); AddDateBeforeExtension = rep.getJobEntryAttributeBoolean( id_jobentry, "AddDateBeforeExtension" ); String addToResult = rep.getJobEntryAttributeString( id_jobentry, "isaddresult" ); if ( Utils.isEmpty( addToResult ) ) { isaddresult = true; } else { isaddresult = rep.getJobEntryAttributeBoolean( id_jobentry, "isaddresult" ); } createmovefolder = rep.getJobEntryAttributeBoolean( id_jobentry, "createmovefolder" ); proxyHost = rep.getJobEntryAttributeString( id_jobentry, "proxy_host" ); proxyPort = rep.getJobEntryAttributeString( id_jobentry, "proxy_port" ); proxyUsername = rep.getJobEntryAttributeString( id_jobentry, "proxy_username" ); proxyPassword = Encr .decryptPasswordOptionallyEncrypted( rep.getJobEntryAttributeString( id_jobentry, "proxy_password" ) ); ifFileExists = getFileExistsIndex( rep.getJobEntryAttributeString( id_jobentry, "ifFileExists" ) ); nr_limit = rep.getJobEntryAttributeString( id_jobentry, "nr_limit" ); success_condition = Const.NVL( rep.getJobEntryAttributeString( id_jobentry, "success_condition" ), SUCCESS_IF_NO_ERRORS ); connectionType = FTPSConnection.getConnectionTypeByCode( Const.NVL( rep.getJobEntryAttributeString( id_jobentry, "connection_type" ), "" ) ); } catch ( KettleException dbe ) { throw new KettleException( "Unable to load job entry of type 'FTPS' from the repository for id_jobentry=" + id_jobentry, dbe ); } }
Example 14
Source File: JobEntryFTPDelete.java From pentaho-kettle with Apache License 2.0 | 4 votes |
public void loadRep( Repository rep, IMetaStore metaStore, ObjectId id_jobentry, List<DatabaseMeta> databases, List<SlaveServer> slaveServers ) throws KettleException { try { protocol = rep.getJobEntryAttributeString( id_jobentry, "protocol" ); port = rep.getJobEntryAttributeString( id_jobentry, "port" ); serverName = rep.getJobEntryAttributeString( id_jobentry, "servername" ); userName = rep.getJobEntryAttributeString( id_jobentry, "username" ); password = Encr.decryptPasswordOptionallyEncrypted( rep.getJobEntryAttributeString( id_jobentry, "password" ) ); ftpDirectory = rep.getJobEntryAttributeString( id_jobentry, "ftpdirectory" ); wildcard = rep.getJobEntryAttributeString( id_jobentry, "wildcard" ); timeout = (int) rep.getJobEntryAttributeInteger( id_jobentry, "timeout" ); activeConnection = rep.getJobEntryAttributeBoolean( id_jobentry, "active" ); copyprevious = rep.getJobEntryAttributeBoolean( id_jobentry, "copyprevious" ); useproxy = rep.getJobEntryAttributeBoolean( id_jobentry, "useproxy" ); proxyHost = rep.getJobEntryAttributeString( id_jobentry, "proxy_host" ); proxyPort = rep.getJobEntryAttributeString( id_jobentry, "proxy_port" ); proxyUsername = rep.getJobEntryAttributeString( id_jobentry, "proxy_username" ); proxyPassword = Encr .decryptPasswordOptionallyEncrypted( rep.getJobEntryAttributeString( id_jobentry, "proxy_password" ) ); publicpublickey = rep.getJobEntryAttributeBoolean( id_jobentry, "publicpublickey" ); keyFilename = rep.getJobEntryAttributeString( id_jobentry, "keyfilename" ); keyFilePass = rep.getJobEntryAttributeString( id_jobentry, "keyfilepass" ); nr_limit_success = rep.getJobEntryAttributeString( id_jobentry, "nr_limit_success" ); success_condition = rep.getJobEntryAttributeString( id_jobentry, "success_condition" ); FTPSConnectionType = FTPSConnection.getConnectionTypeByCode( Const.NVL( rep.getJobEntryAttributeString( id_jobentry, "ftps_connection_type" ), "" ) ); socksProxyHost = rep.getJobEntryAttributeString( id_jobentry, "socksproxy_host" ); socksProxyPort = rep.getJobEntryAttributeString( id_jobentry, "socksproxy_port" ); socksProxyUsername = rep.getJobEntryAttributeString( id_jobentry, "socksproxy_username" ); socksProxyPassword = Encr.decryptPasswordOptionallyEncrypted( rep.getJobEntryAttributeString( id_jobentry, "socksproxy_password" ) ); } catch ( KettleException dbe ) { throw new KettleException( "Unable to load job entry of type 'ftp' from the repository for id_jobentry=" + id_jobentry, dbe ); } }
Example 15
Source File: JobEntryFTPPUT.java From pentaho-kettle with Apache License 2.0 | 4 votes |
public void loadRep( Repository rep, IMetaStore metaStore, ObjectId id_jobentry, List<DatabaseMeta> databases, List<SlaveServer> slaveServers ) throws KettleException { try { serverName = rep.getJobEntryAttributeString( id_jobentry, "servername" ); serverPort = rep.getJobEntryAttributeString( id_jobentry, "serverport" ); userName = rep.getJobEntryAttributeString( id_jobentry, "username" ); password = Encr.decryptPasswordOptionallyEncrypted( rep.getJobEntryAttributeString( id_jobentry, "password" ) ); remoteDirectory = rep.getJobEntryAttributeString( id_jobentry, "remoteDirectory" ); localDirectory = rep.getJobEntryAttributeString( id_jobentry, "localDirectory" ); wildcard = rep.getJobEntryAttributeString( id_jobentry, "wildcard" ); binaryMode = rep.getJobEntryAttributeBoolean( id_jobentry, "binary" ); timeout = (int) rep.getJobEntryAttributeInteger( id_jobentry, "timeout" ); remove = rep.getJobEntryAttributeBoolean( id_jobentry, "remove" ); onlyPuttingNewFiles = rep.getJobEntryAttributeBoolean( id_jobentry, "only_new" ); activeConnection = rep.getJobEntryAttributeBoolean( id_jobentry, "active" ); controlEncoding = rep.getJobEntryAttributeString( id_jobentry, "control_encoding" ); if ( controlEncoding == null ) { // if we couldn't retrieve an encoding, assume it's an old instance and // put in the the encoding used before v 2.4.0 controlEncoding = LEGACY_CONTROL_ENCODING; } proxyHost = rep.getJobEntryAttributeString( id_jobentry, "proxy_host" ); proxyPort = rep.getJobEntryAttributeString( id_jobentry, "proxy_port" ); proxyUsername = rep.getJobEntryAttributeString( id_jobentry, "proxy_username" ); proxyPassword = Encr .decryptPasswordOptionallyEncrypted( rep.getJobEntryAttributeString( id_jobentry, "proxy_password" ) ); socksProxyHost = rep.getJobEntryAttributeString( id_jobentry, "socksproxy_host" ); socksProxyPort = rep.getJobEntryAttributeString( id_jobentry, "socksproxy_port" ); socksProxyUsername = rep.getJobEntryAttributeString( id_jobentry, "socksproxy_username" ); socksProxyPassword = Encr.decryptPasswordOptionallyEncrypted( rep.getJobEntryAttributeString( id_jobentry, "socksproxy_password" ) ); } catch ( KettleException dbe ) { throw new KettleException( BaseMessages.getString( PKG, "JobFTPPUT.UnableToLoadFromRepo", String .valueOf( id_jobentry ) ), dbe ); } }
Example 16
Source File: JobEntryMssqlBulkLoad.java From pentaho-kettle with Apache License 2.0 | 4 votes |
public void loadRep( Repository rep, IMetaStore metaStore, ObjectId id_jobentry, List<DatabaseMeta> databases, List<SlaveServer> slaveServers ) throws KettleException { try { schemaname = rep.getJobEntryAttributeString( id_jobentry, "schemaname" ); tablename = rep.getJobEntryAttributeString( id_jobentry, "tablename" ); filename = rep.getJobEntryAttributeString( id_jobentry, "filename" ); datafiletype = rep.getJobEntryAttributeString( id_jobentry, "datafiletype" ); fieldterminator = rep.getJobEntryAttributeString( id_jobentry, "fieldterminator" ); lineterminated = rep.getJobEntryAttributeString( id_jobentry, "lineterminated" ); codepage = rep.getJobEntryAttributeString( id_jobentry, "codepage" ); specificcodepage = rep.getJobEntryAttributeString( id_jobentry, "specificcodepage" ); formatfilename = rep.getJobEntryAttributeString( id_jobentry, "formatfilename" ); firetriggers = rep.getJobEntryAttributeBoolean( id_jobentry, "firetriggers" ); checkconstraints = rep.getJobEntryAttributeBoolean( id_jobentry, "checkconstraints" ); keepnulls = rep.getJobEntryAttributeBoolean( id_jobentry, "keepnulls" ); keepidentity = rep.getJobEntryAttributeBoolean( id_jobentry, "keepidentity" ); tablock = rep.getJobEntryAttributeBoolean( id_jobentry, "tablock" ); startfile = (int) rep.getJobEntryAttributeInteger( id_jobentry, "startfile" ); endfile = (int) rep.getJobEntryAttributeInteger( id_jobentry, "endfile" ); orderby = rep.getJobEntryAttributeString( id_jobentry, "orderby" ); orderdirection = rep.getJobEntryAttributeString( id_jobentry, "orderdirection" ); errorfilename = rep.getJobEntryAttributeString( id_jobentry, "errorfilename" ); maxerrors = (int) rep.getJobEntryAttributeInteger( id_jobentry, "maxerrors" ); batchsize = (int) rep.getJobEntryAttributeInteger( id_jobentry, "batchsize" ); rowsperbatch = (int) rep.getJobEntryAttributeInteger( id_jobentry, "rowsperbatch" ); adddatetime = rep.getJobEntryAttributeBoolean( id_jobentry, "adddatetime" ); addfiletoresult = rep.getJobEntryAttributeBoolean( id_jobentry, "addfiletoresult" ); truncate = rep.getJobEntryAttributeBoolean( id_jobentry, "truncate" ); connection = rep.loadDatabaseMetaFromJobEntryAttribute( id_jobentry, "connection", "id_database", databases ); } catch ( KettleDatabaseException dbe ) { throw new KettleException( "Unable to load job entry of type 'MSsql bulk load' from the repository for id_jobentry=" + id_jobentry, dbe ); } }