|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.eclipse.datatools.connectivity.ProfileManager
ProfileManger is a singleton class serverd as a helper class for connection profiles access. It also caches connection profiles and only persists to storage when changes made and at Eclipse shutdown.
| Constructor Summary | |
ProfileManager()
|
|
| Method Summary | |
void |
addProfile(IConnectionProfile profile)
Add a connection profile object to the profiles cache. |
void |
addProfile(IConnectionProfile profile,
boolean replaceExisting)
Add a connection profile object to the profiles cache. |
void |
addProfileListener(IProfileListener listener)
Register a listener for proifle operation |
void |
createProfile(java.lang.String name,
java.lang.String description,
java.lang.String providerID,
java.util.Properties baseProperties)
Create connection profile |
void |
createProfile(java.lang.String name,
java.lang.String description,
java.lang.String providerID,
java.util.Properties baseProperties,
java.lang.String parentProfile)
Create connection profile |
void |
createProfile(java.lang.String name,
java.lang.String description,
java.lang.String providerID,
java.util.Properties baseProperties,
java.lang.String parentProfile,
boolean autoConnect)
Create connection profile |
void |
deleteProfile(IConnectionProfile profile)
Delete a connection profile object from the profiles cache |
java.lang.String |
duplicateProfile(IConnectionProfile profile)
Duplicate a connection profile |
java.lang.Object |
getAdapter(java.lang.Class adapter)
|
ICategory |
getCategory(java.lang.String catID)
Get category by name |
static ProfileManager |
getInstance()
|
IConnectionProfile |
getProfileByInstanceID(java.lang.String id)
Get connection profile by instance ID |
IConnectionProfile |
getProfileByName(java.lang.String name)
Get connection profile by name |
IConnectionProfile[] |
getProfileByProviderID(java.lang.String ID)
Get connection profiles by connection profile(cp) provider ID associated with each cp |
IConnectionProfile[] |
getProfiles()
Get all connection profiles persisted in workspace |
IConnectionProfile[] |
getProfilesByCategory(java.lang.String catID)
Get connection profiles by category |
ICategory[] |
getRootCategories()
Get root categories whose parent category is null |
void |
modifyProfile(IConnectionProfile profile)
Modify an existing connection profile |
void |
modifyProfile(IConnectionProfile profile,
java.lang.String newName,
java.lang.String newDesc)
Modify an existing connection profile, plus it's name and description We don't expose a setName and setDescription in IConnectionProfile, so instead we expose this api for that same purpose. |
void |
modifyProfile(IConnectionProfile profile,
java.lang.String newName,
java.lang.String newDesc,
java.lang.Boolean autoConnect)
Modify an existing connection profile, plus it's name and description We don't expose a setName and setDescription in IConnectionProfile, so instead we expose this api for that same purpose. |
void |
removeProfileListener(IProfileListener listener)
Remove the listener for profile operation |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ProfileManager()
| Method Detail |
public static ProfileManager getInstance()
public IConnectionProfile[] getProfiles()
public ICategory getCategory(java.lang.String catID)
catID -
public ICategory[] getRootCategories()
public IConnectionProfile[] getProfilesByCategory(java.lang.String catID)
catID -
public IConnectionProfile getProfileByName(java.lang.String name)
name -
public IConnectionProfile getProfileByInstanceID(java.lang.String id)
id -
public IConnectionProfile[] getProfileByProviderID(java.lang.String ID)
ID -
public void createProfile(java.lang.String name,
java.lang.String description,
java.lang.String providerID,
java.util.Properties baseProperties)
throws ConnectionProfileException
name - description - providerID - baseProperties -
ConnectionProfileException
public void createProfile(java.lang.String name,
java.lang.String description,
java.lang.String providerID,
java.util.Properties baseProperties,
java.lang.String parentProfile)
throws ConnectionProfileException
name - description - providerID - baseProperties - parentProfile -
ConnectionProfileException
public void createProfile(java.lang.String name,
java.lang.String description,
java.lang.String providerID,
java.util.Properties baseProperties,
java.lang.String parentProfile,
boolean autoConnect)
throws ConnectionProfileException
name - description - providerID - baseProperties - parentProfile - autoConnect -
ConnectionProfileException
public java.lang.String duplicateProfile(IConnectionProfile profile)
throws ConnectionProfileException
profile -
ConnectionProfileException
public void addProfile(IConnectionProfile profile)
throws ConnectionProfileException
profile -
ConnectionProfileException
public void addProfile(IConnectionProfile profile,
boolean replaceExisting)
throws ConnectionProfileException
profile - replaceExisting -
ConnectionProfileException
public void deleteProfile(IConnectionProfile profile)
throws ConnectionProfileException
profile -
ConnectionProfileException
public void modifyProfile(IConnectionProfile profile)
throws ConnectionProfileException
profile -
ConnectionProfileException
public void modifyProfile(IConnectionProfile profile,
java.lang.String newName,
java.lang.String newDesc)
throws ConnectionProfileException
profile -
ConnectionProfileException
public void modifyProfile(IConnectionProfile profile,
java.lang.String newName,
java.lang.String newDesc,
java.lang.Boolean autoConnect)
throws ConnectionProfileException
profile -
ConnectionProfileExceptionpublic void addProfileListener(IProfileListener listener)
listener - public void removeProfileListener(IProfileListener listener)
listener - public java.lang.Object getAdapter(java.lang.Class adapter)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||