com.liferay.portlet.softwarecatalog.service.impl
Class SCProductEntryLocalServiceImpl
java.lang.Object
com.liferay.portal.service.BaseLocalServiceImpl
com.liferay.portlet.softwarecatalog.service.base.SCProductEntryLocalServiceBaseImpl
com.liferay.portlet.softwarecatalog.service.impl.SCProductEntryLocalServiceImpl
- All Implemented Interfaces:
- IdentifiableBean, BaseLocalService, PersistedModelLocalService, SCProductEntryLocalService
public class SCProductEntryLocalServiceImpl
- extends SCProductEntryLocalServiceBaseImpl
Fields inherited from class com.liferay.portlet.softwarecatalog.service.base.SCProductEntryLocalServiceBaseImpl |
counterLocalService, groupFinder, groupLocalService, groupPersistence, groupService, imageLocalService, imagePersistence, imageService, mbMessageFinder, mbMessageLocalService, mbMessagePersistence, mbMessageService, persistedModelLocalServiceRegistry, ratingsStatsFinder, ratingsStatsLocalService, ratingsStatsPersistence, resourceFinder, resourceLocalService, resourcePersistence, resourceService, scFrameworkVersionLocalService, scFrameworkVersionPersistence, scFrameworkVersionService, scLicenseLocalService, scLicensePersistence, scLicenseService, scProductEntryLocalService, scProductEntryPersistence, scProductEntryService, scProductScreenshotLocalService, scProductScreenshotPersistence, scProductVersionLocalService, scProductVersionPersistence, scProductVersionService, subscriptionLocalService, subscriptionPersistence, userFinder, userLocalService, userPersistence, userService |
Method Summary |
SCProductEntry |
addProductEntry(long userId,
String name,
String type,
String tags,
String shortDescription,
String longDescription,
String pageURL,
String author,
String repoGroupId,
String repoArtifactId,
long[] licenseIds,
List<byte[]> thumbnails,
List<byte[]> fullImages,
ServiceContext serviceContext)
|
void |
addProductEntryResources(long productEntryId,
boolean addGroupPermissions,
boolean addGuestPermissions)
|
void |
addProductEntryResources(long productEntryId,
String[] groupPermissions,
String[] guestPermissions)
|
void |
addProductEntryResources(SCProductEntry productEntry,
boolean addGroupPermissions,
boolean addGuestPermissions)
|
void |
addProductEntryResources(SCProductEntry productEntry,
String[] groupPermissions,
String[] guestPermissions)
|
void |
deleteProductEntries(long groupId)
|
void |
deleteProductEntry(long productEntryId)
|
void |
deleteProductEntry(SCProductEntry productEntry)
|
List<SCProductEntry> |
getCompanyProductEntries(long companyId,
int start,
int end)
|
int |
getCompanyProductEntriesCount(long companyId)
|
List<SCProductEntry> |
getProductEntries(long groupId,
int start,
int end)
|
List<SCProductEntry> |
getProductEntries(long groupId,
int start,
int end,
OrderByComparator obc)
|
List<SCProductEntry> |
getProductEntries(long groupId,
long userId,
int start,
int end)
|
List<SCProductEntry> |
getProductEntries(long groupId,
long userId,
int start,
int end,
OrderByComparator obc)
|
int |
getProductEntriesCount(long groupId)
|
int |
getProductEntriesCount(long groupId,
long userId)
|
SCProductEntry |
getProductEntry(long productEntryId)
|
String |
getRepositoryXML(long groupId,
String baseImageURL,
Date oldestDate,
int maxNumOfVersions,
Properties repoSettings)
|
String |
getRepositoryXML(long groupId,
String version,
String baseImageURL,
Date oldestDate,
int maxNumOfVersions,
Properties repoSettings)
|
protected String |
getTags(String tags)
|
protected boolean |
isVersionSupported(String version,
List<SCFrameworkVersion> frameworkVersions)
|
protected void |
populatePluginPackageElement(Element el,
SCProductEntry productEntry,
SCProductVersion productVersion,
String baseImageURL)
|
protected void |
populateSettingsElement(Element el,
Properties repoSettings)
|
protected void |
saveProductScreenshots(SCProductEntry productEntry,
List<byte[]> thumbnails,
List<byte[]> fullImages)
|
SCProductEntry |
updateProductEntry(long productEntryId,
String name,
String type,
String tags,
String shortDescription,
String longDescription,
String pageURL,
String author,
String repoGroupId,
String repoArtifactId,
long[] licenseIds,
List<byte[]> thumbnails,
List<byte[]> fullImages)
|
protected void |
validate(long productEntryId,
String name,
String type,
String shortDescription,
String pageURL,
String author,
String repoGroupId,
String repoArtifactId,
long[] licenseIds,
List<byte[]> thumbnails,
List<byte[]> fullImages)
|
Methods inherited from class com.liferay.portlet.softwarecatalog.service.base.SCProductEntryLocalServiceBaseImpl |
addSCLicenseSCProductEntries, addSCLicenseSCProductEntries, addSCLicenseSCProductEntry, addSCLicenseSCProductEntry, addSCProductEntry, afterPropertiesSet, clearSCLicenseSCProductEntries, createSCProductEntry, deleteSCLicenseSCProductEntries, deleteSCLicenseSCProductEntries, deleteSCLicenseSCProductEntry, deleteSCLicenseSCProductEntry, deleteSCProductEntry, deleteSCProductEntry, destroy, dynamicQuery, dynamicQuery, dynamicQuery, dynamicQuery, dynamicQueryCount, fetchSCProductEntry, getBeanIdentifier, getCounterLocalService, getGroupFinder, getGroupLocalService, getGroupPersistence, getGroupService, getImageLocalService, getImagePersistence, getImageService, getMBMessageFinder, getMBMessageLocalService, getMBMessagePersistence, getMBMessageService, getModelClass, getModelClassName, getPersistedModel, getRatingsStatsFinder, getRatingsStatsLocalService, getRatingsStatsPersistence, getResourceFinder, getResourceLocalService, getResourcePersistence, getResourceService, getSCFrameworkVersionLocalService, getSCFrameworkVersionPersistence, getSCFrameworkVersionService, getSCLicenseLocalService, getSCLicensePersistence, getSCLicenseSCProductEntries, getSCLicenseSCProductEntries, getSCLicenseSCProductEntries, getSCLicenseSCProductEntriesCount, getSCLicenseService, getSCProductEntries, getSCProductEntriesCount, getSCProductEntry, getSCProductEntryLocalService, getSCProductEntryPersistence, getSCProductEntryService, getSCProductScreenshotLocalService, getSCProductScreenshotPersistence, getSCProductVersionLocalService, getSCProductVersionPersistence, getSCProductVersionService, getSubscriptionLocalService, getSubscriptionPersistence, getUserFinder, getUserLocalService, getUserPersistence, getUserService, hasSCLicenseSCProductEntries, hasSCLicenseSCProductEntry, runSQL, setBeanIdentifier, setCounterLocalService, setGroupFinder, setGroupLocalService, setGroupPersistence, setGroupService, setImageLocalService, setImagePersistence, setImageService, setMBMessageFinder, setMBMessageLocalService, setMBMessagePersistence, setMBMessageService, setRatingsStatsFinder, setRatingsStatsLocalService, setRatingsStatsPersistence, setResourceFinder, setResourceLocalService, setResourcePersistence, setResourceService, setSCFrameworkVersionLocalService, setSCFrameworkVersionPersistence, setSCFrameworkVersionService, setSCLicenseLocalService, setSCLicensePersistence, setSCLicenseSCProductEntries, setSCLicenseService, setSCProductEntryLocalService, setSCProductEntryPersistence, setSCProductEntryService, setSCProductScreenshotLocalService, setSCProductScreenshotPersistence, setSCProductVersionLocalService, setSCProductVersionPersistence, setSCProductVersionService, setSubscriptionLocalService, setSubscriptionPersistence, setUserFinder, setUserLocalService, setUserPersistence, setUserService, updateSCProductEntry, updateSCProductEntry |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SCProductEntryLocalServiceImpl
public SCProductEntryLocalServiceImpl()
addProductEntry
public SCProductEntry addProductEntry(long userId,
String name,
String type,
String tags,
String shortDescription,
String longDescription,
String pageURL,
String author,
String repoGroupId,
String repoArtifactId,
long[] licenseIds,
List<byte[]> thumbnails,
List<byte[]> fullImages,
ServiceContext serviceContext)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
addProductEntryResources
public void addProductEntryResources(long productEntryId,
boolean addGroupPermissions,
boolean addGuestPermissions)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
addProductEntryResources
public void addProductEntryResources(long productEntryId,
String[] groupPermissions,
String[] guestPermissions)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
addProductEntryResources
public void addProductEntryResources(SCProductEntry productEntry,
boolean addGroupPermissions,
boolean addGuestPermissions)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
addProductEntryResources
public void addProductEntryResources(SCProductEntry productEntry,
String[] groupPermissions,
String[] guestPermissions)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
deleteProductEntries
public void deleteProductEntries(long groupId)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
deleteProductEntry
public void deleteProductEntry(long productEntryId)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
deleteProductEntry
public void deleteProductEntry(SCProductEntry productEntry)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getCompanyProductEntries
public List<SCProductEntry> getCompanyProductEntries(long companyId,
int start,
int end)
throws SystemException
- Throws:
SystemException
getCompanyProductEntriesCount
public int getCompanyProductEntriesCount(long companyId)
throws SystemException
- Throws:
SystemException
getProductEntries
public List<SCProductEntry> getProductEntries(long groupId,
int start,
int end)
throws SystemException
- Throws:
SystemException
getProductEntries
public List<SCProductEntry> getProductEntries(long groupId,
int start,
int end,
OrderByComparator obc)
throws SystemException
- Throws:
SystemException
getProductEntries
public List<SCProductEntry> getProductEntries(long groupId,
long userId,
int start,
int end)
throws SystemException
- Throws:
SystemException
getProductEntries
public List<SCProductEntry> getProductEntries(long groupId,
long userId,
int start,
int end,
OrderByComparator obc)
throws SystemException
- Throws:
SystemException
getProductEntriesCount
public int getProductEntriesCount(long groupId)
throws SystemException
- Throws:
SystemException
getProductEntriesCount
public int getProductEntriesCount(long groupId,
long userId)
throws SystemException
- Throws:
SystemException
getProductEntry
public SCProductEntry getProductEntry(long productEntryId)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getRepositoryXML
public String getRepositoryXML(long groupId,
String baseImageURL,
Date oldestDate,
int maxNumOfVersions,
Properties repoSettings)
throws SystemException
- Throws:
SystemException
getRepositoryXML
public String getRepositoryXML(long groupId,
String version,
String baseImageURL,
Date oldestDate,
int maxNumOfVersions,
Properties repoSettings)
throws SystemException
- Throws:
SystemException
updateProductEntry
public SCProductEntry updateProductEntry(long productEntryId,
String name,
String type,
String tags,
String shortDescription,
String longDescription,
String pageURL,
String author,
String repoGroupId,
String repoArtifactId,
long[] licenseIds,
List<byte[]> thumbnails,
List<byte[]> fullImages)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getTags
protected String getTags(String tags)
isVersionSupported
protected boolean isVersionSupported(String version,
List<SCFrameworkVersion> frameworkVersions)
populatePluginPackageElement
protected void populatePluginPackageElement(Element el,
SCProductEntry productEntry,
SCProductVersion productVersion,
String baseImageURL)
throws SystemException
- Throws:
SystemException
populateSettingsElement
protected void populateSettingsElement(Element el,
Properties repoSettings)
saveProductScreenshots
protected void saveProductScreenshots(SCProductEntry productEntry,
List<byte[]> thumbnails,
List<byte[]> fullImages)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
validate
protected void validate(long productEntryId,
String name,
String type,
String shortDescription,
String pageURL,
String author,
String repoGroupId,
String repoArtifactId,
long[] licenseIds,
List<byte[]> thumbnails,
List<byte[]> fullImages)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException