public class ConnectionAttributes
extends java.lang.Object
Constructor and Description |
---|
ConnectionAttributes()
Creates
ConnectionAttributes . |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAccessToken()
Access token that will be verified in JWP and used for auto-login.
|
java.lang.String |
getClient() |
int |
getDefaultJobPlanElse()
Returns the default JobPlan task ELSE Action.
|
java.lang.String |
getDepartment() |
java.lang.String |
getEncoding()
Returns the encoding used for communication between API and CP.
|
byte[] |
getKerberosToken()
Returns the kerberos token.
|
java.lang.String |
getKicks()
This connection is registered to receive the kick messages returned by this procedure.
|
java.lang.String |
getLanguage() |
java.lang.String |
getPassword() |
java.lang.String |
getPasswordType()
Returns the type of the secret if the defined in the Connection.open() method.
|
java.lang.String |
getRefreshToken()
Refresh token that will be verified in JWP and used for auto-login.
|
java.lang.String |
getRemoteHost()
Returns the host name of the API user.
|
java.lang.String |
getRemoteID()
Returns the remote ID.
|
java.lang.String |
getSamlToken()
Returns the saml token.
|
java.lang.String |
getServerName() |
java.lang.String |
getServerVersion()
Returns the version of the the Automation Engine.
|
java.lang.String |
getSessionId() |
java.util.TimeZone |
getSessionTimeZone()
Gets the session time zone.
|
java.lang.String |
getSpnegoToken()
Returns the browser token.
|
javax.net.ssl.SSLContext |
getSslContext()
The ssl-context that was used to establish this connection
|
java.lang.String |
getSystemName() |
java.lang.String |
getToken()
Returns a logon token which can be used instead of a password.
|
java.lang.String |
getTokenAgent()
Returns the Agent name if the API is used within an UC4 Agent.
|
com.uc4.translate.Message |
getTranslator()
Returns the message translator.
|
java.lang.String |
getUserIdnr() |
java.lang.String |
getUserName() |
long |
getWFRunID()
Returns the ARA Workflow ID.
|
boolean |
hasAdoptPrivilege()
Returns
true if this user is allowed to execute the AdoptTask request. |
boolean |
hasBackendVariablePrivilege()
Returns
true if this user is allowed to create and modify backend variables. |
boolean |
hasSelectiveStatisticsPrivilege()
Returns
true if this user is allowed to access selective statistics. |
boolean |
hasSystemOverviewPrivilege()
Returns
true if this user is allowed to read the system overview. |
boolean |
isDeploymentClient()
Returns
true if deployment is enabled for this connection otherwise false . |
boolean |
isRequestTest()
Returns
true if internal test are enabled. |
boolean |
isSSO()
Returns
true if single sign on is active. |
boolean |
isValid()
Returns
true if this connection is valid. |
void |
setAccessToken(java.lang.String accessToken)
Access token that will be verified in JWP and used for auto-login.
|
protected void |
setAgentName(java.lang.String agentName)
Sets the name of the Agent
|
protected void |
setClient(java.lang.String string)
Sets the UC4 Client
|
protected void |
setDefaultJobPlanElse(int defaultJobPlanElse) |
protected void |
setDepartment(java.lang.String string)
Sets the UC4 Department
|
protected void |
setDeploymentClient(boolean deploymentClient)
Sets the deployment client flag
|
protected void |
setEncoding(java.lang.String encoding)
Set the Encoding for communication between API and CP.
|
protected void |
setKerberosToken(byte[] token)
Sets the kerberos token.
|
protected void |
setKicks(java.lang.String kicks)
This connection is registered to receive the specified kick messages.
|
protected void |
setLanguage(java.lang.String lang)
Sets the UC4 Language, allowed Values are D,E or F
|
protected void |
setPassword(java.lang.String string)
Set the UC4 Password
|
protected void |
setPasswordType(java.lang.String passwordType)
Sets the type of the secret.
|
protected void |
setPrivilege(long privilege) |
void |
setRefreshToken(java.lang.String refreshToken)
Refresh token that will be verified in JWP and used for auto-login.
|
protected void |
setRemoteID(java.lang.String remoteID)
Sets the remote ID
|
protected void |
setRequesetTest(boolean requestTest)
Performs additional checks on
Request objects. |
void |
setSamlToken(java.lang.String samltoken)
Sets the saml token
|
void |
setServerName(java.lang.String serverName)
Set the UC4 Server Name - the name of the server process
|
protected void |
setServerVersion(java.lang.String version)
Sets the version of Automation Engine.
|
protected void |
setSessionId(java.lang.String string)
Set the Session ID
|
protected void |
setSessionTimeZone(java.util.TimeZone sessionTimeZone)
Sets the session time zone.
|
protected void |
setSettings(Settings settings) |
protected void |
setSpnegoToken(java.lang.String token)
Sets the browser token.
|
protected void |
setSSLContext(javax.net.ssl.SSLContext sslContext)
The ssl-context that was used to establish this connection
|
protected void |
setSystemName(java.lang.String string)
Set the UC4 System Name
|
Settings |
settings() |
protected void |
setToken(java.lang.String token)
Sets the logon token
|
protected void |
setTranslator(com.uc4.translate.Message translator) |
protected void |
setUserIdnr(java.lang.String string)
Set the internal User ID
|
protected void |
setUserName(java.lang.String string)
Set the UC4 Username
|
protected void |
setValid(boolean valid)
Sets the valid flag
|
protected void |
setWFRunID(long runID)
Sets the ARA Workflow RunID.
|
public boolean isRequestTest()
true
if internal test are enabled.
To enable internal request tests call the method Connection#setDebug
and set the second
parameter to true
.public Settings settings()
public boolean isDeploymentClient()
true
if deployment is enabled for this connection otherwise false
.public java.lang.String getSamlToken()
public void setSamlToken(java.lang.String samltoken)
samltoken
- set token for samlprotected void setValid(boolean valid)
valid
- true if this connection is validpublic java.lang.String getTokenAgent()
null
if not setprotected void setDeploymentClient(boolean deploymentClient)
deploymentClient
- Is Deployment Client?public java.lang.String getToken()
protected void setAgentName(java.lang.String agentName)
agentName
- Agent nameprotected void setRequesetTest(boolean requestTest)
Request
objects.
This method is used internally.requestTest
- Enable additional testsprotected void setSettings(Settings settings)
public java.lang.String getRemoteHost()
protected void setServerVersion(java.lang.String version)
version
- Version of the Automation Enginepublic java.lang.String getServerVersion()
public boolean hasSystemOverviewPrivilege()
true
if this user is allowed to read the system overview.public boolean hasAdoptPrivilege()
true
if this user is allowed to execute the AdoptTask request.public boolean hasSelectiveStatisticsPrivilege()
true
if this user is allowed to access selective statistics.public boolean hasBackendVariablePrivilege()
true
if this user is allowed to create and modify backend variables.protected void setPrivilege(long privilege)
public com.uc4.translate.Message getTranslator()
protected void setTranslator(com.uc4.translate.Message translator)
public java.lang.String getClient()
public java.lang.String getDepartment()
public java.lang.String getLanguage()
public boolean isValid()
true
if this connection is valid.public java.lang.String getPassword()
public byte[] getKerberosToken()
public java.lang.String getSpnegoToken()
public long getWFRunID()
public java.lang.String getSessionId()
public java.lang.String getSystemName()
public java.lang.String getServerName()
public java.lang.String getUserIdnr()
public java.lang.String getUserName()
protected void setClient(java.lang.String string)
string
- UC4 Clientprotected void setToken(java.lang.String token)
token
- Tokenprotected void setDepartment(java.lang.String string)
string
- UC4 Departmentprotected void setLanguage(java.lang.String lang)
lang
- Languageprotected void setPassword(java.lang.String string)
string
- Password of the UC4 Userprotected void setKerberosToken(byte[] token)
token
- Tokenprotected void setSpnegoToken(java.lang.String token)
token
- base64 encoded tokenprotected void setWFRunID(long runID)
runID
- RunIDprotected void setSessionId(java.lang.String string)
string
- Session IDprotected void setSystemName(java.lang.String string)
string
- System Namepublic void setServerName(java.lang.String serverName)
serverName
- Server Name - the name of the server processprotected void setUserIdnr(java.lang.String string)
string
- Internal User IDprotected void setUserName(java.lang.String string)
string
- User namepublic java.lang.String getEncoding()
protected void setEncoding(java.lang.String encoding)
encoding
- Name of the character setpublic int getDefaultJobPlanElse()
protected void setDefaultJobPlanElse(int defaultJobPlanElse)
public boolean isSSO()
true
if single sign on is active.public java.lang.String getRemoteID()
public java.lang.String getPasswordType()
null
if not set.protected void setRemoteID(java.lang.String remoteID)
remoteID
- Remote IDprotected void setPasswordType(java.lang.String passwordType)
passwordType
- ET (Exit token), TK (Token) or PW (Password)public java.util.TimeZone getSessionTimeZone()
protected void setSessionTimeZone(java.util.TimeZone sessionTimeZone)
sessionTimeZone
- the new session time zonepublic java.lang.String getKicks()
protected void setKicks(java.lang.String kicks)
kicks
- Comma separated list of kick messages.public java.lang.String getAccessToken()
public void setAccessToken(java.lang.String accessToken)
accessToken
- token as stringpublic java.lang.String getRefreshToken()
public void setRefreshToken(java.lang.String refreshToken)
refreshToken
- token as stringprotected void setSSLContext(javax.net.ssl.SSLContext sslContext)
sslContext
- public javax.net.ssl.SSLContext getSslContext()
sslContext
-