com.liferay.portlet.softwarecatalog.service.impl
Class SCProductEntryLocalServiceImpl

java.lang.Object
  extended bycom.liferay.portlet.softwarecatalog.service.base.SCProductEntryLocalServiceBaseImpl
      extended bycom.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

Constructor Summary
SCProductEntryLocalServiceImpl()
           
 
Method Summary
 com.liferay.portlet.softwarecatalog.model.SCProductEntry addProductEntry(long userId, long plid, 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 thumbnails, java.util.List fullImages, boolean addCommunityPermissions, boolean addGuestPermissions)
           
 com.liferay.portlet.softwarecatalog.model.SCProductEntry addProductEntry(long userId, long plid, 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 thumbnails, java.util.List fullImages, java.lang.Boolean addCommunityPermissions, java.lang.Boolean addGuestPermissions, java.lang.String[] communityPermissions, java.lang.String[] guestPermissions)
           
 com.liferay.portlet.softwarecatalog.model.SCProductEntry addProductEntry(long userId, long plid, 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 thumbnails, java.util.List fullImages, java.lang.String[] communityPermissions, java.lang.String[] guestPermissions)
           
 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 deleteProductEntry(long productEntryId)
           
 void deleteProductEntry(com.liferay.portlet.softwarecatalog.model.SCProductEntry productEntry)
           
 java.util.List getProductEntries(long groupId, int begin, int end)
           
 java.util.List getProductEntries(long groupId, int begin, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 java.util.List getProductEntries(long groupId, long userId, int begin, int end)
           
 java.util.List getProductEntries(long groupId, long userId, int begin, 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 supportedVersions)
           
protected  void populatePluginPackageElement(org.dom4j.Element el, com.liferay.portlet.softwarecatalog.model.SCProductEntry productEntry, com.liferay.portlet.softwarecatalog.model.SCProductVersion productVersion, java.lang.String baseImageURL)
           
protected  void populateSettingsElement(org.dom4j.Element el, java.util.Properties repoSettings)
           
 void reIndex(java.lang.String[] ids)
           
protected  void saveProductScreenshots(com.liferay.portlet.softwarecatalog.model.SCProductEntry productEntry, java.util.List thumbnails, java.util.List fullImages)
           
 com.liferay.portal.kernel.search.Hits search(long companyId, long groupId, java.lang.String keywords, java.lang.String type)
           
 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 thumbnails, java.util.List fullImages)
           
protected  void validate(java.lang.String name, java.lang.String type, java.lang.String shortDescription, java.lang.String pageURL, java.lang.String author, long[] licenseIds, java.util.List thumbnails, java.util.List fullImages)
           
 
Methods inherited from class com.liferay.portlet.softwarecatalog.service.base.SCProductEntryLocalServiceBaseImpl
addSCProductEntry, dynamicQuery, dynamicQuery, updateSCProductEntry
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SCProductEntryLocalServiceImpl

public SCProductEntryLocalServiceImpl()
Method Detail

addProductEntry

public com.liferay.portlet.softwarecatalog.model.SCProductEntry addProductEntry(long userId,
                                                                                long plid,
                                                                                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 thumbnails,
                                                                                java.util.List fullImages,
                                                                                boolean addCommunityPermissions,
                                                                                boolean addGuestPermissions)
                                                                         throws com.liferay.portal.PortalException,
                                                                                com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

addProductEntry

public com.liferay.portlet.softwarecatalog.model.SCProductEntry addProductEntry(long userId,
                                                                                long plid,
                                                                                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 thumbnails,
                                                                                java.util.List fullImages,
                                                                                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

addProductEntry

public com.liferay.portlet.softwarecatalog.model.SCProductEntry addProductEntry(long userId,
                                                                                long plid,
                                                                                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 thumbnails,
                                                                                java.util.List fullImages,
                                                                                java.lang.Boolean addCommunityPermissions,
                                                                                java.lang.Boolean addGuestPermissions,
                                                                                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(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

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 getProductEntries(long groupId,
                                        int begin,
                                        int end)
                                 throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getProductEntries

public java.util.List getProductEntries(long groupId,
                                        int begin,
                                        int end,
                                        com.liferay.portal.kernel.util.OrderByComparator obc)
                                 throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getProductEntries

public java.util.List getProductEntries(long groupId,
                                        long userId,
                                        int begin,
                                        int end)
                                 throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getProductEntries

public java.util.List getProductEntries(long groupId,
                                        long userId,
                                        int begin,
                                        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.PortalException,
                                         com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
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.PortalException,
                                         com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
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)
                                             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 thumbnails,
                                                                                   java.util.List 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 supportedVersions)

populatePluginPackageElement

protected void populatePluginPackageElement(org.dom4j.Element el,
                                            com.liferay.portlet.softwarecatalog.model.SCProductEntry productEntry,
                                            com.liferay.portlet.softwarecatalog.model.SCProductVersion productVersion,
                                            java.lang.String baseImageURL)
                                     throws com.liferay.portal.PortalException,
                                            com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

populateSettingsElement

protected void populateSettingsElement(org.dom4j.Element el,
                                       java.util.Properties repoSettings)

saveProductScreenshots

protected void saveProductScreenshots(com.liferay.portlet.softwarecatalog.model.SCProductEntry productEntry,
                                      java.util.List thumbnails,
                                      java.util.List fullImages)
                               throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

validate

protected void validate(java.lang.String name,
                        java.lang.String type,
                        java.lang.String shortDescription,
                        java.lang.String pageURL,
                        java.lang.String author,
                        long[] licenseIds,
                        java.util.List thumbnails,
                        java.util.List fullImages)
                 throws com.liferay.portal.PortalException
Throws:
com.liferay.portal.PortalException