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

java.lang.Object
  extended by com.liferay.portlet.softwarecatalog.service.base.SCProductVersionLocalServiceBaseImpl
      extended by com.liferay.portlet.softwarecatalog.service.impl.SCProductVersionLocalServiceImpl
All Implemented Interfaces:
com.liferay.portlet.softwarecatalog.service.SCProductVersionLocalService, org.springframework.beans.factory.InitializingBean

public class SCProductVersionLocalServiceImpl
extends SCProductVersionLocalServiceBaseImpl

View Source

Author:
Jorge Ferrer, Brian Wing Shun Chan

Field Summary
 
Fields inherited from class com.liferay.portlet.softwarecatalog.service.base.SCProductVersionLocalServiceBaseImpl
counterLocalService, counterService, scFrameworkVersionLocalService, scFrameworkVersionPersistence, scFrameworkVersionService, scLicenseLocalService, scLicensePersistence, scLicenseService, scProductEntryLocalService, scProductEntryPersistence, scProductEntryService, scProductScreenshotLocalService, scProductScreenshotPersistence, scProductVersionPersistence, userFinder, userLocalService, userPersistence, userService
 
Constructor Summary
SCProductVersionLocalServiceImpl()
           
 
Method Summary
 com.liferay.portlet.softwarecatalog.model.SCProductVersion addProductVersion(long userId, long productEntryId, java.lang.String version, java.lang.String changeLog, java.lang.String downloadPageURL, java.lang.String directDownloadURL, boolean repoStoreArtifact, long[] frameworkVersionIds, boolean addCommunityPermissions, boolean addGuestPermissions)
           
 com.liferay.portlet.softwarecatalog.model.SCProductVersion addProductVersion(long userId, long productEntryId, java.lang.String version, java.lang.String changeLog, java.lang.String downloadPageURL, java.lang.String directDownloadURL, boolean repoStoreArtifact, long[] frameworkVersionIds, java.lang.Boolean addCommunityPermissions, java.lang.Boolean addGuestPermissions, java.lang.String[] communityPermissions, java.lang.String[] guestPermissions)
           
 com.liferay.portlet.softwarecatalog.model.SCProductVersion addProductVersion(long userId, long productEntryId, java.lang.String version, java.lang.String changeLog, java.lang.String downloadPageURL, java.lang.String directDownloadURL, boolean repoStoreArtifact, long[] frameworkVersionIds, java.lang.String[] communityPermissions, java.lang.String[] guestPermissions)
           
 void deleteProductVersion(long productVersionId)
           
 void deleteProductVersion(com.liferay.portlet.softwarecatalog.model.SCProductVersion productVersion)
           
 void deleteProductVersions(long productEntryId)
           
 com.liferay.portlet.softwarecatalog.model.SCProductVersion getProductVersion(long productVersionId)
           
 com.liferay.portlet.softwarecatalog.model.SCProductVersion getProductVersionByDirectDownloadURL(java.lang.String directDownloadURL)
           
 java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductVersion> getProductVersions(long productEntryId, int begin, int end)
           
 int getProductVersionsCount(long productEntryId)
           
 com.liferay.portlet.softwarecatalog.model.SCProductVersion updateProductVersion(long productVersionId, java.lang.String version, java.lang.String changeLog, java.lang.String downloadPageURL, java.lang.String directDownloadURL, boolean repoStoreArtifact, long[] frameworkVersionIds)
           
protected  void validate(long productVersionId, java.lang.String version, java.lang.String changeLog, java.lang.String downloadPageURL, java.lang.String directDownloadURL, long[] frameworkVersionIds)
           
 
Methods inherited from class com.liferay.portlet.softwarecatalog.service.base.SCProductVersionLocalServiceBaseImpl
addSCProductVersion, afterPropertiesSet, deleteSCProductVersion, deleteSCProductVersion, dynamicQuery, dynamicQuery, getCounterLocalService, getCounterService, getSCFrameworkVersionLocalService, getSCFrameworkVersionPersistence, getSCFrameworkVersionService, getSCLicenseLocalService, getSCLicensePersistence, getSCLicenseService, getSCProductEntryLocalService, getSCProductEntryPersistence, getSCProductEntryService, getSCProductScreenshotLocalService, getSCProductScreenshotPersistence, getSCProductVersionPersistence, getUserFinder, getUserLocalService, getUserPersistence, getUserService, setCounterLocalService, setCounterService, setSCFrameworkVersionLocalService, setSCFrameworkVersionPersistence, setSCFrameworkVersionService, setSCLicenseLocalService, setSCLicensePersistence, setSCLicenseService, setSCProductEntryLocalService, setSCProductEntryPersistence, setSCProductEntryService, setSCProductScreenshotLocalService, setSCProductScreenshotPersistence, setSCProductVersionPersistence, setUserFinder, setUserLocalService, setUserPersistence, setUserService, updateSCProductVersion
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SCProductVersionLocalServiceImpl

