001
014
015 package com.liferay.portlet.ratings.service.impl;
016
017 import com.liferay.portal.kernel.exception.PortalException;
018 import com.liferay.portal.kernel.exception.SystemException;
019 import com.liferay.portal.service.ServiceContext;
020 import com.liferay.portlet.ratings.model.RatingsEntry;
021 import com.liferay.portlet.ratings.service.base.RatingsEntryServiceBaseImpl;
022
023
026 public class RatingsEntryServiceImpl extends RatingsEntryServiceBaseImpl {
027
028 @Override
029 public void deleteEntry(String className, long classPK)
030 throws PortalException, SystemException {
031
032 ratingsEntryLocalService.deleteEntry(getUserId(), className, classPK);
033 }
034
035 @Override
036 public RatingsEntry updateEntry(
037 String className, long classPK, double score)
038 throws PortalException, SystemException {
039
040 return ratingsEntryLocalService.updateEntry(
041 getUserId(), className, classPK, score, new ServiceContext());
042 }
043
044 }