Liferay 7.0-ce-m6

com.liferay.portlet.softwarecatalog.service
Class SCProductVersionLocalServiceUtil

java.lang.Object
  extended by com.liferay.portlet.softwarecatalog.service.SCProductVersionLocalServiceUtil

@ProviderType
public class SCProductVersionLocalServiceUtil
extends Object

Provides the local service utility for SCProductVersion. This utility wraps com.liferay.portlet.softwarecatalog.service.impl.SCProductVersionLocalServiceImpl and is the primary access point for service operations in application layer code running on the local server. 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:
SCProductVersionLocalService, com.liferay.portlet.softwarecatalog.service.base.SCProductVersionLocalServiceBaseImpl, com.liferay.portlet.softwarecatalog.service.impl.SCProductVersionLocalServiceImpl

Constructor Summary
SCProductVersionLocalServiceUtil()
           
 
Method Summary
static SCProductVersion addProductVersion(long userId, long productEntryId, String version, String changeLog, String downloadPageURL, String directDownloadURL, boolean testDirectDownloadURL, boolean repoStoreArtifact, long[] frameworkVersionIds, ServiceContext serviceContext)
           
static void addSCFrameworkVersionSCProductVersion(long frameworkVersionId, long productVersionId)
           
static void addSCFrameworkVersionSCProductVersion(long frameworkVersionId, SCProductVersion scProductVersion)
           
static void addSCFrameworkVersionSCProductVersions(long frameworkVersionId, List<SCProductVersion> SCProductVersions)
           
static void addSCFrameworkVersionSCProductVersions(long frameworkVersionId, long[] productVersionIds)
           
static SCProductVersion addSCProductVersion(SCProductVersion scProductVersion)
          Adds the s c product version to the database.
static void clearSCFrameworkVersionSCProductVersions(long frameworkVersionId)
           
static SCProductVersion createSCProductVersion(long productVersionId)
          Creates a new s c product version with the primary key.
static PersistedModel deletePersistedModel(PersistedModel persistedModel)
           
static void deleteProductVersion(long productVersionId)
           
static void deleteProductVersion(SCProductVersion productVersion)
           
static void deleteProductVersions(long productEntryId)
           
static void deleteSCFrameworkVersionSCProductVersion(long frameworkVersionId, long productVersionId)
           
static void deleteSCFrameworkVersionSCProductVersion(long frameworkVersionId, SCProductVersion scProductVersion)
           
static void deleteSCFrameworkVersionSCProductVersions(long frameworkVersionId, List<SCProductVersion> SCProductVersions)
           
static void deleteSCFrameworkVersionSCProductVersions(long frameworkVersionId, long[] productVersionIds)
           
static SCProductVersion deleteSCProductVersion(long productVersionId)
          Deletes the s c product version with the primary key from the database.
static SCProductVersion deleteSCProductVersion(SCProductVersion scProductVersion)
          Deletes the s c product version from the database.
static DynamicQuery dynamicQuery()
           
static
<T> List<T>
dynamicQuery(DynamicQuery dynamicQuery)
          Performs a dynamic query on the database and returns the matching rows.
static
<T> List<T>
dynamicQuery(DynamicQuery dynamicQuery, int start, int end)
          Performs a dynamic query on the database and returns a range of the matching rows.
static
<T> List<T>
dynamicQuery(DynamicQuery dynamicQuery, int start, int end, OrderByComparator<T> orderByComparator)
          Performs a dynamic query on the database and returns an ordered range of the matching rows.
static long dynamicQueryCount(DynamicQuery dynamicQuery)
          Returns the number of rows matching the dynamic query.
static long dynamicQueryCount(DynamicQuery dynamicQuery, Projection projection)
          Returns the number of rows matching the dynamic query.
static SCProductVersion fetchSCProductVersion(long productVersionId)
           
static ActionableDynamicQuery getActionableDynamicQuery()
           
static String getBeanIdentifier()
          Returns the Spring bean ID for this bean.
static PersistedModel getPersistedModel(Serializable primaryKeyObj)
           
static SCProductVersion getProductVersion(long productVersionId)
           
static SCProductVersion getProductVersionByDirectDownloadURL(String directDownloadURL)
           
static List<SCProductVersion> getProductVersions(long productEntryId, int start, int end)
           
static int getProductVersionsCount(long productEntryId)
           
static long[] getSCFrameworkVersionPrimaryKeys(long productVersionId)
          Returns the frameworkVersionIds of the s c framework versions associated with the s c product version.
static List<SCProductVersion> getSCFrameworkVersionSCProductVersions(long frameworkVersionId)
           
static List<SCProductVersion> getSCFrameworkVersionSCProductVersions(long frameworkVersionId, int start, int end)
           
static List<SCProductVersion> getSCFrameworkVersionSCProductVersions(long frameworkVersionId, int start, int end, OrderByComparator<SCProductVersion> orderByComparator)
           
