public interface ITaurusApplication extends IResource
Loading an application will parse and activate the AWM model it is referring to. Only one AWM application can be active at a time.
AbstractTaurusApplication| Modifier and Type | Interface and Description |
|---|---|
static class |
ITaurusApplication.EModelUpdateStatus
The update status of the application.
|
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ID_PREFIX
Cache ID prefix.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
addApplicationProperty(IApplicationProperty pApplicationProperty)
Adds an
IApplicationProperty to the ITaurusApplication. |
void |
addStaticProperty(java.lang.String pID,
java.lang.String pValue)
Deprecated.
addStaticProperty(String, String)
is no longer supported. Use
addApplicationProperty(IApplicationProperty)
instead to get proper support for
IApplicationPropertys. |
ITaurusApplication.EModelUpdateStatus |
checkForModelUpdate(org.eclipse.core.runtime.IProgressMonitor pMon)
Checks whether a new model is available for the application.
|
java.util.Collection<IApplicationProperty> |
getApplicationProperties()
Returns an copy of the
Collection of
IApplicationPropertys. |
IElementList |
getChildren(boolean pRefresh,
org.eclipse.core.runtime.IProgressMonitor pMonitor)
Deprecated.
Use
getChildren(EGetChildrenMode,IProgressMonitor)
instead. |
GetChildrenResult |
getChildren(EGetChildrenMode pType,
org.eclipse.core.runtime.IProgressMonitor pMonitor)
Fetch the children of the root container type sorted by the container
type's sort criterion from the remote system.
|
java.lang.String |
getCustomAttribute(java.lang.String pName)
Gets the value of a custom system attribute by the given name.
|
java.util.Map<java.lang.String,java.lang.String> |
getCustomAttributes()
Gets all custom attributes that have been set for the application.
|
TAURUSConfiguration |
getModel()
Gets the AWM model.
|
java.util.Map<java.lang.String,java.lang.String> |
getStaticProperties()
Deprecated.
getStaticProperties() is no longer
supported. Used
getApplicationProperties() instead
to get a proper support for IApplicationPropertys. |
ITaurusSystem |
getTaurusSystem()
Get this AWM application's system.
|
boolean |
hasChildren()
Checks if the AWM application has children.
|
void |
loadApplication(boolean pReload,
org.eclipse.core.runtime.IProgressMonitor pMon)
Load this AWM application as active AWM application; load the
corresponding configuration data set and all saved AWM data.
|
boolean |
removeApplicationProperty(IApplicationProperty pApplicationProperty)
Removes an
IApplicationProperty from the
ITaurusApplication |
void |
removeChildren()
Recursively remove the children of this AWM application.
|
void |
unloadApplication()
Unload the configuration data set and the AWM application data in the
local workspace.
|
addChildResource, addPropertyValue, addResourceChild, delete, getAllPropertyValues, getChildrenResources, getID, getName, getParentResource, getPropertyValue, getPropertyValueFromHierarchy, getResourceChildren, removeResourceChild, setName, setPropertyValuesstatic final java.lang.String ID_PREFIX
java.lang.String getCustomAttribute(java.lang.String pName)
pName - the name of the desired attributenull if no attribute
with the given name was setgetCustomAttributes()java.util.Map<java.lang.String,java.lang.String> getCustomAttributes()
ITaurusSystem getTaurusSystem()
@Deprecated IElementList getChildren(boolean pRefresh, org.eclipse.core.runtime.IProgressMonitor pMonitor) throws TaurusException
getChildren(EGetChildrenMode,IProgressMonitor)
instead.pRefresh - whether to refresh the application children (or use the cache)pMonitor - progress monitorTaurusException - if getting the children failsGetChildrenResult getChildren(EGetChildrenMode pType, org.eclipse.core.runtime.IProgressMonitor pMonitor) throws TaurusException
pType - how to refresh the application children (or use the cache)pMonitor - progress monitorGetChildrenResult of children's fetchingTaurusException - if getting the children failsboolean hasChildren()
true if the application has children, otherwise
falsevoid removeChildren()
throws TaurusCoreException
TaurusCoreException - if removing the children failsvoid loadApplication(boolean pReload,
org.eclipse.core.runtime.IProgressMonitor pMon)
throws TaurusCoreException
pReload - reloads the configuration file of this application if set
true. This won't effect the first load of the
configuration.pMon - progress monitorTaurusCoreException - if the application could not be loadedvoid unloadApplication()
throws TaurusCoreException
TaurusCoreException - if the application could not be unloaded@Deprecated java.util.Map<java.lang.String,java.lang.String> getStaticProperties()
getStaticProperties() is no longer
supported. Used
getApplicationProperties() instead
to get a proper support for IApplicationPropertys.java.util.Collection<IApplicationProperty> getApplicationProperties()
Collection of
IApplicationPropertys. Changing the returned Collection
won´t affect the application properties of the
ITaurusApplication.
The Collection of IApplicationPropertys gets filled once
the application was loaded.
To add or remove IApplicationPropertys use the methods
addApplicationProperty(IApplicationProperty) or
removeApplicationProperty(IApplicationProperty).
IApplicationPropertys of the
ITaurusApplicationboolean removeApplicationProperty(IApplicationProperty pApplicationProperty)
IApplicationProperty from the
ITaurusApplicationpApplicationProperty - the IApplicationProperty which should be removed.IApplicationProperty was removed
successfully.boolean addApplicationProperty(IApplicationProperty pApplicationProperty)
IApplicationProperty to the ITaurusApplication.pApplicationProperty - the IApplicationProperty which should be added.IApplicationProperty was added successfully.@Deprecated
void addStaticProperty(java.lang.String pID,
java.lang.String pValue)
addStaticProperty(String, String)
is no longer supported. Use
addApplicationProperty(IApplicationProperty)
instead to get proper support for
IApplicationPropertys.pID - The ID of the PropertypValue - The new static value for the given Property IDITaurusApplication.EModelUpdateStatus checkForModelUpdate(org.eclipse.core.runtime.IProgressMonitor pMon) throws TaurusCoreException
pMon - a progress monitorTaurusCoreException - if checking for a model update failsTAURUSConfiguration getModel()
loadApplication(boolean, IProgressMonitor).TAURUSConfiguration of the application or
null if it hasn't been loaded before.Copyright © 2015 Micro Focus GmbH. All rights reserved.