public class BasicClient extends java.lang.Object implements ClientContextI, java.awt.event.WindowListener, DBManEventListenerI, ConnectionEventListenerI
ClientContextI interface for the application.
This class acts as the central hub for the client environment. It manages the primary client session, asynchronous event subscriptions, server connection state, database operations, UI dialog routing, and transaction building.
| Modifier and Type | Field and Description |
|---|---|
static org.apache.log4j.Logger |
log |
static java.lang.String |
slash |
CANCELED, CONFIRMED, DENIED, TYPE_ERROR, TYPE_INFO, TYPE_PLAIN, TYPE_QUESTION, TYPE_WARNING| Constructor and Description |
|---|
BasicClient()
Constructs a new
BasicClient instance. |
| Modifier and Type | Method and Description |
|---|---|
void |
addAction(javax.swing.Action $105)
Adds an action to this ClientContextI.
|
void |
addAction(javax.swing.Action $103,
MDIElementI $104)
Adds an action to this ClientContextI, either globally or for a specific "MDIElementI".
|
void |
addSaveBOListener(SaveBOListenerI $106) |
void |
addVisualComponent(javax.swing.JComponent $63,
java.lang.String $64) |
void |
addVisualComponent(java.lang.String $60,
javax.swing.JComponent $61,
java.lang.String $62) |
void |
afterConnectServer()
Initializes necessary state immediately after a successful connection to the server is established.
|
void |
applyDefaults(electric.xml.Element $46,
java.lang.Object[] $47) |
void |
authenticate(java.lang.String $125,
java.lang.String $126) |
void |
authenticate(java.lang.String $122,
java.lang.String $123,
boolean $124) |
void |
authenticate(java.lang.String $118,
java.lang.String $119,
boolean $120,
java.lang.String $121) |
void |
bringUsToFront() |
void |
close()
Closes the client session, unsubscribes from all server and connection events,
and forcibly stops the event notifier thread.
|
javax.swing.JRootPane |
determineRootPane(FormContextI $115) |
void |
endWaitFeedback()
Lifecycle hook meant to be overridden by UI subclasses to deactivate
visual waiting indicators.
|
java.lang.String |
executeCommand(java.lang.String $83) |
void |
forcedClientDisconnectInitiated(int _cSecsDelay)
Lifecycle hook triggered when the server requests a forced client disconnect.
|
void |
forcedClientDisconnectInitiated(int _cSecsDelay,
java.lang.String _msg) |
void |
forcedClientDisconnectStopped()
Lifecycle hook triggered when a forced client disconnect is aborted.
|
java.util.Map |
getAllActions() |
java.util.HashMap |
getAllMenus() |
java.util.HashMap |
getAllToolBars() |
Struktur |
getAutomatikStrukturForPath(java.lang.String $57)
Returns the automatically generated structure element for a given path.
|
Struktur |
getAutomatikStrukturForPath(java.lang.String $55,
boolean $56)
Returns the automatically generated structure element for a given path.
|
Struktur |
getAutomatikStrukturForPath(java.lang.String $52,
boolean $53,
boolean $54)
Returns the automatically generated structure element for a given path.
|
Struktur |
getAutomatikStrukturForPath(java.lang.String $48,
boolean $49,
boolean $50,
EntityI[] $51)
Returns the automatically generated structure element for a given path.
|
BackendConnectionManagerI |
getBackendConnectionManager()
Returns the backend connection manager responsible for remote server communication.
|
byte[] |
getBLOB(java.lang.Long id)
Retrieves binary large object (BLOB) data corresponding to the given ID from the backend.
|
BO |
getBO(java.lang.Long id,
java.lang.Class classTip)
Retrieves a specific Business Object from the backend by its ID and Class.
|
BOLoaderI |
getBOLoader() |
Lesezeichen |
getBookmarkByTid(java.lang.String $116,
java.lang.String $117) |
Lesezeichen[] |
getBookmarks(EntityI $72) |
Lesezeichen[] |
getBookmarks(EntityI $70,
boolean $71) |
FormContextI |
getClientFtx()
Returns the client form context.
|
CodebausteinStorageI |
getCodebausteinStorage() |
DBManInfo |
getDBManInfo()
Retrieves information about the server.
|
java.awt.Component |
getDefaultDialogParent() |
java.awt.Component |
getDialogParent()
Determines the optimal parent component for modal dialogs.
|
DBManEventProviderI |
getEventProvider() |
FeatureManagerI |
getFeatureManager()
Returns the feature manager associated with the current backend connection.
|
Folder |
getFolder(java.lang.String $91) |
Folder[] |
getFolderChildren(Folder $130) |
FormElementI |
getFormElementForBO(BO $82) |
Formular[] |
getForms(EntityI $101) |
Formular[] |
getForms(EntityI $99,
boolean $100) |
FormContextI |
getFtx() |
FulltextSearcherI |
getFulltextSearcher()
Checks if Fulltext Search (FTS) is available on the backend and returns the searcher instance if so.
|
java.util.Map |
getGlobalActions(FormContextI $65) |
Gruppe[] |
getGruppenSortiert()
Returns the
Gruppe entities the current Benutzer is a member of,
sorted according to their Prioritaet property in ascending order. |
byte[] |
getLocalFile(java.io.File infile)
Reads a local file entirely into memory and returns its content as a byte array.
|
java.awt.Image |
getLogo() |
MDIElementI |
getMDIElementForBO(BO $102) |
MDIManagerI |
getMDIManager() |
javax.swing.JMenu |
getMenu(java.lang.String $90) |
Transaction |
getNewFormTransaction()
Convenience method for creating a typical UI 'form transaction',
pre-populated with the current user and flagged to detect interactivity.
|
Transaction |
getNewFormTransaction(java.lang.String desc) |
Transaction |
getNewTransaction() |
Transaction |
getNewTransaction(BOLoaderI loader)
Central internal factory method to create and fully initialize a new database transaction.
|
Transaction |
getNewTransaction(BOLoaderI loader,
SchemaI txSchema) |
Transaction |
getNewTransaction(BOLoaderI loader,
SchemaI txSchema,
java.lang.String desc) |
Transaction |
getNewTransaction(BOLoaderI loader,
SchemaI txSchema,
java.lang.String desc,
TemporaryIdSupplierI tempIdSupplier) |
Transaction |
getNewTransaction(java.lang.String desc) |
Transaction |
getNewTransaction(java.lang.String desc,
TemporaryIdSupplierI tempIdSupplier) |
Transaction |
getNewTransaction(TemporaryIdSupplierI tempIdSupplier) |
Transaction |
getNewTransactionWithInstrumentedSchema() |
Transaction |
getNewTransactionWithInstrumentedSchema(java.lang.String desc) |
Transaction |
getNewTransactionWithInstrumentedSchema(java.lang.String desc,
TemporaryIdSupplierI tempIdSupplier) |
Transaction |
getNewTransactionWithInstrumentedSchema(TemporaryIdSupplierI tempIdSupplier) |
java.util.List<ClientPluginI> |
getPlugins() |
java.lang.String |
getProjectDir()
Returns the project package structure formatted as a directory path string.
|
java.lang.String |
getProjectPackage()
Returns the base project package name by stripping the '.gui' suffix.
|
java.lang.String |
getProjectPackageName()
Returns the Java package name of the current concrete client class context.
|
Report[] |
getReports(EntityI $110) |
Report[] |
getReports(EntityI $108,
boolean $109) |
SchemaI |
getSchema() |
BeanShellScript |
getScript() |
java.lang.String |
getServerName() |
SessionI |
getSession() |
Struktur[] |
getStrukturenForEntity(java.lang.String $244)
Returns all structures for a given entity-name
|
Struktur[] |
getStrukturenForEntity(java.lang.String $242,
boolean $243)
Returns all structures for a given entity-name
|
Struktur[] |
getStrukturenForEntity(java.lang.String $239,
boolean $240,
boolean $241)
Returns all structures for a given entity-name
|
Struktur[] |
getStrukturenForEntity(java.lang.String $235,
boolean $236,
boolean $237,
EntityI[] $238)
Returns all structures for a given entity-name
|
Struktur[] |
getStrukturenForSearchString(java.lang.String $85,
int $86,
boolean $87,
boolean $88,
EntityI[] $89)
Searches entities for a given string and generates/retrieves the structures for them
|
Schablone |
getTemplateByTid(java.lang.String $58,
java.lang.String $59) |
Schablone[] |
getTemplates(EntityI $234) |
Schablone[] |
getTemplates(EntityI $232,
boolean $233) |
Schablone[] |
getTemplatesForSubEntitiesInAdminsOrdner(EntityI $111,
boolean $112,
boolean $113,
java.util.Set $114) |
FormContextI |
getTemporaryFtx()
Creates and returns a temporary
FormContextI bound to this client's BO loader. |
java.lang.String |
getUniquePrefix() |
FormatterI |
getVarFormatter() |
java.lang.String |
getWindowTitle(BO $69) |
java.lang.String |
getWindowTitle(BO $66,
java.lang.String $67,
boolean $68) |
void |
initLogonSubscriptions()
Subscribes to essential backend server events upon user logon.
|
void |
initScript()
Initializes the internal BeanShell scripting interpreter.
|
boolean |
isClosed() |
boolean |
isConnected() |
boolean |
isConnected(boolean failfast) |
boolean |
isMemoryTightClient() |
boolean |
isMemoryTightClient(boolean failfast) |
boolean |
isNotificationSystemActivated() |
boolean |
isServerAuthoritativeSyncServer() |
boolean |
isShowBOProperties() |
boolean |
isShowHiddenProperties() |
boolean |
isShowHistory() |
void |
killEventNotifier()
Forcibly shuts down the internal event notifier thread.
|
void |
loadGlobals()
Loads global session variables and user preferences from the local machine configuration file
and applies them to the current session.
|
void |
logon() |
FormElementI |
openForm(Formular $230,
BO $231) |
FormElementI |
openForm(Formular $227,
BO $228,
java.util.Map $229) |
FormElementI |
openForm(Formular $223,
BO $224,
java.util.Map $225,
FormElementI $226) |
FormElementI |
openForm(Formular $219,
BO $220,
java.util.Map $221,
java.lang.String $222) |
FormElementI |
openForm(Formular $214,
BO $215,
java.util.Map $216,
java.lang.String $217,
FormContextI $218) |
FormElementI |
openForm(Formular $208,
BO $209,
java.util.Map $210,
java.lang.String $211,
FormContextI $212,
boolean $213) |
FormElementI |
openForm(Formular $205,
Transaction $206,
BO $207) |
FormElementI |
openForm(Formular $201,
Transaction $202,
BO $203,
java.util.Map $204) |
FormElementI |
openForm(Formular $196,
Transaction $197,
BO $198,
java.util.Map $199,
java.lang.String $200) |
FormElementI |
openForm(Formular $190,
Transaction $191,
BO $192,
java.util.Map $193,
java.lang.String $194,
FormContextI $195) |
FormElementI |
openForm(Formular $183,
Transaction $184,
BO $185,
java.util.Map $186,
java.lang.String $187,
FormContextI $188,
boolean $189) |
FormElementI |
openNew(Schablone $80) |
FormElementI |
openNew(Schablone $78,
java.util.Map $79) |
FormElementI |
openNew(Schablone $75,
java.util.Map $76,
FormElementI $77)
Creates a new BO with the given
Schablone and parameters and opens it relative to the optional origin form |
FormElementI |
openView(BO $151) |
FormElementI |
openView(BO $149,
java.util.Map $150) |
FormElementI |
openView(BO $146,
java.util.Map $147,
java.lang.String $148) |
FormElementI |
openView(BO $142,
java.util.Map $143,
java.lang.String $144,
boolean $145) |
FormElementI |
openView(BO $137,
java.util.Map $138,
java.lang.String $139,
boolean $140,
boolean $141) |
FormElementI |
openView(Lesezeichen $154) |
FormElementI |
openView(Lesezeichen $152,
java.util.Map $153) |
void |
passwordChangeInLogonDialogInitiated()
Notifies the client that a password change has been initiated in the logon UI.
|
FormElementI |
preparePrinting(Report $172,
BO $173) |
FormElementI |
preparePrinting(Report $181,
BO[] $182) |
FormElementI |
preparePrinting(Report $178,
BO[] $179,
java.lang.String $180) |
FormElementI |
preparePrinting(Report $174,
BO[] $175,
java.lang.String $176,
FormElementI $177) |
FormElementI |
preparePrinting(Report $169,
BO $170,
java.lang.String $171) |
FormElementI |
preparePrinting(java.lang.String $159,
java.lang.String $160,
BO $161) |
FormElementI |
preparePrinting(java.lang.String $166,
java.lang.String $167,
BO[] $168) |
FormElementI |
preparePrinting(java.lang.String $162,
java.lang.String $163,
BO[] $164,
java.lang.String $165) |
FormElementI |
preparePrinting(java.lang.String $155,
java.lang.String $156,
BO $157,
java.lang.String $158) |
void |
processConnectionEvent(ConnectionEvent ce)
Called with a
ConnectionEvent that affects the current connection. |
void |
processDBManEvent(DBManEvent event)
Invoked when a subscribed DBManEvent occurs.
|
void |
processLoginScript(java.lang.String timeToExecute)
Processes and executes login scripts bound to the current user and their associated groups.
|
void |
processLoginScript(java.lang.String timeToExecute,
boolean noTimeExecute) |
void |
putLocalFile(java.io.File outfile,
byte[] data)
Writes raw byte data out to a local file.
|
void |
putLocalFile(java.io.File outfile,
java.io.InputStream is)
Streams data from an InputStream out to a local file.
|
java.util.List |
queryBO(groovy.lang.GString gs)
Executes a database query dynamically constructed via Groovy GString interpolation.
|
java.util.List |
queryBO(java.lang.String query)
Implementation Note: Performs parameterized querying against the backend.
|
java.util.List |
queryBO(java.lang.String query,
java.lang.Object[] params) |
void |
receivedSystemMessage(java.lang.String _msg)
Lifecycle hook triggered when a broadcast system message is received.
|
void |
receivedSystemMessage(java.lang.String _msg,
java.lang.String _sender) |
void |
refreshActions() |
void |
registerClientContainer(java.lang.String $133,
ClientContainerI $134) |
javax.swing.JFrame |
registerMDIManagerInstance(java.lang.String $135,
MDIManagerI $136) |
void |
removeAction(javax.swing.Action $129)
Removes an action globally from this ClientContextI.
|
void |
removeAction(javax.swing.Action $127,
MDIElementI $128)
Removes an action from this ClientContextI, either globally or for a specific "MDIElementI".
|
void |
removeSaveBOListener(SaveBOListenerI $98) |
FormElementI |
reopenView(FormElementI $97) |
FormElementI |
reopenView(FormElementI $95,
Struktur $96) |
FormElementI |
reopenView(FormElementI $92,
Struktur $93,
boolean $94) |
void |
resetPassword(java.lang.String $81) |
TransactionAnswer |
saveBO(Transaction $43)
Helper class to notify the client about incoming backend events asynchronously.
|
TransactionAnswer |
saveBO(Transaction $44,
boolean $45) |
void |
saveGlobals()
Saves global session variables and user preferences to the local machine configuration file.
|
void |
serverLocked()
Lifecycle hook triggered when the server enters a locked state.
|
void |
serverShutdown(java.util.Date _dateShutdown)
Lifecycle hook triggered upon actual server shutdown.
|
void |
serverShutdownInitiated(int _cSecsDelay)
Lifecycle hook triggered when a server shutdown process begins.
|
void |
serverShutdownInitiated(int _cSecsDelay,
java.lang.String _msg) |
void |
serverShutdownStopped()
Lifecycle hook triggered when a server shutdown process is aborted.
|
void |
serverUnlocked()
Lifecycle hook triggered when the server leaves a locked state.
|
void |
setDefaultDialogParent(java.awt.Component $253) |
void |
setDefaultFocusOwner(javax.swing.JComponent $132) |
void |
setEmptyMDIFocus() |
void |
setMenuBar(javax.swing.JMenuBar $131) |
void |
setSchema(SchemaI $252) |
void |
setScript(BeanShellScript $254) |
void |
setTitle() |
void |
setTitle(java.lang.String $107) |
java.math.BigDecimal |
showBigDecimalInputDialog(java.lang.String s,
java.lang.String title,
java.math.BigDecimal oldValue,
boolean nullAllowed)
Shows a modal dialog for
BigDecimal input. |
int |
showConfirmDialog(java.lang.String s) |
int |
showConfirmDialog(java.lang.String s,
java.lang.String title) |
int |
showConfirmDialog(java.lang.String s,
java.lang.String title,
boolean forceAffirmation,
java.lang.String affirmationText,
java.lang.String affirmationString)
Displays a confirmation dialog offering YES, NO, and CANCEL options, with optional
affirmation text required for confirmation.
|
java.util.Date |
showDateInputDialog(java.lang.String s,
java.lang.String title,
java.util.Date oldValue,
boolean nullAllowed,
java.lang.String format)
Shows a modal dialog for
Date input. |
java.lang.Object |
showError(java.lang.String s) |
java.lang.Object |
showError(java.lang.String s,
java.lang.Throwable ex) |
java.lang.Object |
showError(java.lang.String s,
java.lang.Throwable ex,
boolean suppressPrintCausedBy,
java.lang.String title,
java.lang.Object[] buttons)
Shows an error message, controlling whether the "Caused by" trace is printed in the details.
|
java.lang.Object |
showError(java.lang.String s,
java.lang.Throwable ex,
java.lang.String title,
boolean deprecatedForceSynchronous,
java.lang.Object[] buttons)
Shows an error message in a modal dialog with an optional exception stack trace.
|
java.lang.Object |
showException(java.lang.Throwable ex) |
java.lang.Object |
showException(java.lang.Throwable ex,
boolean deprecatedForceSynchronous,
java.lang.Object[] buttons)
Shows an exception stack trace in a dialog without a custom error message.
|
java.io.File |
showFileChooser(java.lang.String title,
java.lang.String approveText,
java.lang.String sessionKey,
int selectionMode,
boolean quiet,
javax.swing.filechooser.FileFilter filter,
javax.swing.JComponent accessory,
java.io.File preselectedFile,
java.io.File fallbackLastUsedDir,
int dialogType)
Internal and Legacy routing method for single file / directory selections.
|
java.io.File[] |
showFilesChooser(java.lang.String title,
java.lang.String approveText,
java.lang.String sessionKey,
int selectionMode,
javax.swing.filechooser.FileFilter filter,
javax.swing.JComponent accessory,
java.io.File fallbackLastUsedDir)
Legacy multiple file routing method.
|
java.io.File |
showFolderChooser(java.lang.String title,
java.lang.String sessionKey,
boolean quiet,
java.io.File preselectedFile)
Opens a native dialog strictly tailored to select a FOLDER / DIRECTORY.
|
java.lang.Integer |
showIntegerInputDialog(java.lang.String s,
java.lang.String title,
java.lang.Integer oldValue,
boolean nullAllowed)
Shows a modal dialog for
Integer input. |
java.lang.Object |
showListChoiceDialog(java.lang.String title,
java.lang.Object[] options) |
java.lang.Object |
showListChoiceDialog(java.lang.String title,
java.lang.Object[] options,
int defaultIndex)
Shows a simple list choice dialog with a default choice index.
|
java.lang.Object |
showListChoiceDialog(java.lang.String title,
java.lang.Object[] options,
int defaultIndex,
java.lang.String cboFormat) |
java.lang.Object |
showListChoiceDialog(java.lang.String title,
java.lang.Object[] options,
int defaultIndex,
java.lang.String cboFormat,
boolean multiple)
Shows a dialog window that allows the user to select one or more from the provided options.
|
java.lang.Object |
showListChoiceDialog(java.lang.String title,
java.lang.Object[] options,
java.lang.Object defaultChoice)
Shows a simple list choice dialog with a default choice object.
|
java.lang.Object |
showListChoiceDialog(java.lang.String title,
java.lang.Object[] options,
java.lang.Object defaultChoice,
java.lang.String cboFormat) |
java.lang.Object |
showListChoiceDialog(java.lang.String title,
java.lang.Object[] options,
java.lang.Object defaultChoice,
java.lang.String cboFormat,
boolean multiple)
Shows a dialog window that allows the user to select one or more from the provided options.
|
java.lang.Long |
showLongInputDialog(java.lang.String s,
java.lang.String title,
java.lang.Long oldValue,
boolean nullAllowed)
Shows a modal dialog for
Long input. |
void |
showMessageDialog(java.lang.String s) |
void |
showMessageDialog(java.lang.String s,
java.lang.String type) |
void |
showMessageDialog(java.lang.String s,
java.lang.String type,
java.lang.String title)
Shows a modal message dialog that blocks execution until the user dismisses it.
|
void |
showMessageDialog(java.lang.String s,
java.lang.String type,
java.lang.String title,
int maxLengthLines,
boolean alwaysOnTop,
boolean sync)
Internal extended router for showing standardized message dialogs.
|
void |
showMessageDialogNonModal(java.lang.String s) |
void |
showMessageDialogNonModal(java.lang.String s,
java.lang.String type) |
void |
showMessageDialogNonModal(java.lang.String s,
java.lang.String type,
java.lang.String title)
Shows a non-modal message dialog that does not block background execution.
|
java.lang.Object[] |
showMultiListChoiceDialog(java.lang.String title,
java.lang.Object[] options) |
java.lang.Object[] |
showMultiListChoiceDialog(java.lang.String title,
java.lang.Object[] options,
java.lang.Object[] defaultChoices) |
java.lang.Object[] |
showMultiListChoiceDialog(java.lang.String title,
java.lang.Object[] options,
java.lang.Object[] defaultChoices,
java.lang.String cboFormat)
Shows a dialog window that allows the user to select one or more from the provided options.
|
java.lang.Object |
showMultipleChoiceDialog(java.lang.String s,
java.lang.String title,
java.lang.Object[] options) |
java.lang.Object |
showMultipleChoiceDialog(java.lang.String s,
java.lang.String title,
java.lang.Object[] options,
int defaultIndex)
Shows a multiple choice dialog (checkbox style) with a default index.
|
java.io.File |
showOpenFileChooser(java.lang.String title,
java.lang.String sessionKey,
boolean quiet,
javax.swing.filechooser.FileFilter filter)
Opens a native OPEN dialog strictly tailored to select a SINGLE EXISTING FILE.
|
java.io.File[] |
showOpenFilesChooser(java.lang.String title,
java.lang.String sessionKey,
javax.swing.filechooser.FileFilter filter,
java.io.File preselectedFile)
Opens a native OPEN dialog configured to select MULTIPLE EXISTING FILES.
|
java.io.File |
showSaveFileChooser(java.lang.String title,
java.lang.String sessionKey,
javax.swing.filechooser.FileFilter filter,
boolean quiet,
java.io.File preselectedFile)
Opens a native SAVE dialog with an input field for defining a file name.
|
java.lang.String |
showStringInputDialog(java.lang.String s) |
java.lang.String |
showStringInputDialog(java.lang.String s,
java.lang.String title) |
java.lang.String |
showStringInputDialog(java.lang.String message,
java.lang.String title,
java.lang.String oldValue,
boolean multilineInput,
boolean passwordInput)
Shows a modal dialog for string input.
|
java.util.Date[] |
showTimespanInputDialog(java.lang.String s,
java.lang.String title,
java.util.Date oldValueStart,
java.util.Date oldValueEnd,
boolean startNullAllowed,
boolean endNullAllowed,
java.lang.String format)
Shows a modal dialog for inputting a start and end date timespan.
|
java.lang.String[] |
showUserLoginDialog(java.lang.String message,
java.lang.String title,
java.lang.String user)
Shows a dialog prompting for username and password, with an optionally pre-filled username.
|
boolean |
showYesNoDialog(java.lang.String s)
Shows a simple modal dialog asking a Yes/No question.
|
void |
startL10nPackPrefetcher() |
void |
startWaitFeedback()
Lifecycle hook meant to be overridden by UI subclasses to activate
visual waiting indicators (like hourglass cursors or progress bars).
|
void |
submitAction(java.awt.event.ActionEvent $73) |
void |
suggestGC() |
void |
trackReadAccess(Struktur $84)
Updates the read access statistics for the passed Struktur.
|
void |
updateServerHealth(DBManServerHealthEvent she)
Lifecycle hook triggered on server health updates.
|
FormElementI |
updateView(FormElementI $74) |
void |
windowActivated(java.awt.event.WindowEvent $249) |
void |
windowClosed(java.awt.event.WindowEvent $247) |
void |
windowClosing(java.awt.event.WindowEvent $246) |
void |
windowDeactivated(java.awt.event.WindowEvent $251) |
void |
windowDeiconified(java.awt.event.WindowEvent $248) |
void |
windowIconified(java.awt.event.WindowEvent $245) |
void |
windowOpened(java.awt.event.WindowEvent $250) |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddActions, getTemplatesForSubEntitiesInAdminsOrdner, getTemplatesForSubEntitiesInAdminsOrdner, removeActionsgetCurrentUser, getGlobalVar, getGlobalVars, setGlobalVarsaveWithRetries, saveWithRetriesshowBigDecimalInputDialog, showBigDecimalInputDialog, showBigDecimalInputDialog, showConfirmDialog, showConfirmDialog, showDateInputDialog, showDateInputDialog, showDateInputDialog, showDateInputDialog, showError, showError, showError, showError, showException, showFileChooser, showFileChooser, showFileChooser, showFileChooser, showFileChooser, showFileChooser, showFileChooser, showFileChooser, showFilesChooser, showFilesChooser, showFilesChooser, showFilesChooser, showFilesChooser, showFolderChooser, showFolderChooser, showFolderChooser, showIntegerInputDialog, showIntegerInputDialog, showIntegerInputDialog, showLongInputDialog, showLongInputDialog, showLongInputDialog, showOpenFileChooser, showOpenFileChooser, showOpenFileChooser, showOpenFileChooser, showOpenFilesChooser, showOpenFilesChooser, showOpenFilesChooser, showPasswordInputDialog, showPasswordInputDialog, showSaveFileChooser, showSaveFileChooser, showSaveFileChooser, showSaveFileChooser, showSaveFileChooser, showStringInputDialog, showStringInputDialog, showTimespanInputDialog, showTimespanInputDialog, showTimespanInputDialog, showTimespanInputDialog, showTimespanInputDialog, showTimespanInputDialog, showUserLoginDialogpublic static final org.apache.log4j.Logger log
public static final java.lang.String slash
public BasicClient()
BasicClient instance.
Initializes the internal session state and starts the asynchronous EventNotifier
daemon thread to handle backend events without blocking the UI.
public boolean isClosed()
isClosed in interface ClientContextIpublic void close()
Closes the client session, unsubscribes from all server and connection events, and forcibly stops the event notifier thread.
close in interface ClientContextIpublic void killEventNotifier()
public void afterConnectServer()
Subscribes to connection events, updates the waiting flag, and clears stale caches.
public void initLogonSubscriptions()
Listens for server health events, operational state changes (lock/shutdown), and business object change events for the currently logged-in user.
public java.awt.Component getDialogParent()
Determines the optimal parent component for modal dialogs. Typically returns the active MDI (Multiple Document Interface) frame, or a default fallback during login.
getDialogParent in interface de.ipcon.db.core.BasicClientContextIpublic CodebausteinStorageI getCodebausteinStorage()
getCodebausteinStorage in interface ClientContextIpublic java.lang.String getProjectPackageName()
public java.lang.String getProjectPackage()
getProjectPackage in interface de.ipcon.db.core.BasicClientContextIpublic java.lang.String getProjectDir()
public BackendConnectionManagerI getBackendConnectionManager()
BackendConnectionManagerI instance.public BOLoaderI getBOLoader()
getBOLoader in interface de.ipcon.db.core.BasicClientContextIpublic FormContextI getClientFtx()
Note: Currently returns null, but subclasses may override this behavior.
FormContextI.public DBManEventProviderI getEventProvider()
getEventProvider in interface de.ipcon.db.core.BasicClientContextIpublic FeatureManagerI getFeatureManager()
FeatureManagerI instance.public FulltextSearcherI getFulltextSearcher()
Checks if Fulltext Search (FTS) is available on the backend and returns the searcher instance if so.
getFulltextSearcher in interface ClientContextIpublic Transaction getNewTransaction(BOLoaderI loader)
loader - The BO loader to use.txSchema - The schema to use (optional).desc - A description for the transaction (optional).tempIdSupplier - A supplier for temporary IDs (optional).Transaction.java.lang.IllegalStateException - if not connected to a server.public Transaction getNewTransaction(BOLoaderI loader, SchemaI txSchema)
public Transaction getNewTransaction(BOLoaderI loader, SchemaI txSchema, java.lang.String desc)
public Transaction getNewTransaction(BOLoaderI loader, SchemaI txSchema, java.lang.String desc, TemporaryIdSupplierI tempIdSupplier)
public Transaction getNewTransaction(java.lang.String desc)
getNewTransaction in interface TransactionBuilderIpublic Transaction getNewTransaction(java.lang.String desc, TemporaryIdSupplierI tempIdSupplier)
getNewTransaction in interface TransactionBuilderIpublic Transaction getNewTransaction()
getNewTransaction in interface TransactionBuilderIpublic Transaction getNewTransaction(TemporaryIdSupplierI tempIdSupplier)
getNewTransaction in interface TransactionBuilderIpublic Transaction getNewTransactionWithInstrumentedSchema(java.lang.String desc)
getNewTransactionWithInstrumentedSchema in interface TransactionBuilderIpublic Transaction getNewTransactionWithInstrumentedSchema(java.lang.String desc, TemporaryIdSupplierI tempIdSupplier)
getNewTransactionWithInstrumentedSchema in interface TransactionBuilderIpublic Transaction getNewTransactionWithInstrumentedSchema()
getNewTransactionWithInstrumentedSchema in interface TransactionBuilderIpublic Transaction getNewTransactionWithInstrumentedSchema(TemporaryIdSupplierI tempIdSupplier)
getNewTransactionWithInstrumentedSchema in interface TransactionBuilderIpublic Transaction getNewFormTransaction()
Convenience method for creating a typical UI 'form transaction', pre-populated with the current user and flagged to detect interactivity.
getNewFormTransaction in interface FormTransactionBuilderIpublic Transaction getNewFormTransaction(java.lang.String desc)
getNewFormTransaction in interface FormTransactionBuilderIpublic void initScript()
Sets up standard imports (GUI, BOs, Utils), injects default constants (like D_ZERO),
and binds the current client context to the script engine environment.
public Gruppe[] getGruppenSortiert()
Gruppe entities the current Benutzer is a member of,
sorted according to their Prioritaet property in ascending order.Gruppe objects.public void processLoginScript(java.lang.String timeToExecute)
Iterates through the VoreinstellungenElemente scripts. Executing the scripts
is done on a best-effort basis and will depend on the active server connection state.
timeToExecute - The identifier string indicating the execution phase (e.g. 'gui.login').noTimeExecute - If true, scripts without a specific timing definition will be executed unconditionally.public void processLoginScript(java.lang.String timeToExecute,
boolean noTimeExecute)
public FormContextI getTemporaryFtx()
FormContextI bound to this client's BO loader.public java.io.File showSaveFileChooser(java.lang.String title,
java.lang.String sessionKey,
javax.swing.filechooser.FileFilter filter,
boolean quiet,
java.io.File preselectedFile)
Note: Native OS save dialogs inherently support single-file selection only.
Implementation Note: Routes to the internal method, explicitly requesting a native SAVE dialog.
showSaveFileChooser in interface BasicDialogItitle - The title of the dialog.sessionKey - A global variable name for this selection context (LRU dir tracking).filter - The file filter to apply natively.quiet - If true, suppresses the UI if the start directory is already set.preselectedFile - The file to be initially selected (pre-fills the save input field).File to save to, or null if canceled.public java.io.File showOpenFileChooser(java.lang.String title,
java.lang.String sessionKey,
boolean quiet,
javax.swing.filechooser.FileFilter filter)
Implementation Note: Routes to the internal method, explicitly requesting a native OPEN dialog.
showOpenFileChooser in interface BasicDialogItitle - The title of the dialog.sessionKey - A global variable name for this selection context (LRU dir).quiet - If true, suppresses the UI if the start directory is already set.filter - The file filter to apply.File, or null if canceled.public java.io.File showFolderChooser(java.lang.String title,
java.lang.String sessionKey,
boolean quiet,
java.io.File preselectedFile)
Note: Native operating systems enforce directory selection via their "Open" dialog interface, even when the application intends to use the selected folder as a save/export destination.
Implementation Note: Routes to the internal method, explicitly requesting a native OPEN dialog strictly restricted to directories.
showFolderChooser in interface BasicDialogItitle - The title of the dialog (e.g. "Select Export Folder").sessionKey - A global variable name for this selection context (LRU dir).quiet - If true, suppresses the UI if the start directory is already set.preselectedFile - An optional directory to navigate into initially. If the directory does not exist, the OS typically falls back to the nearest existing parent.File, or null if canceled.public java.io.File[] showOpenFilesChooser(java.lang.String title,
java.lang.String sessionKey,
javax.swing.filechooser.FileFilter filter,
java.io.File preselectedFile)
Implementation Note: Bypasses the single-file router and calls chooseFile directly for native multi-selection.
showOpenFilesChooser in interface BasicDialogItitle - The title of the dialog.sessionKey - A global variable name for this selection context (LRU dir).filter - The file filter to apply.preselectedFile - A file to pre-select, positioning the user contextually.File objects, or null if canceled.public java.io.File showFileChooser(java.lang.String title,
java.lang.String approveText,
java.lang.String sessionKey,
int selectionMode,
boolean quiet,
javax.swing.filechooser.FileFilter filter,
javax.swing.JComponent accessory,
java.io.File preselectedFile,
java.io.File fallbackLastUsedDir,
int dialogType)
showFileChooser in interface BasicDialogItitle - The dialog title.approveText - The text on the approval button.sessionKey - The LRU tracking variable name.selectionMode - The Swing selection mode constant.quiet - If true, skips the dialog if LRU is known.filter - The file filter to apply.accessory - A custom Swing component (forces Swing fallback natively).preselectedFile - The initially selected file.fallbackLastUsedDir - The directory to start in if no LRU exists.dialogType - The Swing dialog type (Open, Save, Custom).File, or null if canceled.public java.io.File[] showFilesChooser(java.lang.String title,
java.lang.String approveText,
java.lang.String sessionKey,
int selectionMode,
javax.swing.filechooser.FileFilter filter,
javax.swing.JComponent accessory,
java.io.File fallbackLastUsedDir)
showFilesChooser in interface BasicDialogItitle - The dialog title.approveText - The text on the approval button.sessionKey - The LRU tracking variable name.selectionMode - The Swing selection mode constant.filter - The file filter to apply.accessory - A custom Swing component (forces Swing fallback natively).fallbackLastUsedDir - The directory to start in if no LRU exists.Files, or null if canceled.public void saveGlobals()
Note: Currently saves to a per-machine file, not strictly per-user, due to legacy constraints. Exceptions are caught and logged without disrupting execution flow.
public void loadGlobals()
public java.lang.Object showError(java.lang.String s,
java.lang.Throwable ex,
java.lang.String title,
boolean deprecatedForceSynchronous,
java.lang.Object[] buttons)
showError in interface BasicDialogIs - The error message to display.ex - The exception that caused the error (may be null).title - The title of the dialog window.deprecatedForceSynchronous - Ignored for modern execution. Retained only for backward compatibility.buttons - An array of custom buttons to display, or null for default buttons.public java.lang.Object showError(java.lang.String s,
java.lang.Throwable ex,
boolean suppressPrintCausedBy,
java.lang.String title,
java.lang.Object[] buttons)
showError in interface BasicDialogIs - The error message to display.ex - The exception that caused the error (may be null).suppressPrintCausedBy - If true, suppresses the printing of the "Caused by" chain.title - The title of the dialog window.buttons - An array of custom buttons to display.public java.lang.Object showException(java.lang.Throwable ex,
boolean deprecatedForceSynchronous,
java.lang.Object[] buttons)
showException in interface BasicDialogIex - The exception to display.deprecatedForceSynchronous - Ignored for modern execution. Retained only for backward compatibility.buttons - An array of custom buttons to display.public boolean showYesNoDialog(java.lang.String s)
showYesNoDialog in interface BasicDialogIs - The question/message to display.true if the user selects Yes, false if No or canceled.public int showConfirmDialog(java.lang.String s,
java.lang.String title,
boolean forceAffirmation,
java.lang.String affirmationText,
java.lang.String affirmationString)
Important Note on Return Value and Scripting Languages:
This method returns an int result code from JOptionPane.
If this result is used in a language that implicitly converts integers to booleans (like NetRexx or Groovy):
JOptionPane.YES_OPTION (which is 0) evaluates to false.JOptionPane.NO_OPTION (which is 1) and JOptionPane.CANCEL_OPTION (which is 2) evaluate to true.This inversion can lead to significant logical errors if not handled explicitly.
showConfirmDialog in interface BasicDialogIs - The primary text or question to display.title - The title of the dialog.forceAffirmation - If true, the user must type the affirmationString to enable the confirm button.affirmationText - The instructional text displayed above the input field.affirmationString - The specific string the user must enter to affirm the action.int indicating the user action (e.g. JOptionPane.YES_OPTION).
Note: Closing the dialog (e.g. via the close window button) will be interpreted as a cancel action.public java.lang.String showStringInputDialog(java.lang.String message,
java.lang.String title,
java.lang.String oldValue,
boolean multilineInput,
boolean passwordInput)
Implementation Note: Acts as a wrapper for DialogTools.showInputMessageDialog(...)
showStringInputDialog in interface BasicDialogImessage - The prompt message.title - The title of the dialog.oldValue - The initial value shown in the input field.multilineInput - If true, allows multiple lines of text input.passwordInput - If true, hides the input text (e.g. for password entry).null if canceled.public java.lang.Integer showIntegerInputDialog(java.lang.String s,
java.lang.String title,
java.lang.Integer oldValue,
boolean nullAllowed)
Integer input.showIntegerInputDialog in interface BasicDialogIs - The prompt message.title - The title of the dialog.oldValue - The initial value shown in the input field.nullAllowed - If true, allows the user to leave the field empty (returns null).Integer entered by the user, or null if canceled/empty.public java.lang.Long showLongInputDialog(java.lang.String s,
java.lang.String title,
java.lang.Long oldValue,
boolean nullAllowed)
Long input.showLongInputDialog in interface BasicDialogIs - The prompt message.title - The title of the dialog.oldValue - The initial value shown in the input field.nullAllowed - If true, allows the user to leave the field empty (returns null).Long entered by the user, or null if canceled/empty.public java.math.BigDecimal showBigDecimalInputDialog(java.lang.String s,
java.lang.String title,
java.math.BigDecimal oldValue,
boolean nullAllowed)
BigDecimal input.showBigDecimalInputDialog in interface BasicDialogIs - The prompt message.title - The title of the dialog.oldValue - The initial value shown in the input field.nullAllowed - If true, allows the user to leave the field empty (returns null).BigDecimal entered by the user, or null if canceled/empty.public java.util.Date showDateInputDialog(java.lang.String s,
java.lang.String title,
java.util.Date oldValue,
boolean nullAllowed,
java.lang.String format)
Date input.showDateInputDialog in interface BasicDialogIs - The prompt message.title - The title of the dialog.oldValue - The initial value shown in the input field.nullAllowed - If true, allows the user to leave the field empty (returns null).format - The date format pattern (e.g. "yyyy-MM-dd").Date entered by the user, or null if canceled/empty.public java.util.Date[] showTimespanInputDialog(java.lang.String s,
java.lang.String title,
java.util.Date oldValueStart,
java.util.Date oldValueEnd,
boolean startNullAllowed,
boolean endNullAllowed,
java.lang.String format)
showTimespanInputDialog in interface BasicDialogIs - The prompt message.title - The title of the dialog.oldValueStart - The initial value for the start date.oldValueEnd - The initial value for the end date.startNullAllowed - If true, allows the start date field to be empty.endNullAllowed - If true, allows the end date field to be empty.format - The date format pattern (e.g. "yyyy-MM-dd").Date objects: [startDate, endDate], or null if canceled.public void showMessageDialogNonModal(java.lang.String s,
java.lang.String type,
java.lang.String title)
showMessageDialogNonModal in interface BasicDialogIs - The message content.type - The type of message (e.g. TYPE_INFO, TYPE_ERROR).title - The title of the dialog.public void showMessageDialog(java.lang.String s,
java.lang.String type,
java.lang.String title)
showMessageDialog in interface BasicDialogIs - The message content.type - The type of message (e.g. TYPE_INFO, TYPE_ERROR).title - The title of the dialog.public void showMessageDialog(java.lang.String s,
java.lang.String type,
java.lang.String title,
int maxLengthLines,
boolean alwaysOnTop,
boolean sync)
s - The message to display.type - The dialog type string constant.title - The title of the dialog.maxLengthLines - The maximum line length before word wrapping occurs.alwaysOnTop - Whether the dialog forces itself on top of the window stack.sync - Whether the dialog blocks execution synchronously.public java.lang.Object showListChoiceDialog(java.lang.String title,
java.lang.Object[] options,
java.lang.Object defaultChoice,
java.lang.String cboFormat,
boolean multiple)
showListChoiceDialog in interface FormattedChoiceDialogItitle - The title of the dialog window.options - A non-empty array of options.defaultChoice - The object to select by default.cboFormat - Optional. An explicit formatting string used to render Business Objects (BOs) in the list.
If null, the default BO formatting logic will be used.multiple - If true, multiple options can be selected.null.public java.lang.Object showError(java.lang.String s)
showError in interface BasicDialogIBasicDialogI.showError(String, Throwable, String, boolean, Object[])public java.lang.Object showError(java.lang.String s,
java.lang.Throwable ex)
showError in interface BasicDialogIBasicDialogI.showError(String, Throwable, String, boolean, Object[])public java.lang.Object showException(java.lang.Throwable ex)
showException in interface BasicDialogIBasicDialogI.showException(Throwable, boolean, Object[])public void showMessageDialog(java.lang.String s)
showMessageDialog in interface BasicDialogIBasicDialogI.showMessageDialog(String, String, String)public void showMessageDialog(java.lang.String s,
java.lang.String type)
showMessageDialog in interface BasicDialogIBasicDialogI.showMessageDialog(String, String, String)public void showMessageDialogNonModal(java.lang.String s)
showMessageDialogNonModal in interface BasicDialogIBasicDialogI.showMessageDialogNonModal(String, String, String)public void showMessageDialogNonModal(java.lang.String s,
java.lang.String type)
showMessageDialogNonModal in interface BasicDialogIBasicDialogI.showMessageDialogNonModal(String, String, String)public int showConfirmDialog(java.lang.String s)
showConfirmDialog in interface BasicDialogIBasicDialogI.showConfirmDialog(String, String, boolean, String, String)public int showConfirmDialog(java.lang.String s,
java.lang.String title)
showConfirmDialog in interface BasicDialogIBasicDialogI.showConfirmDialog(String, String, boolean, String, String)public java.lang.String showStringInputDialog(java.lang.String s)
showStringInputDialog in interface BasicDialogIBasicDialogI.showStringInputDialog(String, String, String, boolean, boolean)public java.lang.String showStringInputDialog(java.lang.String s,
java.lang.String title)
showStringInputDialog in interface BasicDialogIBasicDialogI.showStringInputDialog(String, String, String, boolean, boolean)public java.lang.Object showListChoiceDialog(java.lang.String title,
java.lang.Object[] options)
showListChoiceDialog in interface FormattedChoiceDialogIshowListChoiceDialog in interface BasicDialogIBasicDialogI.showListChoiceDialog(String, Object[], Object)public java.lang.Object showListChoiceDialog(java.lang.String title,
java.lang.Object[] options,
java.lang.Object defaultChoice,
java.lang.String cboFormat)
showListChoiceDialog in interface FormattedChoiceDialogI(multiple=false)public java.lang.Object showListChoiceDialog(java.lang.String title,
java.lang.Object[] options,
java.lang.Object defaultChoice)
BasicDialogIshowListChoiceDialog in interface FormattedChoiceDialogIshowListChoiceDialog in interface BasicDialogItitle - The title of the dialog window.options - A non-empty array of selectable options.defaultChoice - The object instance to select by default.null if canceled.(multiple=false, cboFormat=null)public java.lang.Object[] showMultiListChoiceDialog(java.lang.String title,
java.lang.Object[] options,
java.lang.Object[] defaultChoices)
showMultiListChoiceDialog in interface FormattedChoiceDialogI(cboFormat=null)public java.lang.Object[] showMultiListChoiceDialog(java.lang.String title,
java.lang.Object[] options)
showMultiListChoiceDialog in interface FormattedChoiceDialogI(defaultChoices=null, cboFormat=null)public java.lang.Object showListChoiceDialog(java.lang.String title,
java.lang.Object[] options,
int defaultIndex,
java.lang.String cboFormat)
showListChoiceDialog in interface FormattedChoiceDialogI(multiple=false)public java.lang.Object showListChoiceDialog(java.lang.String title,
java.lang.Object[] options,
int defaultIndex)
BasicDialogIshowListChoiceDialog in interface FormattedChoiceDialogIshowListChoiceDialog in interface BasicDialogItitle - The title of the dialog window.options - A non-empty array of options.defaultIndex - The integer index of the option to be selected by default.null if canceled.(multiple=false, cboFormat=null)public java.lang.Object showMultipleChoiceDialog(java.lang.String s,
java.lang.String title,
java.lang.Object[] options)
showMultipleChoiceDialog in interface BasicDialogIBasicDialogI.showMultipleChoiceDialog(String, String, Object[], int)public java.lang.Object[] showMultiListChoiceDialog(java.lang.String title,
java.lang.Object[] options,
java.lang.Object[] defaultChoices,
java.lang.String cboFormat)
showMultiListChoiceDialog in interface FormattedChoiceDialogItitle - The title of the dialog window.options - A non-empty array of options.defaultChoices - An array of objects to select by default.cboFormat - Optional. An explicit formatting string used to render Business Objects (BOs) in the list.
If null, the default BO formatting logic will be used.null, if there were either no available options or
the user cancelled the selection.public java.lang.Object showListChoiceDialog(java.lang.String title,
java.lang.Object[] options,
int defaultIndex,
java.lang.String cboFormat,
boolean multiple)
showListChoiceDialog in interface FormattedChoiceDialogItitle - The title of the dialog window.options - A non-empty array of options.defaultIndex - The index of the object to be selected by default.cboFormat - Optional. An explicit formatting string used to render Business Objects (BOs) in the list.
If null, the default BO formatting logic will be used.multiple - If true, multiple options can be selected.null.public java.lang.Object showMultipleChoiceDialog(java.lang.String s,
java.lang.String title,
java.lang.Object[] options,
int defaultIndex)
Implementation Note: Shows a dialog offering multiple options of answering (NOT selecting, if this is wanted use showListChoiceDialog() with param 'multiple' set to true)
showMultipleChoiceDialog in interface BasicDialogIs - The message or question to display.title - The title of the dialog.options - An array of options to choose from.defaultIndex - The index of the option to check by default.null if canceled.public java.lang.String[] showUserLoginDialog(java.lang.String message,
java.lang.String title,
java.lang.String user)
showUserLoginDialog in interface BasicDialogImessage - The message or prompt to display.title - The title of the dialog.user - The initial username to pre-fill.[username, password], or null if canceled.public java.util.List queryBO(groovy.lang.GString gs)
gs - The GString query template.public java.util.List queryBO(java.lang.String query)
Implementation Note: Performs parameterized querying against the backend.
queryBO in interface de.ipcon.db.core.BasicClientContextIpublic java.util.List queryBO(java.lang.String query,
java.lang.Object[] params)
queryBO in interface de.ipcon.db.core.BasicClientContextIpublic BO getBO(java.lang.Long id, java.lang.Class classTip)
Retrieves a specific Business Object from the backend by its ID and Class.
getBO in interface de.ipcon.db.core.BasicClientContextIpublic boolean isServerAuthoritativeSyncServer()
isServerAuthoritativeSyncServer in interface de.ipcon.db.core.BasicClientContextIpublic SessionI getSession()
getSession in interface de.ipcon.db.core.BasicClientContextIpublic byte[] getBLOB(java.lang.Long id)
Retrieves binary large object (BLOB) data corresponding to the given ID from the backend.
getBLOB in interface de.ipcon.db.core.BasicClientContextIpublic byte[] getLocalFile(java.io.File infile)
Reads a local file entirely into memory and returns its content as a byte array. Extremely useful for scripting contexts.
getLocalFile in interface de.ipcon.db.core.BasicClientContextIjava.lang.IllegalArgumentException - if an I/O error occurs or the file is not read completely.public void putLocalFile(java.io.File outfile,
byte[] data)
Writes raw byte data out to a local file.
putLocalFile in interface de.ipcon.db.core.BasicClientContextIpublic void putLocalFile(java.io.File outfile,
java.io.InputStream is)
Streams data from an InputStream out to a local file.
putLocalFile in interface de.ipcon.db.core.BasicClientContextIjava.lang.IllegalArgumentException - if an I/O error occurs during write.public void startWaitFeedback()
startWaitFeedback in interface ClientContextIpublic void endWaitFeedback()
endWaitFeedback in interface ClientContextIpublic void processDBManEvent(DBManEvent event)
DBManBOChangeEvent for events triggered after modification on BOs.
Routes generic database manager events into the asynchronous EventNotifier thread or immediately processes critical local user BO changes.
processDBManEvent in interface DBManEventListenerIpublic void updateServerHealth(DBManServerHealthEvent she)
public void forcedClientDisconnectInitiated(int _cSecsDelay)
public void forcedClientDisconnectInitiated(int _cSecsDelay,
java.lang.String _msg)
public void forcedClientDisconnectStopped()
public void serverShutdownInitiated(int _cSecsDelay)
public void serverShutdownInitiated(int _cSecsDelay,
java.lang.String _msg)
public void serverShutdownStopped()
public void serverShutdown(java.util.Date _dateShutdown)
public void receivedSystemMessage(java.lang.String _msg)
public void receivedSystemMessage(java.lang.String _msg,
java.lang.String _sender)
public void serverLocked()
public void serverUnlocked()
public void processConnectionEvent(ConnectionEvent ce)
ConnectionEvent that affects the current connection.
Implementation of ConnectionEventListenerI.
Routes connection loss and establishment events into the asynchronous EventNotifier.
processConnectionEvent in interface ConnectionEventListenerIpublic java.lang.String getServerName()
getServerName in interface ClientContextIpublic boolean isConnected()
isConnected in interface ClientContextIpublic boolean isConnected(boolean failfast)
isConnected in interface ClientContextIpublic boolean isMemoryTightClient()
isMemoryTightClient in interface ClientContextIpublic boolean isMemoryTightClient(boolean failfast)
isMemoryTightClient in interface ClientContextIpublic DBManInfo getDBManInfo()
getDBManInfo in interface ClientContextIpublic TransactionAnswer saveBO(Transaction $43)
This queue-driven daemon thread ensures that long-lasting event-handling logic does not block the networking threads receiving those events.
saveBO in interface TransactionProviderI$43 - the Transaction to savepublic TransactionAnswer saveBO(Transaction $44, boolean $45)
saveBO in interface TransactionProviderIpublic void applyDefaults(electric.xml.Element $46,
java.lang.Object[] $47)
applyDefaults in interface StrukturParameterDefaultApplierIpublic Struktur getAutomatikStrukturForPath(java.lang.String $48, boolean $49, boolean $50, EntityI[] $51)
AutomatikStrukturLoaderIgetAutomatikStrukturForPath in interface AutomatikStrukturLoaderI$48 - a String containing the path to the automatically generated structure element that shall be loaded$49 - force a reload$50 - only return structure that is for the entity directly, that is resolved from the path, no parent class structure$51 - only returns structure of the passed EntityI; no restriction if nullpublic Struktur getAutomatikStrukturForPath(java.lang.String $52, boolean $53, boolean $54)
AutomatikStrukturLoaderIgetAutomatikStrukturForPath in interface AutomatikStrukturLoaderI$52 - a String containing the path to the automatically generated structure element that shall be loaded$53 - force a reload$54 - only return structure that is for the entity directly, that is resolved from the path, no parent class structurepublic Struktur getAutomatikStrukturForPath(java.lang.String $55, boolean $56)
AutomatikStrukturLoaderIgetAutomatikStrukturForPath in interface AutomatikStrukturLoaderI$55 - a String containing the path to the automatically generated structure element that shall be loaded$56 - force a reloadpublic Struktur getAutomatikStrukturForPath(java.lang.String $57)
AutomatikStrukturLoaderIgetAutomatikStrukturForPath in interface AutomatikStrukturLoaderI$57 - a String containing the path to the automatically generated structure element that shall be loadedpublic Schablone getTemplateByTid(java.lang.String $58, java.lang.String $59)
getTemplateByTid in interface ClientContextIpublic void addVisualComponent(java.lang.String $60,
javax.swing.JComponent $61,
java.lang.String $62)
addVisualComponent in interface ClientContextIpublic void addVisualComponent(javax.swing.JComponent $63,
java.lang.String $64)
addVisualComponent in interface ClientContextIpublic java.util.Map getGlobalActions(FormContextI $65)
getGlobalActions in interface ClientContextIpublic java.lang.String getWindowTitle(BO $66, java.lang.String $67, boolean $68)
getWindowTitle in interface ClientContextIpublic java.lang.String getWindowTitle(BO $69)
getWindowTitle in interface ClientContextIpublic Lesezeichen[] getBookmarks(EntityI $70, boolean $71)
getBookmarks in interface ClientContextIpublic Lesezeichen[] getBookmarks(EntityI $72)
getBookmarks in interface ClientContextIpublic void submitAction(java.awt.event.ActionEvent $73)
submitAction in interface ClientContextIpublic FormElementI updateView(FormElementI $74)
updateView in interface ClientContextIpublic java.util.HashMap getAllMenus()
getAllMenus in interface ClientContextIpublic java.util.List<ClientPluginI> getPlugins()
getPlugins in interface ClientContextIpublic FormElementI openNew(Schablone $75, java.util.Map $76, FormElementI $77)
ClientContextISchablone and parameters and opens it relative to the optional origin formopenNew in interface ClientContextI$75 - the template to create the new BO with, nonnull.$76 - a nullable map of parameters for the template$77 - a nullable FormElementI to open the new view relative topublic FormElementI openNew(Schablone $78, java.util.Map $79)
openNew in interface ClientContextIpublic FormElementI openNew(Schablone $80)
openNew in interface ClientContextIpublic void resetPassword(java.lang.String $81)
resetPassword in interface ClientContextIpublic java.awt.Image getLogo()
getLogo in interface ClientContextIpublic FormElementI getFormElementForBO(BO $82)
getFormElementForBO in interface ClientContextIpublic MDIManagerI getMDIManager()
getMDIManager in interface ClientContextIpublic void refreshActions()
refreshActions in interface ClientContextIpublic java.lang.String executeCommand(java.lang.String $83)
executeCommand in interface ClientContextIpublic void trackReadAccess(Struktur $84)
ClientContextItrackReadAccess in interface ClientContextIpublic java.lang.String getUniquePrefix()
getUniquePrefix in interface ClientContextIpublic Struktur[] getStrukturenForSearchString(java.lang.String $85, int $86, boolean $87, boolean $88, EntityI[] $89)
ClientContextIgetStrukturenForSearchString in interface ClientContextI$85 - the String to which the entities are compared$86 - defines the type of matching done. see DynamischerOrdner$87 - force a reload$88 - only return structure that is for the entity directly, that is resolved from the path, no parent class structure$89 - only returns structure of the passed EntityI; no restriction if nullpublic javax.swing.JMenu getMenu(java.lang.String $90)
getMenu in interface ClientContextIpublic Folder getFolder(java.lang.String $91)
getFolder in interface ClientContextIpublic void suggestGC()
suggestGC in interface ClientContextIpublic FormElementI reopenView(FormElementI $92, Struktur $93, boolean $94)
reopenView in interface ClientContextIpublic FormElementI reopenView(FormElementI $95, Struktur $96)
reopenView in interface ClientContextIpublic FormElementI reopenView(FormElementI $97)
reopenView in interface ClientContextIpublic void removeSaveBOListener(SaveBOListenerI $98)
removeSaveBOListener in interface ClientContextIpublic void logon()
logon in interface ClientContextIpublic Formular[] getForms(EntityI $99, boolean $100)
getForms in interface ClientContextIpublic Formular[] getForms(EntityI $101)
getForms in interface ClientContextIpublic MDIElementI getMDIElementForBO(BO $102)
getMDIElementForBO in interface ClientContextIpublic FormContextI getFtx()
getFtx in interface ClientContextIpublic void addAction(javax.swing.Action $103,
MDIElementI $104)
ClientContextIThis method registers an action with the ClientContextI, making it available either globally or for a specific "MDIElementI". If an "MDIElementI" is provided, the action is associated with that element; otherwise, it is added to the global action map.
addAction in interface ClientContextI$103 - The action to add.$104 - The "MDIElementI" to associate the action with (optional).public void addAction(javax.swing.Action $105)
ClientContextIThis method registers an action with the ClientContextI, making it available globally by adding it to the global action map.
addAction in interface ClientContextI$105 - The action to add.public boolean isShowBOProperties()
isShowBOProperties in interface ClientContextIpublic void addSaveBOListener(SaveBOListenerI $106)
addSaveBOListener in interface ClientContextIpublic void passwordChangeInLogonDialogInitiated()
ClientContextIpasswordChangeInLogonDialogInitiated in interface ClientContextIpublic void setEmptyMDIFocus()
setEmptyMDIFocus in interface ClientContextIpublic void setTitle()
setTitle in interface ClientContextIpublic void setTitle(java.lang.String $107)
setTitle in interface ClientContextIpublic boolean isShowHiddenProperties()
isShowHiddenProperties in interface ClientContextIpublic Report[] getReports(EntityI $108, boolean $109)
getReports in interface ClientContextIpublic Report[] getReports(EntityI $110)
getReports in interface ClientContextIpublic Schablone[] getTemplatesForSubEntitiesInAdminsOrdner(EntityI $111, boolean $112, boolean $113, java.util.Set $114)
getTemplatesForSubEntitiesInAdminsOrdner in interface ClientContextIpublic javax.swing.JRootPane determineRootPane(FormContextI $115)
determineRootPane in interface ClientContextIpublic java.util.HashMap getAllToolBars()
getAllToolBars in interface ClientContextIpublic Lesezeichen getBookmarkByTid(java.lang.String $116, java.lang.String $117)
getBookmarkByTid in interface ClientContextIpublic boolean isNotificationSystemActivated()
isNotificationSystemActivated in interface ClientContextIpublic void authenticate(java.lang.String $118,
java.lang.String $119,
boolean $120,
java.lang.String $121)
throws AuthenticationException
authenticate in interface ClientContextIAuthenticationExceptionpublic void authenticate(java.lang.String $122,
java.lang.String $123,
boolean $124)
throws AuthenticationException
authenticate in interface ClientContextIAuthenticationExceptionpublic void authenticate(java.lang.String $125,
java.lang.String $126)
throws AuthenticationException
authenticate in interface ClientContextIAuthenticationExceptionpublic void bringUsToFront()
bringUsToFront in interface ClientContextIpublic void removeAction(javax.swing.Action $127,
MDIElementI $128)
ClientContextIThis method unregisters an action from the ClientContextI, either globally or for a specific "MDIElementI". If an "MDIElementI" is provided, the action is removed from that element; otherwise, it is removed from the global action map.
removeAction in interface ClientContextI$127 - The action to remove.$128 - The "MDIElementI" to remove the action from (optional).public void removeAction(javax.swing.Action $129)
ClientContextIThis method unregisters an action globally from the ClientContextI by removing it from the global action map.
removeAction in interface ClientContextI$129 - The action to remove.public Folder[] getFolderChildren(Folder $130)
getFolderChildren in interface ClientContextIpublic java.util.Map getAllActions()
getAllActions in interface ClientContextIpublic void setMenuBar(javax.swing.JMenuBar $131)
setMenuBar in interface ClientContextIpublic void setDefaultFocusOwner(javax.swing.JComponent $132)
setDefaultFocusOwner in interface ClientContextIpublic void registerClientContainer(java.lang.String $133,
ClientContainerI $134)
registerClientContainer in interface ClientContextIpublic javax.swing.JFrame registerMDIManagerInstance(java.lang.String $135,
MDIManagerI $136)
registerMDIManagerInstance in interface ClientContextIpublic FormElementI openView(BO $137, java.util.Map $138, java.lang.String $139, boolean $140, boolean $141)
openView in interface ClientContextIpublic FormElementI openView(BO $142, java.util.Map $143, java.lang.String $144, boolean $145)
openView in interface ClientContextIpublic FormElementI openView(BO $146, java.util.Map $147, java.lang.String $148)
openView in interface ClientContextIpublic FormElementI openView(BO $149, java.util.Map $150)
openView in interface ClientContextIpublic FormElementI openView(BO $151)
openView in interface ClientContextIpublic FormElementI openView(Lesezeichen $152, java.util.Map $153)
openView in interface ClientContextIpublic FormElementI openView(Lesezeichen $154)
openView in interface ClientContextIpublic FormatterI getVarFormatter()
getVarFormatter in interface ClientContextIpublic FormElementI preparePrinting(java.lang.String $155, java.lang.String $156, BO $157, java.lang.String $158)
preparePrinting in interface ClientContextIpublic FormElementI preparePrinting(java.lang.String $159, java.lang.String $160, BO $161)
preparePrinting in interface ClientContextIpublic FormElementI preparePrinting(java.lang.String $162, java.lang.String $163, BO[] $164, java.lang.String $165)
preparePrinting in interface ClientContextIpublic FormElementI preparePrinting(java.lang.String $166, java.lang.String $167, BO[] $168)
preparePrinting in interface ClientContextIpublic FormElementI preparePrinting(Report $169, BO $170, java.lang.String $171)
preparePrinting in interface ClientContextIpublic FormElementI preparePrinting(Report $172, BO $173)
preparePrinting in interface ClientContextIpublic FormElementI preparePrinting(Report $174, BO[] $175, java.lang.String $176, FormElementI $177)
preparePrinting in interface ClientContextIpublic FormElementI preparePrinting(Report $178, BO[] $179, java.lang.String $180)
preparePrinting in interface ClientContextIpublic FormElementI preparePrinting(Report $181, BO[] $182)
preparePrinting in interface ClientContextIpublic FormElementI openForm(Formular $183, Transaction $184, BO $185, java.util.Map $186, java.lang.String $187, FormContextI $188, boolean $189)
openForm in interface ClientContextIpublic FormElementI openForm(Formular $190, Transaction $191, BO $192, java.util.Map $193, java.lang.String $194, FormContextI $195)
openForm in interface ClientContextIpublic FormElementI openForm(Formular $196, Transaction $197, BO $198, java.util.Map $199, java.lang.String $200)
openForm in interface ClientContextIpublic FormElementI openForm(Formular $201, Transaction $202, BO $203, java.util.Map $204)
openForm in interface ClientContextIpublic FormElementI openForm(Formular $205, Transaction $206, BO $207)
openForm in interface ClientContextIpublic FormElementI openForm(Formular $208, BO $209, java.util.Map $210, java.lang.String $211, FormContextI $212, boolean $213)
openForm in interface ClientContextIpublic FormElementI openForm(Formular $214, BO $215, java.util.Map $216, java.lang.String $217, FormContextI $218)
openForm in interface ClientContextIpublic FormElementI openForm(Formular $219, BO $220, java.util.Map $221, java.lang.String $222)
openForm in interface ClientContextIpublic FormElementI openForm(Formular $223, BO $224, java.util.Map $225, FormElementI $226)
openForm in interface ClientContextIpublic FormElementI openForm(Formular $227, BO $228, java.util.Map $229)
openForm in interface ClientContextIpublic FormElementI openForm(Formular $230, BO $231)
openForm in interface ClientContextIpublic boolean isShowHistory()
isShowHistory in interface ClientContextIpublic void startL10nPackPrefetcher()
startL10nPackPrefetcher in interface ClientContextIpublic Schablone[] getTemplates(EntityI $232, boolean $233)
getTemplates in interface ClientContextIpublic Schablone[] getTemplates(EntityI $234)
getTemplates in interface ClientContextIpublic Struktur[] getStrukturenForEntity(java.lang.String $235, boolean $236, boolean $237, EntityI[] $238)
ClientContextIgetStrukturenForEntity in interface ClientContextI$235 - The entity name for which to collect the structures$236 - force a reload$237 - only return structures that are for the entity directly, no parent class structures$238 - only adds structures of the passed EntityI; no restriction if nullpublic Struktur[] getStrukturenForEntity(java.lang.String $239, boolean $240, boolean $241)
ClientContextIgetStrukturenForEntity in interface ClientContextI$239 - The entity name for which to collect the structures$240 - force a reload$241 - only return structures that are for the entity directly, no parent class structurespublic Struktur[] getStrukturenForEntity(java.lang.String $242, boolean $243)
ClientContextIgetStrukturenForEntity in interface ClientContextI$242 - The entity name for which to collect the structures$243 - force a reloadpublic Struktur[] getStrukturenForEntity(java.lang.String $244)
ClientContextIgetStrukturenForEntity in interface ClientContextI$244 - The entity name for which to collect the structurespublic void windowIconified(java.awt.event.WindowEvent $245)
windowIconified in interface java.awt.event.WindowListenerpublic void windowClosing(java.awt.event.WindowEvent $246)
windowClosing in interface java.awt.event.WindowListenerpublic void windowClosed(java.awt.event.WindowEvent $247)
windowClosed in interface java.awt.event.WindowListenerpublic void windowDeiconified(java.awt.event.WindowEvent $248)
windowDeiconified in interface java.awt.event.WindowListenerpublic void windowActivated(java.awt.event.WindowEvent $249)
windowActivated in interface java.awt.event.WindowListenerpublic void windowOpened(java.awt.event.WindowEvent $250)
windowOpened in interface java.awt.event.WindowListenerpublic void windowDeactivated(java.awt.event.WindowEvent $251)
windowDeactivated in interface java.awt.event.WindowListenerpublic SchemaI getSchema()
getSchema in interface de.ipcon.db.core.BasicClientContextIpublic void setSchema(SchemaI $252)
public java.awt.Component getDefaultDialogParent()
public void setDefaultDialogParent(java.awt.Component $253)
public BeanShellScript getScript()
getScript in interface de.ipcon.db.core.BasicClientContextIpublic void setScript(BeanShellScript $254)
setScript in interface de.ipcon.db.core.BasicClientContextICopyright © 2000-2026 OAshi S.à r.l. All Rights Reserved.