r7174 - dumbhippo/trunk/server/src/com/dumbhippo/server/dm
- From: commits mugshot org
- To: online-desktop-list gnome org
- Subject: r7174 - dumbhippo/trunk/server/src/com/dumbhippo/server/dm
- Date: Thu, 10 Jan 2008 11:39:30 -0600 (CST)
Author: otaylor
Date: 2008-01-10 11:39:29 -0600 (Thu, 10 Jan 2008)
New Revision: 7174
Modified:
dumbhippo/trunk/server/src/com/dumbhippo/server/dm/PostDMO.java
Log:
Add PostDMO.groupRecipients
Modified: dumbhippo/trunk/server/src/com/dumbhippo/server/dm/PostDMO.java
===================================================================
--- dumbhippo/trunk/server/src/com/dumbhippo/server/dm/PostDMO.java 2008-01-10 17:00:22 UTC (rev 7173)
+++ dumbhippo/trunk/server/src/com/dumbhippo/server/dm/PostDMO.java 2008-01-10 17:39:29 UTC (rev 7174)
@@ -17,6 +17,7 @@
import com.dumbhippo.identity20.Guid;
import com.dumbhippo.persistence.AccountClaim;
import com.dumbhippo.persistence.FeedPost;
+import com.dumbhippo.persistence.Group;
import com.dumbhippo.persistence.Post;
import com.dumbhippo.persistence.PostVisibility;
import com.dumbhippo.persistence.Resource;
@@ -101,6 +102,16 @@
return result;
}
+ @DMProperty(defaultInclude=true, defaultChildren="+")
+ public List<GroupDMO> getGroupRecipients() {
+ List<GroupDMO> result = new ArrayList<GroupDMO>();
+
+ for (Group group : post.getGroupRecipients())
+ result.add(session.findUnchecked(GroupDMO.class, group.getGuid()));
+
+ return result;
+ }
+
@DMProperty
public boolean isPublic() {
return post.getVisibility() == PostVisibility.ATTRIBUTED_PUBLIC;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]