|
Liferay 6.0.5 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.liferay.portlet.softwarecatalog.service.SCLicenseLocalServiceUtil
public class SCLicenseLocalServiceUtil
The utility for the s c license local service. This utility wraps SCLicenseLocalServiceImpl
and is the primary access point for service operations in application layer code running on the local server.
Never modify this class directly. Add custom service methods to SCLicenseLocalServiceImpl
and rerun ServiceBuilder to regenerate this class.
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.
SCLicenseLocalService
,
SCLicenseLocalServiceBaseImpl
,
SCLicenseLocalServiceImpl
Constructor Summary | |
---|---|
SCLicenseLocalServiceUtil()
|
Method Summary | |
---|---|
static SCLicense |
addLicense(String name,
String url,
boolean openSource,
boolean active,
boolean recommended)
|
static SCLicense |
addSCLicense(SCLicense scLicense)
Adds the s c license to the database. |
static SCLicense |
createSCLicense(long licenseId)
Creates a new s c license with the primary key. |
static void |
deleteLicense(long licenseId)
|
static void |
deleteSCLicense(long licenseId)
Deletes the s c license with the primary key from the database. |
static void |
deleteSCLicense(SCLicense scLicense)
Deletes the s c license from the database. |
static List |
dynamicQuery(DynamicQuery dynamicQuery)
Performs a dynamic query on the database and returns the matching rows. |
static List |
dynamicQuery(DynamicQuery dynamicQuery,
int start,
int end)
Performs a dynamic query on the database and returns a range of the matching rows. |
static 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. |
static long |
dynamicQueryCount(DynamicQuery dynamicQuery)
Counts the number of rows that match the dynamic query. |
static SCLicense |
getLicense(long licenseId)
|
static List<SCLicense> |
getLicenses()
|
static List<SCLicense> |
getLicenses(boolean active,
boolean recommended)
|
static List<SCLicense> |
getLicenses(boolean active,
boolean recommended,
int start,
int end)
|
static List<SCLicense> |
getLicenses(int start,
int end)
|
static int |
getLicensesCount()
|
static int |
getLicensesCount(boolean active,
boolean recommended)
|
static List<SCLicense> |
getProductEntryLicenses(long productEntryId)
|
static SCLicense |
getSCLicense(long licenseId)
Gets the s c license with the primary key. |
static List<SCLicense> |
getSCLicenses(int start,
int end)
Gets a range of all the s c licenses. |
static int |
getSCLicensesCount()
Gets the number of s c licenses. |
static SCLicenseLocalService |
getService()
|
void |
setService(SCLicenseLocalService service)
|
static SCLicense |
updateLicense(long licenseId,
String name,
String url,
boolean openSource,
boolean active,
boolean recommended)
|
static SCLicense |
updateSCLicense(SCLicense scLicense)
Updates the s c license in the database. |
static SCLicense |
updateSCLicense(SCLicense scLicense,
boolean merge)
Updates the s c license in the database. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SCLicenseLocalServiceUtil()
Method Detail |
---|
public static SCLicense addSCLicense(SCLicense scLicense) throws SystemException
scLicense
- the s c license to add
SystemException
- if a system exception occurredpublic static SCLicense createSCLicense(long licenseId)
licenseId
- the primary key for the new s c license
public static void deleteSCLicense(long licenseId) throws PortalException, SystemException
licenseId
- the primary key of the s c license to delete
PortalException
- if a s c license with the primary key could not be found
SystemException
- if a system exception occurredpublic static void deleteSCLicense(SCLicense scLicense) throws SystemException
scLicense
- the s c license to delete
SystemException
- if a system exception occurredpublic static List dynamicQuery(DynamicQuery dynamicQuery) throws SystemException
dynamicQuery
- the dynamic query to search with
SystemException
- if a system exception occurredpublic static List dynamicQuery(DynamicQuery dynamicQuery, int start, int end) throws SystemException
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.
dynamicQuery
- the dynamic query to search withstart
- the lower bound of the range of model instances to returnend
- the upper bound of the range of model instances to return (not inclusive)
SystemException
- if a system exception occurredpublic static List dynamicQuery(DynamicQuery dynamicQuery, int start, int end, OrderByComparator orderByComparator) throws SystemException
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.
dynamicQuery
- the dynamic query to search withstart
- the lower bound of the range of model instances to returnend
- the upper bound of the range of model instances to return (not inclusive)orderByComparator
- the comparator to order the results by
SystemException
- if a system exception occurredpublic static long dynamicQueryCount(DynamicQuery dynamicQuery) throws SystemException
dynamicQuery
- the dynamic query to search with
SystemException
- if a system exception occurredpublic static SCLicense getSCLicense(long licenseId) throws PortalException, SystemException
licenseId
- the primary key of the s c license to get
PortalException
- if a s c license with the primary key could not be found
SystemException
- if a system exception occurredpublic static List<SCLicense> getSCLicenses(int start, int end) throws SystemException
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.
start
- the lower bound of the range of s c licenses to returnend
- the upper bound of the range of s c licenses to return (not inclusive)
SystemException
- if a system exception occurredpublic static int getSCLicensesCount() throws SystemException
SystemException
- if a system exception occurredpublic static SCLicense updateSCLicense(SCLicense scLicense) throws SystemException
scLicense
- the s c license to update
SystemException
- if a system exception occurredpublic static SCLicense updateSCLicense(SCLicense scLicense, boolean merge) throws SystemException
scLicense
- the s c license to updatemerge
- whether to merge the s c license with the current session. See BatchSession.update(com.liferay.portal.kernel.dao.orm.Session, com.liferay.portal.model.BaseModel, boolean)
for an explanation.
SystemException
- if a system exception occurredpublic static SCLicense addLicense(String name, String url, boolean openSource, boolean active, boolean recommended) throws PortalException, SystemException
PortalException
SystemException
public static void deleteLicense(long licenseId) throws PortalException, SystemException
PortalException
SystemException
public static SCLicense getLicense(long licenseId) throws PortalException, SystemException
PortalException
SystemException
public static List<SCLicense> getLicenses() throws SystemException
SystemException
public static List<SCLicense> getLicenses(boolean active, boolean recommended) throws SystemException
SystemException
public static List<SCLicense> getLicenses(boolean active, boolean recommended, int start, int end) throws SystemException
SystemException
public static List<SCLicense> getLicenses(int start, int end) throws SystemException
SystemException
public static int getLicensesCount() throws SystemException
SystemException
public static int getLicensesCount(boolean active, boolean recommended) throws SystemException
SystemException
public static List<SCLicense> getProductEntryLicenses(long productEntryId) throws SystemException
SystemException
public static SCLicense updateLicense(long licenseId, String name, String url, boolean openSource, boolean active, boolean recommended) throws PortalException, SystemException
PortalException
SystemException
public static SCLicenseLocalService getService()
public void setService(SCLicenseLocalService service)
|
Liferay 6.0.5 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |