001
014
015 package com.liferay.portlet.softwarecatalog.model.impl;
016
017 import com.liferay.portal.kernel.log.Log;
018 import com.liferay.portal.kernel.log.LogFactoryUtil;
019 import com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion;
020 import com.liferay.portlet.softwarecatalog.model.SCProductEntry;
021 import com.liferay.portlet.softwarecatalog.service.SCFrameworkVersionLocalServiceUtil;
022 import com.liferay.portlet.softwarecatalog.service.SCProductEntryLocalServiceUtil;
023
024 import java.util.List;
025
026
029 public class SCProductVersionImpl extends SCProductVersionBaseImpl {
030
031 public SCProductVersionImpl() {
032 }
033
034 @Override
035 public List<SCFrameworkVersion> getFrameworkVersions() {
036 return SCFrameworkVersionLocalServiceUtil.
037 getProductVersionFrameworkVersions(getProductVersionId());
038 }
039
040 @Override
041 public SCProductEntry getProductEntry() {
042 SCProductEntry productEntry = null;
043
044 try {
045 productEntry = SCProductEntryLocalServiceUtil.getProductEntry(
046 getProductEntryId());
047 }
048 catch (Exception e) {
049 productEntry = new SCProductEntryImpl();
050
051 _log.error(e);
052 }
053
054 return productEntry;
055 }
056
057 private static final Log _log = LogFactoryUtil.getLog(
058 SCProductVersionImpl.class);
059
060 }