Package com.uc4.api.objects
Class SAPConnectionRFC
- java.lang.Object
-
- com.uc4.api.objects.SAPConnectionRFC
-
public class SAPConnectionRFC extends java.lang.Object
This 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 class
SAPConnectionRFC.BIExtendedMonitoring
SAP BW Extended Monitoring.static class
SAPConnectionRFC.XALVersion
XAL version.static class
SAPConnectionRFC.XBPVersion
XBP version.
-
Constructor Summary
Constructors Modifier Constructor Description protected
SAPConnectionRFC(com.uc4.util.XMLDocument doc, ConnectionAttributes session)
Creates a newSAPConnectionRFC
from the specified XML document.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getAsHost()
Returns the application server if a direct connection has been used.SAPConnectionRFC.BIExtendedMonitoring
getBIExtendedMonitoring()
Returns the status of the extended monitoring of Info Packages.int
getBIRepeatChecks()
Returns the number of checks repeated status checks if the extended Info Package monitoring has been set to REPEAT_CHECK.int
getBIRepeatDataRequestChecks()
Returns the number of runs for data request checksint
getClient()
Returns the SAP client.java.lang.String
getDestination()
Returns the Destinationjava.lang.String
getGatewayHost()
Returns the Gateway Host.java.lang.String
getGatewayService()
Returns the Gateway Service.java.lang.String
getGroup()
Returns the GROUP.int
getIPakChange()
Returns the IPak Change parameter.java.lang.String
getLanguage()
Returns the logon language.UC4ObjectName
getLogin()
Returns the Loginint
getMaxConnectionCount()
Returns the maximum number of concurrent RFC connections to the SAP system.java.lang.String
getMessageServer()
Returns the Message Server.java.lang.String
getProgramId()
Returns the program idjava.lang.String
getSAPRouter()
Returns the SAP router string.java.lang.String
getSID()
Returns the system id of the SAP System.java.lang.String
getSNCLib()
Returns the SNC library.java.lang.String
getSNCMyName()
Returns the SNC "MyName" value.java.lang.String
getSNCPartnerName()
Returns the SNC Partner name.int
getSNCQOP()
Returns the QOP value for the SNC encryption.int
getSpoolBlocksize()
Returns the blocksize for the transfer of spool lists.int
getSystemNumber()
Returns the system number or-1
if not set.int
getUC4Client()
Returns the SAP client.java.lang.String
getUC4Department()
Returns the name of the UC4 department.java.lang.String
getUC4User()
Returns the name of the UC4 user.java.lang.String
getUser()
Returns the name of the batch user.java.lang.String
getXALMonitor()
Returns the name of the monitor.java.lang.String
getXALMonitorSet()
Returns the name of the monitor set.java.lang.String
getXALMonitorShortName()
Returns the short name of the XAL monitor.SAPConnectionRFC.XALVersion
getXALVersion()
Returns the XAL Version, DEFAULT if not set.int
getXBPAuditlevel()
Returns the XBP auditlevel (0= Minimal, 3= Trace) Depending on the auditlevel the XMI log will contain more or less entries.SAPConnectionRFC.XBPVersion
getXBPVersion()
Returns the XBP Version.boolean
isAllowSMSEInterface()
Returnstrue
if the SMSE function modules should be used.boolean
isAllowUc4Interface()
Returnstrue
if the uc4 function modules should be used.boolean
isBIChainsParallel()
Returnstrue
if process chains can be executed in parallel.boolean
isCollapseSteps()
Return if one SAP job can contain multiple steps.boolean
isConfirmEventHistory()
Return if events in the history should be confirmed after processed by the agentboolean
isSNCEnabled()
Returnstrue
if SNC is enabled, false otherwise.boolean
isSSOEnabled()
Returnstrue
if SNC SSO is enabled, false otherwise.boolean
isUseLoadBalancing()
boolean
isXALSystemLog()
Returnstrue
if the SAP system log should be transfered in case of an error.void
setAllowSMSEInterface(boolean allow)
Enables or disables the use of the SMSE function modules.void
setAllowUc4Interface(boolean allow)
Enables or disables the use of the UC4 function modules.void
setBIChainsParallel(boolean par)
Enables or disables the parallel execution of the same chain in one SAP Agent.void
setBIExtendedMonitoring(SAPConnectionRFC.BIExtendedMonitoring ext)
Sets the status of the extended monitoring of Info Packages.void
setBIRepeatChecks(int runs)
Sets the number of checks repeated status checks if the extended Info Package monitoring has been set to REPEAT_CHECK.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.void
setBIRepeatDataRequestChecks(int runs)
Sets the number of runs for data request checks.void
setBIRepeatDataRequestChecks(java.lang.String runs)
Sets the number of runs for data request checks, allows null and empty string.void
setClient(int client)
Sets the logon client.void
setCollapseSteps(boolean collapse)
Enables or disables the use of multiple steps in one SAP job.void
setConfirmEventHistory(boolean confirm)
Enables or disables if events in the history should be confirmed after processed by the agentvoid
setDestination(java.lang.String set)
Sets the Destination.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.void
setGatewayHost(java.lang.String set)
Sets the gateway host.void
setGatewayService(java.lang.String set)
Sets the gateway service.void
setIPakChange(int change)
Sets the value of the IPak Change parameter.void
setLanguage(java.lang.String lang)
Sets the logon language (for example DE or EN) ornull
if not usedvoid
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.void
setLogin(UC4ObjectName login)
Sets the login.void
setMaxConnectionCount(int count)
Sets the maximum number of concurrent RFC connections.void
setMaxConnectionCount(java.lang.String count)
Sets the maximum number of concurrent RFC connections, allows null and empty string.void
setPassword(java.lang.String pass)
Sets the password of the logon user.void
setProgramId(java.lang.String set)
Sets the program id.void
setSNCEnable(boolean enable)
Enables or disables the SNC mode.void
setSNCLib(java.lang.String lib)
Sets the path to the SNC library.void
setSNCMyName(java.lang.String myName)
Sets the SNC "MyName" value.void
setSNCPartnerName(java.lang.String partnerName)
Sets the SNC Partner name.void
setSNCQOP(int qop)
Sets the QOP level for the SNC encryption.void
setSpoolBlocksize(int kilobytes)
Sets the blocksize for the transfer of spool lists.void
setSpoolBlocksize(java.lang.String kilobytes)
Sets the block size for the transfer of spool lists, allows null and empty string.void
setSSOEnable(boolean enable)
Enables or disables the SNC SSO.void
setUC4Client(int client)
Sets the UC4 client.void
setUC4Client(java.lang.String client)
Sets the UC4 client, allows null and empty stringvoid
setUC4Department(java.lang.String set)
Sets the name of the UC4 department.void
setUC4Password(java.lang.String set)
Sets the UC4 password.void
setUC4User(java.lang.String set)
Sets the name of the UC4 user.void
setUser(java.lang.String user)
Sets the user name for the batch user.void
setXALMonitor(java.lang.String monitor)
Sets the name of the XAL monitor.void
setXALMonitorSet(java.lang.String set)
Sets the name of the XAL monitor set.void
setXALMonitorShortName(java.lang.String name)
Sets the short name of the XAL monitor.void
setXALSystemLog(boolean enable)
Enables or disables the transfer of the XAL system log.void
setXALVersion(SAPConnectionRFC.XALVersion version)
Sets the version of the XAL interface.void
setXBPAuditlevel(int level)
Sets the XBP audit level (0 == minimal, 3 == Trace).void
setXBPVersion(SAPConnectionRFC.XBPVersion version)
Sets the version of the XBP Interface.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
-
-
-
Constructor Detail
-
SAPConnectionRFC
protected SAPConnectionRFC(com.uc4.util.XMLDocument doc, ConnectionAttributes session)
Creates a newSAPConnectionRFC
from 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()
Returnstrue
if SNC is enabled, false otherwise. If the vlaue has not been set yet,false
is 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()
Returnstrue
if SNC SSO is enabled, false otherwise. If the value has not been set yet,false
is 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 ornull
if not used
-
getLogin
public UC4ObjectName getLogin()
Returns the Login- Returns:
- Login or
null
if 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()
Returnstrue
if 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 returnsfalse
if 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()
Returnstrue
if the SAP system log should be transfered in case of an error. This method returnsfalse
if 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()
Returnstrue
if the uc4 function modules should be used. If the value has not been set yet,false
is 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-1
if not used
-
getClient
public int getClient()
Returns the SAP client.- Returns:
- client or
-1
if not set
-
setLanguage
public void setLanguage(java.lang.String lang)
Sets the logon language (for example DE or EN) ornull
if 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
-1
if 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 ornull
if not usedsysNr
- Systm number 0-99 or-1
if not usedsid
- System ID ornull
if not usedrouter
- SAP router String ornull
if 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-1
if 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()
Returnstrue
if the SMSE function modules should be used. If the value has not been set yet,false
is 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-1
if 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-1
if not used
-
getUC4Client
public int getUC4Client()
Returns the SAP client.- Returns:
- client or
-1
if 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 ornull
if not usedmessageServer
- Host name of the message server ornull
if not usedgroup
- Group name ornull
if not usedrouter
- SAP router String ornull
if not used
-
getMessageServer
public java.lang.String getMessageServer()
Returns the Message Server.- Returns:
- message server
-
isUseLoadBalancing
public boolean isUseLoadBalancing()
- Returns:
true
if 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
-
-