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 @Override
032 public List<SCFrameworkVersion> getFrameworkVersions() {
033 return SCFrameworkVersionLocalServiceUtil.
034 getProductVersionFrameworkVersions(getProductVersionId());
035 }
036
037 @Override
038 public SCProductEntry getProductEntry() {
039 SCProductEntry productEntry = null;
040
041 try {
042 productEntry = SCProductEntryLocalServiceUtil.getProductEntry(
043 getProductEntryId());
044 }
045 catch (Exception e) {
046 productEntry = new SCProductEntryImpl();
047
048 _log.error(e);
049 }
050
051 return productEntry;
052 }
053
054 private static final Log _log = LogFactoryUtil.getLog(
055 SCProductVersionImpl.class);
056
057 }