public class OdsxSessionFactory extends FwkDescription
Odsx.NewSession.AskForPassword
.
The property OdsxSessionFactory.XATF.Directory specifies the initial directory.
Property Keyword | Datatype | Default | Description |
---|---|---|---|
OdsxSessionFactory.ATF.Directory | String | The user directory (s.a. FwkContainer) | The startup directory for the ATF file selector. |
Odsx.Title.ATFFileOpenDialog | String | Odsx.Title.ATFFileOpenDialog | The title of the selection dialog box. |
OdsxSessionFactory.XATF.Directory | String | The user directory (s.a. FwkContainer) | The startup directory for the XML-ATF file selector. |
Odsx.Title.XATFFileOpenDialog | String | Odsx.Title.XATFFileOpenDialog | The title of the selection dialog box. |
Odsx.NewSession.AskForPassword | boolean | true | if true the user will be asked for a password before the system tries to connnect a service. |
Odsx.NewSession.Username | String | null | The factory tires to get the the username and password from user dialog. This feature can be disabled by the property keyword Odsx.NewSession.AskForPassword. By using this keyword it is possible to specify username for the batchmode. If the username and password is available via these properties, the factory will not ask the user for authentication. |
Odsx.NewSession.Password | String | null | The factory tires to get the the username and password from user dialog. This feature can be disabled by the property keyword Odsx.NewSession.AskForPassword. By using this keyword it is possible to specify password for the batchmode. If the username and password is available via these properties, the factory will not ask the user for authentication. |
Odsx.NewSession.OpenMode | String | read | This flag enables the setting of on openmode. |
Odsx.NewSession.CreateCoSessionAllowed | String | true | This flag enables the creation of a co session during runtime. |
Odsx.NewSession.Authentication | String | null | The complete authentication used for connection. The values of the keywords Odsx.newSession.Username, Odsx.NewSession.Password and Odsx.NewSession.OpenMode will be appended if available. |
The session factory uses the java.util.prefs.Preferences
class to get and put following preferences:
atfdir | String | user.home or content of OdsxSessionFactory.XATF.Directory property. | This preferece holds the initial directory for the open ATF dialog. |
xmlatfdir | String | user.home or content of OdsxSessionFactory.XATF.Directory property. | This preferece holds the initial directory for the open XML-ATF dialog. |
,
Serialized FormModifier and Type | Field and Description |
---|---|
protected static OdsxSessionFactory |
instance |
protected static java.lang.String |
PREFS_LASTATFFILE |
protected static java.lang.String |
PREFS_LASTXMLATFFILE |
static java.lang.String |
version |
author, buildnr, className, company, copyright, creationDate, dateFormatString, description, eMail, FWK_ICON, FWK_ICON_ARRAY, FWK_ICON_BG, FWK_ICON_BG_ARRAY, FWK_ICON_BG_LARGE, FWK_ICON_BG_LARGE_ARRAY, FWK_ICON_LARGE, FWK_ICON_LARGE_ARRAY, icon, ICON, iconCount, iconKey, internetAddress, name, titleName
AUTHOR, BUILDNR, COMPANY, COPYRIGHT, DATE_FORMAT, DEFAULT_ICON, DESCRIPTION, INTERNET, LARGE_ICON, LARGE_KEY_EXT, LARGE_OPAQUE_ICON, LARGE_OPAQUE_KEY_EXT, OPAQUE_ICON, OPAQUE_KEY_EXT, RCS_DATE_FORMAT, SUPPORT_EMAIL, TITLE_NAME
Modifier and Type | Method and Description |
---|---|
static void |
addOdsxChangeListener(AoSession aoSession,
OdsxChangeListenerInterface listener)
Add an ODS change listener listen to the specified ODS session.
|
static void |
addOdsxChangeListener(OdsxChangeListenerInterface listener)
Add an ODS change listener.
|
protected void |
addOdsxChangeListenerImpl(AoSession aoSession,
OdsxChangeListenerInterface listener) |
protected void |
addOdsxChangeListenerImpl(OdsxChangeListenerInterface listener) |
protected boolean |
askForPassword(java.util.HashMap authMap,
OdsxSessionInterface observer,
java.lang.String serviceType) |
static void |
close(OdsxSessionInterface observer)
Close the session.
|
protected void |
closeImpl(OdsxSessionInterface observer) |
static void |
fireOdsxChange(AoSession aoSession,
OdsxChangeEvent.OdsxDBEventModifier modifier)
Fire a ODS DB change event.
|
static void |
fireOdsxChange(AoSession aoSession,
OdsxChangeEvent ev)
Fire an ods change event.
|
static void |
fireOdsxChange(ApplicationElement applicationElement,
OdsxChangeEvent.OdsxAEEventModifier modifier)
Fire a ODS change event.
|
static void |
fireOdsxChange(ApplicationStructure applicationStructure,
OdsxChangeEvent.OdsxASEventModifier modifier)
Fire a ODS change event.
|
static void |
fireOdsxChange(InstanceElement instElem1,
InstanceElement instElem2,
OdsxChangeEvent.OdsxRelEventModifier modifier)
Fire a ODS change event.
|
static void |
fireOdsxChange(InstanceElement instanceElement,
OdsxChangeEvent.OdsxIEEventModifier modifier)
Fire a ODS change event.
|
protected void |
fireOdsxChangeImpl(AoSession aoSession,
OdsxChangeEvent ev) |
protected java.lang.String |
getATFFilename(java.awt.Container root) |
protected java.util.HashMap<java.lang.String,AoSession> |
getAuthMap(AoFactory factory) |
static AoSession |
getCheckedSession(OdsxSessionInterface observer)
Get a checked session for the specified observer.
|
protected AoSession |
getCheckedSessionImpl(OdsxSessionInterface observer) |
static java.awt.Container |
getDialogParent(AoSession session)
Retrieves a dialog parent belongs to the given session.
|
static java.awt.Container |
getDialogParent(OdsxSessionInterface observer)
Retrieves a dialog parent belongs to the given observer.
|
java.awt.Container |
getDialogParentImpl(AoSession session) |
java.awt.Container |
getDialogParentImpl(OdsxSessionInterface observer) |
static AoFactory |
getFactory(OdsxSessionInterface observer)
Get the factory for the specified observer.
|
protected AoFactory |
getFactoryImpl(OdsxSessionInterface observer) |
protected static OdsxSessionFactory |
getInstance()
Get the singleton instance.
|
static java.lang.String |
getObserverIdent(OdsxSessionInterface observer)
Determine the observer ident string.
|
static FwkSortedArray |
getOptionMap(java.lang.String options,
java.util.HashMap entries)
Get the option identification string.
|
static FwkSortedArray |
getOptionMap(java.lang.String options,
java.util.HashMap entries,
boolean upper)
Get the option identification string.
|
static AoService |
getService(OdsxSessionInterface observer)
Get the service belongs to the given oberserver.
|
protected AoService |
getServiceImpl(OdsxSessionInterface observer) |
static AoSession |
getSession(OdsxSessionInterface observer)
Get the session for the specified observer.
|
protected AoSession |
getSessionImpl(OdsxSessionInterface observer) |
static OdsxSessionInterface |
getSessionObserver(AoSession session)
Get the session observer of the specified session.
|
protected OdsxSessionInterface |
getSessionObserverImpl(AoSession session) |
java.lang.String |
getVersion()
Return the version string of the FWK component.
|
protected java.lang.String |
getXATFFilename(java.awt.Container root) |
static void |
main(java.lang.String[] args)
The main testing routine.
|
static java.lang.String |
normalizeOptionString(FwkSortedArray arr,
java.util.HashMap entries) |
static java.lang.String |
normalizeOptionString(java.lang.String options)
Get the option identification string.
|
static java.lang.String |
normalizeOptionString(java.lang.String options,
boolean upper)
Get the option identification string.
|
protected java.lang.String |
prepareOption(java.lang.String option) |
static void |
removeOdsxChangeListener(AoSession aoSession,
OdsxChangeListenerInterface listener)
Remove an ODS change listener listen to the specified ODS session.
|
static void |
removeOdsxChangeListener(OdsxChangeListenerInterface listener)
Remove an ODS change listener.
|
protected void |
removeOdsxChangeListenerImpl(AoSession aoSession,
OdsxChangeListenerInterface listener) |
protected void |
removeOdsxChangeListenerImpl(OdsxChangeListenerInterface listener) |
static void |
setDialogParent(OdsxSessionInterface observer,
java.awt.Container dialogParent)
Set a dialog parent belongs to the given observer.
|
java.awt.Container |
setDialogParentImpl(OdsxSessionInterface observer,
java.awt.Container dialogParent) |
getAuthor, getBuild, getClassName, getCompany, getCompanyInternetAddress, getCopyright, getCreationDate, getCreationDate, getDateFormatString, getDescription, getIcon, getIcon, getIconKey, getIconKey, getName, getPresentationString, getPresentationString, getSupportEMail, getTitle, getTitleName, getTransferData, getTransferDataFlavors, isDataFlavorSupported, lostOwnership, setAuthor, setBuild, setClassName, setCompany, setCompanyInternetAddress, setCopyright, setCreationDate, setCreationDate, setDateFormatString, setDescription, setDescriptor, setIcon, setIcon, setIconKey, setIconKey, setName, setSupportEMail, setTitleName, toString
getNiceVersion, release
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
release
protected static final java.lang.String PREFS_LASTATFFILE
protected static final java.lang.String PREFS_LASTXMLATFFILE
public static final java.lang.String version
protected static OdsxSessionFactory instance
public java.lang.String getVersion()
FwkInterface
getVersion
in interface FwkInterface
getVersion
in class FwkDescription
protected static OdsxSessionFactory getInstance()
public static void close(OdsxSessionInterface observer) throws AoException
observer
- The session observer.AoException
protected void closeImpl(OdsxSessionInterface observer) throws AoException
AoException
public static AoService getService(OdsxSessionInterface observer) throws AoException
observer
- The session observer.AoException
protected AoService getServiceImpl(OdsxSessionInterface observer) throws AoException
AoException
public static AoFactory getFactory(OdsxSessionInterface observer) throws AoException
observer
- The reference object.AoException
protected AoFactory getFactoryImpl(OdsxSessionInterface observer) throws AoException
AoException
public static OdsxSessionInterface getSessionObserver(AoSession session)
session
- the session.protected OdsxSessionInterface getSessionObserverImpl(AoSession session)
public static AoSession getCheckedSession(OdsxSessionInterface observer) throws AoException
observer
- The reference object.AoException
protected AoSession getCheckedSessionImpl(OdsxSessionInterface observer) throws AoException
AoException
public static AoSession getSession(OdsxSessionInterface observer) throws AoException
observer
- The reference object.AoException
protected AoSession getSessionImpl(OdsxSessionInterface observer) throws AoException
AoException
protected java.lang.String prepareOption(java.lang.String option)
protected boolean askForPassword(java.util.HashMap authMap, OdsxSessionInterface observer, java.lang.String serviceType)
public static void addOdsxChangeListener(OdsxChangeListenerInterface listener)
listener
- The change listener.protected void addOdsxChangeListenerImpl(OdsxChangeListenerInterface listener)
public static void addOdsxChangeListener(AoSession aoSession, OdsxChangeListenerInterface listener)
listener
- The change listener.protected void addOdsxChangeListenerImpl(AoSession aoSession, OdsxChangeListenerInterface listener)
public static void removeOdsxChangeListener(OdsxChangeListenerInterface listener)
listener
- The change listener.protected void removeOdsxChangeListenerImpl(OdsxChangeListenerInterface listener)
public static void removeOdsxChangeListener(AoSession aoSession, OdsxChangeListenerInterface listener)
listener
- The change listener.protected void removeOdsxChangeListenerImpl(AoSession aoSession, OdsxChangeListenerInterface listener)
public static void fireOdsxChange(AoSession aoSession, OdsxChangeEvent ev)
aoSession
- The session to that the event belongs.ev
- The ods change event.protected void fireOdsxChangeImpl(AoSession aoSession, OdsxChangeEvent ev)
public static void fireOdsxChange(AoSession aoSession, OdsxChangeEvent.OdsxDBEventModifier modifier)
aoSession
- The session that will be closed.modifier
- The modifier. Use the constants defined in OdsxChangeEvent.OdsxChangeEvent
public static void fireOdsxChange(InstanceElement instanceElement, OdsxChangeEvent.OdsxIEEventModifier modifier)
instance
- The instance element that was changed.modifier
- The modifier. Use the constants defined in OdsxChangeEvent.OdsxChangeEvent
public static void fireOdsxChange(ApplicationStructure applicationStructure, OdsxChangeEvent.OdsxASEventModifier modifier)
applicationStructure
- The application structure was changed.modifier
- The modifier. Use the constants defined in OdsxChangeEvent.OdsxChangeEvent
public static void fireOdsxChange(ApplicationElement applicationElement, OdsxChangeEvent.OdsxAEEventModifier modifier)
applicationElement
- The application element that was changed.modifier
- The modifier. Use the constants defined in OdsxChangeEvent.OdsxChangeEvent
public static void fireOdsxChange(InstanceElement instElem1, InstanceElement instElem2, OdsxChangeEvent.OdsxRelEventModifier modifier)
instElem1
- The application element that was changed.instElem2
- The application element that was changed.modifier
- The modifier. Use the constants defined in OdsxChangeEvent.OdsxChangeEvent
public static FwkSortedArray getOptionMap(java.lang.String options, java.util.HashMap entries)
options
- The option comming from configurator.public static FwkSortedArray getOptionMap(java.lang.String options, java.util.HashMap entries, boolean upper)
options
- The option comming from configurator.upper
- if true the option keywords will converted to upper case letters.public static java.lang.String normalizeOptionString(java.lang.String options)
options
- The option comming from configurator.upper
- if true the option keyword will be converted to upper case letter.public static java.lang.String normalizeOptionString(java.lang.String options, boolean upper)
options
- The option comming from configurator.upper
- if true the option keyword will be converted to upper case letter.public static java.lang.String normalizeOptionString(FwkSortedArray arr, java.util.HashMap entries)
protected java.lang.String getATFFilename(java.awt.Container root)
protected java.lang.String getXATFFilename(java.awt.Container root)
public static java.lang.String getObserverIdent(OdsxSessionInterface observer)
observer
- the observer.public static java.awt.Container getDialogParent(AoSession session)
session
- the ASAM ODS session.public java.awt.Container getDialogParentImpl(AoSession session)
public static java.awt.Container getDialogParent(OdsxSessionInterface observer)
observer
- the observer.public java.awt.Container getDialogParentImpl(OdsxSessionInterface observer)
public static void setDialogParent(OdsxSessionInterface observer, java.awt.Container dialogParent)
observer
- the observer.dialogParent
- the dialog parent or nullpublic java.awt.Container setDialogParentImpl(OdsxSessionInterface observer, java.awt.Container dialogParent)
public static void main(java.lang.String[] args)