|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.datatools.connectivity.oda.profile.OdaProfileExplorer
public class OdaProfileExplorer
The ODA Profile Explorer is a singleton class that provides
the services to explore ODA connection profile instances
and their main content.
The OdaProfileExplorer singleton instance is retrieved
using the getInstance() method.
| Method Summary | |
|---|---|
IConnectionProfile |
createTransientProfile(java.lang.String odaDataSourceId,
java.util.Properties profileProperties)
Creates a new transient profile instance based on the specified data source profile id and connection properties. |
static OdaProfileExplorer |
getInstance()
Static method to return the singleton instance. |
IConnectionProfile |
getProfile(java.lang.String profileInstanceId)
Deprecated. As of DTP 1.6, replaced by getProfileById(String, File) |
IConnectionProfile |
getProfileById(java.lang.String profileInstanceId,
java.io.File storageFile)
Finds and returns the profile instance in given storage file that matches the given profile's static instance id. |
IConnectionProfile |
getProfileByName(java.util.Properties dataSourceDesignProps,
java.lang.Object appContext)
Find and returns the connection profile instance whose name is specified in the specified connection properties. |
IConnectionProfile |
getProfileByName(java.lang.String profileName,
java.io.File storageFile)
Finds and returns the profile instance in given storage file that matches the given profile instance name. |
java.util.Map |
getProfileIdentifiersByCategory(java.lang.String categoryId,
java.io.File storageFile)
Returns a collection of identifiers of all connection profile instances under the specified profile category id. |
java.util.Map |
getProfileIdentifiersByOdaProviderId(java.lang.String odaDataSourceId,
java.io.File storageFile)
Returns a collection of identifiers of all connection profile instances of the given ODA data source extension type. |
java.util.Map<java.lang.String,java.lang.String> |
getProfileIdsAndNamesByCategory(java.lang.String categoryId,
java.io.File storageFile)
Returns a collection of instance id and name of all connection profile instances under the specified profile category id. |
java.util.Properties |
getProfileProperties(java.lang.String profileInstanceId)
Deprecated. As of DTP 1.6, replaced by getProfileProperties(String, File) |
java.util.Properties |
getProfileProperties(java.lang.String profileInstanceId,
java.io.File storageFile)
Returns the profile properties with values collected in the specified connection profile instance in the storageFile. |
java.util.Map |
getProfiles(java.lang.String odaDataSourceId)
Deprecated. As of DTP 1.6, replaced by getProfileIdentifiersByOdaProviderId(String, File) |
java.util.Map |
getProfiles(java.lang.String odaDataSourceId,
java.io.File storageFile)
Deprecated. As of DTP 1.6, replaced by getProfileIdentifiersByOdaProviderId(String, File) |
static boolean |
isProfileNameUsed(java.lang.String profileName)
Verifies if the specified connection profile name is already used among those profile instances that are cached and managed by the DTP Connection Profile Manager. |
void |
refresh()
Refresh the profile explorer, which allows it to get the latest profile instances in a profile storage file. |
static void |
releaseInstance()
Singleton instance release method. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static OdaProfileExplorer getInstance()
public static void releaseInstance()
public void refresh()
public java.util.Map getProfiles(java.lang.String odaDataSourceId)
throws OdaException
getProfileIdentifiersByOdaProviderId(String, File)
OdaException
public java.util.Map getProfiles(java.lang.String odaDataSourceId,
java.io.File storageFile)
throws OdaException
getProfileIdentifiersByOdaProviderId(String, File)
OdaException
public java.util.Map getProfileIdentifiersByOdaProviderId(java.lang.String odaDataSourceId,
java.io.File storageFile)
throws OdaException
odaDataSourceId - the unique id of the data source element
in an ODA data source extension.storageFile - a file that stores profile instances; may be null, which
will use the default store path of the Connectivity plugin
Map containing the instance Id (as key)
and description (as value) of all existing profiles of given odaDataSourceId;
may be an empty collection if there are
no matching connection profiles found in specified store.
OdaException - if unable to read from the given storageFile
public java.util.Map getProfileIdentifiersByCategory(java.lang.String categoryId,
java.io.File storageFile)
throws OdaException
categoryId - the unique id of a connection profile categorystorageFile - a file that stores profile instances; may be null, which
will use the default store path of the Connectivity plugin
Map containing the instance Id (as key)
and description (as value) of all existing profiles of given odaDataSourceId;
may be an empty collection if there are
no matching connection profiles found in specified store.
OdaException - if unable to read from the given storageFile
public java.util.Map<java.lang.String,java.lang.String> getProfileIdsAndNamesByCategory(java.lang.String categoryId,
java.io.File storageFile)
throws OdaException
categoryId - the unique id of a connection profile categorystorageFile - a file that stores profile instances; may be null, which
will use the default store path of the Connectivity plugin
Map containing the instance Id (as key),
and name (as value) of all existing profiles of given odaDataSourceId;
may be an empty collection if there are
no matching connection profiles found in specified store.
OdaException - if unable to read from the given storageFilepublic java.util.Properties getProfileProperties(java.lang.String profileInstanceId)
getProfileProperties(String, File)
profileInstanceId - the instance id of a connection profile
java.lang.IllegalArgumentException - if instance is not found.
public java.util.Properties getProfileProperties(java.lang.String profileInstanceId,
java.io.File storageFile)
profileInstanceId - the unique static id of
a connection profile instancestorageFile - a file that stores profile instances;
may be null, which would use the default store
of the Connectivity plugin
java.lang.IllegalArgumentException - if connection profile instance is not found.public IConnectionProfile getProfile(java.lang.String profileInstanceId)
getProfileById(String, File)
profileInstanceId - the unique instance id of a profile
in cache, as found in the collection
returned by the getProfiles methods
java.lang.IllegalArgumentException - if instance is not found.
public IConnectionProfile getProfileById(java.lang.String profileInstanceId,
java.io.File storageFile)
throws OdaException
profileInstanceId - the unique static id of
a connection profile instancestorageFile - a file that stores profile instances;
may be null, which would use the default store
of the Connectivity plugin
OdaException
public IConnectionProfile getProfileByName(java.lang.String profileName,
java.io.File storageFile)
throws OdaException
profileName - The unique name of a connection profile instance.storageFile - a file that stores profile instances;
may be null, which would use the default store
of the Connectivity plugin
OdaException
public IConnectionProfile getProfileByName(java.util.Properties dataSourceDesignProps,
java.lang.Object appContext)
getProfileByName(String, File).
dataSourceDesignProps - connection properties specified in a data source designappContext - an application context Map passed thru to a connection,
and which may contain the IPropertyProvider.ODA_CONN_PROP_CONTEXT key
and corresponding connection property context object as value.
If no such nested context is found, this application context Map is used
as the connection property context.
Optional; may be null.
getProfileByName(String, File)public static boolean isProfileNameUsed(java.lang.String profileName)
profileName - unique identifier of a DTP connection profile
public IConnectionProfile createTransientProfile(java.lang.String odaDataSourceId,
java.util.Properties profileProperties)
throws OdaException
odaDataSourceId - an ODA data source id as specified in an oda.dataSource extensionprofileProperties - connection properties to be stored as profile properties
IConnectionProfile that are non persistent
OdaException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||