static int getSCFrameworkVersionSCProductVersionsCount(long frameworkVersionId)
           
static SCProductVersion getSCProductVersion(long productVersionId)
          Returns the s c product version with the primary key.
static List<SCProductVersion> getSCProductVersions(int start, int end)
          Returns a range of all the s c product versions.
static int getSCProductVersionsCount()
          Returns the number of s c product versions.
static SCProductVersionLocalService getService()
           
static boolean hasSCFrameworkVersionSCProductVersion(long frameworkVersionId, long productVersionId)
           
static boolean hasSCFrameworkVersionSCProductVersions(long frameworkVersionId)
           
static void setBeanIdentifier(String beanIdentifier)
          Sets the Spring bean ID for this bean.
static void setSCFrameworkVersionSCProductVersions(long frameworkVersionId, long[] productVersionIds)
           
 void setService(SCProductVersionLocalService service)
          Deprecated. As of 6.2.0
static SCProductVersion updateProductVersion(long productVersionId, String version, String changeLog, String downloadPageURL, String directDownloadURL, boolean testDirectDownloadURL, boolean repoStoreArtifact, long[] frameworkVersionIds)
           
static SCProductVersion updateSCProductVersion(SCProductVersion scProductVersion)
          Updates the s c product version in the database or adds it if it does not yet exist.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SCProductVersionLocalServiceUtil

public SCProductVersionLocalServiceUtil()
Method Detail

addProductVersion

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

addSCFrameworkVersionSCProductVersion

public static void addSCFrameworkVersionSCProductVersion(long frameworkVersionId,
                                                         long productVersionId)

addSCFrameworkVersionSCProductVersion

public static void addSCFrameworkVersionSCProductVersion(long frameworkVersionId,
                                                         SCProductVersion scProductVersion)

addSCFrameworkVersionSCProductVersions

public static void addSCFrameworkVersionSCProductVersions(long frameworkVersionId,
                                                          List<SCProductVersion> SCProductVersions)

addSCFrameworkVersionSCProductVersions

public static void addSCFrameworkVersionSCProductVersions(long frameworkVersionId,
                                                          long[] productVersionIds)

addSCProductVersion

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

Parameters:
scProductVersion - the s c product version
Returns:
the s c product version that was added

clearSCFrameworkVersionSCProductVersions

public static void clearSCFrameworkVersionSCProductVersions(long frameworkVersionId)

createSCProductVersion

public static 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

deletePersistedModel

public static PersistedModel deletePersistedModel(PersistedModel persistedModel)
                                           throws PortalException
Throws:
PortalException

deleteProductVersion

public static void deleteProductVersion(SCProductVersion productVersion)

deleteProductVersion

public static void deleteProductVersion(long productVersionId)
                                 throws PortalException
Throws:
PortalException

deleteProductVersions

public static void deleteProductVersions(long productEntryId)

deleteSCFrameworkVersionSCProductVersion

public static void deleteSCFrameworkVersionSCProductVersion(long frameworkVersionId,
                                                            long productVersionId)

deleteSCFrameworkVersionSCProductVersion

public static void deleteSCFrameworkVersionSCProductVersion(long frameworkVersionId,
                                                            SCProductVersion scProductVersion)

deleteSCFrameworkVersionSCProductVersions

public static void deleteSCFrameworkVersionSCProductVersions(long frameworkVersionId,
                                                             List<SCProductVersion> SCProductVersions)

deleteSCFrameworkVersionSCProductVersions

public static void deleteSCFrameworkVersionSCProductVersions(long frameworkVersionId,
                                                             long[] productVersionIds)

deleteSCProductVersion

public static SCProductVersion deleteSCProductVersion(long productVersionId)
                                               throws PortalException
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
Returns:
the s c product version that was removed
Throws:
PortalException - if a s c product version with the primary key could not be found

deleteSCProductVersion

public static SCProductVersion deleteSCProductVersion(SCProductVersion scProductVersion)
Deletes the s c product version from the database. Also notifies the appropriate model listeners.

Parameters:
scProductVersion - the s c product version
Returns:
the s c product version that was removed

dynamicQuery

public static DynamicQuery dynamicQuery()

dynamicQuery

public static <T> List<T> dynamicQuery(DynamicQuery dynamicQuery)
Performs a dynamic query on the database and returns the matching rows.

Parameters:
dynamicQuery - the dynamic query
Returns:
the matching rows

dynamicQuery

public static <T> List<T> dynamicQuery(DynamicQuery dynamicQuery,
                                       int start,
                                       int end)
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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from com.liferay.portlet.softwarecatalog.model.impl.SCProductVersionModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Parameters:
dynamicQuery - the dynamic query
start - the lower bound of the range of model instances
end - the upper bound of the range of model instances (not inclusive)
Returns:
the range of matching rows

dynamicQuery

