com.liferay.portlet.softwarecatalog.service.impl
Class SCProductEntryLocalServiceImpl
java.lang.Object
com.liferay.portlet.softwarecatalog.service.base.SCProductEntryLocalServiceBaseImpl
com.liferay.portlet.softwarecatalog.service.impl.SCProductEntryLocalServiceImpl
- All Implemented Interfaces:
- com.liferay.portlet.softwarecatalog.service.SCProductEntryLocalService
public class SCProductEntryLocalServiceImpl
- extends SCProductEntryLocalServiceBaseImpl
View Source
- Author:
- Jorge Ferrer, Brian Wing Shun Chan, Raymond Augé
Fields inherited from class com.liferay.portlet.softwarecatalog.service.base.SCProductEntryLocalServiceBaseImpl |
counterLocalService, counterService, imageLocalService, imagePersistence, mbMessageFinder, mbMessageLocalService, mbMessagePersistence, mbMessageService, ratingsStatsLocalService, ratingsStatsPersistence, resourceFinder, resourceLocalService, resourcePersistence, resourceService, scFrameworkVersionLocalService, scFrameworkVersionPersistence, scFrameworkVersionService, scLicenseLocalService, scLicensePersistence, scLicenseService, scProductEntryLocalService, scProductEntryPersistence, scProductEntryService, scProductScreenshotLocalService, scProductScreenshotPersistence, scProductVersionLocalService, scProductVersionPersistence, scProductVersionService, userFinder, userLocalService, userPersistence, userService |
Method Summary |
com.liferay.portlet.softwarecatalog.model.SCProductEntry |
addProductEntry(long userId,
java.lang.String name,
java.lang.String type,
java.lang.String tags,
java.lang.String shortDescription,
java.lang.String longDescription,
java.lang.String pageURL,
java.lang.String author,
java.lang.String repoGroupId,
java.lang.String repoArtifactId,
long[] licenseIds,
java.util.List<byte[]> thumbnails,
java.util.List<byte[]> fullImages,
com.liferay.portal.service.ServiceContext serviceContext)
|
void |
addProductEntryResources(long productEntryId,
boolean addCommunityPermissions,
boolean addGuestPermissions)
|
void |
addProductEntryResources(long productEntryId,
java.lang.String[] communityPermissions,
java.lang.String[] guestPermissions)
|
void |
addProductEntryResources(com.liferay.portlet.softwarecatalog.model.SCProductEntry productEntry,
boolean addCommunityPermissions,
boolean addGuestPermissions)
|
void |
addProductEntryResources(com.liferay.portlet.softwarecatalog.model.SCProductEntry productEntry,
java.lang.String[] communityPermissions,
java.lang.String[] guestPermissions)
|
void |
deleteProductEntries(long groupId)
|
void |
deleteProductEntry(long productEntryId)
|
void |
deleteProductEntry(com.liferay.portlet.softwarecatalog.model.SCProductEntry productEntry)
|
java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> |
getProductEntries(long groupId,
int start,
int end)
|
java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> |
getProductEntries(long groupId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> |
getProductEntries(long groupId,
long userId,
int start,
int end)
|
java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> |
getProductEntries(long groupId,
long userId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
int |
getProductEntriesCount(long groupId)
|
int |
getProductEntriesCount(long groupId,
long userId)
|
com.liferay.portlet.softwarecatalog.model.SCProductEntry |
getProductEntry(long productEntryId)
|
java.lang.String |
getRepositoryXML(long groupId,
java.lang.String baseImageURL,
java.util.Date oldestDate,
int maxNumOfVersions,
java.util.Properties repoSettings)
|
java.lang.String |
getRepositoryXML(long groupId,
java.lang.String version,
java.lang.String baseImageURL,
java.util.Date oldestDate,
int maxNumOfVersions,
java.util.Properties repoSettings)
|
protected java.lang.String |
getTags(java.lang.String tags)
|
protected boolean |
isVersionSupported(java.lang.String version,
java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> frameworkVersions)
|
protected void |
populatePluginPackageElement(com.liferay.portal.kernel.xml.Element el,
com.liferay.portlet.softwarecatalog.model.SCProductEntry productEntry,
com.liferay.portlet.softwarecatalog.model.SCProductVersion productVersion,
java.lang.String baseImageURL)
|
protected void |
populateSettingsElement(com.liferay.portal.kernel.xml.Element el,
java.util.Properties repoSettings)
|
void |
reIndex(long productEntryId)
|
void |
reIndex(com.liferay.portlet.softwarecatalog.model.SCProductEntry productEntry)
|
void |
reIndex(java.lang.String[] ids)
|
protected void |
reIndexProductEntries(long companyId)
|
protected void |
reIndexProductEntries(long companyId,
int start,
int end)
|
protected void |
saveProductScreenshots(com.liferay.portlet.softwarecatalog.model.SCProductEntry productEntry,
java.util.List<byte[]> thumbnails,
java.util.List<byte[]> fullImages)
|
com.liferay.portal.kernel.search.Hits |
search(long companyId,
long groupId,
java.lang.String keywords,
java.lang.String type,
int start,
int end)
|
com.liferay.portlet.softwarecatalog.model.SCProductEntry |
updateProductEntry(long productEntryId,
java.lang.String name,
java.lang.String type,
java.lang.String tags,
java.lang.String shortDescription,
java.lang.String longDescription,
java.lang.String pageURL,
java.lang.String author,
java.lang.String repoGroupId,
java.lang.String repoArtifactId,
long[] licenseIds,
java.util.List<byte[]> thumbnails,
java.util.List<byte[]> fullImages)
|
protected void |
validate(long productEntryId,
java.lang.String name,
java.lang.String type,
java.lang.String shortDescription,
java.lang.String pageURL,
java.lang.String author,
java.lang.String repoGroupId,
java.lang.String repoArtifactId,
long[] licenseIds,
java.util.List<byte[]> thumbnails,
java.util.List<byte[]> fullImages)
|
Methods inherited from class com.liferay.portlet.softwarecatalog.service.base.SCProductEntryLocalServiceBaseImpl |
addSCProductEntry, createSCProductEntry, deleteSCProductEntry, deleteSCProductEntry, dynamicQuery, dynamicQuery, getCounterLocalService, getCounterService, getImageLocalService, getImagePersistence, getMBMessageFinder, getMBMessageLocalService, getMBMessagePersistence, getMBMessageService, getRatingsStatsLocalService, getRatingsStatsPersistence, getResourceFinder, getResourceLocalService, getResourcePersistence, getResourceService, getSCFrameworkVersionLocalService, getSCFrameworkVersionPersistence, getSCFrameworkVersionService, getSCLicenseLocalService, getSCLicensePersistence, getSCLicenseService, getSCProductEntries, getSCProductEntriesCount, getSCProductEntry, getSCProductEntryLocalService, getSCProductEntryPersistence, getSCProductEntryService, getSCProductScreenshotLocalService, getSCProductScreenshotPersistence, getSCProductVersionLocalService, getSCProductVersionPersistence, getSCProductVersionService, getUserFinder, getUserLocalService, getUserPersistence, getUserService, runSQL, setCounterLocalService, setCounterService, setImageLocalService, setImagePersistence, setMBMessageFinder, setMBMessageLocalService, setMBMessagePersistence, setMBMessageService, setRatingsStatsLocalService, setRatingsStatsPersistence, setResourceFinder, setResourceLocalService, setResourcePersistence, setResourceService, setSCFrameworkVersionLocalService, setSCFrameworkVersionPersistence, setSCFrameworkVersionService, setSCLicenseLocalService, setSCLicensePersistence, setSCLicenseService, setSCProductEntryLocalService, setSCProductEntryPersistence, setSCProductEntryService, setSCProductScreenshotLocalService, setSCProductScreenshotPersistence, setSCProductVersionLocalService, setSCProductVersionPersistence, setSCProductVersionService, 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 com.liferay.portlet.softwarecatalog.model.SCProductEntry addProductEntry(long userId,
java.lang.String name,
java.lang.String type,
java.lang.String tags,
java.lang.String shortDescription,
java.lang.String longDescription,
java.lang.String pageURL,
java.lang.String author,
java.lang.String repoGroupId,
java.lang.String repoArtifactId,
long[] licenseIds,
java.util.List<byte[]> thumbnails,
java.util.List<byte[]> fullImages,
com.liferay.portal.service.ServiceContext serviceContext)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
addProductEntryResources
public void addProductEntryResources(long productEntryId,
boolean addCommunityPermissions,
boolean addGuestPermissions)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
addProductEntryResources
public void addProductEntryResources(com.liferay.portlet.softwarecatalog.model.SCProductEntry productEntry,
boolean addCommunityPermissions,
boolean addGuestPermissions)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
addProductEntryResources
public void addProductEntryResources(long productEntryId,
java.lang.String[] communityPermissions,
java.lang.String[] guestPermissions)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
addProductEntryResources
public void addProductEntryResources(com.liferay.portlet.softwarecatalog.model.SCProductEntry productEntry,
java.lang.String[] communityPermissions,
java.lang.String[] guestPermissions)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
deleteProductEntries
public void deleteProductEntries(long groupId)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
deleteProductEntry
public void deleteProductEntry(long productEntryId)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
deleteProductEntry
public void deleteProductEntry(com.liferay.portlet.softwarecatalog.model.SCProductEntry productEntry)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
getProductEntry
public com.liferay.portlet.softwarecatalog.model.SCProductEntry getProductEntry(long productEntryId)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
getProductEntries
public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> getProductEntries(long groupId,
int start,
int end)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
getProductEntries
public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> getProductEntries(long groupId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
getProductEntries
public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> getProductEntries(long groupId,
long userId,
int start,
int end)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
getProductEntries
public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> getProductEntries(long groupId,
long userId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
getProductEntriesCount
public int getProductEntriesCount(long groupId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
getProductEntriesCount
public int getProductEntriesCount(long groupId,
long userId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
getRepositoryXML
public java.lang.String getRepositoryXML(long groupId,
java.lang.String baseImageURL,
java.util.Date oldestDate,
int maxNumOfVersions,
java.util.Properties repoSettings)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
getRepositoryXML
public java.lang.String getRepositoryXML(long groupId,
java.lang.String version,
java.lang.String baseImageURL,
java.util.Date oldestDate,
int maxNumOfVersions,
java.util.Properties repoSettings)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
reIndex
public void reIndex(long productEntryId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
reIndex
public void reIndex(com.liferay.portlet.softwarecatalog.model.SCProductEntry productEntry)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
reIndex
public void reIndex(java.lang.String[] ids)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
search
public com.liferay.portal.kernel.search.Hits search(long companyId,
long groupId,
java.lang.String keywords,
java.lang.String type,
int start,
int end)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
updateProductEntry
public com.liferay.portlet.softwarecatalog.model.SCProductEntry updateProductEntry(long productEntryId,
java.lang.String name,
java.lang.String type,
java.lang.String tags,
java.lang.String shortDescription,
java.lang.String longDescription,
java.lang.String pageURL,
java.lang.String author,
java.lang.String repoGroupId,
java.lang.String repoArtifactId,
long[] licenseIds,
java.util.List<byte[]> thumbnails,
java.util.List<byte[]> fullImages)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
getTags
protected java.lang.String getTags(java.lang.String tags)
isVersionSupported
protected boolean isVersionSupported(java.lang.String version,
java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> frameworkVersions)
populatePluginPackageElement
protected void populatePluginPackageElement(com.liferay.portal.kernel.xml.Element el,
com.liferay.portlet.softwarecatalog.model.SCProductEntry productEntry,
com.liferay.portlet.softwarecatalog.model.SCProductVersion productVersion,
java.lang.String baseImageURL)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
populateSettingsElement
protected void populateSettingsElement(com.liferay.portal.kernel.xml.Element el,
java.util.Properties repoSettings)
reIndexProductEntries
protected void reIndexProductEntries(long companyId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
reIndexProductEntries
protected void reIndexProductEntries(long companyId,
int start,
int end)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
saveProductScreenshots
protected void saveProductScreenshots(com.liferay.portlet.softwarecatalog.model.SCProductEntry productEntry,
java.util.List<byte[]> thumbnails,
java.util.List<byte[]> fullImages)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
validate
protected void validate(long productEntryId,
java.lang.String name,
java.lang.String type,
java.lang.String shortDescription,
java.lang.String pageURL,
java.lang.String author,
java.lang.String repoGroupId,
java.lang.String repoArtifactId,
long[] licenseIds,
java.util.List<byte[]> thumbnails,
java.util.List<byte[]> fullImages)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException