@ProviderType
public class SCProductEntryLocalServiceUtil
extends java.lang.Object
com.liferay.portlet.softwarecatalog.service.impl.SCProductEntryLocalServiceImpl 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.SCProductEntryLocalService,
com.liferay.portlet.softwarecatalog.service.base.SCProductEntryLocalServiceBaseImpl,
com.liferay.portlet.softwarecatalog.service.impl.SCProductEntryLocalServiceImpl| Constructor and Description |
|---|
SCProductEntryLocalServiceUtil() |
| Modifier and Type | Method and Description |
|---|---|
static SCProductEntry |
addProductEntry(long userId,
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<byte[]> thumbnails,
java.util.List<byte[]> fullImages,
ServiceContext serviceContext) |
static void |
addProductEntryResources(long productEntryId,
boolean addGroupPermissions,
boolean addGuestPermissions) |
static void |
addProductEntryResources(long productEntryId,
ModelPermissions modelPermissions) |
static void |
addProductEntryResources(SCProductEntry productEntry,
boolean addGroupPermissions,
boolean addGuestPermissions) |
static void |
addProductEntryResources(SCProductEntry productEntry,
ModelPermissions modelPermissions) |
static void |
addSCLicenseSCProductEntries(long licenseId,
java.util.List<SCProductEntry> SCProductEntries) |
static void |
addSCLicenseSCProductEntries(long licenseId,
long[] productEntryIds) |
static void |
addSCLicenseSCProductEntry(long licenseId,
long productEntryId) |
static void |
addSCLicenseSCProductEntry(long licenseId,
SCProductEntry scProductEntry) |
static SCProductEntry |
addSCProductEntry(SCProductEntry scProductEntry)
Adds the s c product entry to the database.
|
static void |
clearSCLicenseSCProductEntries(long licenseId) |
static SCProductEntry |
createSCProductEntry(long productEntryId)
Creates a new s c product entry with the primary key.
|
static PersistedModel |
deletePersistedModel(PersistedModel persistedModel) |
static void |
deleteProductEntries(long groupId) |
static SCProductEntry |
deleteProductEntry(long productEntryId) |
static SCProductEntry |
deleteProductEntry(SCProductEntry productEntry) |
static void |
deleteSCLicenseSCProductEntries(long licenseId,
java.util.List<SCProductEntry> SCProductEntries) |
static void |
deleteSCLicenseSCProductEntries(long licenseId,
long[] productEntryIds) |
static void |
deleteSCLicenseSCProductEntry(long licenseId,
long productEntryId) |
static void |
deleteSCLicenseSCProductEntry(long licenseId,
SCProductEntry scProductEntry) |
static SCProductEntry |
deleteSCProductEntry(long productEntryId)
Deletes the s c product entry with the primary key from the database.
|
static SCProductEntry |
deleteSCProductEntry(SCProductEntry scProductEntry)
Deletes the s c product entry 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 SCProductEntry |
fetchSCProductEntry(long productEntryId) |
static ActionableDynamicQuery |
getActionableDynamicQuery() |
static java.lang.String |
getBeanIdentifier()
Returns the Spring bean ID for this bean.
|
static java.util.List<SCProductEntry> |
getCompanyProductEntries(long companyId,
int start,
int end) |
static int |
getCompanyProductEntriesCount(long companyId) |
static PersistedModel |
getPersistedModel(java.io.Serializable primaryKeyObj) |
static java.util.List<SCProductEntry> |
getProductEntries(long groupId,
int start,
int end) |
static java.util.List<SCProductEntry> |
getProductEntries(long groupId,
int start,
int end,
OrderByComparator<SCProductEntry> obc) |
static java.util.List<SCProductEntry> |
getProductEntries(long groupId,
long userId,
int start,
int end) |
static java.util.List<SCProductEntry> |
getProductEntries(long groupId,
long userId,
int start,
int end,
OrderByComparator<SCProductEntry> obc) |
static int |
getProductEntriesCount(long groupId) |
static int |
getProductEntriesCount(long groupId,
long userId) |
static SCProductEntry |
getProductEntry(long productEntryId) |
static java.lang.String |
getRepositoryXML(long groupId,
java.lang.String baseImageURL,
java.util.Date oldestDate,
int maxNumOfVersions,
java.util.Properties repoSettings) |
static java.lang.String |
getRepositoryXML(long groupId,
java.lang.String version,
java.lang.String baseImageURL,
java.util.Date oldestDate,
int maxNumOfVersions,
java.util.Properties repoSettings) |
static long[] |
getSCLicensePrimaryKeys(long productEntryId)
Returns the licenseIds of the s c licenses associated with the s c product entry.
|
static java.util.List<SCProductEntry> |
getSCLicenseSCProductEntries(long licenseId) |
static java.util.List<SCProductEntry> |
getSCLicenseSCProductEntries(long licenseId,
int start,
int end) |
static java.util.List<SCProductEntry> |
getSCLicenseSCProductEntries(long licenseId,
int start,
int end,
OrderByComparator<SCProductEntry> orderByComparator) |
static int |
getSCLicenseSCProductEntriesCount(long licenseId) |
static java.util.List<SCProductEntry> |
getSCProductEntries(int start,
int end)
Returns a range of all the s c product entries.
|
static int |
getSCProductEntriesCount()
Returns the number of s c product entries.
|
static SCProductEntry |
getSCProductEntry(long productEntryId)
Returns the s c product entry with the primary key.
|
static SCProductEntryLocalService |
getService() |
static boolean |
hasSCLicenseSCProductEntries(long licenseId) |
static boolean |
hasSCLicenseSCProductEntry(long licenseId,
long productEntryId) |
static void |
setBeanIdentifier(java.lang.String beanIdentifier)
Sets the Spring bean ID for this bean.
|
static void |
setSCLicenseSCProductEntries(long licenseId,
long[] productEntryIds) |
void |
setService(SCProductEntryLocalService service)
Deprecated.
As of 6.2.0
|
static 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<byte[]> thumbnails,
java.util.List<byte[]> fullImages) |
static SCProductEntry |
updateSCProductEntry(SCProductEntry scProductEntry)
Updates the s c product entry in the database or adds it if it does not yet exist.
|
public static SCProductEntry addProductEntry(long userId, 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<byte[]> thumbnails, java.util.List<byte[]> fullImages, ServiceContext serviceContext) throws PortalException
PortalExceptionpublic static void addProductEntryResources(SCProductEntry productEntry, boolean addGroupPermissions, boolean addGuestPermissions) throws PortalException
PortalExceptionpublic static void addProductEntryResources(SCProductEntry productEntry, ModelPermissions modelPermissions) throws PortalException
PortalExceptionpublic static void addProductEntryResources(long productEntryId,
boolean addGroupPermissions,
boolean addGuestPermissions)
throws PortalException
PortalExceptionpublic static void addProductEntryResources(long productEntryId,
ModelPermissions modelPermissions)
throws PortalException
PortalExceptionpublic static void addSCLicenseSCProductEntries(long licenseId,
java.util.List<SCProductEntry> SCProductEntries)
public static void addSCLicenseSCProductEntries(long licenseId,
long[] productEntryIds)
public static void addSCLicenseSCProductEntry(long licenseId,
long productEntryId)
public static void addSCLicenseSCProductEntry(long licenseId,
SCProductEntry scProductEntry)
public static SCProductEntry addSCProductEntry(SCProductEntry scProductEntry)
scProductEntry - the s c product entrypublic static void clearSCLicenseSCProductEntries(long licenseId)
public static SCProductEntry createSCProductEntry(long productEntryId)
productEntryId - the primary key for the new s c product entrypublic static PersistedModel deletePersistedModel(PersistedModel persistedModel) throws PortalException
PortalExceptionpublic static void deleteProductEntries(long groupId)
throws PortalException
PortalExceptionpublic static SCProductEntry deleteProductEntry(SCProductEntry productEntry) throws PortalException
PortalExceptionpublic static SCProductEntry deleteProductEntry(long productEntryId) throws PortalException
PortalExceptionpublic static void deleteSCLicenseSCProductEntries(long licenseId,
java.util.List<SCProductEntry> SCProductEntries)
public static void deleteSCLicenseSCProductEntries(long licenseId,
long[] productEntryIds)
public static void deleteSCLicenseSCProductEntry(long licenseId,
long productEntryId)
public static void deleteSCLicenseSCProductEntry(long licenseId,
SCProductEntry scProductEntry)
public static SCProductEntry deleteSCProductEntry(long productEntryId) throws PortalException
productEntryId - the primary key of the s c product entryPortalException - if a s c product entry with the primary key could not be foundpublic static SCProductEntry deleteSCProductEntry(SCProductEntry scProductEntry)
scProductEntry - the s c product entrypublic 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.SCProductEntryModelImpl. 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.SCProductEntryModelImpl. 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 SCProductEntry fetchSCProductEntry(long productEntryId)
public static ActionableDynamicQuery getActionableDynamicQuery()
public static java.lang.String getBeanIdentifier()
public static java.util.List<SCProductEntry> getCompanyProductEntries(long companyId, int start, int end)
public static int getCompanyProductEntriesCount(long companyId)
public static PersistedModel getPersistedModel(java.io.Serializable primaryKeyObj) throws PortalException
PortalExceptionpublic static java.util.List<SCProductEntry> getProductEntries(long groupId, int start, int end)
public static java.util.List<SCProductEntry> getProductEntries(long groupId, int start, int end, OrderByComparator<SCProductEntry> obc)
public static java.util.List<SCProductEntry> getProductEntries(long groupId, long userId, int start, int end)
public static java.util.List<SCProductEntry> getProductEntries(long groupId, long userId, int start, int end, OrderByComparator<SCProductEntry> obc)
public static int getProductEntriesCount(long groupId)
public static int getProductEntriesCount(long groupId,
long userId)
public static SCProductEntry getProductEntry(long productEntryId) throws PortalException
PortalExceptionpublic static java.lang.String getRepositoryXML(long groupId,
java.lang.String baseImageURL,
java.util.Date oldestDate,
int maxNumOfVersions,
java.util.Properties repoSettings)
public static java.lang.String getRepositoryXML(long groupId,
java.lang.String version,
java.lang.String baseImageURL,
java.util.Date oldestDate,
int maxNumOfVersions,
java.util.Properties repoSettings)
public static long[] getSCLicensePrimaryKeys(long productEntryId)
productEntryId - the productEntryId of the s c product entrypublic static java.util.List<SCProductEntry> getSCLicenseSCProductEntries(long licenseId)
public static java.util.List<SCProductEntry> getSCLicenseSCProductEntries(long licenseId, int start, int end)
public static java.util.List<SCProductEntry> getSCLicenseSCProductEntries(long licenseId, int start, int end, OrderByComparator<SCProductEntry> orderByComparator)
public static int getSCLicenseSCProductEntriesCount(long licenseId)
public static java.util.List<SCProductEntry> getSCProductEntries(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.SCProductEntryModelImpl. 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 entriesend - the upper bound of the range of s c product entries (not inclusive)public static int getSCProductEntriesCount()
public static SCProductEntry getSCProductEntry(long productEntryId) throws PortalException
productEntryId - the primary key of the s c product entryPortalException - if a s c product entry with the primary key could not be foundpublic static boolean hasSCLicenseSCProductEntries(long licenseId)
public static boolean hasSCLicenseSCProductEntry(long licenseId,
long productEntryId)
public static void setBeanIdentifier(java.lang.String beanIdentifier)
beanIdentifier - the Spring bean ID for this beanpublic static void setSCLicenseSCProductEntries(long licenseId,
long[] productEntryIds)
public static 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<byte[]> thumbnails, java.util.List<byte[]> fullImages) throws PortalException
PortalExceptionpublic static SCProductEntry updateSCProductEntry(SCProductEntry scProductEntry)
scProductEntry - the s c product entrypublic static SCProductEntryLocalService getService()
@Deprecated public void setService(SCProductEntryLocalService service)