1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-08-05 23:35:48 +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

@ -666,65 +666,58 @@ 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(); }
} }
}
/** /**
* <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
public void setPassword(String matchingUserId, String password, boolean persist) * @param password the password to set for this userid
{ * @param persist true if the password is to be persisted as well
if (getPrimarySubSystem().forceUserIdToUpperCase()) */
{ public void setPassword(String matchingUserId, String password, boolean persist) {
matchingUserId = matchingUserId.toUpperCase(); if (getPrimarySubSystem().forceUserIdToUpperCase()) {
} matchingUserId = matchingUserId.toUpperCase();
}
SystemSignonInformation tempPasswordInfo = new SystemSignonInformation(getHostName(), matchingUserId, SystemSignonInformation tempPasswordInfo = new SystemSignonInformation(getHostName(), matchingUserId, password, getHostType());
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 PasswordPersistenceManager.getInstance().add(tempPasswordInfo, true, true);
if (persist) { } else { // otherwise, remove from both memory and disk
PasswordPersistenceManager.getInstance().add(tempPasswordInfo, true, true); String systemType = getHostType();
} String hostName = getHostName();
// otherwise, remove from both memory and disk
else {
// now get rid of userid/password from disk
String systemType = getHostType();
String hostName = getHostName();
PasswordPersistenceManager.getInstance().remove(systemType, hostName, _userId); PasswordPersistenceManager.getInstance().remove(systemType, hostName, _userId);
} }
} }
/** /**
* <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
public void setPassword(String matchingUserId, String password) * @param password the password to set for this userid
{ */
setPassword(matchingUserId, password, false); public void setPassword(String matchingUserId, String password) {
} setPassword(matchingUserId, password, false);
}
/** /**
* <i>Useful utility method. Fully implemented, no need to override.</i><br> * <i>Useful utility method. Fully implemented, no need to override.</i><br>