コード例 #1
0
  public void addRatingsEntries(Class<?> clazz, long classPK) throws SystemException {

    List<RatingsEntry> ratingsEntries =
        RatingsEntryLocalServiceUtil.getEntries(clazz.getName(), classPK);

    if (ratingsEntries.size() == 0) {
      return;
    }

    for (RatingsEntry entry : ratingsEntries) {
      entry.setUserUuid(entry.getUserUuid());
    }

    _ratingsEntriesMap.put(getPrimaryKeyString(clazz, classPK), ratingsEntries);
  }
コード例 #2
0
  public void addRatingsEntries(Class<?> clazz, long classPK) throws SystemException {

    List<RatingsEntry> ratingsEntries =
        RatingsEntryLocalServiceUtil.getEntries(clazz.getName(), classPK);

    if (ratingsEntries.size() == 0) {
      return;
    }

    Iterator<RatingsEntry> itr = ratingsEntries.iterator();

    while (itr.hasNext()) {
      RatingsEntry entry = itr.next();

      entry.setUserUuid(entry.getUserUuid());
    }

    _ratingsEntriesMap.put(getPrimaryKeyString(clazz, classPK), ratingsEntries);
  }