Package com.uc4.api.objects
Class AttributesSAP
- java.lang.Object
-
- com.uc4.api.objects.AttributesSAP
-
- All Implemented Interfaces:
IHostAttributes
public class AttributesSAP extends java.lang.Object implements IHostAttributes
Host attributes for SAP Jobs.
-
-
Constructor Summary
Constructors Constructor Description AttributesSAP()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intfieldCount()Returns the number of fields in the host attributes.chargetDeliver()Returns the report send status:chargetJobClass()Returns the selected Job class.java.lang.StringgetJobName()Returns the Job name.java.lang.StringgetLanguage()Returns the selected language.chargetSapAddressType()Returns the type of address.java.lang.StringgetSapRecipent()Returns the receiver of a spool list.chargetStatusByMail()Returns the report status by mail:java.lang.StringgetTargetSystem()Returns the target system in SAP.booleanisAgentLog()booleanisApplicationLog()booleanisAsSoonAsPossible()Returnstrueif the SAP system should attempt to start the Job as soon as possible.booleanisBlindCopy()Returnstrueif the recipient gets a blind copy which cannot be read by anyone else.booleanisCopy()Returnstrueif the recipient should get a copy for information.booleanisDeleteJob()Returnstrueif the Job in SAP should be deleted after execution.booleanisExpress()Returnstrueif express sending is selected.booleanisImmediately()Returnstrueif the SAP system should attempt to start the Job immediately.booleanisJavaStatistics()booleanisNoDeleteOnError()Returnstrueif the Job should not be delete in SAP when an error occurs.booleanisNoForwarding()Returnstrueif the recipient is not allowed to forward the document to other users.booleanisNoPrint()Returnstrueif the attribute 'No Printing' is set.booleanisReportDatabase()Returns whether the Job report transfered to the Automation Engine database.booleanisReportErrorOnly()Returnstrueif the Job report will be stored only in case of Job interruption.booleanisReportFile()Returnstrueif the Job report is stored in the file system on the target system.booleanisSpoolDirectory()booleanisStatistics()booleanisStepList()booleanisTypeABAP()Returns true if the SAP type is of ABAPbooleanisTypeJava()Returns true if the SAP type is of JavabooleanisTypePI()Returns true if the SAP type is of PIbooleanisUseLoginObject()Returns true if login object is used instead of login information in connection object.voidload(com.uc4.util.XMLDocument doc, org.w3c.dom.Element hostAttr, ConnectionAttributes info)Loads the host attributes.java.lang.Stringname()Returns the host attributes name.OCVPanelocvValues()This method provides access to the SAP_JAVA Job definition values.voidsetAgentLog(boolean agentLog)Sets the Agent Process Log for this SAP Job.voidsetApplicationLog(boolean applicationLog)Sets the Agent Process Log for this SAP Job.voidsetAsSoonAsPossible()The system attempts to start the Job as soon as possible.voidsetBlindCopy(boolean blindCopy)Sets if the recipient gets a blind copy which cannot be read by anyone else.voidsetCopy(boolean copy)Sets if the recipient should get a copy for information.voidsetDeleteJob(boolean deleteJob)Sets if the Job in SAP should be deleted after execution.voidsetDeliver(char deliver)Sets the report send status:voidsetExpress(boolean express)Sets express sending.voidsetImmediately()The system attempts to start the Job immediately.voidsetJavaStatistics(boolean javaStatistics)Sets the Java Statistics Report for this SAP Job.voidsetJobClass(char jobClass)Specifies with which priority the Job in SAP should be handled.voidsetJobName(java.lang.String jobName)Sets the name for the Job in SAP.voidsetLanguage(java.lang.String language)Sets the language.voidsetNoDeleteOnError(boolean noDeleteOnError)If set the Job is not deleted in SAP when an error occurs.voidsetNoForwarding(boolean noForwarding)If set the recipient is not allowed to forward the document to other users.voidsetNoPrint(boolean noPrinting)Enables or disables the send attribute 'No Printing'.voidsetReportDatabase(boolean reportDatabase)Sets whether the Job report should be transfered to the database.voidsetReportErrorOnly(boolean reportErrorOnly)Sets whether the Job report should be stored only in case of Job interruption.voidsetReportFile(boolean reportFile)Sets whether the Job report should be stored in the file system on the target system.voidsetSapAddressType(char sapAddressType)Sets the type of address.voidsetSapRecipent(java.lang.String sapRecipent)Sets the receiver of a spool list.voidsetSpoolDirectory(boolean spoolDirectory)Sets the Spool Directory Log for this SAP Job.voidsetStatistics(boolean statistics)Enables or disables an additional report for the statistics of the SAP Job.voidsetStatusByMail(char statusByMail)Sets the report status by mail:voidsetStepList(boolean stepList)Enables or disables an additional report for the step list of the SAP Job.voidsetTargetSystem(java.lang.String targetSystem)Sets the target system in SAP.voidsetUseLoginObject(boolean useLoginObject)Set whether the Job will use the login object instead of login information in connection object.voidstore(com.uc4.util.XMLDocument doc, org.w3c.dom.Element objectElement, ConnectionAttributes info)Writes the host attributes back to theXMLDocument.
-
-
-
Method Detail
-
fieldCount
public int fieldCount()
Description copied from interface:IHostAttributesReturns the number of fields in the host attributes.- Specified by:
fieldCountin interfaceIHostAttributes- Returns:
- number of fields
-
load
public void load(com.uc4.util.XMLDocument doc, org.w3c.dom.Element hostAttr, ConnectionAttributes info)Description copied from interface:IHostAttributesLoads the host attributes.- Specified by:
loadin interfaceIHostAttributes- Parameters:
doc- XML Document containing the JobhostAttr- Element which contains host attributesinfo- Session details
-
ocvValues
public OCVPanel ocvValues()
This method provides access to the SAP_JAVA Job definition values.- Returns:
- Values or
nullif this Job is not an SAP_JAVA Job.
-
name
public java.lang.String name()
Description copied from interface:IHostAttributesReturns the host attributes name.- Specified by:
namein interfaceIHostAttributes- Returns:
- name
-
store
public void store(com.uc4.util.XMLDocument doc, org.w3c.dom.Element objectElement, ConnectionAttributes info)Description copied from interface:IHostAttributesWrites the host attributes back to theXMLDocument.- Specified by:
storein interfaceIHostAttributes- Parameters:
doc- DocumentobjectElement- ObjectElementinfo- Session details
-
isAgentLog
public boolean isAgentLog()
- Returns:
- True if the Agent Process Log should be transfered
-
setAgentLog
public void setAgentLog(boolean agentLog)
Sets the Agent Process Log for this SAP Job.- Parameters:
agentLog- true if the Log should be transfered
-
isApplicationLog
public boolean isApplicationLog()
- Returns:
- True if the SAP Application Log should be transfered as an additional report
-
setApplicationLog
public void setApplicationLog(boolean applicationLog)
Sets the Agent Process Log for this SAP Job.- Parameters:
applicationLog- True if the SAP Application Log should be transfered as an additional report
-
isJavaStatistics
public boolean isJavaStatistics()
- Returns:
- True if the Java Statistics should be transfered as an additional report
-
setJavaStatistics
public void setJavaStatistics(boolean javaStatistics)
Sets the Java Statistics Report for this SAP Job.- Parameters:
javaStatistics- True if the Java statistics should be transfered as an additional report
-
isSpoolDirectory
public boolean isSpoolDirectory()
- Returns:
- True if the Spool Directory should be transfered as an additional report
-
setSpoolDirectory
public void setSpoolDirectory(boolean spoolDirectory)
Sets the Spool Directory Log for this SAP Job.- Parameters:
spoolDirectory- True if the Spool Directory Log should be transfered as an additional report
-
isStepList
public boolean isStepList()
- Returns:
- True if the Step List should be transfered as an additional report
-
setStepList
public void setStepList(boolean stepList)
Enables or disables an additional report for the step list of the SAP Job.- Parameters:
stepList- True if the step list should be added as a report to this Job.
-
isStatistics
public boolean isStatistics()
- Returns:
- True if the statistics of the SAP Job should be added as an addtional report to this Job.
-
setStatistics
public void setStatistics(boolean statistics)
Enables or disables an additional report for the statistics of the SAP Job.- Parameters:
statistics- True if the statistics should be added as a report to this Job.
-
isNoForwarding
public boolean isNoForwarding()
Returnstrueif the recipient is not allowed to forward the document to other users.- Returns:
- No forwarding
-
setNoForwarding
public void setNoForwarding(boolean noForwarding)
If set the recipient is not allowed to forward the document to other users.- Parameters:
noForwarding- No forwarding
-
isNoPrint
public boolean isNoPrint()
Returnstrueif the attribute 'No Printing' is set.- Returns:
- No printing
-
setNoPrint
public void setNoPrint(boolean noPrinting)
Enables or disables the send attribute 'No Printing'.- Parameters:
noPrinting- No printing
-
getDeliver
public char getDeliver()
Returns the report send status:' ' ... Use default 'A' ... Always 'E' ... Error case 'N' ... Never
- Returns:
- Report send status
-
setDeliver
public void setDeliver(char deliver)
Sets the report send status:' ' ... Use default 'A' ... Always 'E' ... Error case 'N' ... Never
- Parameters:
deliver- Deliver state
-
getStatusByMail
public char getStatusByMail()
Returns the report status by mail:' ' ... Use default 'A' ... Always 'E' ... Error case 'N' ... Never
- Returns:
- Report status by mail
-
setStatusByMail
public void setStatusByMail(char statusByMail)
Sets the report status by mail:' ' ... Use default 'A' ... Always 'E' ... Error case 'N' ... Never
- Parameters:
statusByMail- report status by mail
-
isBlindCopy
public boolean isBlindCopy()
Returnstrueif the recipient gets a blind copy which cannot be read by anyone else.- Returns:
- Blind Copy
-
setBlindCopy
public void setBlindCopy(boolean blindCopy)
Sets if the recipient gets a blind copy which cannot be read by anyone else.- Parameters:
blindCopy- Blind Copy
-
isCopy
public boolean isCopy()
Returnstrueif the recipient should get a copy for information.- Returns:
- Copy
-
setCopy
public void setCopy(boolean copy)
Sets if the recipient should get a copy for information.- Parameters:
copy- Copy
-
isExpress
public boolean isExpress()
Returnstrueif express sending is selected.- Returns:
- Express
-
setExpress
public void setExpress(boolean express)
Sets express sending.- Parameters:
express- Express
-
getSapAddressType
public char getSapAddressType()
Returns the type of address.' ' ... Name 'P' ... Private distribution list 'C' ... Shared distribution list 'O' ... SAPoffice user 'B' ... SAP user 'U' ... Internet address 'X' ... X.400 address 'R' ... SAP user in another SAP System 'A' ... External address 'F' ... Fax number 'D' ... X.500 Address 'L' ... Telex number 'H' ... Organizational unit/position 'J' ... SAP object 'G' ... Organization object/ID 'K' ... Pager/SMS '9' ... Others
- Returns:
- Type of address.
-
setSapAddressType
public void setSapAddressType(char sapAddressType)
Sets the type of address.' ' ... Name 'P' ... Private distribution list 'C' ... Shared distribution list 'O' ... SAPoffice user 'B' ... SAP user 'U' ... Internet address 'X' ... X.400 address 'R' ... SAP user in another SAP System 'A' ... External address 'F' ... Fax number 'D' ... X.500 Address 'L' ... Telex number 'H' ... Organizational unit/position 'J' ... SAP object 'G' ... Organization object/ID 'K' ... Pager/SMS '9' ... Others
- Parameters:
sapAddressType- Type of address
-
getSapRecipent
public java.lang.String getSapRecipent()
Returns the receiver of a spool list.- Returns:
- Receiver
-
setSapRecipent
public void setSapRecipent(java.lang.String sapRecipent)
Sets the receiver of a spool list. A maximum of 241 characters is allowed forsapRecipent- Parameters:
sapRecipent- Receiver
-
isImmediately
public boolean isImmediately()
Returnstrueif the SAP system should attempt to start the Job immediately.- Returns:
- Start Immediately
-
setImmediately
public void setImmediately()
The system attempts to start the Job immediately. The Job is aborted if a SAP background task (Type BTC) is not available. This is only possible when using XBP Interface.
-
isAsSoonAsPossible
public boolean isAsSoonAsPossible()
Returnstrueif the SAP system should attempt to start the Job as soon as possible.- Returns:
- Start as soon as possible
-
setAsSoonAsPossible
public void setAsSoonAsPossible()
The system attempts to start the Job as soon as possible. If no SAP background task is free, the Job is scheduled in the SAP System. With the SBB interface, the option "as soon as possible" is used.
-
isNoDeleteOnError
public boolean isNoDeleteOnError()
Returnstrueif the Job should not be delete in SAP when an error occurs.- Returns:
- Delete Job not on error
-
setNoDeleteOnError
public void setNoDeleteOnError(boolean noDeleteOnError)
If set the Job is not deleted in SAP when an error occurs.- Parameters:
noDeleteOnError- Delete Job not on error
-
isDeleteJob
public boolean isDeleteJob()
Returnstrueif the Job in SAP should be deleted after execution.- Returns:
- Delete job after completion in CCMS
-
setDeleteJob
public void setDeleteJob(boolean deleteJob)
Sets if the Job in SAP should be deleted after execution.- Parameters:
deleteJob- Delete job after completion in CCMS
-
getTargetSystem
public java.lang.String getTargetSystem()
Returns the target system in SAP.- Returns:
- Target system
-
setTargetSystem
public void setTargetSystem(java.lang.String targetSystem)
Sets the target system in SAP. This parameter is optional. The name of an SAP Server in the form "host name_system ID_system Nr". Example: "host31_T40_00". This SAP Server must contain work processes for batch processing. It is recommended by the SAP not to use these parameters because the "Workload Balance" for batch processes will not be in effect. Maximum 32 characters are allowed fortargetSystem.- Parameters:
targetSystem- Target system
-
getJobClass
public char getJobClass()
Returns the selected Job class.- Returns:
- Job class
-
setJobClass
public void setJobClass(char jobClass)
Specifies with which priority the Job in SAP should be handled. Valid values are 'A','B','C',' '- Parameters:
jobClass- Job class
-
getJobName
public java.lang.String getJobName()
Returns the Job name.- Returns:
- Job name
-
setJobName
public void setJobName(java.lang.String jobName)
Sets the name for the Job in SAP. This parameter is optional.- Parameters:
jobName- Job name
-
getLanguage
public java.lang.String getLanguage()
Returns the selected language.- Returns:
- Language
-
setLanguage
public void setLanguage(java.lang.String language)
Sets the language. The parameterlanguagemust be a Empty or two letter code as defined by ISO-639.- Parameters:
language- Language
-
isReportDatabase
public boolean isReportDatabase()
Returns whether the Job report transfered to the Automation Engine database.- Returns:
trueif the Job report is transfered to the databasefalseotherwise
-
setReportDatabase
public void setReportDatabase(boolean reportDatabase)
Sets whether the Job report should be transfered to the database.- Parameters:
reportDatabase-trueif the job report should be transfered to the databasefalseotherwise
-
isReportErrorOnly
public boolean isReportErrorOnly()
Returnstrueif the Job report will be stored only in case of Job interruption. This function is only available when "Database" and/or "File" have been selected.- Returns:
trueif the job report is stored only in case of Job interruption
-
setReportErrorOnly
public void setReportErrorOnly(boolean reportErrorOnly)
Sets whether the Job report should be stored only in case of Job interruption. This function is only available when "Database" and/or "File" have been selected.- Parameters:
reportErrorOnly-trueif the job report should be stored only in case of Job interruption
-
isReportFile
public boolean isReportFile()
Returnstrueif the Job report is stored in the file system on the target system.- Returns:
trueif the job report is stored in the file system.
-
setReportFile
public void setReportFile(boolean reportFile)
Sets whether the Job report should be stored in the file system on the target system.- Parameters:
reportFile-trueif the job report should be stored in the file system
-
isUseLoginObject
public boolean isUseLoginObject()
Returns true if login object is used instead of login information in connection object.- Returns:
trueif login object is used
-
setUseLoginObject
public void setUseLoginObject(boolean useLoginObject)
Set whether the Job will use the login object instead of login information in connection object.- Parameters:
useLoginObject- the useLoginObject to set
-
isTypeABAP
public boolean isTypeABAP()
Returns true if the SAP type is of ABAP- Returns:
trueif the type is of ABAP
-
isTypePI
public boolean isTypePI()
Returns true if the SAP type is of PI- Returns:
trueif the type is of PI
-
isTypeJava
public boolean isTypeJava()
Returns true if the SAP type is of Java- Returns:
trueif the type is of Java
-
-