Skip to content

Package: BlogViewController

BlogViewController

nameinstructionbranchcomplexitylinemethod
static {...}
M: 0 C: 29
100%
M: 0 C: 0
100%
M: 0 C: 1
100%
M: 0 C: 7
100%
M: 0 C: 1
100%

Coverage

1: /*
2: * *************************************************************************************************************************************************************
3: *
4: * NorthernWind - lightweight CMS
5: * http://tidalwave.it/projects/northernwind
6: *
7: * Copyright (C) 2011 - 2025 Tidalwave s.a.s. (http://tidalwave.it)
8: *
9: * *************************************************************************************************************************************************************
10: *
11: * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License.
12: * You may obtain a copy of the License at
13: *
14: * http://www.apache.org/licenses/LICENSE-2.0
15: *
16: * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
17: * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
18: *
19: * *************************************************************************************************************************************************************
20: *
21: * git clone https://bitbucket.org/tidalwave/northernwind-src
22: * git clone https://github.com/tidalwave-it/northernwind-src
23: *
24: * *************************************************************************************************************************************************************
25: */
26: package it.tidalwave.northernwind.frontend.ui.component.blog;
27:
28: import it.tidalwave.util.Key;
29: import it.tidalwave.northernwind.frontend.ui.ViewController;
30:
31: /***************************************************************************************************************************************************************
32: *
33: * A controller for rendering a blog.
34: *
35: * @author Fabrizio Giudici
36: *
37: **************************************************************************************************************************************************************/
38: public interface BlogViewController extends ViewController
39: {
40: /** The max. number of posts to render in full. */
41: public static final Key<Integer> P_MAX_FULL_ITEMS = Key.of("maxFullItems", Integer.class);
42:
43: /** The max. number of posts to render with lead-in text. */
44: public static final Key<Integer> P_MAX_LEADIN_ITEMS = Key.of("maxLeadInItems", Integer.class);
45:
46: /** The max. number of posts to render. */
47: public static final Key<Integer> P_MAX_ITEMS = Key.of("maxItems", Integer.class);
48:
49: /** Flag to switch to 'index' mode. */
50: public static final Key<Boolean> P_INDEX = Key.of("index", Boolean.class);
51:
52: /** Flag to switch to 'tag cloud' mode. */
53: public static final Key<Boolean> P_TAG_CLOUD = Key.of("tagCloud", Boolean.class);
54:
55: /** The category associated to a post. */
56: public static final Key<String> P_CATEGORY = Key.of("category", String.class);
57:
58: /** The id of the image to be associated with a blog post. */
59: public static final Key<String> P_IMAGE_ID = Key.of("imageId", String.class);
60: }