public class TaurusSystemDirectory extends java.util.Observable implements ITaurusSystemDirectory
ITaurusSystemDirectory.| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
XML_ATTRIBUTE_APPLICATION_PROPERTY_LABEL
XML attribute: Application property label.
|
static java.lang.String |
XML_ATTRIBUTE_APPLICATION_PROPERTY_TYPE
XML attribute: Application property type.
|
static java.lang.String |
XML_ATTRIBUTE_APPLICATION_PROPERTY_UPDATEDVALUE
XML attribute: Application property updated value.
|
static java.lang.String |
XML_ATTRIBUTE_CUSTOMATTRIBUTE_VALUE
XML attribute: Custom attribute value.
|
static java.lang.String |
XML_ATTRIBUTE_GENERAL_ID
XML attribute: ID.
|
static java.lang.String |
XML_ATTRIBUTE_GENERAL_NAME
XML attribute: Name.
|
static java.lang.String |
XML_ATTRIBUTE_SYSTEM_PROVIDERID
XML attribute: AWM system provider ID.
|
static java.lang.String |
XML_ATTRIBUTE_SYSTEM_REMOTESYSTEMHOSTNAME
XML attribute: AWM System remote system host name.
|
static java.lang.String |
XML_ATTRIBUTE_SYSTEM_REMOTESYSTEMNAME
XML attribute: AWM system remote system name.
|
static java.lang.String |
XML_ATTRIBUTE_SYSTEM_REMOTESYSTEMUSERID
XML attribute: AWM System remote system user ID.
|
static java.lang.String |
XML_ELEMENT_APPLICATION
XML element name: AWM application.
|
static java.lang.String |
XML_ELEMENT_CUSTOMATTRIBUTE
XML element name: Custom attribute.
|
static java.lang.String |
XML_ELEMENT_SYSTEM
XML element name: AWM system.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addSystem(ITaurusSystem pSystem,
boolean pNotify)
Add the given TAURUS system to the TAURUS system directory.
|
java.util.Map<java.lang.String,java.lang.Boolean> |
getExpandMap()
Gets the map with all resources of this system which are expanded in the
tree view.
|
static TaurusSystemDirectory |
getInstance()
Gets the singleton instance.
|
ITaurusSystem |
getSelectedSystem()
Gets the system of the application which is currently loaded.
|
ITaurusSystem |
getTaurusSystem(java.lang.String pResourceID)
Returns the TAURUS system with the given ID.
|
ITaurusSystem |
getTaurusSystem(java.lang.String pSystemName,
java.lang.String pUniqueSystemName)
Returns an
ITaurusSystem for the given parameters or
null if that system does not exist. |
java.util.List<ITaurusSystem> |
getTaurusSystemList()
Gets a list of all available AWM systems.
|
void |
loadSystems()
Load the system directory from the st_systems.xml-file in the workspace.
|
void |
loadSystems(boolean pSynchronous)
Same as
loadSystems() but with the option to wait for the
systems being loaded. |
void |
notifyChanged(TaurusNotification pTn)
Sets the changed flag of the system directory (Observerable) and notifies
observers about the change.
|
void |
removeSystem(ITaurusSystem pSystem)
Remove the given TAURUS system from the system directory.
|
void |
saveSystems()
Save the system directory to the st_systems.xml-file in the workspace.
|
void |
setExpandMap(java.util.Map<java.lang.String,java.lang.Boolean> pExpandMap)
Sets the map of all resources of this system which are expanded in the
tree view.
|
void |
setSelectedSystem(ITaurusSystem pSelectedSystem)
Sets the currently active system.
|
boolean |
systemsLoaded()
Gets whether loading cached systems was completed.
|
addObserver, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObserversequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddObserverpublic static final java.lang.String XML_ATTRIBUTE_CUSTOMATTRIBUTE_VALUE
public static final java.lang.String XML_ATTRIBUTE_APPLICATION_PROPERTY_TYPE
public static final java.lang.String XML_ATTRIBUTE_APPLICATION_PROPERTY_UPDATEDVALUE
public static final java.lang.String XML_ATTRIBUTE_APPLICATION_PROPERTY_LABEL
public static final java.lang.String XML_ELEMENT_CUSTOMATTRIBUTE
public static final java.lang.String XML_ATTRIBUTE_SYSTEM_REMOTESYSTEMUSERID
public static final java.lang.String XML_ATTRIBUTE_SYSTEM_REMOTESYSTEMHOSTNAME
public static final java.lang.String XML_ATTRIBUTE_SYSTEM_REMOTESYSTEMNAME
public static final java.lang.String XML_ATTRIBUTE_GENERAL_NAME
public static final java.lang.String XML_ATTRIBUTE_GENERAL_ID
public static final java.lang.String XML_ELEMENT_APPLICATION
public static final java.lang.String XML_ELEMENT_SYSTEM
public static final java.lang.String XML_ATTRIBUTE_SYSTEM_PROVIDERID
public static TaurusSystemDirectory getInstance()
public void addSystem(ITaurusSystem pSystem, boolean pNotify) throws TaurusCoreException
ITaurusSystemDirectoryaddSystem in interface ITaurusSystemDirectorypSystem - TAURUS system to be addedpNotify - if true, notify the system directory's observersTaurusCoreException - if a TAURUS System with the same name already exists.public void removeSystem(ITaurusSystem pSystem)
ITaurusSystemDirectoryremoveSystem in interface ITaurusSystemDirectorypSystem - TAURUS system to be removedpublic void loadSystems()
throws TaurusCoreException
ITaurusSystemDirectoryloadSystems in interface ITaurusSystemDirectoryTaurusCoreException - if loading the system cache failspublic void loadSystems(boolean pSynchronous)
throws TaurusCoreException
loadSystems() but with the option to wait for the
systems being loaded.pSynchronous - if set to true the method will wait until the
systems are loaded. If set to false it behaves
exactly like loadSystems()TaurusCoreException - if loading the system cache gets interruptedpublic void saveSystems()
throws TaurusCoreException
ITaurusSystemDirectorysaveSystems in interface ITaurusSystemDirectoryTaurusCoreException - if saving the system cache failspublic ITaurusSystem getSelectedSystem()
ITaurusSystemDirectorygetSelectedSystem in interface ITaurusSystemDirectorypublic void setSelectedSystem(ITaurusSystem pSelectedSystem)
ITaurusSystemDirectorysetSelectedSystem in interface ITaurusSystemDirectorypSelectedSystem - the new active systempublic java.util.List<ITaurusSystem> getTaurusSystemList()
ITaurusSystemDirectorygetTaurusSystemList in interface ITaurusSystemDirectorypublic void setExpandMap(java.util.Map<java.lang.String,java.lang.Boolean> pExpandMap)
ITaurusSystemDirectorysetExpandMap in interface ITaurusSystemDirectorypExpandMap - the map containing all expanded resourcespublic java.util.Map<java.lang.String,java.lang.Boolean> getExpandMap()
ITaurusSystemDirectorygetExpandMap in interface ITaurusSystemDirectorypublic ITaurusSystem getTaurusSystem(java.lang.String pSystemName, java.lang.String pUniqueSystemName)
ITaurusSystemDirectoryITaurusSystem for the given parameters or
null if that system does not exist.getTaurusSystem in interface ITaurusSystemDirectorypSystemName - the name of a TAURUS SystempUniqueSystemName - the unique name of the remote systemnullpublic void notifyChanged(TaurusNotification pTn)
notifyChanged in interface ITaurusSystemDirectorypTn - the notification for the observerspublic ITaurusSystem getTaurusSystem(java.lang.String pResourceID)
ITaurusSystemDirectorygetTaurusSystem in interface ITaurusSystemDirectorypResourceID - the ID of the TAURUS system (case sensitive)ITaurusSystem or null if the system was
not found or loaded from cache.ITaurusSystemDirectory.loadSystems()public boolean systemsLoaded()
ITaurusSystemDirectorysystemsLoaded in interface ITaurusSystemDirectorytrue if cached AWM systems have already been loadedCopyright © 2015 Micro Focus GmbH. All rights reserved.