1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-08-07 16:26:11 +02:00

bug 142471 - cleaned up javadoc

This commit is contained in:
David Dykstal 2006-08-17 15:50:20 +00:00
parent 9a39dc828e
commit 8736eb5150

View file

@ -667,24 +667,22 @@ public abstract class AbstractConnectorService extends RSEModelObject implements
/** /**
* <i>Useful utility method. Fully implemented, no need to override.</i><br> * <i>Useful utility method. Fully implemented, no need to override.</i><br>
* Return the password information for the primary subsystem of this * @return the password information for the primary subsystem of this
* connector service. Assumes it has been set by the subsystem at the * connector service. Assumes it has been set by the subsystem at the
* time the subsystem acquires the connector service. * time the subsystem acquires the connector service.
*/ */
protected SystemSignonInformation getPasswordInformation() protected SystemSignonInformation getPasswordInformation() {
{
return _passwordInfo; return _passwordInfo;
} }
/** /**
* <i>Useful utility method. Fully implemented, no need to override.</i><br> * <i>Useful utility method. Fully implemented, no need to override.</i><br>
* Sets the password information for this system's subsystem. * Sets the password information for this system's subsystem.
* @param passwordInfo the password information object
*/ */
protected void setPasswordInformation(SystemSignonInformation passwordInfo) protected void setPasswordInformation(SystemSignonInformation passwordInfo) {
{
_passwordInfo = passwordInfo; _passwordInfo = passwordInfo;
if (passwordInfo != null) if (passwordInfo != null) {
{
_userId = passwordInfo.getUserid(); _userId = passwordInfo.getUserid();
} }
} }
@ -692,25 +690,19 @@ public abstract class AbstractConnectorService extends RSEModelObject implements
/** /**
* <i>Useful utility method. Fully implemented, no need to override.</i><br> * <i>Useful utility method. Fully implemented, no need to override.</i><br>
* Set the password if you got it from somewhere * Set the password if you got it from somewhere
* @param matchingUserId the user for which to set the password
* @param password the password to set for this userid
* @param persist true if the password is to be persisted as well
*/ */
public void setPassword(String matchingUserId, String password, boolean persist) public void setPassword(String matchingUserId, String password, boolean persist) {
{ if (getPrimarySubSystem().forceUserIdToUpperCase()) {
if (getPrimarySubSystem().forceUserIdToUpperCase())
{
matchingUserId = matchingUserId.toUpperCase(); matchingUserId = matchingUserId.toUpperCase();
} }
SystemSignonInformation tempPasswordInfo = new SystemSignonInformation(getHostName(), matchingUserId, password, getHostType());
SystemSignonInformation tempPasswordInfo = new SystemSignonInformation(getHostName(), matchingUserId,
password, getHostType());
setPasswordInformation(tempPasswordInfo); setPasswordInformation(tempPasswordInfo);
if (persist) { // if password should be persisted, then add to disk
// if password should be persisted, then add to disk
if (persist) {
PasswordPersistenceManager.getInstance().add(tempPasswordInfo, true, true); PasswordPersistenceManager.getInstance().add(tempPasswordInfo, true, true);
} } else { // otherwise, remove from both memory and disk
// otherwise, remove from both memory and disk
else {
// now get rid of userid/password from disk
String systemType = getHostType(); String systemType = getHostType();
String hostName = getHostName(); String hostName = getHostName();
PasswordPersistenceManager.getInstance().remove(systemType, hostName, _userId); PasswordPersistenceManager.getInstance().remove(systemType, hostName, _userId);
@ -719,10 +711,11 @@ public abstract class AbstractConnectorService extends RSEModelObject implements
/** /**
* <i>Useful utility method. Fully implemented, no need to override.</i><br> * <i>Useful utility method. Fully implemented, no need to override.</i><br>
* Set the password if you got it from somewhere * A convenience method, fully equivalent to <code>setPassword(matchingUserId, password, false)</code>
* @param matchingUserId the user for which to set the password
* @param password the password to set for this userid
*/ */
public void setPassword(String matchingUserId, String password) public void setPassword(String matchingUserId, String password) {
{
setPassword(matchingUserId, password, false); setPassword(matchingUserId, password, false);
} }