|
RSE Release 1.0 |
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
Registry or front door for all remote system connections.
There is a singleton of the class implementation of this interface.
To get it, call the getTheSystemRegistry
method in the RSEUIPlugin object.
The idea here is that connections are grouped by system profile. At any time, there is a user-specified number of profiles "active" and connections from each active profile are worked with.
| Method Summary | |
|---|---|
boolean |
areAllSubSystemsConnected(IHost conn)
Return true if all of the subsystems for the given connection are currently connected |
void |
connectedStatusChange(ISubSystem subsystem,
boolean connected,
boolean wasConnected)
Inform the world when the connection status changes for a subsystem within a connection |
void |
connectedStatusChange(ISubSystem subsystem,
boolean connected,
boolean wasConnected,
boolean collapseTree)
Inform the world when the connection status changes for a subsystem within a connection |
IHost |
copyHost(IProgressMonitor monitor,
IHost conn,
ISystemProfile targetProfile,
String newName)
Copy a SystemConnection. |
ISystemProfile |
copySystemProfile(IProgressMonitor monitor,
ISystemProfile profile,
String newName,
boolean makeActive)
Copy a SystemProfile. |
IHost |
createHost(String systemType,
String connectionName,
String hostName,
String description)
Create a connection object. |
IHost |
createHost(String profileName,
String systemType,
String connectionName,
String hostName,
String description)
Create a connection object. |
IHost |
createHost(String profileName,
String systemType,
String connectionName,
String hostName,
String description,
String defaultUserId,
int defaultUserIdLocation,
ISystemNewConnectionWizardPage[] newConnectionWizardPages)
Create a connection object, given the connection pool and given all the possible attributes. |
IHost |
createLocalHost(ISystemProfile profile,
String name,
String userId)
Convenience method to create a local connection, as it often that one is needed for access to the local file system. |
ISystemProfile |
createSystemProfile(String profileName,
boolean makeActive)
Create a SystemProfile given its name and whether or not to make it active |
void |
deleteHost(IHost conn)
Delete an existing connection. |
boolean |
deleteSubSystem(ISubSystem subsystem)
Delete a subsystem object. |
void |
deleteSystemProfile(ISystemProfile profile)
Delete a SystemProfile. |
void |
disconnectAllSubSystems(IHost conn)
Disconnect all subsystems for the given connection, if they are currently connected. |
void |
expandHost(IHost conn)
Expand the given connection in the RSE, if the RSE is the active perspective. |
void |
expandSubSystem(ISubSystem subsystem)
Expand the given subsystem in the RSE, if the RSE is the active perspective. |
List |
findFilterReferencesFor(Object resource,
ISubSystem subsystem)
Returns filter references associated with this resource under the subsystem |
String |
getAbsoluteNameForConnection(IHost connection)
Return the absolute name for the specified connection |
String |
getAbsoluteNameForSubSystem(ISubSystem subsystem)
Return the absolute name for the specified subsystem |
String[] |
getActiveSystemProfileNames()
Return the profile names currently selected by the user as his "active" profiles |
ISystemProfile[] |
getActiveSystemProfiles()
Return the profiles currently selected by the user as his "active" profiles |
String[] |
getAllSystemProfileNames()
Return all defined profile names |
Vector |
getAllSystemProfileNamesVector()
Return all defined profile names as a vector |
ISystemProfile[] |
getAllSystemProfiles()
Return all defined profiles |
IConnectorService[] |
getConnectorServices(IHost conn)
Return the list of connector services provided for the given host |
IHost |
getHost(ISystemProfile profile,
String connectionName)
Return a SystemConnection object given a system profile containing it, and a connection name uniquely identifying it. |
Vector |
getHostAliasNames(ISystemProfile profile)
Return a vector of previously-used connection names in the given profile. |
Vector |
getHostAliasNames(String profileName)
Return a vector of previously-used connection names in the given named profile. |
Vector |
getHostAliasNamesForAllActiveProfiles()
Return a vector of previously-used connection names in all active profiles. |
int |
getHostCount()
Return the number of SystemConnection objects within all active profiles |
int |
getHostCount(String profileName)
Return the number of SystemConnection objects within the given profile |
int |
getHostCountWithinProfile(IHost conn)
Return the number of SystemConnection objects within the given connection's owning profile |
String[] |
getHostNames()
Return array of all previously specified hostnames. |
String[] |
getHostNames(String systemType)
Return array of previously specified hostnames for a given system type. |
int |
getHostPosition(IHost conn)
Return the zero-based position of a SystemConnection object within its profile. |
IHost[] |
getHosts()
Return all connections in all active profiles. |
IHost[] |
getHostsByProfile(ISystemProfile profile)
Return all connections in a given profile name. |
IHost[] |
getHostsByProfile(String profileName)
Return all connections in a given profile. |
IHost[] |
getHostsBySubSystemConfiguration(ISubSystemConfiguration factory)
Return all connections for which there exists one or more subsystems owned by a given subsystem factory. |
IHost[] |
getHostsBySubSystemConfigurationCategory(String factoryCategory)
Return all connections for which there exists one or more subsystems owned by any a given subsystem factory that is of the given category. |
IHost[] |
getHostsBySubSystemConfigurationId(String factoryId)
Return all connections for which there exists one or more subsystems owned by a given subsystem factory, identified by factory Id |
IHost[] |
getHostsBySystemType(String systemType)
Return all connections for all active profiles, for the given system type. |
IHost[] |
getHostsBySystemTypes(String[] systemTypes)
Return all connections for all active profiles, for the given system types. |
Exception |
getLastException()
Return last exception object caught in any method, or null if no exception. |
IHost |
getLocalHost()
Return the first connection to localhost we can find. |
boolean |
getQualifiedHostNames()
Are connection names to be qualified by profile name? |
ISubSystem[] |
getServiceSubSystems(Class serviceType,
IHost connection)
|
ISubSystem |
getSubSystem(String absoluteSubSystemName)
Resolve a subsystem from it's absolute name |
ISubSystem |
getSubSystem(String srcProfileName,
String srcConnectionName,
String subsystemFactoryId)
Resolve a subsystem from it's profile, connection and subsystem name. |
ISubSystemConfiguration |
getSubSystemConfiguration(ISubSystem subsystem)
Return the parent subsystemconfiguration given a subsystem object. |
ISubSystemConfiguration |
getSubSystemConfiguration(String id)
Return the subsystemconfiguration, given its plugin.xml-declared id. |
ISubSystemConfigurationProxy[] |
getSubSystemConfigurationProxies()
Public method to retrieve list of subsystem factory proxies registered by extension points. |
ISubSystemConfigurationProxy[] |
getSubSystemConfigurationProxiesByCategory(String factoryCategory)
Return all subsystem factory proxies matching a subsystem factory category. |
ISubSystemConfiguration[] |
getSubSystemConfigurations()
Return all subsystem factories. |
ISubSystemConfiguration[] |
getSubSystemConfigurationsByCategory(String factoryCategory)
Return all subsystem factories which have declared themselves part of the given category. |
ISubSystemConfiguration[] |
getSubSystemConfigurationsBySystemType(String systemType)
Return all subsystem factories which support the given system type. |
ISubSystemConfiguration[] |
getSubSystemConfigurationsBySystemType(String systemType,
boolean filterDuplicateServiceSubSystemFactories)
Return all subsystem factories which support the given system type. |
ISubSystem[] |
getSubSystems(IHost conn)
Return list of subsystem objects for a given connection. |
ISubSystem[] |
getSubSystems(IHost conn,
boolean force)
Return list of subsystem objects for a given connection. |
ISubSystem[] |
getSubSystems(String factoryId)
Get a list of subsystem objects owned by the subsystem factory identified by its given plugin.xml-described id. |
ISubSystem[] |
getSubSystems(String factoryId,
IHost connection)
Get a list of subsystem objects for given connection, owned by the subsystem factory identified by its given plugin.xml-described id. |
ISubSystem[] |
getSubSystemsBySubSystemConfigurationCategory(String factoryCategory,
IHost connection)
Get a list of subsystem objects for given connection, owned by a subsystem factory that is of the given category. |
List |
getSystemClipboardObjects(int srcType)
Returns the list of objects on the system clipboard |
ISystemFilterPool |
getSystemFilterPool()
|
ISystemFilterStartHere |
getSystemFilterStartHere()
|
ISystemProfile |
getSystemProfile(String profileName)
Get a SystemProfile given its name |
ISystemProfileManager |
getSystemProfileManager()
Return singleton profile manager |
void |
invalidateFiltersFor(ISubSystem subsystem)
Marks all filters for this subsystem as stale to prevent caching |
void |
invalidateFiltersFor(Object resourceParent,
ISubSystem subsystem)
Marks all filters for this subsystem the contain resourceParent as stale to prevent caching |
boolean |
isAnySubSystemConnected(IHost conn)
Return true if any of the subsystems for the given connection are currently connected |
boolean |
isAnySubSystemSupportsConnect(IHost conn)
Return true if any subsystem supports connecting. |
IHost |
moveHost(IProgressMonitor monitor,
IHost conn,
ISystemProfile targetProfile,
String newName)
Move a SystemConnection to another profile. |
void |
moveHosts(String profileName,
IHost[] conns,
int delta)
Move existing connections a given number of positions in the same profile. |
void |
renameHost(IHost conn,
String newName)
Renames an existing connection. |
void |
renameSystemProfile(ISystemProfile profile,
String newName)
Rename a SystemProfile. |
boolean |
restore()
Restore all connections within active profiles |
boolean |
save()
Save everything! |
boolean |
saveHost(IHost conn)
Save specific connection |
boolean |
saveHostPool(ISystemHostPool pool)
Save specific connection pool |
void |
setHostOffline(IHost conn,
boolean offline)
Update the workoffline mode for a connection. |
void |
setQualifiedHostNames(boolean set)
Set if connection names are to be qualified by profile name |
void |
setShowFilterPools(boolean show)
Reflect the user changing the preference for showing filter pools. |
void |
setShowNewHostPrompt(boolean show)
Reflect the user changing the preference for showing new connection prompt |
void |
setSubSystemConfigurationProxies(ISubSystemConfigurationProxy[] proxies)
Private method used by RSEUIPlugin to tell registry all registered subsystem factories. |
void |
setSystemProfileActive(ISystemProfile profile,
boolean makeActive)
Make or unmake the given profile active |
void |
showRSEPerspective()
Show the RSE perspective if it is not already showing |
| Methods inherited from interface org.eclipse.core.runtime.jobs.ISchedulingRule |
|---|
contains, isConflicting |
| Method Detail |
public ISystemFilterStartHere getSystemFilterStartHere()
public ISystemFilterPool getSystemFilterPool()
public void showRSEPerspective()
public void expandHost(IHost conn)
public void expandSubSystem(ISubSystem subsystem)
public void setSubSystemConfigurationProxies(ISubSystemConfigurationProxy[] proxies)
public ISubSystemConfigurationProxy[] getSubSystemConfigurationProxies()
public ISubSystemConfigurationProxy[] getSubSystemConfigurationProxiesByCategory(String factoryCategory)
ISubSystemConfigurationCategoriespublic ISubSystemConfiguration[] getSubSystemConfigurations()
public ISubSystemConfiguration getSubSystemConfiguration(ISubSystem subsystem)
public ISubSystemConfiguration getSubSystemConfiguration(String id)
public ISubSystemConfiguration[] getSubSystemConfigurationsByCategory(String factoryCategory)
This looks for a match on the "category" of the subsystem factory's xml declaration in its plugin.xml file. Thus, it is effecient as it need not bring to life a subsystem factory just to test its parent class type.
ISubSystemConfigurationCategoriespublic ISubSystemConfiguration[] getSubSystemConfigurationsBySystemType(String systemType)
public ISubSystemConfiguration[] getSubSystemConfigurationsBySystemType(String systemType,
boolean filterDuplicateServiceSubSystemFactories)
public boolean getQualifiedHostNames()
public void setQualifiedHostNames(boolean set)
public void setShowFilterPools(boolean show)
public void setShowNewHostPrompt(boolean show)
public ISystemProfileManager getSystemProfileManager()
public ISystemProfile[] getActiveSystemProfiles()
public String[] getActiveSystemProfileNames()
public ISystemProfile[] getAllSystemProfiles()
public String[] getAllSystemProfileNames()
public Vector getAllSystemProfileNamesVector()
public ISystemProfile getSystemProfile(String profileName)
public ISystemProfile createSystemProfile(String profileName,
boolean makeActive)
throws Exception
Exception
public ISystemProfile copySystemProfile(IProgressMonitor monitor,
ISystemProfile profile,
String newName,
boolean makeActive)
throws Exception
monitor - Progress monitor to reflect each step of the operationprofile - Source profile to copynewName - Unique name to give copied profilemakeActive - whether to make the copied profile active or not
Exception
public void renameSystemProfile(ISystemProfile profile,
String newName)
throws Exception
Exception
public void deleteSystemProfile(ISystemProfile profile)
throws Exception
As well, all the filter pools for this profile are deleted, and subsequently any cross references from subsystems in connections in other profiles are removed.
A delete event is fired for every connection deleted.
Exception
public void setSystemProfileActive(ISystemProfile profile,
boolean makeActive)
public IConnectorService[] getConnectorServices(IHost conn)
conn - the host
public ISubSystem[] getSubSystems(IHost conn)
public ISubSystem[] getSubSystems(IHost conn,
boolean force)
public ISubSystem[] getServiceSubSystems(Class serviceType,
IHost connection)
public ISubSystem getSubSystem(String srcProfileName,
String srcConnectionName,
String subsystemFactoryId)
srcProfileName - the name of the profilesrcConnectionName - the name of the connectionsubsystemFactoryId - the id of the subsystem
public ISubSystem getSubSystem(String absoluteSubSystemName)
absoluteSubSystemName - the name of the subsystem
public String getAbsoluteNameForSubSystem(ISubSystem subsystem)
public String getAbsoluteNameForConnection(IHost connection)
public ISubSystem[] getSubSystems(String factoryId)
This is a list that of all subsystems for all connections owned by the factory.
public ISubSystem[] getSubSystems(String factoryId,
IHost connection)
public ISubSystem[] getSubSystemsBySubSystemConfigurationCategory(String factoryCategory,
IHost connection)
This looks for a match on the "category" of the subsystem factory's xml declaration in its plugin.xml file.
ISubSystemConfigurationCategoriespublic boolean deleteSubSystem(ISubSystem subsystem)
public IHost getLocalHost()
createLocalHost(ISystemProfile, String, String).
public IHost[] getHosts()
public IHost[] getHostsByProfile(ISystemProfile profile)
public IHost[] getHostsByProfile(String profileName)
public IHost[] getHostsBySubSystemConfiguration(ISubSystemConfiguration factory)
getSubSystemConfiguration(String)public IHost[] getHostsBySubSystemConfigurationId(String factoryId)
public IHost[] getHostsBySubSystemConfigurationCategory(String factoryCategory)
This looks for a match on the "category" of the subsystem factory's xml declaration in its plugin.xml file. Thus, it is effecient as it need not bring to life a subsystem factory just to test its parent class type.
ISubSystemConfigurationCategoriespublic IHost[] getHostsBySystemType(String systemType)
public IHost[] getHostsBySystemTypes(String[] systemTypes)
public IHost getHost(ISystemProfile profile,
String connectionName)
public int getHostPosition(IHost conn)
public int getHostCount(String profileName)
public int getHostCountWithinProfile(IHost conn)
public int getHostCount()
public Vector getHostAliasNames(String profileName)
public Vector getHostAliasNames(ISystemProfile profile)
public Vector getHostAliasNamesForAllActiveProfiles()
public String[] getHostNames()
public String[] getHostNames(String systemType)
public List getSystemClipboardObjects(int srcType)
srcType - the transfer type
public IHost createLocalHost(ISystemProfile profile,
String name,
String userId)
profile - - the profile to create this connection in. If null is passed, we first
try to find the default private profile and use it, else we take the first active profile.name - - the name to give this profile. Must be unique and non-null.userId - - the user ID to use as the default for the subsystems. Can be null.
public IHost createHost(String profileName,
String systemType,
String connectionName,
String hostName,
String description,
String defaultUserId,
int defaultUserIdLocation,
ISystemNewConnectionWizardPage[] newConnectionWizardPages)
throws Exception
THE RESULTING CONNECTION OBJECT IS ADDED TO THE LIST OF EXISTING CONNECTIONS FOR YOU, IN THE POOL YOU SPECIFY. THE POOL IS ALSO SAVED TO DISK.
This method:
profileName - Name of the system profile the connection is to be added to.systemType - system type matching one of the system type names defined via the
systemTypes extension point.connectionName - unique connection name.hostName - ip name of host.description - optional description of the connection. Can be null.defaultUserId - userId to use as the default for the subsystems.defaultUserIdLocation - one of the constants in ISystemUserIdConstants
that tells us where to set the user IdnewConnectionWizardPages - when called from the New Connection wizard this is union of the list of additional
wizard pages supplied by the subsystem factories that pertain to the specified system type. Else null.
Exception
public IHost createHost(String profileName,
String systemType,
String connectionName,
String hostName,
String description)
throws Exception
THE RESULTING CONNECTION OBJECT IS ADDED TO THE LIST OF EXISTING CONNECTIONS FOR YOU, IN THE PROFILE YOU SPECIFY. THE PROFILE IS ALSO SAVED TO DISK.
This method:
profileName - Name of the system profile the connection is to be added to.systemType - system type matching one of the system type names defined via the
systemTypes extension point.connectionName - unique connection name.hostName - ip name of host.description - optional description of the connection. Can be null.
Exception
public IHost createHost(String systemType,
String connectionName,
String hostName,
String description)
throws Exception
THE RESULTING CONNECTION OBJECT IS ADDED TO THE LIST OF EXISTING CONNECTIONS FOR YOU, IN THE DEFAULT PRIVATE PROFILE, WHICH IS SAVED TO DISK.
This method:
systemType - system type matching one of the system type names defined via the
systemTypes extension point.connectionName - unique connection name.hostName - ip name of host.description - optional description of the connection. Can be null.
Exception
public void setHostOffline(IHost conn,
boolean offline)
conn - SystemConnection to changeoffline - true if connection should be set offline, false if it should be set onlinepublic void deleteHost(IHost conn)
Lots to do here:
public void renameHost(IHost conn,
String newName)
throws Exception
Lots to do here:
Exception
public void moveHosts(String profileName,
IHost[] conns,
int delta)
conns - Array of SystemConnections to move.
public IHost copyHost(IProgressMonitor monitor,
IHost conn,
ISystemProfile targetProfile,
String newName)
throws Exception
monitor - Progress monitor to reflect each step of the operationconn - The connection to copytargetProfile - What profile to copy intonewName - Unique name to give copied profile
Exception
public IHost moveHost(IProgressMonitor monitor,
IHost conn,
ISystemProfile targetProfile,
String newName)
throws Exception
monitor - Progress monitor to reflect each step of the operationconn - The connection to movetargetProfile - What profile to move tonewName - Unique name to give moved profile
Exceptionpublic boolean isAnySubSystemSupportsConnect(IHost conn)
conn - the connection.
true if any subsystem supports connecting, false otherwise.public boolean isAnySubSystemConnected(IHost conn)
public boolean areAllSubSystemsConnected(IHost conn)
public void disconnectAllSubSystems(IHost conn)
public void connectedStatusChange(ISubSystem subsystem,
boolean connected,
boolean wasConnected)
public void connectedStatusChange(ISubSystem subsystem,
boolean connected,
boolean wasConnected,
boolean collapseTree)
public List findFilterReferencesFor(Object resource,
ISubSystem subsystem)
public void invalidateFiltersFor(ISubSystem subsystem)
subsystem -
public void invalidateFiltersFor(Object resourceParent,
ISubSystem subsystem)
resourceParent - subsystem - public Exception getLastException()
public boolean save()
public boolean saveHostPool(ISystemHostPool pool)
public boolean saveHost(IHost conn)
public boolean restore()
|
RSE Release 1.0 |
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||