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:
@@ -139,10 +139,8 @@ public class BodyObject extends ClientObject
|
|||||||
public String who ()
|
public String who ()
|
||||||
{
|
{
|
||||||
StringBuilder buf = new StringBuilder(username.toString());
|
StringBuilder buf = new StringBuilder(username.toString());
|
||||||
buf.append(" (").append(getOid());
|
buf.append(" (");
|
||||||
if (status != OccupantInfo.ACTIVE) {
|
addWhoData(buf);
|
||||||
buf.append(" ").append(OccupantInfo.X_STATUS[status]);
|
|
||||||
}
|
|
||||||
return buf.append(")").toString();
|
return buf.append(")").toString();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -212,6 +210,17 @@ public class BodyObject extends ClientObject
|
|||||||
}
|
}
|
||||||
// AUTO-GENERATED: METHODS END
|
// 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. */
|
/** The default (no tokens) access control. */
|
||||||
protected static final TokenRing EMPTY_TOKENS = new TokenRing();
|
protected static final TokenRing EMPTY_TOKENS = new TokenRing();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user