1 package com.trendmicro.grid.acl.ds;
2
3 import com.trendmicro.grid.acl.l0.datatypes.CategoryView;
4
5 import java.util.List;
6 import java.util.Locale;
7
8 /**
9 * Defines a readonly repositories for views.
10 *
11 * @author juergen_kellerer, 2010-05-06
12 * @version 1.0
13 */
14 public interface CategoryViewRepository extends Repository {
15 /**
16 * Returns the names of available category views,
17 *
18 * @param locale The locale (language & country) of the requester (views are regional!).
19 * @param targetIdentifier Optional identifier specifying the requesting target application type.
20 * Is set to "default" if left empty or if it is not existing.
21 * @return A list of available viewnames.
22 */
23 List<String> getCategoryViewNames(Locale locale, String targetIdentifier);
24
25 /**
26 * Returns the category view for the specified view-name.
27 *
28 * @param locale The locale (language & country) of the requester.
29 * @param viewName The name of the view to return.
30 * @return The cateogry view for the given name or 'null' if not existing.
31 */
32 CategoryView getCategoryView(Locale locale, String viewName);
33 }