コード例 #1
0
  private static long _getListTypeId(String type) throws Exception {
    List<ListType> listTypes = ListTypeServiceUtil.getListTypes(type);

    ListType listType = listTypes.get(0);

    return listType.getListTypeId();
  }
コード例 #2
0
  public ListType getType() {
    ListType type = null;

    try {
      type = ListTypeServiceUtil.getListType(getTypeId());
    } catch (Exception e) {
      type = new ListTypeImpl();

      _log.warn(e);
    }

    return type;
  }