Liferay 6.0-ee

com.liferay.portlet.softwarecatalog.service
Interface SCProductVersionLocalService

All Known Implementing Classes:
SCProductVersionLocalServiceBaseImpl, SCProductVersionLocalServiceImpl, SCProductVersionLocalServiceWrapper

@Transactional(isolation=PORTAL,
               rollbackFor={PortalException.class,SystemException.class})
public interface SCProductVersionLocalService

The interface for the s c product version local service.

Never modify or reference this interface directly. Always use SCProductVersionLocalServiceUtil to access the s c product version local service. Add custom service methods to SCProductVersionLocalServiceImpl and rerun ServiceBuilder to automatically copy the method declarations to this interface.

This is a local service. Methods of this service will not have security checks based on the propagated JAAS credentials because this service can only be accessed from within the same VM.

See Also:
SCProductVersionLocalServiceUtil, SCProductVersionLocalServiceBaseImpl, SCProductVersionLocalServiceImpl
ServiceBuilder generated this class. Modifications in this class will be overwritten the next time it is generated.

Method Summary
 SCProductVersion addProductVersion(long userId, long productEntryId, String version, String changeLog, String downloadPageURL, String directDownloadURL, boolean testDirectDownloadURL, boolean repoStoreArtifact, long[] frameworkVersionIds, ServiceContext serviceContext)
           
 SCProductVersion addSCProductVersion(SCProductVersion scProductVersion)
          Adds the s c product version to the database.
 SCProductVersion createSCProductVersion(long productVersionId)
          Creates a new s c product version with the primary key.
 void deleteProductVersion(long productVersionId)
           
 void deleteProductVersion(SCProductVersion productVersion)
           
 void deleteProductVersions(long productEntryId)
           
 void deleteSCProductVersion(long productVersionId)
          Deletes the s c product version with the primary key from the database.
 void deleteSCProductVersion(SCProductVersion scProductVersion)
          Deletes the s c product version from the database.
 List dynamicQuery(DynamicQuery dynamicQuery)
          Performs a dynamic query on the database and returns the matching rows.
 List dynamicQuery(DynamicQuery dynamicQuery, int start, int end)
          Performs a dynamic query on the database and returns a range of the matching rows.
 List dynamicQuery(DynamicQuery dynamicQuery, int start, int end, OrderByComparator orderByComparator)
          Performs a dynamic query on the database and returns an ordered range of the matching rows.
 long dynamicQueryCount(DynamicQuery dynamicQuery)
          Counts the number of rows that match the dynamic query.
 SCProductVersion getProductVersion(long productVersionId)
           
 SCProductVersion getProductVersionByDirectDownloadURL(String directDownloadURL)
           
 List<SCProductVersion> getProductVersions(long productEntryId, int start, int end)
           
 int getProductVersionsCount(long productEntryId)
           
 SCProductVersion getSCProductVersion(long productVersionId)
          Gets the s c product version with the primary key.
 List<SCProductVersion> getSCProductVersions(int start, int end)
          Gets a range of all the s c product versions.
 int getSCProductVersionsCount()
          Gets the number of s c product versions.
 SCProductVersion updateProductVersion(long productVersionId, String version, String changeLog, String downloadPageURL, String directDownloadURL, boolean testDirectDownloadURL, boolean repoStoreArtifact, long[] frameworkVersionIds)
           
 SCProductVersion updateSCProductVersion(SCProductVersion scProductVersion)
          Updates the s c product version in the database.
 SCProductVersion updateSCProductVersion(SCProductVersion scProductVersion, boolean merge)
          Updates the s c product version in the database.
 

Method Detail

addSCProductVersion

SCProductVersion addSCProductVersion(SCProductVersion scProductVersion)
                                     throws SystemException
Adds the s c product version to the database. Also notifies the appropriate model listeners.

Parameters:
scProductVersion - the s c product version to add
Returns:
the s c product version that was added
Throws:
SystemException - if a system exception occurred

createSCProductVersion

SCProductVersion createSCProductVersion(long productVersionId)
Creates a new s c product version with the primary key. Does not add the s c product version to the database.

Parameters:
productVersionId - the primary key for the new s c product version
Returns:
the new s c product version

deleteSCProductVersion

void deleteSCProductVersion(long productVersionId)
                            throws PortalException,
                                   SystemException
Deletes the s c product version with the primary key from the database. Also notifies the appropriate model listeners.

Parameters:
productVersionId - the primary key of the s c product version to delete
Throws:
PortalException - if a s c product version with the primary key could not be found
SystemException - if a system exception occurred

deleteSCProductVersion

void deleteSCProductVersion(SCProductVersion scProductVersion)
                            throws SystemException
Deletes the s c product version from the database. Also notifies the appropriate model listeners.

Parameters:
scProductVersion - the s c product version to delete
Throws:
SystemException - if a system exception occurred

dynamicQuery

List dynamicQuery(DynamicQuery dynamicQuery)
                  throws SystemException
Performs a dynamic query on the database and returns the matching rows.

Parameters:
dynamicQuery - the dynamic query to search with
Returns:
the matching rows
Throws:
SystemException - if a system exception occurred

dynamicQuery

List dynamicQuery(DynamicQuery dynamicQuery,
                  int start,
                  int end)
                  throws SystemException
