@ProviderType
public class SCProductVersionLocalServiceUtil
extends java.lang.Object
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.SCProductVersionLocalService,
com.liferay.portlet.softwarecatalog.service.base.SCProductVersionLocalServiceBaseImpl,
com.liferay.portlet.softwarecatalog.service.impl.SCProductVersionLocalServiceImpl| Constructor and Description |
|---|
SCProductVersionLocalServiceUtil() |
| Modifier and Type | Method and Description |
|---|---|
static SCProductVersion |
addProductVersion(long userId,
long productEntryId,
java.lang.String version,
java.lang.String changeLog,
java.lang.String downloadPageURL,
java.lang.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,
java.util.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,
java.util.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> java.util.List<T> |
dynamicQuery(DynamicQuery dynamicQuery)
Performs a dynamic query on the database and returns the matching rows.
|
static <T> java.util.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> java.util.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 java.lang.String |
getBeanIdentifier()
Returns the Spring bean ID for this bean.
|
static PersistedModel |
getPersistedModel(java.io.Serializable primaryKeyObj) |
static SCProductVersion |
getProductVersion(long productVersionId) |
static SCProductVersion |
getProductVersionByDirectDownloadURL(java.lang.String directDownloadURL) |
static java.util.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 java.util.List<SCProductVersion> |
getSCFrameworkVersionSCProductVersions(long frameworkVersionId) |
static java.util.List<SCProductVersion> |
getSCFrameworkVersionSCProductVersions(long frameworkVersionId,
int start,
int end) |
static java.util.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 java.util.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(java.lang.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,
java.lang.String version,
java.lang.String changeLog,
java.lang.String downloadPageURL,
java.lang.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.
|
public static SCProductVersion addProductVersion(long userId, long productEntryId, java.lang.String version, java.lang.String changeLog, java.lang.String downloadPageURL, java.lang.String directDownloadURL, boolean testDirectDownloadURL, boolean repoStoreArtifact, long[] frameworkVersionIds, ServiceContext serviceContext) throws PortalException
PortalExceptionpublic static void addSCFrameworkVersionSCProductVersion(long frameworkVersionId,
long productVersionId)
public static void addSCFrameworkVersionSCProductVersion(long frameworkVersionId,
SCProductVersion scProductVersion)
public static void addSCFrameworkVersionSCProductVersions(long frameworkVersionId,
java.util.List<SCProductVersion> SCProductVersions)
public static void addSCFrameworkVersionSCProductVersions(long frameworkVersionId,
long[] productVersionIds)
public static SCProductVersion addSCProductVersion(SCProductVersion scProductVersion)
scProductVersion - the s c product versionpublic static void clearSCFrameworkVersionSCProductVersions(long frameworkVersionId)
public static SCProductVersion createSCProductVersion(long productVersionId)
productVersionId - the primary key for the new s c product versionpublic static PersistedModel deletePersistedModel(PersistedModel persistedModel) throws PortalException
PortalExceptionpublic static void deleteProductVersion(SCProductVersion productVersion)
public static void deleteProductVersion(long productVersionId)
throws PortalException
PortalExceptionpublic static void deleteProductVersions(long productEntryId)
public static void deleteSCFrameworkVersionSCProductVersion(long frameworkVersionId,
long productVersionId)
public static void deleteSCFrameworkVersionSCProductVersion(long frameworkVersionId,
SCProductVersion scProductVersion)
public static void deleteSCFrameworkVersionSCProductVersions(long frameworkVersionId,
java.util.List<SCProductVersion> SCProductVersions)
public static void deleteSCFrameworkVersionSCProductVersions(long frameworkVersionId,
long[] productVersionIds)
public static SCProductVersion deleteSCProductVersion(long productVersionId) throws PortalException
productVersionId - the primary key of the s c product versionPortalException - if a s c product version with the primary key could not be foundpublic static SCProductVersion deleteSCProductVersion(SCProductVersion scProductVersion)
scProductVersion - the s c product versionpublic static DynamicQuery dynamicQuery()
public static <T> java.util.List<T> dynamicQuery(DynamicQuery dynamicQuery)
dynamicQuery - the dynamic querypublic static <T> java.util.List<T> dynamicQuery(DynamicQuery dynamicQuery, int start, int end)
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.
dynamicQuery - the dynamic querystart - the lower bound of the range of model instancesend - the upper bound of the range of model instances (not inclusive)public static <T> java.util.List<T> dynamicQuery(DynamicQuery dynamicQuery, int start, int end, OrderByComparator<T> orderByComparator)
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.
dynamicQuery - the dynamic querystart - the lower bound of the range of model instancesend - the upper bound of the range of model instances (not inclusive)orderByComparator - the comparator to order the results by (optionally null)public static long dynamicQueryCount(DynamicQuery dynamicQuery)
dynamicQuery - the dynamic querypublic static long dynamicQueryCount(DynamicQuery dynamicQuery, Projection projection)
dynamicQuery - the dynamic queryprojection - the projection to apply to the querypublic static SCProductVersion fetchSCProductVersion(long productVersionId)
public static ActionableDynamicQuery getActionableDynamicQuery()
public static java.lang.String getBeanIdentifier()
public static PersistedModel getPersistedModel(java.io.Serializable primaryKeyObj) throws PortalException
PortalExceptionpublic static SCProductVersion getProductVersion(long productVersionId) throws PortalException
PortalExceptionpublic static SCProductVersion getProductVersionByDirectDownloadURL(java.lang.String directDownloadURL) throws PortalException
PortalExceptionpublic static java.util.List<SCProductVersion> getProductVersions(long productEntryId, int start, int end)
public static int getProductVersionsCount(long productEntryId)
public static long[] getSCFrameworkVersionPrimaryKeys(long productVersionId)
productVersionId - the productVersionId of the s c product versionpublic static java.util.List<SCProductVersion> getSCFrameworkVersionSCProductVersions(long frameworkVersionId)
public static java.util.List<SCProductVersion> getSCFrameworkVersionSCProductVersions(long frameworkVersionId, int start, int end)
public static java.util.List<SCProductVersion> getSCFrameworkVersionSCProductVersions(long frameworkVersionId, int start, int end, OrderByComparator<SCProductVersion> orderByComparator)
public static int getSCFrameworkVersionSCProductVersionsCount(long frameworkVersionId)
public static SCProductVersion getSCProductVersion(long productVersionId) throws PortalException
productVersionId - the primary key of the s c product versionPortalException - if a s c product version with the primary key could not be foundpublic static java.util.List<SCProductVersion> getSCProductVersions(int start, int end)
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.
start - the lower bound of the range of s c product versionsend - the upper bound of the range of s c product versions (not inclusive)public static int getSCProductVersionsCount()
public static boolean hasSCFrameworkVersionSCProductVersion(long frameworkVersionId,
long productVersionId)
public static boolean hasSCFrameworkVersionSCProductVersions(long frameworkVersionId)
public static void setBeanIdentifier(java.lang.String beanIdentifier)
beanIdentifier - the Spring bean ID for this beanpublic static void setSCFrameworkVersionSCProductVersions(long frameworkVersionId,
long[] productVersionIds)
public static SCProductVersion updateProductVersion(long productVersionId, java.lang.String version, java.lang.String changeLog, java.lang.String downloadPageURL, java.lang.String directDownloadURL, boolean testDirectDownloadURL, boolean repoStoreArtifact, long[] frameworkVersionIds) throws PortalException
PortalExceptionpublic static SCProductVersion updateSCProductVersion(SCProductVersion scProductVersion)
scProductVersion - the s c product versionpublic static SCProductVersionLocalService getService()
@Deprecated public void setService(SCProductVersionLocalService service)