|
RSE Release 1.0 |
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
java.lang.Objectorg.eclipse.rse.model.DummyHost
| Field Summary | |
|---|---|
protected String |
_hostName
|
protected String |
_systemType
|
| Constructor Summary | |
|---|---|
DummyHost(String hostName,
String systemType)
|
|
| Method Summary | |
|---|---|
boolean |
addPropertySet(IPropertySet set)
|
boolean |
addPropertySets(IPropertySet[] sets)
|
void |
clearLocalDefaultUserId()
Clear the local default user Id so next query will return the value from the preference store. |
boolean |
commit()
Request a persistence manager to persist this object. |
boolean |
compareUserIds(String userId1,
String userId2)
Call this to compare two userIds taking case sensitivity |
IPropertySet |
createPropertySet(String name)
|
IPropertySet |
createPropertySet(String name,
String description)
|
void |
deletingHost()
Private method called when this connection is being deleted, so we can do any pre-death cleanup we need. |
String |
getAliasName()
|
IConnectorService[] |
getConnectorServices()
Returns all the connector services provided for this host |
String |
getDefaultUserId()
We return the default user Id. |
String |
getDescription()
|
boolean |
getForceUserIdToUpperCase()
Call this to query whether the default userId is to be uppercased. |
String |
getHostName()
|
ISystemHostPool |
getHostPool()
Set the parent connection pool this is owned by. |
String |
getLocalDefaultUserId()
Return the local default user Id without resolving up the food chain. |
String |
getName()
|
IPropertySet |
getPropertySet(String name)
|
IPropertySet[] |
getPropertySets()
|
ISubSystem[] |
getSubSystems()
Return the subsystem instances under this connection. |
ISystemProfile |
getSystemProfile()
Return the system profile that owns this connection |
String |
getSystemProfileName()
Return the name of the system profile that owns this connection |
String |
getSystemType()
|
boolean |
isDirty()
An object is dirty if a change has been made to it that requires it to be persisted. |
boolean |
isOffline()
Returns the value of the 'Offline' attribute |
boolean |
isPromptable()
|
boolean |
removePropertySet(String name)
|
void |
renamingSystemProfile(String oldName,
String newName)
Private method called when this connection's profile is being rename, so we can do any pre-death cleanup we need. |
void |
setAliasName(String value)
|
void |
setDefaultUserId(String value)
Intercept of setDefaultUserId so we can force it to uppercase. |
void |
setDescription(String value)
|
void |
setDirty(boolean flag)
An object is dirty if a change has been made to it that requires it to be persisted. |
void |
setHostName(String value)
|
void |
setHostPool(ISystemHostPool pool)
Set the parent connection pool this is owned by. |
void |
setOffline(boolean value)
Sets the value of the ' Offline' attribute |
void |
setPromptable(boolean value)
|
void |
setSystemType(String value)
|
void |
setWasRestored(boolean flag)
The the "restored" state of the object. |
boolean |
wasRestored()
An object was restored if it originated from a persistent form. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected String _hostName
protected String _systemType
| Constructor Detail |
public DummyHost(String hostName,
String systemType)
| Method Detail |
public ISystemProfile getSystemProfile()
IHost
getSystemProfile in interface IHostpublic String getSystemProfileName()
IHost
getSystemProfileName in interface IHostpublic void setHostPool(ISystemHostPool pool)
IHost
setHostPool in interface IHostpublic ISystemHostPool getHostPool()
IHost
getHostPool in interface IHostpublic ISubSystem[] getSubSystems()
IHostorg.eclipse.rse.model.ISystemRegistry#getSubSystems(IHost)
getSubSystems in interface IHostpublic String getLocalDefaultUserId()
IHost
getLocalDefaultUserId in interface IHostIHost.getDefaultUserId()public void clearLocalDefaultUserId()
IHostSame as calling setDefaultUserId(null)
clearLocalDefaultUserId in interface IHostIHost.setDefaultUserId(String)public void deletingHost()
IHostWhat we need to do is delete our entry in the preference store for our default userId.
deletingHost in interface IHost
public void renamingSystemProfile(String oldName,
String newName)
IHostWhat we need to do is rename our entry in the preference store for our default userId.
renamingSystemProfile in interface IHostpublic boolean getForceUserIdToUpperCase()
IHost
getForceUserIdToUpperCase in interface IHost
public boolean compareUserIds(String userId1,
String userId2)
IHost
compareUserIds in interface IHostpublic String getSystemType()
getSystemType in interface IHostpublic void setSystemType(String value)
setSystemType in interface IHostvalue - The new value of the SystemType attributepublic String getAliasName()
getAliasName in interface IHostpublic void setAliasName(String value)
setAliasName in interface IHostvalue - The new value of the AliasName attributepublic String getHostName()
getHostName in interface IHostpublic void setHostName(String value)
setHostName in interface IHostvalue - The new value of the HostName attributepublic String getDescription()
getDescription in interface IHostpublic void setDescription(String value)
setDescription in interface IHostvalue - The new value of the Description attributepublic String getDefaultUserId()
IHostFurther, it is possible that there is no default user id. If so, this method will go to the preference store and will try to get the default user Id per this connection's system type.
This is all transparent to the caller though.
getDefaultUserId in interface IHostpublic void setDefaultUserId(String value)
IHost
setDefaultUserId in interface IHostvalue - The new value of the DefaultUserId attributepublic boolean isPromptable()
isPromptable in interface IHostpublic void setPromptable(boolean value)
setPromptable in interface IHostvalue - The new value of the Promptable attributepublic boolean isOffline()
IHostIs this connection offline? If so, there is no live connection. Subsystems decide how much to enable while offline.
isOffline in interface IHostIHost.setOffline(boolean),
org.eclipse.rse.model.ModelPackage#getSystemConnection_Offline()public void setOffline(boolean value)
IHostOffline' attribute.
setOffline in interface IHostvalue - the new value of the 'Offline' attribute.IHost.isOffline()public IConnectorService[] getConnectorServices()
IHost
getConnectorServices in interface IHostpublic String getName()
getName in interface IRSEModelObjectpublic IPropertySet[] getPropertySets()
getPropertySets in interface IPropertySetContainerpublic IPropertySet getPropertySet(String name)
getPropertySet in interface IPropertySetContainer
public IPropertySet createPropertySet(String name,
String description)
createPropertySet in interface IPropertySetContainerpublic IPropertySet createPropertySet(String name)
createPropertySet in interface IPropertySetContainerpublic boolean addPropertySet(IPropertySet set)
addPropertySet in interface IPropertySetContainerpublic boolean addPropertySets(IPropertySet[] sets)
addPropertySets in interface IPropertySetContainerpublic boolean removePropertySet(String name)
removePropertySet in interface IPropertySetContainerpublic boolean isDirty()
org.eclipse.rse.core.persistance.IRSEPersistableContainer
isDirty in interface org.eclipse.rse.core.persistance.IRSEPersistableContainerpublic void setDirty(boolean flag)
org.eclipse.rse.core.persistance.IRSEPersistableContainer
setDirty in interface org.eclipse.rse.core.persistance.IRSEPersistableContainerflag - true if the object must be persisted.public boolean commit()
org.eclipse.rse.core.persistance.IRSEPersistableContainer
commit in interface org.eclipse.rse.core.persistance.IRSEPersistableContainerpublic boolean wasRestored()
org.eclipse.rse.core.persistance.IRSEPersistableContainer
wasRestored in interface org.eclipse.rse.core.persistance.IRSEPersistableContainerpublic void setWasRestored(boolean flag)
org.eclipse.rse.core.persistance.IRSEPersistableContainer
setWasRestored in interface org.eclipse.rse.core.persistance.IRSEPersistableContainerflag - true if the object was restored.
|
RSE Release 1.0 |
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||