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 classListService.I18nItemstatic classListService.ListItemstatic classListService.MapAllListstatic classListService.OrderList
-
Field Summary
Fields Modifier and Type Field Description static StringSPECIAL_LIST_VIEW_USERS
-
Constructor Summary
Constructors Constructor Description ListService()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddList(String name, Collection<String> list)voidaddList(String name, List<IListItem> list)voidclear()Map<String,List<IListItem>>getAllList(ContentContext ctx)Map<String,List<IListItem>>getAllListSorted(ContentContext ctx)List<IListItem>getContentList(ContentContext ctx, String name)static ListServicegetInstance(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:
IOExceptionException
-
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()
-
-