Allow the who details to be augmented.

git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4752 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Michael Bayne
2007-07-11 17:45:20 +00:00
parent 4a34d6d2fd
commit 7896ee8c02
@@ -139,10 +139,8 @@ public class BodyObject extends ClientObject
public String who ()
{
StringBuilder buf = new StringBuilder(username.toString());
buf.append(" (").append(getOid());
if (status != OccupantInfo.ACTIVE) {
buf.append(" ").append(OccupantInfo.X_STATUS[status]);
}
buf.append(" (");
addWhoData(buf);
return buf.append(")").toString();
}
@@ -212,6 +210,17 @@ public class BodyObject extends ClientObject
}
// AUTO-GENERATED: METHODS END
/**
* Allows derived classes to add data to the who details.
*/
protected void addWhoData (StringBuilder buf)
{
buf.append(getOid());
if (status != OccupantInfo.ACTIVE) {
buf.append(" ").append(OccupantInfo.X_STATUS[status]);
}
}
/** The default (no tokens) access control. */
protected static final TokenRing EMPTY_TOKENS = new TokenRing();
}