private static long _getListTypeId(String type) throws Exception { List<ListType> listTypes = ListTypeServiceUtil.getListTypes(type); ListType listType = listTypes.get(0); return listType.getListTypeId(); }
public ListType getType() { ListType type = null; try { type = ListTypeServiceUtil.getListType(getTypeId()); } catch (Exception e) { type = new ListTypeImpl(); _log.warn(e); } return type; }