- Profile profile = sone.getProfile();
- String firstName = profile.getFirstName();
- String middleName = profile.getMiddleName();
- String lastName = profile.getLastName();
- if (firstName == null) {
- if (lastName == null) {
- return sone.getName();
- }
- return lastName;
- }
- return firstName + ((middleName != null) ? " " + middleName : "") + ((lastName != null) ? " " + lastName : "");
+ return getNiceName(sone);
+ } else if (member.equals("local")) {
+ return sone.getInsertUri() != null;
+ } else if (member.equals("friend")) {
+ Sone currentSone = (Sone) dataProvider.getData("currentSone");
+ return (currentSone != null) && currentSone.hasFriend(sone);
+ } else if (member.equals("current")) {
+ Sone currentSone = (Sone) dataProvider.getData("currentSone");
+ return (currentSone != null) && currentSone.equals(sone);
+ } else if (member.equals("modified")) {
+ return sone.getModificationCounter() > 0;
+ } else if (member.equals("status")) {
+ return core.getSoneStatus(sone);
+ } else if (member.equals("unknown")) {
+ return core.getSoneStatus(sone) == SoneStatus.unknown;
+ } else if (member.equals("idle")) {
+ return core.getSoneStatus(sone) == SoneStatus.idle;
+ } else if (member.equals("inserting")) {
+ return core.getSoneStatus(sone) == SoneStatus.inserting;
+ } else if (member.equals("downloading")) {
+ return core.getSoneStatus(sone) == SoneStatus.downloading;