Author: alevkovsky
Date: 2009-02-27 06:20:31 -0500 (Fri, 27 Feb 2009)
New Revision: 12768
Modified:
trunk/test-applications/realworld2/ejb/src/main/java/org/richfaces/realworld/domain/Shelf.java
trunk/test-applications/realworld2/ejb/src/main/java/org/richfaces/realworld/domain/User.java
trunk/test-applications/realworld2/ejb/src/main/java/org/richfaces/realworld/service/Constants.java
Log:
Realworld: add user shelfs and user album markups
Modified:
trunk/test-applications/realworld2/ejb/src/main/java/org/richfaces/realworld/domain/Shelf.java
===================================================================
---
trunk/test-applications/realworld2/ejb/src/main/java/org/richfaces/realworld/domain/Shelf.java 2009-02-27
11:20:24 UTC (rev 12767)
+++
trunk/test-applications/realworld2/ejb/src/main/java/org/richfaces/realworld/domain/Shelf.java 2009-02-27
11:20:31 UTC (rev 12768)
@@ -127,4 +127,9 @@
album.setParent(null);
childAlbums.remove(album);
}
+
+ public int getCountAlbums() {
+ return this.getChildAlbums() != null ? this.getChildAlbums().size() : 0;
+
+ }
}
Modified:
trunk/test-applications/realworld2/ejb/src/main/java/org/richfaces/realworld/domain/User.java
===================================================================
---
trunk/test-applications/realworld2/ejb/src/main/java/org/richfaces/realworld/domain/User.java 2009-02-27
11:20:24 UTC (rev 12767)
+++
trunk/test-applications/realworld2/ejb/src/main/java/org/richfaces/realworld/domain/User.java 2009-02-27
11:20:31 UTC (rev 12768)
@@ -293,7 +293,12 @@
public void setShelfs(List<Shelf> shelfs) {
this.shelfs = shelfs;
}
+
+ public int getCountShelfs() {
+ return this.getShelfs() != null ? this.getShelfs().size() : 0;
+ }
+
public Sex getSex() {
return sex;
}
@@ -318,6 +323,4 @@
this.informAboutNews = informAboutNews;
}
-
-
}
\ No newline at end of file
Modified:
trunk/test-applications/realworld2/ejb/src/main/java/org/richfaces/realworld/service/Constants.java
===================================================================
---
trunk/test-applications/realworld2/ejb/src/main/java/org/richfaces/realworld/service/Constants.java 2009-02-27
11:20:24 UTC (rev 12767)
+++
trunk/test-applications/realworld2/ejb/src/main/java/org/richfaces/realworld/service/Constants.java 2009-02-27
11:20:31 UTC (rev 12768)
@@ -70,7 +70,7 @@
public static final String FILE_MANAGER = "fileManager";
public static final String ENTITY_MANAGER = "entityManager";
public static final String USER_ID = "userId";
- public static final int INITIAL_DELAY = 10000;
+ public static final int INITIAL_DELAY = 4000;
public static final int DELAY = 3000;
public static final String ALBUM_NODE_TYPE = "album";
public static final String USER_MANAGER = "userManager";