public static <T> List<T> dynamicQuery(DynamicQuery dynamicQuery,
                                       int start,
                                       int end,
                                       OrderByComparator<T> orderByComparator)
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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from com.liferay.portlet.softwarecatalog.model.impl.SCProductVersionModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Parameters:
dynamicQuery - the dynamic query
start - the lower bound of the range of model instances
end - the upper bound of the range of model instances (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching rows

dynamicQueryCount

public static long dynamicQueryCount(DynamicQuery dynamicQuery)
Returns the number of rows matching the dynamic query.

Parameters:
dynamicQuery - the dynamic query
Returns:
the number of rows matching the dynamic query

dynamicQueryCount

public static long dynamicQueryCount(DynamicQuery dynamicQuery,
                                     Projection projection)
Returns the number of rows matching the dynamic query.

Parameters:
dynamicQuery - the dynamic query
projection - the projection to apply to the query
Returns:
the number of rows matching the dynamic query

fetchSCProductVersion

public static SCProductVersion fetchSCProductVersion(long productVersionId)

getActionableDynamicQuery

public static ActionableDynamicQuery getActionableDynamicQuery()

getBeanIdentifier

public static String getBeanIdentifier()
Returns the Spring bean ID for this bean.

Returns:
the Spring bean ID for this bean

getPersistedModel

public static PersistedModel getPersistedModel(Serializable primaryKeyObj)
                                        throws PortalException
Throws:
PortalException

getProductVersion

public static SCProductVersion getProductVersion(long productVersionId)
                                          throws PortalException
Throws:
PortalException

getProductVersionByDirectDownloadURL

public static SCProductVersion getProductVersionByDirectDownloadURL(String directDownloadURL)
                                                             throws PortalException
Throws:
PortalException

getProductVersions

public static List<SCProductVersion> getProductVersions(long productEntryId,
                                                        int start,
                                                        int end)

getProductVersionsCount

public static int getProductVersionsCount(long productEntryId)

getSCFrameworkVersionPrimaryKeys

public static long[] getSCFrameworkVersionPrimaryKeys(long productVersionId)
Returns the frameworkVersionIds of the s c framework versions associated with the s c product version.

Parameters:
productVersionId - the productVersionId of the s c product version
Returns:
long[] the frameworkVersionIds of s c framework versions associated with the s c product version

getSCFrameworkVersionSCProductVersions

public static List<SCProductVersion> getSCFrameworkVersionSCProductVersions(long frameworkVersionId)

getSCFrameworkVersionSCProductVersions

public static List<SCProductVersion> getSCFrameworkVersionSCProductVersions(long frameworkVersionId,
                                                                            int start,
                                                                            int end)

getSCFrameworkVersionSCProductVersions

public static List<SCProductVersion> getSCFrameworkVersionSCProductVersions(long frameworkVersionId,
                                                                            int start,
                                                                            int end,
                                                                            OrderByComparator<SCProductVersion> orderByComparator)

getSCFrameworkVersionSCProductVersionsCount

public static int getSCFrameworkVersionSCProductVersionsCount(long frameworkVersionId)

getSCProductVersion

public static SCProductVersion getSCProductVersion(long productVersionId)
                                            throws PortalException
Returns the s c product version with the primary key.

Parameters:
productVersionId - the primary key of the s c product version
Returns:
the s c product version
Throws:
PortalException - if a s c product version with the primary key could not be found

getSCProductVersions

public static List<SCProductVersion> getSCProductVersions(int start,
                                                          int end)
Returns 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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from com.liferay.portlet.softwarecatalog.model.impl.SCProductVersionModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Parameters:
start - the lower bound of the range of s c product versions
end - the upper bound of the range of s c product versions (not inclusive)
Returns:
the range of s c product versions

getSCProductVersionsCount

public static int getSCProductVersionsCount()
Returns the number of s c product versions.

Returns:
the number of s c product versions

hasSCFrameworkVersionSCProductVersion

public static boolean hasSCFrameworkVersionSCProductVersion(long frameworkVersionId,
                                                            long productVersionId)

hasSCFrameworkVersionSCProductVersions

public static boolean hasSCFrameworkVersionSCProductVersions(long frameworkVersionId)

setBeanIdentifier

public static void setBeanIdentifier(String beanIdentifier)
Sets the Spring bean ID for this bean.

Parameters:
beanIdentifier - the Spring bean ID for this bean

setSCFrameworkVersionSCProductVersions

public static void setSCFrameworkVersionSCProductVersions(long frameworkVersionId,
                                                          long[] productVersionIds)

updateProductVersion

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

updateSCProductVersion

public static SCProductVersion updateSCProductVersion(SCProductVersion scProductVersion)
Updates the s c product version in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.

Parameters:
scProductVersion - the s c product version
Returns:
the s c product version that was updated

getService

public static SCProductVersionLocalService getService()

setService

@Deprecated
public void setService(SCProductVersionLocalService service)
Deprecated. As of 6.2.0


Liferay 7.0-ce-m6