1111import org .woehlke .twitterwall .conf .properties .FrontendProperties ;
1212import org .woehlke .twitterwall .conf .properties .TwitterProperties ;
1313import org .woehlke .twitterwall .frontend .content .Symbols ;
14- import org .woehlke .twitterwall .frontend .common . ControllerHelper ;
14+ import org .woehlke .twitterwall .frontend .content . ContentFactory ;
1515import org .woehlke .twitterwall .oodm .model .*;
1616import org .woehlke .twitterwall .oodm .model .parts .CountedEntities ;
1717import org .woehlke .twitterwall .oodm .model .transients .Object2Entity ;
@@ -35,7 +35,7 @@ public String domainCount(Model model) {
3535 String title = "Counted Entities" ;
3636 String subtitle = twitterProperties .getSearchQuery ();
3737 String symbol = Symbols .DATABASE .toString ();
38- model = controllerHelper .setupPage (model ,title ,subtitle ,symbol );
38+ model = contentFactory .setupPage (model ,title ,subtitle ,symbol );
3939 CountedEntities countedEntities =this .countedEntitiesService .countAll ();
4040 model .addAttribute ("countedEntities" , countedEntities );
4141 return "application/domain/count" ;
@@ -47,15 +47,15 @@ public String domainDeleteAll(Model model) {
4747 String title = "Counted Entities" ;
4848 String subtitle = twitterProperties .getSearchQuery ();
4949 String symbol = Symbols .DATABASE .toString ();
50- model = controllerHelper .setupPage (model ,title ,subtitle ,symbol );
50+ model = contentFactory .setupPage (model ,title ,subtitle ,symbol );
5151 CountedEntities countedEntities =this .countedEntitiesService .deleteAll ();
5252 model .addAttribute ("countedEntities" , countedEntities );
5353 return "application/domain/count" ;
5454 }
5555
5656 @ RequestMapping (path ="/tweet/hashtag" )
5757 public String domainCountTweet2hashtag (
58- @ RequestParam (name = "page" , defaultValue ="" + ControllerHelper .FIRST_PAGE_NUMBER ) int page ,
58+ @ RequestParam (name = "page" , defaultValue ="" + ContentFactory .FIRST_PAGE_NUMBER ) int page ,
5959 Model model
6060 ) {
6161 String title = "Tweet -> HashTag" ;
@@ -79,7 +79,7 @@ public String domainCountTweet2hashtag(
7979
8080 @ RequestMapping (path ="/tweet/media" )
8181 public String domainCountTweet2media (
82- @ RequestParam (name = "page" , defaultValue ="" + ControllerHelper .FIRST_PAGE_NUMBER ) int page ,
82+ @ RequestParam (name = "page" , defaultValue ="" + ContentFactory .FIRST_PAGE_NUMBER ) int page ,
8383 Model model
8484 ) {
8585 String title = "Tweet -> Media" ;
@@ -103,7 +103,7 @@ public String domainCountTweet2media(
103103
104104 @ RequestMapping (path ="/tweet/mention" )
105105 public String domainCountTweet2mention (
106- @ RequestParam (name = "page" ,defaultValue ="" + ControllerHelper .FIRST_PAGE_NUMBER ) int page ,
106+ @ RequestParam (name = "page" ,defaultValue ="" + ContentFactory .FIRST_PAGE_NUMBER ) int page ,
107107 Model model
108108 ) {
109109 String title = "Tweet -> Mention" ;
@@ -127,7 +127,7 @@ public String domainCountTweet2mention(
127127
128128 @ RequestMapping (path ="/tweet/tickersymbol" )
129129 public String domainCountTweet2tickersymbol (
130- @ RequestParam (name = "page" , defaultValue ="" + ControllerHelper .FIRST_PAGE_NUMBER ) int page ,
130+ @ RequestParam (name = "page" , defaultValue ="" + ContentFactory .FIRST_PAGE_NUMBER ) int page ,
131131 Model model
132132 ) {
133133 String title = "Tweet -> TickerSymbol" ;
@@ -151,7 +151,7 @@ public String domainCountTweet2tickersymbol(
151151
152152 @ RequestMapping (path ="/tweet/url" )
153153 public String domainCountTweet2url (
154- @ RequestParam (name = "page" , defaultValue ="" + ControllerHelper .FIRST_PAGE_NUMBER ) int page ,
154+ @ RequestParam (name = "page" , defaultValue ="" + ContentFactory .FIRST_PAGE_NUMBER ) int page ,
155155 Model model
156156 ) {
157157 String title = "Tweet -> Url" ;
@@ -175,7 +175,7 @@ public String domainCountTweet2url(
175175
176176 @ RequestMapping (path ="/user/hashtag" )
177177 public String domainCountUserprofile2hashtag (
178- @ RequestParam (name = "page" , defaultValue ="" + ControllerHelper .FIRST_PAGE_NUMBER ) int page ,
178+ @ RequestParam (name = "page" , defaultValue ="" + ContentFactory .FIRST_PAGE_NUMBER ) int page ,
179179 Model model
180180 ) {
181181 String title = "UserProfile -> HashTag" ;
@@ -199,7 +199,7 @@ public String domainCountUserprofile2hashtag(
199199
200200 @ RequestMapping (path ="/user/media" )
201201 public String domainCountUserprofile2media (
202- @ RequestParam (name = "page" , defaultValue ="" + ControllerHelper .FIRST_PAGE_NUMBER ) int page ,
202+ @ RequestParam (name = "page" , defaultValue ="" + ContentFactory .FIRST_PAGE_NUMBER ) int page ,
203203 Model model
204204 ) {
205205 String title = "UserProfile -> Media" ;
@@ -223,7 +223,7 @@ public String domainCountUserprofile2media(
223223
224224 @ RequestMapping (path ="/user/mention" )
225225 public String domainCountUserprofile2mention (
226- @ RequestParam (name = "page" , defaultValue ="" + ControllerHelper .FIRST_PAGE_NUMBER ) int page ,
226+ @ RequestParam (name = "page" , defaultValue ="" + ContentFactory .FIRST_PAGE_NUMBER ) int page ,
227227 Model model
228228 ) {
229229 String title = "UserProfile -> Mention" ;
@@ -247,7 +247,7 @@ public String domainCountUserprofile2mention(
247247
248248 @ RequestMapping (path ="/user/tickersymbol" )
249249 public String domainCountUserprofile2Tickersymbol (
250- @ RequestParam (name = "page" , defaultValue ="" + ControllerHelper .FIRST_PAGE_NUMBER ) int page ,
250+ @ RequestParam (name = "page" , defaultValue ="" + ContentFactory .FIRST_PAGE_NUMBER ) int page ,
251251 Model model
252252 ) {
253253 String title = "UserProfile -> TickerSymbol" ;
@@ -271,7 +271,7 @@ public String domainCountUserprofile2Tickersymbol(
271271
272272 @ RequestMapping (path ="/user/url" )
273273 public String domainCountUserprofile2Url (
274- @ RequestParam (name = "page" , defaultValue ="" + ControllerHelper .FIRST_PAGE_NUMBER ) int page ,
274+ @ RequestParam (name = "page" , defaultValue ="" + ContentFactory .FIRST_PAGE_NUMBER ) int page ,
275275 Model model
276276 ) {
277277 String title = "UserProfile -> Url" ;
@@ -296,13 +296,13 @@ public String domainCountUserprofile2Url(
296296 private void setUpThisPage (String title ,Model model ){
297297 String subtitle = "Counted Entities" ;
298298 String symbol = Symbols .DATABASE .toString ();
299- model = controllerHelper .setupPage (model ,title ,subtitle ,symbol );
299+ model = contentFactory .setupPage (model ,title ,subtitle ,symbol );
300300 }
301301
302302
303303 private final FrontendProperties frontendProperties ;
304304
305- private final ControllerHelper controllerHelper ;
305+ private final ContentFactory contentFactory ;
306306
307307 private final TweetService tweetService ;
308308
@@ -325,7 +325,7 @@ private void setUpThisPage(String title,Model model){
325325 @ Autowired
326326 public CountedEntitiesController (
327327 FrontendProperties frontendProperties ,
328- ControllerHelper controllerHelper ,
328+ ContentFactory contentFactory ,
329329 TweetService tweetService ,
330330 UserService userService ,
331331 HashTagService hashTagService ,
@@ -335,7 +335,7 @@ public CountedEntitiesController(
335335 UrlService urlService ,
336336 CountedEntitiesService countedEntitiesService , TwitterProperties twitterProperties ) {
337337 this .frontendProperties = frontendProperties ;
338- this .controllerHelper = controllerHelper ;
338+ this .contentFactory = contentFactory ;
339339 this .tweetService = tweetService ;
340340 this .userService = userService ;
341341 this .hashTagService = hashTagService ;
0 commit comments