Package org.javlo.service
Class ListService
- java.lang.Object
-
- org.javlo.service.ListService
-
public class ListService extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ListService.I18nItem
static class
ListService.ListItem
static class
ListService.MapAllList
static class
ListService.OrderList
-
Field Summary
Fields Modifier and Type Field Description static String
SPECIAL_LIST_VIEW_USERS
-
Constructor Summary
Constructors Constructor Description ListService()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addList(String name, Collection<String> list)
void
addList(String name, List<IListItem> list)
void
clear()
Map<String,List<IListItem>>
getAllList(ContentContext ctx)
Map<String,List<IListItem>>
getAllListSorted(ContentContext ctx)
List<IListItem>
getContentList(ContentContext ctx, String name)
static ListService
getInstance(ContentContext ctx)
List<IListItem>
getList(ContentContext ctx, String name)
List<IListItem>
getNavigationList(ContentContext ctx, String name)
static Map<String,String>
listToStringMap(List<IListItem> list)
-
-
-
Field Detail
-
SPECIAL_LIST_VIEW_USERS
public static final String SPECIAL_LIST_VIEW_USERS
- See Also:
- Constant Field Values
-
-
Method Detail
-
getInstance
public static ListService getInstance(ContentContext ctx)
-
getList
public List<IListItem> getList(ContentContext ctx, String name) throws IOException, Exception
- Throws:
IOException
Exception
-
getNavigationList
public List<IListItem> getNavigationList(ContentContext ctx, String name) throws Exception
- Throws:
Exception
-
getContentList
public List<IListItem> getContentList(ContentContext ctx, String name) throws Exception
- Throws:
Exception
-
addList
public void addList(String name, Collection<String> list)
-
getAllList
public Map<String,List<IListItem>> getAllList(ContentContext ctx)
-
getAllListSorted
public Map<String,List<IListItem>> getAllListSorted(ContentContext ctx)
-
clear
public void clear()
-
-