Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-36204

AssetEntryLocalServiceImpl.incrementViewCounter has a changed signature for no reason

    Details

    • Type: Bug
    • Status: Closed
    • Resolution: Won't Fix
    • Affects Version/s: 6.1.1 CE GA2
    • Fix Version/s: 6.1.1 CE GA2
    • Component/s: Asset Framework
    • Labels:
      None

      Description

      The method signature in the code delivered both with sources and with bundled version of 6.1.1 VE GA2. This method is fixed in some recent versions..

      ================

      @BufferedIncrement(incrementClass = NumberIncrement.class)
      public AssetEntry incrementViewCounter(
      long userId, String className, long classPK, int increment)
      throws SystemException {

      if (!PropsValues.ASSET_ENTRY_INCREMENT_VIEW_COUNTER_ENABLED)

      { return null; }

      if (classPK <= 0) { return null; }

      long classNameId = PortalUtil.getClassNameId(className);

      AssetEntry entry = assetEntryPersistence.fetchByC_C(
      classNameId, classPK);

      if (entry == null)

      { return null; }

      entry.setViewCount(entry.getViewCount() + increment);

      assetEntryPersistence.update(entry, false);

      return entry;
      }

      ================

        Attachments

          Activity

            People

            Assignee:
            mika.koivisto Mika Koivisto (Inactive)
            Reporter:
            bulatovic@mpdl.mpg.de Natasa Bulatovic (Inactive)
            Participants of an Issue:
            Recent user:
            Esther Sanz
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since last comment:
              8 years, 51 weeks, 3 days ago

                Packages

                Version Package
                6.1.1 CE GA2