Performs a dynamic query on the database and returns a range of the matching rows.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Parameters:
dynamicQuery - the dynamic query to search with
start - the lower bound of the range of model instances to return
end - the upper bound of the range of model instances to return (not inclusive)
Returns:
the range of matching rows
Throws:
SystemException - if a system exception occurred

dynamicQuery

List dynamicQuery(DynamicQuery dynamicQuery,
                  int start,
                  int end,
                  OrderByComparator orderByComparator)
                  throws SystemException
Performs a dynamic query on the database and returns an ordered range of the matching rows.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Parameters:
dynamicQuery - the dynamic query to search with
start - the lower bound of the range of model instances to return
end - the upper bound of the range of model instances to return (not inclusive)
orderByComparator - the comparator to order the results by
Returns:
the ordered range of matching rows
Throws:
SystemException - if a system exception occurred

dynamicQueryCount

long dynamicQueryCount(DynamicQuery dynamicQuery)
                       throws SystemException
Counts the number of rows that match the dynamic query.

Parameters:
dynamicQuery - the dynamic query to search with
Returns:
the number of rows that match the dynamic query
Throws:
SystemException - if a system exception occurred

getSCProductVersion

@Transactional(propagation=SUPPORTS,
               readOnly=true)
SCProductVersion getSCProductVersion(long productVersionId)
                                     throws PortalException,
                                            SystemException
Gets the s c product version with the primary key.

Parameters:
productVersionId - the primary key of the s c product version to get
Returns:
the s c product version
Throws:
PortalException - if a s c product version with the primary key could not be found
SystemException - if a system exception occurred

getSCProductVersions

@Transactional(propagation=SUPPORTS,
               readOnly=true)
List<SCProductVersion> getSCProductVersions(int start,
                                                                                     int end)
                                            throws SystemException
Gets a range of all the s c product versions.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Parameters:
start - the lower bound of the range of s c product versions to return
end - the upper bound of the range of s c product versions to return (not inclusive)
Returns:
the range of s c product versions
Throws:
SystemException - if a system exception occurred

getSCProductVersionsCount

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int getSCProductVersionsCount()
                              throws SystemException
Gets the number of s c product versions.

Returns:
the number of s c product versions
Throws:
SystemException - if a system exception occurred

updateSCProductVersion

SCProductVersion updateSCProductVersion(SCProductVersion scProductVersion)
                                        throws SystemException
Updates the s c product version in the database. Also notifies the appropriate model listeners.

Parameters:
scProductVersion - the s c product version to update
Returns:
the s c product version that was updated
Throws:
SystemException - if a system exception occurred

updateSCProductVersion

SCProductVersion updateSCProductVersion(SCProductVersion scProductVersion,
                                        boolean merge)
                                        throws SystemException
Updates the s c product version in the database. Also notifies the appropriate model listeners.

Parameters:
scProductVersion - the s c product version to update
merge - whether to merge the s c product version with the current session. See BatchSession.update(com.liferay.portal.kernel.dao.orm.Session, com.liferay.portal.model.BaseModel, boolean) for an explanation.
Returns:
the s c product version that was updated
Throws:
SystemException - if a system exception occurred

addProductVersion

SCProductVersion addProductVersion(long userId,
                                   long productEntryId,
                                   String version,
                                   String changeLog,
                                   String downloadPageURL,
                                   String directDownloadURL,
                                   boolean testDirectDownloadURL,
                                   boolean repoStoreArtifact,
                                   long[] frameworkVersionIds,
                                   ServiceContext serviceContext)
                                   throws PortalException,
                                          SystemException
Throws:
PortalException
SystemException

deleteProductVersion

void deleteProductVersion(long productVersionId)
                          throws PortalException,
                                 SystemException
Throws:
PortalException
SystemException

deleteProductVersion

void deleteProductVersion(SCProductVersion productVersion)
                          throws SystemException
Throws:
SystemException

deleteProductVersions

void deleteProductVersions(long productEntryId)
                           throws SystemException
Throws:
SystemException

getProductVersion

@Transactional(propagation=SUPPORTS,
               readOnly=true)
SCProductVersion getProductVersion(long productVersionId)
                                   throws PortalException,
                                          SystemException
Throws:
PortalException
SystemException

getProductVersionByDirectDownloadURL

@Transactional(propagation=SUPPORTS,
               readOnly=true)
SCProductVersion getProductVersionByDirectDownloadURL(String directDownloadURL)
                                                      throws PortalException,
                                                             SystemException
Throws:
PortalException
SystemException

getProductVersions

@Transactional(propagation=SUPPORTS,
               readOnly=true)
List<SCProductVersion> getProductVersions(long productEntryId,
                                                                                   int start,
                                                                                   int end)
                                          throws SystemException
Throws:
SystemException

getProductVersionsCount

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int getProductVersionsCount(long productEntryId)
                            throws SystemException
Throws:
SystemException

updateProductVersion

SCProductVersion updateProductVersion(long productVersionId,
                                      String version,
                                      String changeLog,
                                      String downloadPageURL,
                                      String directDownloadURL,
                                      boolean testDirectDownloadURL,
                                      boolean repoStoreArtifact,
                                      long[] frameworkVersionIds)
                                      throws PortalException,
                                             SystemException
Throws:
PortalException
SystemException

Liferay 6.0-ee