|
Remote Systems v6.4.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.etools.systems.core.ui.uda.SystemUDBaseManager
com.ibm.etools.systems.core.ui.uda.SystemUDTypeManager
Instances of this class hold the UDA Type definitions unique to the SubSystem type - according to the SubSystemFactory Note that unlike user actions, types are not scoped by profile. For each subsystem factory there is but a single master list of types. Instances of this class will be linked to a SubSystem instance for now, but should be linked to a subsystem factory instance in the future.
Field Summary | |
---|---|
static String |
ALL_TYPE
|
static String |
copyright
|
static String |
UDT_FILENAME
|
static String |
XE_TYPE
|
Fields inherited from class com.ibm.etools.systems.core.ui.uda.SystemUDBaseManager |
---|
_udas, EMPTY_ARRAY, importCaseFolder |
Fields inherited from interface com.ibm.etools.systems.core.ui.uda.ISystemXMLElementWrapperFactory |
---|
Copyright |
Fields inherited from interface com.ibm.etools.systems.core.ui.uda.ISystemUDAConstants |
---|
NAME_ATTR, ORIGINAL_NAME_ATTR, RELEASE_ATTR, XE_DOMAIN, XE_DOMNAME, XE_DOMTYPE |
Constructor Summary | |
---|---|
SystemUDTypeManager(SystemUDActionSubsystem udas)
Constructor |
Method Summary | |
---|---|
SystemUDTypeElement |
addType(int domain,
String name)
Add a new user type. |
SystemXMLElementWrapper |
createElementWrapper(Element xmlElementToWrap,
SystemProfile profile,
int domain)
Given an xml element node, create an instance of the appropriate subclass of SystemXMLElementWrapper to represent it. |
protected void |
dataChanged(SystemProfile profile)
Indicate data has changed for the given profile |
void |
delete(SystemUDTypeElement typeElement)
Delete a give user action or type, given its wrapper. |
protected boolean |
doMigration(SystemProfile profile,
String oldRelease)
Overridable extension point for child classes to do migration of their document. |
protected boolean |
exists(IResource resource)
For some reason the exists() method on IResource is fundamentally not reliable. |
protected IFolder |
getDocumentFolder(SubSystemFactory subsystemFactory,
SystemProfile profile)
Get the folder containing the xml file used to persist the actions, for the given profile |
String |
getDocumentRootTagName()
Get the document root tag name. |
String |
getFileName()
Get the name of the file to persist to: udtype.xml |
Image |
getNewImage()
Get the icon to show in the tree views, for the "new" expandable item |
protected String |
getNewNodeLabel()
Parent method override for returning the "New" icon label for the Work With dialog tree view. |
String |
getTagName()
Return the tag name for our managed elements. |
String[] |
getTypeNames(int domain)
Return list of names of types in the given domain, or in doc if domain is -1 (which must only happen if supportsDomains() is false!) |
SystemUDTypeElement[] |
getTypes(Vector v,
int domain)
Return xml element wrapper objects for all types, for the given domain, or for the whole document if domain is -1 (iff domains not supported). |
String |
getTypesForTypeName(String typeName,
int domain)
Given a type name and domain, find the named type and return its types, or null if not found |
protected boolean |
isUserActionsManager()
Return true if this is user actions, false if this is named types. |
SystemXMLElementWrapper[] |
primeDocument(SystemProfile profile)
Prime the given document with any default types Calls primeDefaultTypes in action subsystem. |
void |
saveUserData()
Save user data |
void |
setFolder(String profileName,
String factoryId)
Intended for IMPORT actions only, where no Subsystem instance available: |
boolean |
supportsProfiles()
Return true if the elements managed by this class are scoped by profile. |
protected boolean |
uppercaseName()
Do we uppercase the value of the "Name" attribute? |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final String copyright
public static final String XE_TYPE
public static final String ALL_TYPE
public static final String UDT_FILENAME
Constructor Detail |
public SystemUDTypeManager(SystemUDActionSubsystem udas)
Method Detail |
protected boolean isUserActionsManager()
isUserActionsManager
in class SystemUDBaseManager
public Image getNewImage()
getNewImage
in class SystemUDBaseManager
public String getFileName()
getFileName
in class SystemUDBaseManager
protected boolean doMigration(SystemProfile profile, String oldRelease)
doMigration
in class SystemUDBaseManager
protected String getNewNodeLabel()
getNewNodeTypeLabel()
.
Do not override this.
getNewNodeLabel
in class SystemUDBaseManager
public String getTagName()
getTagName
in interface ISystemXMLElementWrapperFactory
getTagName
in class SystemUDBaseManager
public SystemXMLElementWrapper createElementWrapper(Element xmlElementToWrap, SystemProfile profile, int domain)
createElementWrapper
in interface ISystemXMLElementWrapperFactory
createElementWrapper
in class SystemUDBaseManager
public String getDocumentRootTagName()
getDocumentRootTagName
in class SystemUDBaseManager
protected boolean uppercaseName()
uppercaseName
in class SystemUDBaseManager
public boolean supportsProfiles()
supportsProfiles
in class SystemUDBaseManager
public SystemXMLElementWrapper[] primeDocument(SystemProfile profile)
primeDocument
in class SystemUDBaseManager
protected IFolder getDocumentFolder(SubSystemFactory subsystemFactory, SystemProfile profile)
getDocumentFolder
in class SystemUDBaseManager
protected boolean exists(IResource resource)
public void setFolder(String profileName, String factoryId)
setFolder
in class SystemUDBaseManager
protected void dataChanged(SystemProfile profile)
dataChanged
in class SystemUDBaseManager
public String getTypesForTypeName(String typeName, int domain)
public SystemUDTypeElement[] getTypes(Vector v, int domain)
v
- - existing vector to populate. If null passed, it is
not populated.domain
- - the integer representation of the given domain,
or -1 iff supportsDomains() is false
public String[] getTypeNames(int domain)
public SystemUDTypeElement addType(int domain, String name)
Optimized flavour of addElement that does not require a profile, and is typed to return SystemUDTypeElement
public void delete(SystemUDTypeElement typeElement)
Optimized flavour of delete that does not require a profile, and is typed to take SystemUDTypeElement
public void saveUserData()
|
Remote Systems v6.4.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |