Package com.uc4.api.objects
Class BackendVariable
java.lang.Object
com.uc4.api.objects.BackendVariable
Backend Variable.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addUnixCommand
(BackendCommand unixCommand) Adds a newBackendCommand
to the Unix commands.void
addWindowsCommand
(BackendCommand winCommand) Adds a newBackendCommand
to the Windows commands.getHost()
Returns the name of the Host.getLogin()
Returns the name of the LOGIN object.Returns the result format.boolean
Returnstrue
if the host name from the user settings should be applied.boolean
Returnstrue
if the LOGIN object from the settings of the currently logged on user should be used.void
setApplyUserHost
(boolean applyUserHost) Sets or clears the check box "Apply User's Host" in the User interface.void
setApplyUserLogin
(boolean applyUserLogin) Sets or clears the check box "Apply User's Login" in the User interface.void
setHost
(UC4HostName host) Sets the Name of the host for the file list.void
setLogin
(UC4ObjectName login) Sets the name of the LOGIN object.void
setResultFormat
(String resultFormat) Sets the result format.protected void
Returns an iterator over UnixBackendCommand
.int
Returns the number of Unix Commands entries.Returns an iterator over WindowsBackendCommand
.int
Returns the number of Windows Commands entries.
-
Constructor Details
-
BackendVariable
protected BackendVariable(com.uc4.util.XMLDocument doc)
-
-
Method Details
-
store
-
getHost
Returns the name of the Host. If the host is not set the return value is an emptyUC4HostName
instance.- Returns:
- Name of the host, never null
-
setHost
Sets the Name of the host for the file list. Ifnull
is passed the field Host will not be set.- Parameters:
host
- Name of the host
-
getLogin
Returns the name of the LOGIN object. If the login is not set the return value is an emptyUC4ObjectName
instance.- Returns:
- Name of the Login object, never null
-
setLogin
Sets the name of the LOGIN object. Ifnull
is passed the field will not be set.- Parameters:
login
- Name of the LOGIN object
-
isApplyUserHost
public boolean isApplyUserHost()Returnstrue
if the host name from the user settings should be applied.- Returns:
- True if the host should be used which set in the settings of the logged on user.
-
setApplyUserHost
public void setApplyUserHost(boolean applyUserHost) Sets or clears the check box "Apply User's Host" in the User interface.- Parameters:
applyUserHost
- iftrue
the host name from the user settings will be used.
-
isApplyUserLogin
public boolean isApplyUserLogin()Returnstrue
if the LOGIN object from the settings of the currently logged on user should be used.- Returns:
- true if the LOGIN object
-
setApplyUserLogin
public void setApplyUserLogin(boolean applyUserLogin) Sets or clears the check box "Apply User's Login" in the User interface.- Parameters:
applyUserLogin
- iftrue
the login name from the user settings will be used.
-
getResultFormat
Returns the result format.- Returns:
- Result format.
-
setResultFormat
Sets the result format. The maximum length is 1024 characters.- Parameters:
resultFormat
- String which contains the result format.
-
windowsCommandsSize
public int windowsCommandsSize()Returns the number of Windows Commands entries.- Returns:
- Number of Windows Commands entries.
-
unixCommandsSize
public int unixCommandsSize()Returns the number of Unix Commands entries.- Returns:
- Number of Unix Commands entries.
-
windowsCommandsIterator
Returns an iterator over WindowsBackendCommand
.- Returns:
- Iterator over Windows Commands.
-
unixCommandsIterator
Returns an iterator over UnixBackendCommand
.- Returns:
- Iterator over Unix Commands.
-
addWindowsCommand
Adds a newBackendCommand
to the Windows commands.- Parameters:
winCommand
-BackendCommand
with contains the Windows command for the backend variable.
-
addUnixCommand
Adds a newBackendCommand
to the Unix commands.- Parameters:
unixCommand
-BackendCommand
with contains the Windows command for the backend variable.
-