Package com.uc4.api.objects
Class BackendVariable
- java.lang.Object
-
- com.uc4.api.objects.BackendVariable
-
public class BackendVariable extends java.lang.ObjectBackend Variable.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedBackendVariable(com.uc4.util.XMLDocument doc)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddUnixCommand(BackendCommand unixCommand)Adds a newBackendCommandto the Unix commands.voidaddWindowsCommand(BackendCommand winCommand)Adds a newBackendCommandto the Windows commands.UC4HostNamegetHost()Returns the name of the Host.UC4ObjectNamegetLogin()Returns the name of the LOGIN object.java.lang.StringgetResultFormat()Returns the result format.booleanisApplyUserHost()Returnstrueif the host name from the user settings should be applied.booleanisApplyUserLogin()Returnstrueif the LOGIN object from the settings of the currently logged on user should be used.voidsetApplyUserHost(boolean applyUserHost)Sets or clears the check box "Apply User's Host" in the User interface.voidsetApplyUserLogin(boolean applyUserLogin)Sets or clears the check box "Apply User's Login" in the User interface.voidsetHost(UC4HostName host)Sets the Name of the host for the file list.voidsetLogin(UC4ObjectName login)Sets the name of the LOGIN object.voidsetResultFormat(java.lang.String resultFormat)Sets the result format.protected voidstore(com.uc4.util.XMLDocument doc, org.w3c.dom.Element parent)java.util.Iterator<BackendCommand>unixCommandsIterator()Returns an iterator over UnixBackendCommand.intunixCommandsSize()Returns the number of Unix Commands entries.java.util.Iterator<BackendCommand>windowsCommandsIterator()Returns an iterator over WindowsBackendCommand.intwindowsCommandsSize()Returns the number of Windows Commands entries.
-
-
-
Method Detail
-
store
protected void store(com.uc4.util.XMLDocument doc, org.w3c.dom.Element parent)
-
getHost
public UC4HostName getHost()
Returns the name of the Host. If the host is not set the return value is an emptyUC4HostNameinstance.- Returns:
- Name of the host, never null
-
setHost
public void setHost(UC4HostName host)
Sets the Name of the host for the file list. Ifnullis passed the field Host will not be set.- Parameters:
host- Name of the host
-
getLogin
public UC4ObjectName getLogin()
Returns the name of the LOGIN object. If the login is not set the return value is an emptyUC4ObjectNameinstance.- Returns:
- Name of the Login object, never null
-
setLogin
public void setLogin(UC4ObjectName login)
Sets the name of the LOGIN object. Ifnullis passed the field will not be set.- Parameters:
login- Name of the LOGIN object
-
isApplyUserHost
public boolean isApplyUserHost()
Returnstrueif 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- iftruethe host name from the user settings will be used.
-
isApplyUserLogin
public boolean isApplyUserLogin()
Returnstrueif 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- iftruethe login name from the user settings will be used.
-
getResultFormat
public java.lang.String getResultFormat()
Returns the result format.- Returns:
- Result format.
-
setResultFormat
public void setResultFormat(java.lang.String resultFormat)
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
public java.util.Iterator<BackendCommand> windowsCommandsIterator()
Returns an iterator over WindowsBackendCommand.- Returns:
- Iterator over Windows Commands.
-
unixCommandsIterator
public java.util.Iterator<BackendCommand> unixCommandsIterator()
Returns an iterator over UnixBackendCommand.- Returns:
- Iterator over Unix Commands.
-
addWindowsCommand
public void addWindowsCommand(BackendCommand winCommand)
Adds a newBackendCommandto the Windows commands.- Parameters:
winCommand-BackendCommandwith contains the Windows command for the backend variable.
-
addUnixCommand
public void addUnixCommand(BackendCommand unixCommand)
Adds a newBackendCommandto the Unix commands.- Parameters:
unixCommand-BackendCommandwith contains the Windows command for the backend variable.
-
-