public SCProductVersionLocalServiceImpl()
Method Detail

addProductVersion

public com.liferay.portlet.softwarecatalog.model.SCProductVersion addProductVersion(long userId,
                                                                                    long productEntryId,
                                                                                    java.lang.String version,
                                                                                    java.lang.String changeLog,
                                                                                    java.lang.String downloadPageURL,
                                                                                    java.lang.String directDownloadURL,
                                                                                    boolean repoStoreArtifact,
                                                                                    long[] frameworkVersionIds,
                                                                                    boolean addCommunityPermissions,
                                                                                    boolean addGuestPermissions)
                                                                             throws com.liferay.portal.PortalException,
                                                                                    com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

addProductVersion

public com.liferay.portlet.softwarecatalog.model.SCProductVersion addProductVersion(long userId,
                                                                                    long productEntryId,
                                                                                    java.lang.String version,
                                                                                    java.lang.String changeLog,
                                                                                    java.lang.String downloadPageURL,
                                                                                    java.lang.String directDownloadURL,
                                                                                    boolean repoStoreArtifact,
                                                                                    long[] frameworkVersionIds,
                                                                                    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

addProductVersion

public com.liferay.portlet.softwarecatalog.model.SCProductVersion addProductVersion(long userId,
                                                                                    long productEntryId,
                                                                                    java.lang.String version,
                                                                                    java.lang.String changeLog,
                                                                                    java.lang.String downloadPageURL,
                                                                                    java.lang.String directDownloadURL,
                                                                                    boolean repoStoreArtifact,
                                                                                    long[] frameworkVersionIds,
                                                                                    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

deleteProductVersion

public void deleteProductVersion(long productVersionId)
                          throws com.liferay.portal.PortalException,
                                 com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

deleteProductVersion

public void deleteProductVersion(com.liferay.portlet.softwarecatalog.model.SCProductVersion productVersion)
                          throws com.liferay.portal.PortalException,
                                 com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

deleteProductVersions

public void deleteProductVersions(long productEntryId)
                           throws com.liferay.portal.PortalException,
                                  com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

getProductVersion

public com.liferay.portlet.softwarecatalog.model.SCProductVersion getProductVersion(long productVersionId)
                                                                             throws com.liferay.portal.PortalException,
                                                                                    com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

getProductVersionByDirectDownloadURL

public com.liferay.portlet.softwarecatalog.model.SCProductVersion getProductVersionByDirectDownloadURL(java.lang.String directDownloadURL)
                                                                                                throws com.liferay.portal.PortalException,
                                                                                                       com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

getProductVersions

public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductVersion> getProductVersions(long productEntryId,
                                                                                                     int begin,
                                                                                                     int end)
                                                                                              throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getProductVersionsCount

public int getProductVersionsCount(long productEntryId)
                            throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

updateProductVersion

public com.liferay.portlet.softwarecatalog.model.SCProductVersion updateProductVersion(long productVersionId,
                                                                                       java.lang.String version,
                                                                                       java.lang.String changeLog,
                                                                                       java.lang.String downloadPageURL,
                                                                                       java.lang.String directDownloadURL,
                                                                                       boolean repoStoreArtifact,
                                                                                       long[] frameworkVersionIds)
                                                                                throws com.liferay.portal.PortalException,
                                                                                       com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

validate

protected void validate(long productVersionId,
                        java.lang.String version,
                        java.lang.String changeLog,
                        java.lang.String downloadPageURL,
                        java.lang.String directDownloadURL,
                        long[] frameworkVersionIds)
                 throws com.liferay.portal.PortalException,
                        com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException