Package com.uc4.api.objects
Class SAPConnectionRFC
- java.lang.Object
-
- com.uc4.api.objects.SAPConnectionRFC
-
public class SAPConnectionRFC extends java.lang.ObjectThis class can be used to read or set the RFC connection data for SAP Connection objects.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSAPConnectionRFC.BIExtendedMonitoringSAP BW Extended Monitoring.static classSAPConnectionRFC.XALVersionXAL version.static classSAPConnectionRFC.XBPVersionXBP version.
-
Constructor Summary
Constructors Modifier Constructor Description protectedSAPConnectionRFC(com.uc4.util.XMLDocument doc, ConnectionAttributes session)Creates a newSAPConnectionRFCfrom the specified XML document.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetAsHost()Returns the application server if a direct connection has been used.SAPConnectionRFC.BIExtendedMonitoringgetBIExtendedMonitoring()Returns the status of the extended monitoring of Info Packages.intgetBIRepeatChecks()Returns the number of checks repeated status checks if the extended Info Package monitoring has been set to REPEAT_CHECK.intgetBIRepeatDataRequestChecks()Returns the number of runs for data request checksintgetClient()Returns the SAP client.java.lang.StringgetDestination()Returns the Destinationjava.lang.StringgetGatewayHost()Returns the Gateway Host.java.lang.StringgetGatewayService()Returns the Gateway Service.java.lang.StringgetGroup()Returns the GROUP.intgetIPakChange()Returns the IPak Change parameter.java.lang.StringgetLanguage()Returns the logon language.UC4ObjectNamegetLogin()Returns the LoginintgetMaxConnectionCount()Returns the maximum number of concurrent RFC connections to the SAP system.java.lang.StringgetMessageServer()Returns the Message Server.java.lang.StringgetProgramId()Returns the program idjava.lang.StringgetSAPRouter()Returns the SAP router string.java.lang.StringgetSID()Returns the system id of the SAP System.java.lang.StringgetSNCLib()Returns the SNC library.java.lang.StringgetSNCMyName()Returns the SNC "MyName" value.java.lang.StringgetSNCPartnerName()Returns the SNC Partner name.intgetSNCQOP()Returns the QOP value for the SNC encryption.intgetSpoolBlocksize()Returns the blocksize for the transfer of spool lists.intgetSystemNumber()Returns the system number or-1if not set.intgetUC4Client()Returns the SAP client.java.lang.StringgetUC4Department()Returns the name of the UC4 department.java.lang.StringgetUC4User()Returns the name of the UC4 user.java.lang.StringgetUser()Returns the name of the batch user.java.lang.StringgetXALMonitor()Returns the name of the monitor.java.lang.StringgetXALMonitorSet()Returns the name of the monitor set.java.lang.StringgetXALMonitorShortName()Returns the short name of the XAL monitor.SAPConnectionRFC.XALVersiongetXALVersion()Returns the XAL Version, DEFAULT if not set.intgetXBPAuditlevel()Returns the XBP auditlevel (0= Minimal, 3= Trace) Depending on the auditlevel the XMI log will contain more or less entries.SAPConnectionRFC.XBPVersiongetXBPVersion()Returns the XBP Version.booleanisAllowSMSEInterface()Returnstrueif the SMSE function modules should be used.booleanisAllowUc4Interface()Returnstrueif the uc4 function modules should be used.booleanisBIChainsParallel()Returnstrueif process chains can be executed in parallel.booleanisCollapseSteps()Return if one SAP job can contain multiple steps.booleanisConfirmEventHistory()Return if events in the history should be confirmed after processed by the agentbooleanisSNCEnabled()Returnstrueif SNC is enabled, false otherwise.booleanisSSOEnabled()Returnstrueif SNC SSO is enabled, false otherwise.booleanisUseLoadBalancing()booleanisXALSystemLog()Returnstrueif the SAP system log should be transfered in case of an error.voidsetAllowSMSEInterface(boolean allow)Enables or disables the use of the SMSE function modules.voidsetAllowUc4Interface(boolean allow)Enables or disables the use of the UC4 function modules.voidsetBIChainsParallel(boolean par)Enables or disables the parallel execution of the same chain in one SAP Agent.voidsetBIExtendedMonitoring(SAPConnectionRFC.BIExtendedMonitoring ext)Sets the status of the extended monitoring of Info Packages.voidsetBIRepeatChecks(int runs)Sets the number of checks repeated status checks if the extended Info Package monitoring has been set to REPEAT_CHECK.voidsetBIRepeatChecks(java.lang.String runs)Sets the number of checks repeated status checks if the extended Info Package monitoring has been set to REPEAT_CHECK, allows null and empty string.voidsetBIRepeatDataRequestChecks(int runs)Sets the number of runs for data request checks.voidsetBIRepeatDataRequestChecks(java.lang.String runs)Sets the number of runs for data request checks, allows null and empty string.voidsetClient(int client)Sets the logon client.voidsetCollapseSteps(boolean collapse)Enables or disables the use of multiple steps in one SAP job.voidsetConfirmEventHistory(boolean confirm)Enables or disables if events in the history should be confirmed after processed by the agentvoidsetDestination(java.lang.String set)Sets the Destination.voidsetDirectConnection(java.lang.String ashost, int sysNr, java.lang.String sid, java.lang.String router)Sets up a direct connection to the SAP system.voidsetGatewayHost(java.lang.String set)Sets the gateway host.voidsetGatewayService(java.lang.String set)Sets the gateway service.voidsetIPakChange(int change)Sets the value of the IPak Change parameter.voidsetLanguage(java.lang.String lang)Sets the logon language (for example DE or EN) ornullif not usedvoidsetLoadBalancedConnection(java.lang.String sid, java.lang.String messageServer, java.lang.String group, java.lang.String router)Sets up a load balanced connection the SAP system.voidsetLogin(UC4ObjectName login)Sets the login.voidsetMaxConnectionCount(int count)Sets the maximum number of concurrent RFC connections.voidsetMaxConnectionCount(java.lang.String count)Sets the maximum number of concurrent RFC connections, allows null and empty string.voidsetPassword(java.lang.String pass)Sets the password of the logon user.voidsetProgramId(java.lang.String set)Sets the program id.voidsetSNCEnable(boolean enable)Enables or disables the SNC mode.voidsetSNCLib(java.lang.String lib)Sets the path to the SNC library.voidsetSNCMyName(java.lang.String myName)Sets the SNC "MyName" value.voidsetSNCPartnerName(java.lang.String partnerName)Sets the SNC Partner name.voidsetSNCQOP(int qop)Sets the QOP level for the SNC encryption.voidsetSpoolBlocksize(int kilobytes)Sets the blocksize for the transfer of spool lists.voidsetSpoolBlocksize(java.lang.String kilobytes)Sets the block size for the transfer of spool lists, allows null and empty string.voidsetSSOEnable(boolean enable)Enables or disables the SNC SSO.voidsetUC4Client(int client)Sets the UC4 client.voidsetUC4Client(java.lang.String client)Sets the UC4 client, allows null and empty stringvoidsetUC4Department(java.lang.String set)Sets the name of the UC4 department.voidsetUC4Password(java.lang.String set)Sets the UC4 password.voidsetUC4User(java.lang.String set)Sets the name of the UC4 user.voidsetUser(java.lang.String user)Sets the user name for the batch user.voidsetXALMonitor(java.lang.String monitor)Sets the name of the XAL monitor.voidsetXALMonitorSet(java.lang.String set)Sets the name of the XAL monitor set.voidsetXALMonitorShortName(java.lang.String name)Sets the short name of the XAL monitor.voidsetXALSystemLog(boolean enable)Enables or disables the transfer of the XAL system log.voidsetXALVersion(SAPConnectionRFC.XALVersion version)Sets the version of the XAL interface.voidsetXBPAuditlevel(int level)Sets the XBP audit level (0 == minimal, 3 == Trace).voidsetXBPVersion(SAPConnectionRFC.XBPVersion version)Sets the version of the XBP Interface.protected voidstore(com.uc4.util.XMLDocument doc, org.w3c.dom.Element objectElement, ConnectionAttributes session, java.lang.String ocvType)Saves the content of this instance in the specified DOM document
-
-
-
Constructor Detail
-
SAPConnectionRFC
protected SAPConnectionRFC(com.uc4.util.XMLDocument doc, ConnectionAttributes session)Creates a newSAPConnectionRFCfrom the specified XML document.- Parameters:
doc- XML document
-
-
Method Detail
-
setBIChainsParallel
public void setBIChainsParallel(boolean par)
Enables or disables the parallel execution of the same chain in one SAP Agent.- Parameters:
par- true if BI chains are allowed to run in parallel
-
setSNCEnable
public void setSNCEnable(boolean enable)
Enables or disables the SNC mode.- Parameters:
enable- true if SNC should be enabled, false if it should be disabled.
-
isSNCEnabled
public boolean isSNCEnabled()
Returnstrueif SNC is enabled, false otherwise. If the vlaue has not been set yet,falseis returned.- Returns:
- SNC enabled
-
setSSOEnable
public void setSSOEnable(boolean enable)
Enables or disables the SNC SSO.- Parameters:
enable- true if SNC SSO should be enabled, false if it should be disabled.
-
isSSOEnabled
public boolean isSSOEnabled()
Returnstrueif SNC SSO is enabled, false otherwise. If the value has not been set yet,falseis returned.- Returns:
- SNC enabled
-
setSNCLib
public void setSNCLib(java.lang.String lib)
Sets the path to the SNC library.- Parameters:
lib- SNC library
-
getSNCLib
public java.lang.String getSNCLib()
Returns the SNC library.- Returns:
- Path to the SNC library
-
setLogin
public void setLogin(UC4ObjectName login)
Sets the login.- Parameters:
login- the new login ornullif not used
-
getLogin
public UC4ObjectName getLogin()
Returns the Login- Returns:
- Login or
nullif not set
-
setSpoolBlocksize
public void setSpoolBlocksize(int kilobytes)
Sets the blocksize for the transfer of spool lists.- Parameters:
kilobytes- Block size in kilobytes
-
setSpoolBlocksize
public void setSpoolBlocksize(java.lang.String kilobytes)
Sets the block size for the transfer of spool lists, allows null and empty string.- Parameters:
kilobytes- kilobytes Block size in kilobytes
-
getSpoolBlocksize
public int getSpoolBlocksize()
Returns the blocksize for the transfer of spool lists.- Returns:
- Block size in kilobytes
-
setSNCMyName
public void setSNCMyName(java.lang.String myName)
Sets the SNC "MyName" value.- Parameters:
myName- My name
-
getSNCMyName
public java.lang.String getSNCMyName()
Returns the SNC "MyName" value.- Returns:
- My name
-
setSNCPartnerName
public void setSNCPartnerName(java.lang.String partnerName)
Sets the SNC Partner name.- Parameters:
partnerName- name
-
getSNCPartnerName
public java.lang.String getSNCPartnerName()
Returns the SNC Partner name.- Returns:
- name
-
setSNCQOP
public void setSNCQOP(int qop)
Sets the QOP level for the SNC encryption.- Parameters:
qop- Integer between one and nine
-
getSNCQOP
public int getSNCQOP()
Returns the QOP value for the SNC encryption.- Returns:
- Integer from one to nine
-
setBIRepeatChecks
public void setBIRepeatChecks(int runs)
Sets the number of checks repeated status checks if the extended Info Package monitoring has been set to REPEAT_CHECK.- Parameters:
runs- Number of checks
-
setBIRepeatChecks
public void setBIRepeatChecks(java.lang.String runs)
Sets the number of checks repeated status checks if the extended Info Package monitoring has been set to REPEAT_CHECK, allows null and empty string.- Parameters:
runs- runs Number of checks
-
getBIRepeatChecks
public int getBIRepeatChecks()
Returns the number of checks repeated status checks if the extended Info Package monitoring has been set to REPEAT_CHECK.- Returns:
- Number of checks
-
setBIExtendedMonitoring
public void setBIExtendedMonitoring(SAPConnectionRFC.BIExtendedMonitoring ext)
Sets the status of the extended monitoring of Info Packages.- Parameters:
ext- Enumeration containing the extended monitoring
-
getBIRepeatDataRequestChecks
public int getBIRepeatDataRequestChecks()
Returns the number of runs for data request checks- Returns:
- Number of runs
-
setBIRepeatDataRequestChecks
public void setBIRepeatDataRequestChecks(int runs)
Sets the number of runs for data request checks.- Parameters:
runs- Number of runs
-
setBIRepeatDataRequestChecks
public void setBIRepeatDataRequestChecks(java.lang.String runs)
Sets the number of runs for data request checks, allows null and empty string.- Parameters:
runs- runs Number of runs
-
getBIExtendedMonitoring
public SAPConnectionRFC.BIExtendedMonitoring getBIExtendedMonitoring()
Returns the status of the extended monitoring of Info Packages.- Returns:
- Enumeration containing the status
-
isBIChainsParallel
public boolean isBIChainsParallel()
Returnstrueif process chains can be executed in parallel.- Returns:
- true if parallel executions of chains are allowed
-
setXBPAuditlevel
public void setXBPAuditlevel(int level)
Sets the XBP audit level (0 == minimal, 3 == Trace).- Parameters:
level- Audit level
-
setIPakChange
public void setIPakChange(int change)
Sets the value of the IPak Change parameter.- Parameters:
change- IPak change
-
getIPakChange
public int getIPakChange()
Returns the IPak Change parameter.- Returns:
- IPak Change
-
setXALVersion
public void setXALVersion(SAPConnectionRFC.XALVersion version)
Sets the version of the XAL interface. Currently only 1.0 and the default can be set.- Parameters:
version- XAL version
-
setXALSystemLog
public void setXALSystemLog(boolean enable)
Enables or disables the transfer of the XAL system log. This method returnsfalseif no value has been set yet.- Parameters:
enable- true if the log should be transfered in case of an error, false otherwise
-
setXALMonitor
public void setXALMonitor(java.lang.String monitor)
Sets the name of the XAL monitor.- Parameters:
monitor- Name of the XAL monitor
-
getXALMonitor
public java.lang.String getXALMonitor()
Returns the name of the monitor.- Returns:
- the name of the monitor
-
setXALMonitorSet
public void setXALMonitorSet(java.lang.String set)
Sets the name of the XAL monitor set.- Parameters:
set- the name of the monitor set.
-
getXALMonitorSet
public java.lang.String getXALMonitorSet()
Returns the name of the monitor set.- Returns:
- Name of the monitor set.
-
setXALMonitorShortName
public void setXALMonitorShortName(java.lang.String name)
Sets the short name of the XAL monitor.- Parameters:
name- Short name of the XAL Monitor
-
getXALMonitorShortName
public java.lang.String getXALMonitorShortName()
Returns the short name of the XAL monitor.- Returns:
- Short name of the XAL Monitor
-
isXALSystemLog
public boolean isXALSystemLog()
Returnstrueif the SAP system log should be transfered in case of an error. This method returnsfalseif a value has not been set yet.- Returns:
- true if the system log should be transfered, false otherwise
-
getXALVersion
public SAPConnectionRFC.XALVersion getXALVersion()
Returns the XAL Version, DEFAULT if not set.- Returns:
- The XAL Version
-
getXBPAuditlevel
public int getXBPAuditlevel()
Returns the XBP auditlevel (0= Minimal, 3= Trace) Depending on the auditlevel the XMI log will contain more or less entries.- Returns:
- XBP Auditlevel as integer
-
isCollapseSteps
public boolean isCollapseSteps()
Return if one SAP job can contain multiple steps.- Returns:
- true if one SAP job can contain more than one step, false otherwise
-
setCollapseSteps
public void setCollapseSteps(boolean collapse)
Enables or disables the use of multiple steps in one SAP job.- Parameters:
collapse- if true one SAP job can contain more than one step, if false each created SAP Job will only have one step
-
isConfirmEventHistory
public boolean isConfirmEventHistory()
Return if events in the history should be confirmed after processed by the agent- Returns:
- true if event history should be confirmed
-
setConfirmEventHistory
public void setConfirmEventHistory(boolean confirm)
Enables or disables if events in the history should be confirmed after processed by the agent- Parameters:
confirm- true if events in the history should be confirmed, false if not (events then always get status "new")
-
isAllowUc4Interface
public boolean isAllowUc4Interface()
Returnstrueif the uc4 function modules should be used. If the value has not been set yet,falseis returned.- Returns:
- true if the uc4 function modules should be used, false otherwise
-
setAllowUc4Interface
public void setAllowUc4Interface(boolean allow)
Enables or disables the use of the UC4 function modules.- Parameters:
allow- true if the uc4 function modules should be used, false if only XBP function modules should be called
-
getXBPVersion
public SAPConnectionRFC.XBPVersion getXBPVersion()
Returns the XBP Version.- Returns:
- Version of the XBP interface, DEFAULT if not set.
-
setXBPVersion
public void setXBPVersion(SAPConnectionRFC.XBPVersion version)
Sets the version of the XBP Interface.- Parameters:
version- XBP Version
-
setUser
public void setUser(java.lang.String user)
Sets the user name for the batch user.- Parameters:
user- User name
-
getUser
public java.lang.String getUser()
Returns the name of the batch user.- Returns:
- name of the CPIC user
-
setClient
public void setClient(int client)
Sets the logon client.- Parameters:
client- Integer between 0 and 999 or-1if not used
-
getClient
public int getClient()
Returns the SAP client.- Returns:
- client or
-1if not set
-
setLanguage
public void setLanguage(java.lang.String lang)
Sets the logon language (for example DE or EN) ornullif not used- Parameters:
lang- Language
-
getLanguage
public java.lang.String getLanguage()
Returns the logon language.- Returns:
- Logon language
-
getGroup
public java.lang.String getGroup()
Returns the GROUP.- Returns:
- group
-
setPassword
public void setPassword(java.lang.String pass)
Sets the password of the logon user.- Parameters:
pass- Password
-
getMaxConnectionCount
public int getMaxConnectionCount()
Returns the maximum number of concurrent RFC connections to the SAP system.- Returns:
- Max rfc connection or
-1if not set
-
setMaxConnectionCount
public void setMaxConnectionCount(int count)
Sets the maximum number of concurrent RFC connections.- Parameters:
count- Max rfc connection
-
setMaxConnectionCount
public void setMaxConnectionCount(java.lang.String count)
Sets the maximum number of concurrent RFC connections, allows null and empty string.- Parameters:
count- Max rfc connection
-
setDirectConnection
public void setDirectConnection(java.lang.String ashost, int sysNr, java.lang.String sid, java.lang.String router)Sets up a direct connection to the SAP system.- Parameters:
ashost- Name of the application server host ornullif not usedsysNr- Systm number 0-99 or-1if not usedsid- System ID ornullif not usedrouter- SAP router String ornullif not used
-
getAsHost
public java.lang.String getAsHost()
Returns the application server if a direct connection has been used.- Returns:
- Hostname of the application server
-
getSystemNumber
public int getSystemNumber()
Returns the system number or-1if not set.- Returns:
- System number
-
getSID
public java.lang.String getSID()
Returns the system id of the SAP System.- Returns:
- SID
-
getSAPRouter
public java.lang.String getSAPRouter()
Returns the SAP router string.- Returns:
- SAP router string
-
isAllowSMSEInterface
public boolean isAllowSMSEInterface()
Returnstrueif the SMSE function modules should be used. If the value has not been set yet,falseis returned.- Returns:
- true if the SMSE function modules should be used, false otherwise
-
setAllowSMSEInterface
public void setAllowSMSEInterface(boolean allow)
Enables or disables the use of the SMSE function modules.- Parameters:
allow- true if the SMSE function modules should be used
-
setUC4Client
public void setUC4Client(int client)
Sets the UC4 client.- Parameters:
client- Integer between 0 and 9999 or-1if not used
-
setUC4Client
public void setUC4Client(java.lang.String client)
Sets the UC4 client, allows null and empty string- Parameters:
client- Integer between 0 and 9999 or-1if not used
-
getUC4Client
public int getUC4Client()
Returns the SAP client.- Returns:
- client or
-1if not set
-
setUC4User
public void setUC4User(java.lang.String set)
Sets the name of the UC4 user.- Parameters:
set- the name of the UC4 user.
-
getUC4User
public java.lang.String getUC4User()
Returns the name of the UC4 user.- Returns:
- Name of the UC4 user.
-
setUC4Department
public void setUC4Department(java.lang.String set)
Sets the name of the UC4 department.- Parameters:
set- the name of the UC4 department.
-
getUC4Department
public java.lang.String getUC4Department()
Returns the name of the UC4 department.- Returns:
- Name of the UC4 department.
-
setUC4Password
public void setUC4Password(java.lang.String set)
Sets the UC4 password.- Parameters:
set- the UC4 password.
-
setGatewayHost
public void setGatewayHost(java.lang.String set)
Sets the gateway host.- Parameters:
set- the gateway host.
-
getGatewayHost
public java.lang.String getGatewayHost()
Returns the Gateway Host.- Returns:
- Gateway Host.
-
setGatewayService
public void setGatewayService(java.lang.String set)
Sets the gateway service.- Parameters:
set- the gateway service.
-
getGatewayService
public java.lang.String getGatewayService()
Returns the Gateway Service.- Returns:
- Gateway Service.
-
setProgramId
public void setProgramId(java.lang.String set)
Sets the program id.- Parameters:
set- the program id.
-
getProgramId
public java.lang.String getProgramId()
Returns the program id- Returns:
- program id.
-
setDestination
public void setDestination(java.lang.String set)
Sets the Destination.- Parameters:
set- the Destination.
-
getDestination
public java.lang.String getDestination()
Returns the Destination- Returns:
- Destination.
-
setLoadBalancedConnection
public void setLoadBalancedConnection(java.lang.String sid, java.lang.String messageServer, java.lang.String group, java.lang.String router)Sets up a load balanced connection the SAP system.- Parameters:
sid- SID ornullif not usedmessageServer- Host name of the message server ornullif not usedgroup- Group name ornullif not usedrouter- SAP router String ornullif not used
-
getMessageServer
public java.lang.String getMessageServer()
Returns the Message Server.- Returns:
- message server
-
isUseLoadBalancing
public boolean isUseLoadBalancing()
- Returns:
trueif load balancing is set, false otherwise
-
store
protected void store(com.uc4.util.XMLDocument doc, org.w3c.dom.Element objectElement, ConnectionAttributes session, java.lang.String ocvType)Saves the content of this instance in the specified DOM document- Parameters:
doc- XML DocumentobjectElement- Parent element
-
-