public abstract class AbstractTaurusApplication extends Resource implements ITaurusApplication
ITaurusApplication. Manages loading/unloading
the AWM cache, get children using modeled Get Root Containers
actions and registers modeled ApplicationActions.
Can be sub-classed by clients.
ITaurusApplication.EModelUpdateStatusID_PREFIX| Constructor and Description |
|---|
AbstractTaurusApplication(java.lang.String pName,
ITaurusSystem pSystem)
Basic constructor.
|
AbstractTaurusApplication(java.lang.String pName,
ITaurusSystem pSystem,
java.lang.String pID)
Constructor for loading an application from cache.
|
| 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)
Adds a Property ID and it's new static value to the application.
|
static java.util.List<IResource> |
copySortedSet(java.util.SortedMap<java.lang.String,IResource> pSortedContSet)
Deprecated.
Do not use. May be removed.
|
boolean |
equals(java.lang.Object obj) |
java.util.Collection<IApplicationProperty> |
getApplicationProperties()
Returns an copy of the
Collection of
IApplicationPropertys. |
IElementList |
getChildren(boolean pRefresh,
org.eclipse.core.runtime.IProgressMonitor pMonitor)
Deprecated.
Used
getChildren(EGetChildrenMode,IProgressMonitor)
to have more information as result. |
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()
Returns the Property IDs and values, which were set in the Master
Configuration File for this Application.
|
ITaurusSystem |
getTaurusSystem()
Get this AWM application's system.
|
boolean |
hasChildren()
Checks if the AWM application has children.
|
int |
hashCode() |
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.
|
java.lang.String |
toString() |
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, getValueOfLinkedProperty, removeProperty, removeResourceChild, setName, setPropertyValuescheckForModelUpdateaddChildResource, addPropertyValue, addResourceChild, delete, getAllPropertyValues, getChildrenResources, getID, getName, getParentResource, getPropertyValue, getPropertyValueFromHierarchy, getResourceChildren, removeResourceChild, setName, setPropertyValuespublic AbstractTaurusApplication(java.lang.String pName,
ITaurusSystem pSystem)
pName - the application namepSystem - the parent systempublic AbstractTaurusApplication(java.lang.String pName,
ITaurusSystem pSystem,
java.lang.String pID)
pName - the application namepSystem - the parent systempID - the cache IDpublic ITaurusSystem getTaurusSystem()
ITaurusApplicationgetTaurusSystem in interface ITaurusApplicationpublic boolean hasChildren()
ITaurusApplicationhasChildren in interface ITaurusApplicationtrue if the application has children, otherwise
false@Deprecated public IElementList getChildren(boolean pRefresh, org.eclipse.core.runtime.IProgressMonitor pMonitor) throws TaurusException
getChildren(EGetChildrenMode,IProgressMonitor)
to have more information as result.ITaurusApplicationgetChildren in interface ITaurusApplicationpRefresh - whether to refresh the application children (or use the cache)pMonitor - progress monitorTaurusException - if getting the children failspublic GetChildrenResult getChildren(EGetChildrenMode pType, org.eclipse.core.runtime.IProgressMonitor pMonitor) throws TaurusException
ITaurusApplicationgetChildren in interface ITaurusApplicationpType - how to refresh the application children (or use the cache)pMonitor - progress monitorGetChildrenResult of children's fetchingTaurusException - if getting the children failspublic void removeChildren()
throws TaurusCoreException
ITaurusApplicationremoveChildren in interface ITaurusApplicationTaurusCoreException - if removing the children fails@Deprecated public static java.util.List<IResource> copySortedSet(java.util.SortedMap<java.lang.String,IResource> pSortedContSet)
pSortedContSet - ?public void loadApplication(boolean pReload,
org.eclipse.core.runtime.IProgressMonitor pMon)
throws TaurusCoreException
ITaurusApplicationloadApplication in interface ITaurusApplicationpReload - 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 loadedpublic TAURUSConfiguration getModel()
ITaurusApplicationITaurusApplication.loadApplication(boolean, IProgressMonitor).getModel in interface ITaurusApplicationTAURUSConfiguration of the application or
null if it hasn't been loaded before.public void unloadApplication()
throws TaurusCoreException
ITaurusApplicationunloadApplication in interface ITaurusApplicationTaurusCoreException - if the application could not be unloadedpublic java.util.Collection<IApplicationProperty> getApplicationProperties()
ITaurusApplicationCollection 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
ITaurusApplication.addApplicationProperty(IApplicationProperty) or
ITaurusApplication.removeApplicationProperty(IApplicationProperty).
getApplicationProperties in interface ITaurusApplicationIApplicationPropertys of the
ITaurusApplicationpublic boolean removeApplicationProperty(IApplicationProperty pApplicationProperty)
ITaurusApplicationIApplicationProperty from the
ITaurusApplicationremoveApplicationProperty in interface ITaurusApplicationpApplicationProperty - the IApplicationProperty which should be removed.IApplicationProperty was removed
successfully.public boolean addApplicationProperty(IApplicationProperty pApplicationProperty)
ITaurusApplicationIApplicationProperty to the ITaurusApplication.addApplicationProperty in interface ITaurusApplicationpApplicationProperty - the IApplicationProperty which should be added.IApplicationProperty was added successfully.public java.util.Map<java.lang.String,java.lang.String> getStaticProperties()
ITaurusApplicationgetStaticProperties in interface ITaurusApplicationpublic void addStaticProperty(java.lang.String pID,
java.lang.String pValue)
ITaurusApplicationaddStaticProperty in interface ITaurusApplicationpID - The ID of the PropertypValue - The new static value for the given Property IDpublic java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String getCustomAttribute(java.lang.String pName)
ITaurusApplicationgetCustomAttribute in interface ITaurusApplicationpName - the name of the desired attributenull if no attribute
with the given name was setITaurusApplication.getCustomAttributes()public java.util.Map<java.lang.String,java.lang.String> getCustomAttributes()
ITaurusApplicationgetCustomAttributes in interface ITaurusApplicationCopyright © 2015 Micro Focus GmbH. All rights reserved.