|
RSE Release 1.0 |
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
Interface implemented by SubSystem objects. While connections contain information to identify a
particular remote system, it is the subsystem objects within a connection that contain information
unique to a particular tool, for that remote system, such as the port the tool uses and the
user ID for making the connection. There are a set of default properties, but these can be
extended by subsystem providers, by extending SubSystem.
| Method Summary | |
|---|---|
void |
checkIsConnected()
This is a helper method you can call when performing actions that must be certain there is a connection. |
void |
clearLocalUserId()
Called to clear the local user Id such that subsequent requests to getUserId() will return the parent connection's default user Id. |
void |
connect()
Connect to the remote system. |
void |
connect(boolean forcePrompt)
Connect to the remote system, optionally forcing a signon prompt even if the password is cached in memory or on disk. |
void |
deletingConnection()
Private method called when the parent connection is being deleted, so the subsystem can do any pre-death cleanup it needs to. |
void |
disconnect()
Disconnect from the remote system. |
void |
disconnect(boolean collapseTree)
Disconnect from the remote system. |
boolean |
doesFilterListContentsOf(ISystemFilter filter,
String remoteObjectAbsoluteName)
Return true if the given filter lists the contents of the given remote object. |
boolean |
doesFilterMatch(ISystemFilter filter,
String remoteObjectAbsoluteName)
Return true if the given remote object name will pass the filtering criteria for any of the filter strings in this filter. |
boolean |
doesFilterStringListContentsOf(ISystemFilterString filterString,
String remoteObjectAbsoluteName)
Return true if the given filter string lists the contents of the given remote object. |
boolean |
doesFilterStringMatch(String filterString,
String remoteObjectAbsoluteName,
boolean caseSensitive)
Return true if the given remote object name will pass the filtering criteria for the given filter string in this filter. |
boolean |
forceUserIdToUpperCase()
Return true if userId and password should be forced to uppercase. |
ICacheManager |
getCacheManager()
Return the CacheManager for this subsystem. |
Object[] |
getChildren()
Return the children for this subsystem. |
String |
getConfigurationId()
|
IConnectorService |
getConnectorService()
Return the IConnectorService object that represents the live connection for this system. |
ISystemFilterPoolReferenceManager |
getFilterPoolReferenceManager()
Generated persistent property method Return the object that manages the list of filter pools referenced by this subsystem. |
IHost |
getHost()
Return the connection object this subsystem is associated with. |
String |
getHostAliasName()
|
String |
getLocalUserId()
Alternative to getUserId when we don't want to resolve it from parent connection. |
String |
getName()
|
ISubSystem |
getPrimarySubSystem()
Return the primary subsystem associated with this subsystem's IConnectorService |
String[] |
getProperties(Object subject,
String[] keys)
Get a remote property. |
String |
getProperty(Object subject,
String key)
Get a remote property. |
ISubSystemConfiguration |
getSubSystemConfiguration()
Return the parent subsystem factory that owns this subsystem. |
ISystemFilterPoolReferenceManager |
getSystemFilterPoolReferenceManager()
Return the system filter pool reference manager, as per the interface SystemFilterPoolReferenceManagerProvider |
ISystemProfile |
getSystemProfile()
Return the system profile object this subsystem is associated with. |
String |
getSystemProfileName()
|
Object |
getTargetForFilter(ISystemFilterReference filterRef)
Returns the parent object associated with a filter reference. |
String |
getUserId()
Returns the value of this subsystem's user id if it is not null. |
String |
getVendorAttribute(String vendorName,
String attributeName)
For business partners defining their own subsystems. |
boolean |
hasChildren()
Return true if this subsystem has children objects to be displayed in the Remote System View explorer. |
void |
initializeSubSystem(IProgressMonitor monitor)
Called on each subsystem associated with a particular IConnectorService after it connects |
boolean |
isConnected()
Return true if this subsystem is currently connected to its remote system. |
boolean |
isConnectionError()
Return true if the last attempt to connect this subsystem to its remote system failed. |
boolean |
isHidden()
Generated persistent property method Return true if this subsystem is to be hidden so it doesn't show in the Remote Systems view when a connection is expanded. |
boolean |
isOffline()
Return true if this subsystem is currently being used in "offline" mode. |
boolean |
isPrimarySubSystem()
|
void |
renamingConnection(String newName)
Private method called when the parent connection is being renamed, so the subsystem can do any cleanup it needs to. |
void |
renamingProfile(String oldName,
String newName)
Private method called when the parent profile is being renamed, so the subsystem can do any cleanup it needs to. |
Object[] |
resolveFilterString(IProgressMonitor monitor,
Object parent,
String filterString)
Modal thread version of resolve filter strings Resolve an absolute filter string. |
Object[] |
resolveFilterString(IProgressMonitor monitor,
String filterString)
Modal thread version of resolve filter strings Resolve an absolute filter string. |
Object[] |
resolveFilterString(Object parent,
String filterString)
Resolve an relative filter string. |
Object[] |
resolveFilterString(String filterString)
Resolve an absolute filter string. |
Object[] |
resolveFilterStrings(IProgressMonitor monitor,
String[] filterStrings)
Modal thread version of resolve filter strings Resolve an absolute filter string. |
Object[] |
resolveFilterStrings(String[] filterStrings)
Resolve multiple absolute filter strings. |
void |
setConfigurationId(String value)
|
void |
setConnectionError(boolean error)
Sets whether the last attempt to connect this subsystem to its remote system failed. |
void |
setConnectorService(IConnectorService connectorService)
Set the connector service for this subsystem |
void |
setFilterPoolReferenceManager(ISystemFilterPoolReferenceManager value)
Generated persistent property method Set the object that manages the list of filter pools referenced by this subsystem. |
void |
setHidden(boolean value)
Generated persistent property method Specify true if this subsystem is to be hidden so it doesn't show in the Remote Systems view when a connection is expanded. |
void |
setHost(IHost conn)
Set the parent connection that owns this subsystem. |
void |
setName(String value)
|
Object |
setProperties(Object subject,
String[] keys,
String[] values)
Set multiple remote properties. |
Object |
setProperty(Object subject,
String key,
String value)
Set a remote property. |
void |
setSubSystemConfiguration(ISubSystemConfiguration ssf)
Set the parent subsystem factory that owns this subsystem. |
void |
setVendorAttribute(String vendorName,
String attributeName,
String attributeValue)
For business partners defining their own subsystems. |
boolean |
supportsCaching()
Check if the SubSystem supports caching. |
void |
uninitializeSubSystem(IProgressMonitor monitor)
Called on each subsystem associated with a particular IConnectorService after it disconnects |
| Methods inherited from interface org.eclipse.rse.core.subsystems.IRemoteObjectResolver |
|---|
getObjectWithAbsoluteName |
| Methods inherited from interface org.eclipse.core.runtime.jobs.ISchedulingRule |
|---|
contains, isConflicting |
| Methods inherited from interface org.eclipse.rse.core.model.IRSEModelObject |
|---|
getDescription |
| Methods inherited from interface org.eclipse.rse.core.model.IPropertySetContainer |
|---|
addPropertySet, addPropertySets, createPropertySet, createPropertySet, getPropertySet, getPropertySets, removePropertySet |
| Methods inherited from interface org.eclipse.rse.core.persistance.IRSEPersistableContainer |
|---|
commit, isDirty, setDirty, setWasRestored, wasRestored |
| Method Detail |
public ISubSystemConfiguration getSubSystemConfiguration()
public void setSubSystemConfiguration(ISubSystemConfiguration ssf)
public void setHost(IHost conn)
public void setConnectorService(IConnectorService connectorService)
connectorService - public ISystemProfile getSystemProfile()
getName()public IHost getHost()
public void initializeSubSystem(IProgressMonitor monitor)
public void uninitializeSubSystem(IProgressMonitor monitor)
public boolean isPrimarySubSystem()
public ISubSystem getPrimarySubSystem()
public String getHostAliasName()
public String getSystemProfileName()
public void renamingProfile(String oldName,
String newName)
public void renamingConnection(String newName)
public void deletingConnection()
public void checkIsConnected()
throws SystemMessageException
SystemMessageException
public void setVendorAttribute(String vendorName,
String attributeName,
String attributeValue)
public String getVendorAttribute(String vendorName,
String attributeName)
public boolean forceUserIdToUpperCase()
public String getLocalUserId()
Unlike getUserId() this one does not defer to the connection's default user Id if the subsystem's userId attribute is null.
To set the local user Id, simply call setUserId(String id). To clear it, call
clearLocalUserId().
org.eclipse.rse.model.IHost#getDefaultUserId(),
clearLocalUserId(),
getUserId(),
#setUserId(String)public void clearLocalUserId()
org.eclipse.rse.model.IHost#getDefaultUserId(),
getUserId(),
getLocalUserId(),
#setUserId(String)public Object[] getChildren()
By default, if the parent subsystem factory supports filters, then we return getSystemFilterPoolReferencesArray. If filters are not supported (supportsFilters() returns false from factory) then we return null. In this case you should override this.
public boolean hasChildren()
public boolean doesFilterListContentsOf(ISystemFilter filter,
String remoteObjectAbsoluteName)
The default algorithm calls doesFilterStringListContentsOf for each filter string.
public boolean doesFilterStringListContentsOf(ISystemFilterString filterString,
String remoteObjectAbsoluteName)
public boolean doesFilterMatch(ISystemFilter filter,
String remoteObjectAbsoluteName)
public boolean doesFilterStringMatch(String filterString,
String remoteObjectAbsoluteName,
boolean caseSensitive)
public ISystemFilterPoolReferenceManager getSystemFilterPoolReferenceManager()
getSystemFilterPoolReferenceManager in interface ISystemFilterPoolReferenceManagerProviderpublic String getName()
getName in interface IRSEModelObjectpublic void setName(String value)
value - The new value of the Name attributepublic String getUserId()
In fact, we now don't store the user Id in the subsystem object itself, but rather store it in the user preferences, so that such things are not shared among the team on a synchronize operation. This is transparent to callers of this method however, as this method resolves from the preferences.
org.eclipse.rse.model.IHost#getDefaultUserId(),
#setUserId(String),
getLocalUserId(),
clearLocalUserId()public String getConfigurationId()
public void setConfigurationId(String value)
value - The new value of the ConfigurationId attributepublic IConnectorService getConnectorService()
public boolean supportsCaching()
public ICacheManager getCacheManager()
supportsCaching()public boolean isConnected()
public boolean isConnectionError()
public void setConnectionError(boolean error)
public boolean isOffline()
public void connect()
throws Exception
Exception
public void connect(boolean forcePrompt)
throws Exception
forcePrompt - forces the prompt dialog to be displayed even if the password is currently
in memory.
Exception
public void disconnect()
throws Exception
Exception
public void disconnect(boolean collapseTree)
throws Exception
Exception
public Object[] resolveFilterString(IProgressMonitor monitor,
String filterString)
throws Exception
When a user expands a filter containing filter strings, this method is invoked for each filter string.
The resulting objects are displayed in the remote system view tree. They can be anything, but at a minimum must support IAdaptable in order to drive the property sheet. You can just defer the getAdapter request to the platform's Adapter manager if desired.
You should supply an adapter class for the returned object's class, to render objects in the Remote System Explorer view. It will uses a label and content provider that defers all requests to the adapter, which it gets by querying the platform's adapter manager for the object type. Be sure to register your adapter factory.
monitor - the process monitor associated with this operationfilterString - filter pattern for objects to return.
Exception
public Object[] resolveFilterStrings(IProgressMonitor monitor,
String[] filterStrings)
throws Exception
When a user expands a filter containing filter strings, this method is invoked for each filter string.
The resulting objects are displayed in the remote system view tree. They can be anything, but at a minimum must support IAdaptable in order to drive the property sheet. You can just defer the getAdapter request to the platform's Adapter manager if desired.
You should supply an adapter class for the returned object's class, to render objects in the Remote System Explorer view. It will uses a label and content provider that defers all requests to the adapter, which it gets by querying the platform's adapter manager for the object type. Be sure to register your adapter factory.
monitor - the process monitor associated with this operationfilterStrings - filter patterns for objects to return.
Exception
public Object[] resolveFilterString(IProgressMonitor monitor,
Object parent,
String filterString)
throws Exception
When a user expands a filter containing filter strings, this method is invoked for each filter string.
The resulting objects are displayed in the remote system view tree. They can be anything, but at a minimum must support IAdaptable in order to drive the property sheet. You can just defer the getAdapter request to the platform's Adapter manager if desired.
You should supply an adapter class for the returned object's class, to render objects in the Remote System Explorer view. It will uses a label and content provider that defers all requests to the adapter, which it gets by querying the platform's adapter manager for the object type. Be sure to register your adapter factory.
monitor - the process monitor associated with this operationparent - the parent object to queryfilterString - filter pattern for objects to return.
Exception
public Object[] resolveFilterString(String filterString)
throws Exception
When a user expands a filter containing filter strings, this method is invoked for each filter string.
The resulting objects are displayed in the remote system view tree. They can be anything, but at a minimum must support IAdaptable in order to drive the property sheet. You can just defer the getAdapter request to the platform's Adapter manager if desired.
You should supply an adapter class for the returned object's class, to render objects in the Remote System Explorer view. It will uses a label and content provider that defers all requests to the adapter, which it gets by querying the platform's adapter manager for the object type. Be sure to register your adapter factory.
filterString - filter pattern for objects to return.
Exception
public Object[] resolveFilterStrings(String[] filterStrings)
throws Exception
This is the same as #resolveFilterString(String,Shell) but takes an array of
filter strings versus a single filter string.
filterStrings - array of filter patterns for objects to return.
Exception
public Object[] resolveFilterString(Object parent,
String filterString)
throws Exception
When a user expands an object that came from a previous filter string expansion, (such as expanding a folder), this method is invoked to get the children of that object. The user can choose to expand all, or choose a pre-defined relative filter string to subset/filter the children. In either case, the relative filter string is passed in as well as the to-be-expanded parent object.
The resulting objects are displayed in the remote system view tree. They can be anything, but at a minimum must support IAdaptable in order to drive the property sheet. You can just defer the getAdapter request to the platform's Adapter manager if desired.
You should supply an adapter class for the returned object's class, to render objects in the Remote System Explorer view. It will uses a label and content provider that defers all requests to the adapter, which it gets by querying the platform's adapter manager for the object type. Be sure to register your adapter factory.
parent - Object that is being expanded.filterString - filter pattern for children of parent.
Exception
public Object setProperty(Object subject,
String key,
String value)
throws Exception
subject - Identifies which object to get the properties ofkey - Identifies property to setvalue - Value to set property to
Exception
public String getProperty(Object subject,
String key)
throws Exception
subject - Identifies which object to get the properties ofkey - Identifies property to get value of
Exception
public Object setProperties(Object subject,
String[] keys,
String[] values)
throws Exception
subject - Identifies which object to get the properties of
Exception
public String[] getProperties(Object subject,
String[] keys)
throws Exception
subject - Identifies which object to get the properties of
Exceptionpublic boolean isHidden()
public void setHidden(boolean value)
value - The new value of the Hidden attributepublic ISystemFilterPoolReferenceManager getFilterPoolReferenceManager()
public void setFilterPoolReferenceManager(ISystemFilterPoolReferenceManager value)
public Object getTargetForFilter(ISystemFilterReference filterRef)
filterRef - the filter reference to determine a target object from.
|
RSE Release 1.0 |
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||