r7439 - dumbhippo/trunk/server/src/com/dumbhippo/server/dm
- From: commits mugshot org
- To: online-desktop-list gnome org
- Subject: r7439 - dumbhippo/trunk/server/src/com/dumbhippo/server/dm
- Date: Fri, 18 Apr 2008 15:59:45 -0500 (CDT)
Author: otaylor
Date: 2008-04-18 15:59:45 -0500 (Fri, 18 Apr 2008)
New Revision: 7439
Modified:
dumbhippo/trunk/server/src/com/dumbhippo/server/dm/BlockDMO.java
Log:
Add BlockDMO.ownerContent - is this block content generated by the block's
owner? Used to implement "Hide my items" in the client.
Modified: dumbhippo/trunk/server/src/com/dumbhippo/server/dm/BlockDMO.java
===================================================================
--- dumbhippo/trunk/server/src/com/dumbhippo/server/dm/BlockDMO.java 2008-04-18 20:23:04 UTC (rev 7438)
+++ dumbhippo/trunk/server/src/com/dumbhippo/server/dm/BlockDMO.java 2008-04-18 20:59:45 UTC (rev 7439)
@@ -195,6 +195,20 @@
return blockView.isPublic();
}
+ // Is this block content generated by the owner (blogs, photos, etc), as opposed
+ // to a message *to* the owner, like an AccountQuestion or Facebook block.
+ // This is used to implement the "Hide my items" option in the client.
+ @DMProperty(defaultInclude=true)
+ public boolean isOwnerContent() {
+ switch (blockView.getBlockType().getBlockOwnership()) {
+ case DIRECT_DATA1:
+ case DIRECT_DATA2:
+ return true;
+ default:
+ return false;
+ }
+ }
+
@DMProperty(defaultInclude=true, defaultChildren="+")
public UserDMO getSourceUser() {
if (blockView instanceof EntitySourceBlockView) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]