|
Remote Systems v6.4.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectEObjectImpl
com.ibm.etools.systems.model.impl.SystemConnectionImpl
Field Summary | |
---|---|
protected static String |
ALIAS_NAME_EDEFAULT
The default value of the ' Alias Name ' attribute |
protected String |
aliasName
|
static String |
copyright
|
protected static String |
DEFAULT_USER_ID_EDEFAULT
The default value of the ' Default User Id ' attribute |
protected String |
defaultUserId
|
protected String |
description
|
protected static String |
DESCRIPTION_EDEFAULT
The default value of the ' Description ' attribute |
protected static String |
HOST_NAME_EDEFAULT
The default value of the ' Host Name ' attribute |
protected String |
hostName
|
protected boolean |
offline
The cached value of the ' Offline ' attribute |
protected static boolean |
OFFLINE_EDEFAULT
The default value of the ' Offline ' attribute |
protected String |
previousUserIdKey
|
protected boolean |
promptable
|
protected static boolean |
PROMPTABLE_EDEFAULT
The default value of the ' Promptable ' attribute |
protected static String |
SYSTEM_TYPE_EDEFAULT
The default value of the ' System Type ' attribute |
protected String |
systemType
|
Constructor Summary | |
---|---|
protected |
SystemConnectionImpl()
Constructor |
Method Summary | |
---|---|
void |
clearLocalDefaultUserId()
Clear the local default user Id so next query will return the value from the preference store. |
boolean |
compareUserIds(String userId1,
String userId2)
Call this to compare two userIds taking case sensitivity |
void |
deletingConnection()
Private method called when this connection is being deleted, so we can do any pre-death cleanup we need. |
Object |
eGet(EStructuralFeature eFeature,
boolean resolve)
|
boolean |
eIsSet(EStructuralFeature eFeature)
|
void |
eSet(EStructuralFeature eFeature,
Object newValue)
|
protected EClass |
eStaticClass()
|
void |
eUnset(EStructuralFeature eFeature)
|
Object |
getAdapter(Class adapterType)
This is the method required by the IAdaptable interface. |
String |
getAliasName()
|
RemoteCmdSubSystem |
getCmdSubSystem()
Return the pre-supplied subsystem for command shell access. |
SystemConnectionPool |
getConnectionPool()
Set the parent connection pool this is owned by. |
String |
getDefaultUserId()
We return the default user Id. |
String |
getDefaultUserIdGen()
|
String |
getDescription()
|
RemoteFileSubSystem |
getFileSubSystem()
Return the pre-supplied subsystem for file system access. |
boolean |
getForceUserIdToUpperCase()
Call this to query whether the default userId is to be uppercased. |
String |
getHostName()
|
String |
getLocalDefaultUserId()
Return the local default user Id without resolving up the food chain. |
protected String |
getLocalDefaultUserId(String key)
Return the local default user Id without resolving up the food chain. |
protected String |
getPreferencesKey()
Helper method to compute a unique name for a given subsystem instance |
protected String |
getPreferencesKey(String profileName)
Helper method to compute a unique name for a given subsystem instance, given a profile name |
protected String |
getPreferencesKey(String profileName,
String connectionName)
Helper method to compute a unique name for a given subsystem instance, given a profile name and connection name |
protected SystemPreferencesManager |
getPreferencesManager()
Helper method to return preference manager |
SubSystem[] |
getSubSystems()
Return the subsystem instances under this connection. |
SystemProfile |
getSystemProfile()
Return the system profile that owns this connection |
String |
getSystemProfileName()
Return the name of system profile that owns this connection |
String |
getSystemType()
|
boolean |
getUserIdCaseSensitive()
Call this to query whether the default userId is case sensitive |
boolean |
isOffline()
Query if this connection is offline or not. |
boolean |
isPromptable()
|
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 newName)
Intercept of setAliasName so we can potentially rename the default-user-id key for the preferences store. |
void |
setAliasNameGen(String newAliasName)
|
void |
setConnectionPool(SystemConnectionPool pool)
Set the parent connection pool this is owned by. |
void |
setDefaultUserId(String newId)
Intercept of setDefaultUserId so we can force it to uppercase. |
void |
setDefaultUserIdGen(String newDefaultUserId)
|
void |
setDescription(String newDescription)
|
void |
setForceUserIdToUpperCase(boolean force)
Call this with false to turn off the default behaviour of forcing the default userId to uppercase. |
void |
setHostName(String name)
Intercept of setHostName so we can force it to uppercase |
void |
setHostNameGen(String newHostName)
|
void |
setOffline(boolean newOffline)
Specify if this connection is offline or not. |
void |
setPromptable(boolean newPromptable)
|
void |
setSystemType(String systemType)
Intercept of setSystemType so we can decide if the user ID is case sensitive |
void |
setSystemTypeGen(String newSystemType)
|
void |
setUserIdCaseSensitive(boolean caseSensitive)
Call this to turn off the default behaviour of considering case when comparing userIds |
String |
toString()
|
String |
toStringGen()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final String copyright
protected static final String SYSTEM_TYPE_EDEFAULT
System Type
' attribute.
getSystemType()
protected String previousUserIdKey
protected String systemType
protected static final String ALIAS_NAME_EDEFAULT
Alias Name
' attribute.
getAliasName()
protected String aliasName
protected static final String HOST_NAME_EDEFAULT
Host Name
' attribute.
getHostName()
protected String hostName
protected static final String DESCRIPTION_EDEFAULT
Description
' attribute.
getDescription()
protected String description
protected static final String DEFAULT_USER_ID_EDEFAULT
Default User Id
' attribute.
getDefaultUserId()
protected String defaultUserId
protected static final boolean PROMPTABLE_EDEFAULT
Promptable
' attribute.
isPromptable()
,
Constant Field Valuesprotected boolean promptable
protected static final boolean OFFLINE_EDEFAULT
Offline
' attribute.
isOffline()
,
Constant Field Valuesprotected boolean offline
Offline
' attribute.
isOffline()
Constructor Detail |
protected SystemConnectionImpl()
Method Detail |
protected EClass eStaticClass()
public void setConnectionPool(SystemConnectionPool pool)
setConnectionPool
in interface SystemConnection
public SystemConnectionPool getConnectionPool()
getConnectionPool
in interface SystemConnection
public SubSystem[] getSubSystems()
SystemRegistry.getSubSystems(SystemConnection)
getSubSystems
in interface SystemConnection
public RemoteFileSubSystem getFileSubSystem()
SystemRegistry.getFileSubSystem(SystemConnection)
getFileSubSystem
in interface SystemConnection
public RemoteCmdSubSystem getCmdSubSystem()
SystemRegistry.getCmdSubSystem(SystemConnection)
getCmdSubSystem
in interface SystemConnection
public void deletingConnection()
What we need to do is delete our entry in the preference store for our default userId.
deletingConnection
in interface SystemConnection
public void renamingSystemProfile(String oldName, String newName)
What we need to do is rename our entry in the preference store for our default userId.
renamingSystemProfile
in interface SystemConnection
public SystemProfile getSystemProfile()
getSystemProfile
in interface SystemConnection
public String getSystemProfileName()
getSystemProfileName
in interface SystemConnection
public void setAliasName(String newName)
setAliasName
in interface SystemConnection
newName
- The new value of the AliasName attributepublic void setSystemType(String systemType)
setSystemType
in interface SystemConnection
systemType
- The new value of the SystemType attributepublic void setHostName(String name)
setHostName
in interface SystemConnection
name
- The new value of the HostName attributepublic void setDefaultUserId(String newId)
setDefaultUserId
in interface SystemConnection
newId
- The new value of the DefaultUserId attributepublic String getDefaultUserId()
Further, 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 SystemConnection
protected String getLocalDefaultUserId(String key)
getDefaultUserId()
public String getLocalDefaultUserId()
getLocalDefaultUserId
in interface SystemConnection
getDefaultUserId()
public void clearLocalDefaultUserId()
Same as calling setDefaultUserId(null)
clearLocalDefaultUserId
in interface SystemConnection
setDefaultUserId(String)
protected SystemPreferencesManager getPreferencesManager()
protected String getPreferencesKey()
protected String getPreferencesKey(String profileName)
protected String getPreferencesKey(String profileName, String connectionName)
public void setForceUserIdToUpperCase(boolean force)
public void setUserIdCaseSensitive(boolean caseSensitive)
public boolean getForceUserIdToUpperCase()
getForceUserIdToUpperCase
in interface SystemConnection
public boolean getUserIdCaseSensitive()
public boolean compareUserIds(String userId1, String userId2)
compareUserIds
in interface SystemConnection
public String toString()
public Object getAdapter(Class adapterType)
getAdapter
in interface IAdaptable
public String getSystemType()
getSystemType
in interface SystemConnection
public String getAliasName()
getAliasName
in interface SystemConnection
public String getHostName()
getHostName
in interface SystemConnection
public String getDescription()
getDescription
in interface SystemConnection
public void setDescription(String newDescription)
setDescription
in interface SystemConnection
newDescription
- The new value of the Description attributepublic boolean isPromptable()
isPromptable
in interface SystemConnection
public void setPromptable(boolean newPromptable)
setPromptable
in interface SystemConnection
newPromptable
- The new value of the Promptable attributepublic boolean isOffline()
isOffline
in interface SystemConnection
SystemConnection.setOffline(boolean)
,
ModelPackage.getSystemConnection_Offline()
public void setOffline(boolean newOffline)
setOffline
in interface SystemConnection
newOffline
- the new value of the 'Offline' attribute.SystemConnection.isOffline()
public Object eGet(EStructuralFeature eFeature, boolean resolve)
public boolean eIsSet(EStructuralFeature eFeature)
public void eSet(EStructuralFeature eFeature, Object newValue)
public void eUnset(EStructuralFeature eFeature)
public void setSystemTypeGen(String newSystemType)
public void setAliasNameGen(String newAliasName)
public void setHostNameGen(String newHostName)
public String getDefaultUserIdGen()
public void setDefaultUserIdGen(String newDefaultUserId)
public String toStringGen()
|
Remote Systems v6.4.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |