|
Remote Systems v6.4.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectEObjectImpl
com.ibm.etools.systems.model.impl.SystemProfileManagerImpl
Field Summary | |
---|---|
static String |
copyright
|
Constructor Summary | |
---|---|
protected |
SystemProfileManagerImpl()
Default constructor |
Method Summary | |
---|---|
static void |
clearDefault()
Clear the default after a team sychronization say |
SystemProfile |
cloneSystemProfile(SystemProfile profile,
String newName)
Clone the given profile to a new one with the given name. |
SystemProfile |
createSystemProfile(String name,
boolean makeActive)
Create a new profile with the given name, and add to the list. |
void |
deleteSystemProfile(SystemProfile profile)
Delete the given profile This will: Delete the profile in memory Delete the underlying folder Update the user preferences if this profile is currently active. |
Object |
eGet(EStructuralFeature eFeature,
boolean resolve)
|
boolean |
eIsSet(EStructuralFeature eFeature)
|
void |
eSet(EStructuralFeature eFeature,
Object newValue)
|
protected EClass |
eStaticClass()
|
void |
eUnset(EStructuralFeature eFeature)
|
String[] |
getActiveSystemProfileNames()
Return the profile names currently selected by the user as his "active" profiles |
Vector |
getActiveSystemProfileNamesVector()
Return the profile names currently selected by the user as his "active" profiles |
int |
getActiveSystemProfilePosition(String profileName)
Return 0-based position of the given active profile within the list of active profiles. |
SystemProfile[] |
getActiveSystemProfiles()
Return the profiles currently selected by the user as his "active" profiles |
SystemProfile |
getDefaultPrivateSystemProfile()
Return the default private profile created at first touch. |
SystemProfile |
getDefaultTeamSystemProfile()
Return the default team profile created at first touch. |
static SystemMOFHelpers |
getMOFHelpers()
|
protected SystemProfile |
getOrCreateSystemProfile(String userProfileName)
Instantiate a user profile given its name. |
ISystemValidator |
getProfileNameValidator(String profileName)
Reusable method to return a name validator for renaming a profile. |
ISystemValidator |
getProfileNameValidator(SystemProfile profile)
Reusable method to return a name validator for renaming a profile. |
EList |
getProfiles()
|
protected static String |
getRootSaveFileName(String profileName)
Return the root save file name without the extension .xmi |
protected static String |
getRootSaveFileName(SystemProfile profile)
Return the root save file name without the extension .xmi |
static String |
getSaveFileName(String profileName)
Return the unqualified save file name with the extension .xmi |
static String |
getSaveFileName(SystemProfile profile)
Return the unqualified save file name with the extension .xmi |
SystemProfile |
getSystemProfile(String name)
Get a profile given its name. |
static SystemProfileManager |
getSystemProfileManager()
Return (and create if necessary) the singleton instance of this class. |
String[] |
getSystemProfileNames()
Get an array of all existing profile names. |
Vector |
getSystemProfileNamesVector()
Get a vector of all existing profile names. |
SystemProfile[] |
getSystemProfiles()
Get an array of all existing profiles. |
protected void |
invalidateCache()
Something changed so invalide cache of profiles so it will be regenerated |
boolean |
isSystemProfileActive(String profileName)
Return true if the given profile is active. |
void |
makeSystemProfileActive(SystemProfile profile,
boolean makeActive)
Toggle an existing profile's state between active and inactive |
void |
renameSystemProfile(SystemProfile profile,
String newName)
Rename the given profile. |
protected void |
restore()
Restore profiles from disk |
protected SystemProfile |
restore(String name)
Restore a profile of a given name from disk... |
void |
save()
Save all profiles to disk |
void |
save(SystemProfile profile)
Attempt to save single profile to disk. |
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
Constructor Detail |
protected SystemProfileManagerImpl()
Method Detail |
protected EClass eStaticClass()
public static SystemProfileManager getSystemProfileManager()
public static void clearDefault()
public SystemProfile createSystemProfile(String name, boolean makeActive)
The underlying folder is created in the file system.
createSystemProfile
in interface SystemProfileManager
name
- What to name this profilemakeActive
- true if this profile is to be added to the active profile list.
public void makeSystemProfileActive(SystemProfile profile, boolean makeActive)
makeSystemProfileActive
in interface SystemProfileManager
public SystemProfile[] getSystemProfiles()
getSystemProfiles
in interface SystemProfileManager
public String[] getSystemProfileNames()
getSystemProfileNames
in interface SystemProfileManager
public Vector getSystemProfileNamesVector()
getSystemProfileNamesVector
in interface SystemProfileManager
protected void invalidateCache()
public SystemProfile getSystemProfile(String name)
getSystemProfile
in interface SystemProfileManager
public void renameSystemProfile(SystemProfile profile, String newName)
renameSystemProfile
in interface SystemProfileManager
public void deleteSystemProfile(SystemProfile profile)
deleteSystemProfile
in interface SystemProfileManager
public SystemProfile cloneSystemProfile(SystemProfile profile, String newName)
cloneSystemProfile
in interface SystemProfileManager
public boolean isSystemProfileActive(String profileName)
isSystemProfileActive
in interface SystemProfileManager
SystemProfile.isActive()
public SystemProfile[] getActiveSystemProfiles()
getActiveSystemProfiles
in interface SystemProfileManager
public String[] getActiveSystemProfileNames()
getActiveSystemProfileNames
in interface SystemProfileManager
public Vector getActiveSystemProfileNamesVector()
public int getActiveSystemProfilePosition(String profileName)
getActiveSystemProfilePosition
in interface SystemProfileManager
public SystemProfile getDefaultPrivateSystemProfile()
getDefaultPrivateSystemProfile
in interface SystemProfileManager
public SystemProfile getDefaultTeamSystemProfile()
getDefaultTeamSystemProfile
in interface SystemProfileManager
protected SystemProfile getOrCreateSystemProfile(String userProfileName)
public void save()
save
in interface SystemProfileManager
public void save(SystemProfile profile) throws Exception
save
in interface SystemProfileManager
Exception
protected void restore()
protected SystemProfile restore(String name) throws Exception
Exception
public static String getSaveFileName(String profileName)
public static String getSaveFileName(SystemProfile profile)
protected static String getRootSaveFileName(SystemProfile profile)
protected static String getRootSaveFileName(String profileName)
public static SystemMOFHelpers getMOFHelpers()
public ISystemValidator getProfileNameValidator(String profileName)
getProfileNameValidator
in interface SystemProfileManager
public ISystemValidator getProfileNameValidator(SystemProfile profile)
getProfileNameValidator
in interface SystemProfileManager
public EList getProfiles()
getProfiles
in interface SystemProfileManager
public Object eGet(EStructuralFeature eFeature, boolean resolve)
public void eSet(EStructuralFeature eFeature, Object newValue)
public void eUnset(EStructuralFeature eFeature)
public boolean eIsSet(EStructuralFeature eFeature)
|
Remote Systems v6.4.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |