@ProviderType
public class SCLicenseLocalServiceUtil
extends java.lang.Object
com.liferay.portlet.softwarecatalog.service.impl.SCLicenseLocalServiceImpl 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.SCLicenseLocalService,
com.liferay.portlet.softwarecatalog.service.base.SCLicenseLocalServiceBaseImpl,
com.liferay.portlet.softwarecatalog.service.impl.SCLicenseLocalServiceImpl| Constructor and Description |
|---|
SCLicenseLocalServiceUtil() |
| Modifier and Type | Method and Description |
|---|---|
static SCLicense |
addLicense(java.lang.String name,
java.lang.String url,
boolean openSource,
boolean active,
boolean recommended) |
static SCLicense |
addSCLicense(SCLicense scLicense)
Adds the s c license to the database.
|
static void |
addSCProductEntrySCLicense(long productEntryId,
long licenseId) |
static void |
addSCProductEntrySCLicense(long productEntryId,
SCLicense scLicense) |
static void |
addSCProductEntrySCLicenses(long productEntryId,
java.util.List<SCLicense> SCLicenses) |
static void |
addSCProductEntrySCLicenses(long productEntryId,
long[] licenseIds) |
static void |
clearSCProductEntrySCLicenses(long productEntryId) |
static SCLicense |
createSCLicense(long licenseId)
Creates a new s c license with the primary key.
|
static void |
deleteLicense(long licenseId) |
static void |
deleteLicense(SCLicense license) |
static PersistedModel |
deletePersistedModel(PersistedModel persistedModel) |
static SCLicense |
deleteSCLicense(long licenseId)
Deletes the s c license with the primary key from the database.
|
static SCLicense |
deleteSCLicense(SCLicense scLicense)
Deletes the s c license from the database.
|
static void |
deleteSCProductEntrySCLicense(long productEntryId,
long licenseId) |
static void |
deleteSCProductEntrySCLicense(long productEntryId,
SCLicense scLicense) |
static void |
deleteSCProductEntrySCLicenses(long productEntryId,
java.util.List<SCLicense> SCLicenses) |
static void |
deleteSCProductEntrySCLicenses(long productEntryId,
long[] licenseIds) |
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 SCLicense |
fetchSCLicense(long licenseId) |
static ActionableDynamicQuery |
getActionableDynamicQuery() |
static java.lang.String |
getBeanIdentifier()
Returns the Spring bean ID for this bean.
|
static SCLicense |
getLicense(long licenseId) |
static java.util.List<SCLicense> |
getLicenses() |
static java.util.List<SCLicense> |
getLicenses(boolean active,
boolean recommended) |
static java.util.List<SCLicense> |
getLicenses(boolean active,
boolean recommended,
int start,
int end) |
static java.util.List<SCLicense> |
getLicenses(int start,
int end) |
static int |
getLicensesCount() |
static int |
getLicensesCount(boolean active,
boolean recommended) |
static PersistedModel |
getPersistedModel(java.io.Serializable primaryKeyObj) |
static java.util.List<SCLicense> |
getProductEntryLicenses(long productEntryId) |
static SCLicense |
getSCLicense(long licenseId)
Returns the s c license with the primary key.
|
static java.util.List<SCLicense> |
getSCLicenses(int start,
int end)
Returns a range of all the s c licenses.
|
static int |
getSCLicensesCount()
Returns the number of s c licenses.
|
static long[] |
getSCProductEntryPrimaryKeys(long licenseId)
Returns the productEntryIds of the s c product entries associated with the s c license.
|
static java.util.List<SCLicense> |
getSCProductEntrySCLicenses(long productEntryId) |
static java.util.List<SCLicense> |
getSCProductEntrySCLicenses(long productEntryId,
int start,
int end) |
static java.util.List<SCLicense> |
getSCProductEntrySCLicenses(long productEntryId,
int start,
int end,
OrderByComparator<SCLicense> orderByComparator) |
static int |
getSCProductEntrySCLicensesCount(long productEntryId) |
static SCLicenseLocalService |
getService() |
static boolean |
hasSCProductEntrySCLicense(long productEntryId,
long licenseId) |
static boolean |
hasSCProductEntrySCLicenses(long productEntryId) |
static void |
setBeanIdentifier(java.lang.String beanIdentifier)
Sets the Spring bean ID for this bean.
|
static void |
setSCProductEntrySCLicenses(long productEntryId,
long[] licenseIds) |
void |
setService(SCLicenseLocalService service)
Deprecated.
As of 6.2.0
|
static SCLicense |
updateLicense(long licenseId,
java.lang.String name,
java.lang.String url,
boolean openSource,
boolean active,
boolean recommended) |
static SCLicense |
updateSCLicense(SCLicense scLicense)
Updates the s c license in the database or adds it if it does not yet exist.
|
public static SCLicense addLicense(java.lang.String name, java.lang.String url, boolean openSource, boolean active, boolean recommended) throws PortalException
PortalExceptionpublic static SCLicense addSCLicense(SCLicense scLicense)
scLicense - the s c licensepublic static void addSCProductEntrySCLicense(long productEntryId,
long licenseId)
public static void addSCProductEntrySCLicense(long productEntryId,
SCLicense scLicense)
public static void addSCProductEntrySCLicenses(long productEntryId,
java.util.List<SCLicense> SCLicenses)
public static void addSCProductEntrySCLicenses(long productEntryId,
long[] licenseIds)
public static void clearSCProductEntrySCLicenses(long productEntryId)
public static SCLicense createSCLicense(long licenseId)
licenseId - the primary key for the new s c licensepublic static void deleteLicense(SCLicense license)
public static void deleteLicense(long licenseId)
throws PortalException
PortalExceptionpublic static PersistedModel deletePersistedModel(PersistedModel persistedModel) throws PortalException
PortalExceptionpublic static SCLicense deleteSCLicense(long licenseId) throws PortalException
licenseId - the primary key of the s c licensePortalException - if a s c license with the primary key could not be foundpublic static SCLicense deleteSCLicense(SCLicense scLicense)
scLicense - the s c licensepublic static void deleteSCProductEntrySCLicense(long productEntryId,
long licenseId)
public static void deleteSCProductEntrySCLicense(long productEntryId,
SCLicense scLicense)
public static void deleteSCProductEntrySCLicenses(long productEntryId,
java.util.List<SCLicense> SCLicenses)
public static void deleteSCProductEntrySCLicenses(long productEntryId,
long[] licenseIds)
public 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.SCLicenseModelImpl. 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.SCLicenseModelImpl. 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 SCLicense fetchSCLicense(long licenseId)
public static ActionableDynamicQuery getActionableDynamicQuery()
public static java.lang.String getBeanIdentifier()
public static SCLicense getLicense(long licenseId) throws PortalException
PortalExceptionpublic static java.util.List<SCLicense> getLicenses()
public static java.util.List<SCLicense> getLicenses(boolean active, boolean recommended)
public static java.util.List<SCLicense> getLicenses(boolean active, boolean recommended, int start, int end)
public static java.util.List<SCLicense> getLicenses(int start, int end)
public static int getLicensesCount()
public static int getLicensesCount(boolean active,
boolean recommended)
public static PersistedModel getPersistedModel(java.io.Serializable primaryKeyObj) throws PortalException
PortalExceptionpublic static java.util.List<SCLicense> getProductEntryLicenses(long productEntryId)
public static SCLicense getSCLicense(long licenseId) throws PortalException
licenseId - the primary key of the s c licensePortalException - if a s c license with the primary key could not be foundpublic static java.util.List<SCLicense> getSCLicenses(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.SCLicenseModelImpl. 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 licensesend - the upper bound of the range of s c licenses (not inclusive)public static int getSCLicensesCount()
public static long[] getSCProductEntryPrimaryKeys(long licenseId)
licenseId - the licenseId of the s c licensepublic static java.util.List<SCLicense> getSCProductEntrySCLicenses(long productEntryId)
public static java.util.List<SCLicense> getSCProductEntrySCLicenses(long productEntryId, int start, int end)
public static java.util.List<SCLicense> getSCProductEntrySCLicenses(long productEntryId, int start, int end, OrderByComparator<SCLicense> orderByComparator)
public static int getSCProductEntrySCLicensesCount(long productEntryId)
public static boolean hasSCProductEntrySCLicense(long productEntryId,
long licenseId)
public static boolean hasSCProductEntrySCLicenses(long productEntryId)
public static void setBeanIdentifier(java.lang.String beanIdentifier)
beanIdentifier - the Spring bean ID for this beanpublic static void setSCProductEntrySCLicenses(long productEntryId,
long[] licenseIds)
public static SCLicense updateLicense(long licenseId, java.lang.String name, java.lang.String url, boolean openSource, boolean active, boolean recommended) throws PortalException
PortalExceptionpublic static SCLicense updateSCLicense(SCLicense scLicense)
scLicense - the s c licensepublic static SCLicenseLocalService getService()
@Deprecated public void setService(SCLicenseLocalService service)