r7431 - in dumbhippo/trunk/server/src/com/dumbhippo/server: dm impl
- From: commits mugshot org
- To: online-desktop-list gnome org
- Subject: r7431 - in dumbhippo/trunk/server/src/com/dumbhippo/server: dm impl
- Date: Thu, 17 Apr 2008 13:19:00 -0500 (CDT)
Author: walters
Date: 2008-04-17 13:19:00 -0500 (Thu, 17 Apr 2008)
New Revision: 7431
Modified:
dumbhippo/trunk/server/src/com/dumbhippo/server/dm/UserDMO.java
dumbhippo/trunk/server/src/com/dumbhippo/server/impl/IdentitySpiderBean.java
Log:
Add property for mugshotPublicPage on UserDMO.
Modified: dumbhippo/trunk/server/src/com/dumbhippo/server/dm/UserDMO.java
===================================================================
--- dumbhippo/trunk/server/src/com/dumbhippo/server/dm/UserDMO.java 2008-04-17 18:12:25 UTC (rev 7430)
+++ dumbhippo/trunk/server/src/com/dumbhippo/server/dm/UserDMO.java 2008-04-17 18:19:00 UTC (rev 7431)
@@ -114,6 +114,11 @@
}
@DMProperty(defaultInclude=true)
+ public boolean getMugshotPublicPage() {
+ return user.getAccount().isPublicPage();
+ }
+
+ @DMProperty(defaultInclude=true)
public String getName() {
return user.getNickname();
}
Modified: dumbhippo/trunk/server/src/com/dumbhippo/server/impl/IdentitySpiderBean.java
===================================================================
--- dumbhippo/trunk/server/src/com/dumbhippo/server/impl/IdentitySpiderBean.java 2008-04-17 18:12:25 UTC (rev 7430)
+++ dumbhippo/trunk/server/src/com/dumbhippo/server/impl/IdentitySpiderBean.java 2008-04-17 18:19:00 UTC (rev 7431)
@@ -1381,8 +1381,11 @@
}
public void setPublicPage(UserViewpoint view, boolean enabled) throws RetryException {
- view.getViewer().getAccount().setPublicPage(enabled);
- if (enabled && !view.getViewer().getAccount().getWasSentShareLinkTutorial()) {
+ User viewer = view.getViewer();
+ Account account = viewer.getAccount();
+ account.setPublicPage(enabled);
+ DataService.currentSessionRW().changed(UserDMO.class, viewer.getGuid(), "mugshotPublicPage");
+ if (enabled && !account.getWasSentShareLinkTutorial()) {
postingBoard.doInitialShare(view);
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]