Class AbstractExecutionCommandBuilder<R extends AbstractExecutionCommandBuilder<R>>
- java.lang.Object
-
- com._1c.g5.v8.dt.platform.services.core.runtimes.execution.impl.AbstractExecutionCommandBuilder<R>
-
- Direct Known Subclasses:
RuntimeExecutionCommandBuilder
,WebExecutionCommandBuilder
public abstract class AbstractExecutionCommandBuilder<R extends AbstractExecutionCommandBuilder<R>> extends Object
Abstract implementation for 1C:Enterprise command builder.
-
-
Constructor Summary
Constructors Constructor Description AbstractExecutionCommandBuilder()
Creates an instance ofAbstractExecutionCommandBuilder
.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected R
append(String string)
Append the provided string as is to the command builder.protected R
appendOption(String option)
Append the provided option to the the command builder.protected abstract void
appendOption(List<String> commands, String option)
Append the provided option to the the command builder.protected R
appendOptionParameter(String optionParameter, String... values)
Append the provided option parameter to the command builder.protected abstract void
appendOptionParameter(List<String> commands, String optionParameter)
Append the provided option parameter to the command builder.protected List<String>
commands()
Build string-presented ready-to-use command.R
dataSeparation(String serarators)
Add the data separation option to the launched 1C:Enterprise client.R
disableHomePageForms()
Add command option to force 1C:Enterprise client to show home page forms in disabled state.R
disableStartupDialogs()
Add the disable 1C:Enterprise client startup dialog and force target infobase usage command option instead of possibility to ask user for infobase selection.R
disableStartupMessages()
Add the disable 1C:Enterprise client startup warning messages command option.R
displayAllFunctions()
Add the display "All functions" fuction in the launched 1C:Enterprise client command option.R
displayPerformance()
Add the display performance in launched 1C:Enterprise client command option.R
enableCheckExtensionsAndAddInsSyncCalls()
Add the enable 1C:Enterprise client strict check of file extensions, cryptography extensions and add-ins synchronous calls option (thin and web clients only).R
enableCheckModal()
Add the enable 1C:Enterprise client strict check of modal methods calls option.R
enableDebug(String debugServerUrl, boolean autoAttach)
Add debug enablement option to constructing command.R
execute(String externalDataFile)
Add the start an external data processor in 1C:Enterprise mode immediately after startup option to constructing command.R
interfaceLanguage(String languageCode)
Add interface language option to constructing command.R
mainWindowMode(ClientLaunchMode clientLaunchMode)
Add command option to set 1C:Enterprise client window launch mode.R
osAuthentication(boolean enable)
Add the OS authentication option to constructing command.R
pwaAppName(String name)
Add Progressive web application name to constructing command.protected R
self()
Returns a reference to this command builder.R
sessionLocale(Locale locale)
Add session locale option to constructing command.R
startupOption(String startupOption)
Add the startup option to the launched 1C:Enterprise client.R
technicalSpecialistMode()
Enables "Fuctions for technician" command in "Service" and settings menu.R
urlFragment(String urlFragment)
Adde1cib
transfering URL fragment option to constructing command.R
userName(String userName)
Add user name option to constructing command.R
userPassword(String userPassword)
Add user password option to constructing command.R
withConnectionSpeed(ClientConnectionSpeed clientConnectionSpeed)
Add 1C:Enterprise client connection speed command option.
-
-
-
Constructor Detail
-
AbstractExecutionCommandBuilder
public AbstractExecutionCommandBuilder()
Creates an instance ofAbstractExecutionCommandBuilder
.
-
-
Method Detail
-
sessionLocale
public R sessionLocale(Locale locale)
Add session locale option to constructing command.- Parameters:
infobase
- the infobase to use, cannot benull
- Returns:
- a reference to this command builder, never
null
-
interfaceLanguage
public R interfaceLanguage(String languageCode)
Add interface language option to constructing command.- Parameters:
languageCode
- the interface language code to use, cannot benull
- Returns:
- a reference to this command builder, never
null
-
userName
public R userName(String userName)
Add user name option to constructing command.- Parameters:
userName
- the user name to add. If the user name isnull
or empty then option and its value will be removed from the command if present- Returns:
- a reference to this command builder, never
null
-
userPassword
public R userPassword(String userPassword)
Add user password option to constructing command.- Parameters:
userPassword
- the user password to add. If the user password isnull
or empty then option and its value will be removed from the command if present- Returns:
- a reference to this command builder, never
null
-
enableDebug
public R enableDebug(String debugServerUrl, boolean autoAttach)
Add debug enablement option to constructing command.- Parameters:
debugServerUrl
- the 1C:Enterprise debug server URL, cannot benull
autoAttach
- whether need to auto-attach launching debug target- Returns:
- a reference to this command builder, never
null
-
withConnectionSpeed
public R withConnectionSpeed(ClientConnectionSpeed clientConnectionSpeed)
Add 1C:Enterprise client connection speed command option.- Parameters:
clientConnectionSpeed
- the client connection speed to define, cannot benull
- Returns:
- a reference to this command builder, never
null
-
enableCheckModal
public R enableCheckModal()
Add the enable 1C:Enterprise client strict check of modal methods calls option.- Returns:
- a reference to this command builder, never
null
-
enableCheckExtensionsAndAddInsSyncCalls
public R enableCheckExtensionsAndAddInsSyncCalls()
Add the enable 1C:Enterprise client strict check of file extensions, cryptography extensions and add-ins synchronous calls option (thin and web clients only).- Returns:
- a reference to this command builder, never
null
-
disableStartupMessages
public R disableStartupMessages()
Add the disable 1C:Enterprise client startup warning messages command option.- Returns:
- a reference to this command builder, never
null
-
disableStartupDialogs
public R disableStartupDialogs()
Add the disable 1C:Enterprise client startup dialog and force target infobase usage command option instead of possibility to ask user for infobase selection.- Returns:
- a reference to this command builder, never
null
-
displayPerformance
public R displayPerformance()
Add the display performance in launched 1C:Enterprise client command option.- Returns:
- a reference to this command builder, never
null
-
displayAllFunctions
public R displayAllFunctions()
Add the display "All functions" fuction in the launched 1C:Enterprise client command option.- Returns:
- a reference to this command builder, never
null
-
technicalSpecialistMode
public R technicalSpecialistMode()
Enables "Fuctions for technician" command in "Service" and settings menu.- Returns:
- a reference to this command builder, never
null
-
startupOption
public R startupOption(String startupOption)
Add the startup option to the launched 1C:Enterprise client.- Returns:
- a reference to this command builder, never
null
-
dataSeparation
public R dataSeparation(String serarators)
Add the data separation option to the launched 1C:Enterprise client.- Parameters:
serarators
- theString
represented data separators, divided by comma, nevernull
- Returns:
- a reference to this command builder, never
null
-
pwaAppName
public R pwaAppName(String name)
Add Progressive web application name to constructing command.- Parameters:
name
- PWA name, can benull
- Returns:
- a reference to this command builder, never
null
-
osAuthentication
public R osAuthentication(boolean enable)
Add the OS authentication option to constructing command. If the option is already present in the command its value will be changed.- Parameters:
enable
- whether need to enable OS authentication- Returns:
- a reference to this command builder, never
null
-
execute
public R execute(String externalDataFile)
Add the start an external data processor in 1C:Enterprise mode immediately after startup option to constructing command.- Parameters:
externalDataFile
- the external data dump file, cannot benull
- Returns:
- a reference to this command builder, never
null
-
urlFragment
public R urlFragment(String urlFragment)
Adde1cib
transfering URL fragment option to constructing command.- Parameters:
urlFragment
- thee1cib
transfering URL fragment, cannot benull
- Returns:
- a reference to this command builder, never
null
-
disableHomePageForms
public R disableHomePageForms()
Add command option to force 1C:Enterprise client to show home page forms in disabled state.- Returns:
- a reference to this command builder, never
null
-
mainWindowMode
public R mainWindowMode(ClientLaunchMode clientLaunchMode)
Add command option to set 1C:Enterprise client window launch mode.- Parameters:
clientLaunchMode
- the mode to set, cannot benull
- Returns:
- a reference to this command builder, never
null
-
append
protected R append(String string)
Append the provided string as is to the command builder.- Parameters:
string
- the string to append, cannot benull
- Returns:
- a reference to this command builder, never
null
-
appendOption
protected R appendOption(String option)
Append the provided option to the the command builder.- Parameters:
option
- the string option to append, cannot benull
- Returns:
- a reference to this command builder, never
null
-
appendOptionParameter
protected R appendOptionParameter(String optionParameter, String... values)
Append the provided option parameter to the command builder.- Parameters:
optionParameter
- the string option parameter to append, cannot benull
values
- an optional parameter values, cannot benull
, may be empty- Returns:
- a reference to this command builder, never
null
-
commands
protected List<String> commands()
Build string-presented ready-to-use command.- Returns:
- string-presented ready-to-use command
-
self
protected R self()
Returns a reference to this command builder.- Returns:
- a reference to this command builder, never
null
-
appendOption
protected abstract void appendOption(List<String> commands, String option)
Append the provided option to the the command builder. Subclass must implement.- Parameters:
builder
- the string builder to append command option to, cannot benull
option
- option to append, cannot benull
-
appendOptionParameter
protected abstract void appendOptionParameter(List<String> commands, String optionParameter)
Append the provided option parameter to the command builder. Subclass must implement.- Parameters:
builder
- the string builder to append command option parameter to, cannot benull
optionParameter
- option parameter to append, cannot benull
-
-