public class LayoutClassedModelUsageLocalServiceUtil
extends java.lang.Object
com.liferay.layout.service.impl.LayoutClassedModelUsageLocalServiceImpl
and
is an 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.LayoutClassedModelUsageLocalService
Constructor and Description |
---|
LayoutClassedModelUsageLocalServiceUtil() |
Modifier and Type | Method and Description |
---|---|
static LayoutClassedModelUsage |
addDefaultLayoutClassedModelUsage(long groupId,
long classNameId,
long classPK,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
static LayoutClassedModelUsage |
addLayoutClassedModelUsage(LayoutClassedModelUsage layoutClassedModelUsage)
Adds the layout classed model usage to the database.
|
static LayoutClassedModelUsage |
addLayoutClassedModelUsage(long groupId,
long classNameId,
long classPK,
java.lang.String containerKey,
long containerType,
long plid,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
static LayoutClassedModelUsage |
createLayoutClassedModelUsage(long layoutClassedModelUsageId)
Creates a new layout classed model usage with the primary key.
|
static com.liferay.portal.kernel.model.PersistedModel |
createPersistedModel(java.io.Serializable primaryKeyObj) |
static LayoutClassedModelUsage |
deleteLayoutClassedModelUsage(LayoutClassedModelUsage layoutClassedModelUsage)
Deletes the layout classed model usage from the database.
|
static LayoutClassedModelUsage |
deleteLayoutClassedModelUsage(long layoutClassedModelUsageId)
Deletes the layout classed model usage with the primary key from the database.
|
static void |
deleteLayoutClassedModelUsages(long classNameId,
long classPK) |
static void |
deleteLayoutClassedModelUsages(java.lang.String containerKey,
long containerType,
long plid) |
static void |
deleteLayoutClassedModelUsagesByPlid(long plid) |
static com.liferay.portal.kernel.model.PersistedModel |
deletePersistedModel(com.liferay.portal.kernel.model.PersistedModel persistedModel) |
static <T> T |
dslQuery(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) |
static int |
dslQueryCount(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) |
static com.liferay.portal.kernel.dao.orm.DynamicQuery |
dynamicQuery() |
static <T> java.util.List<T> |
dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
Performs a dynamic query on the database and returns the matching rows.
|
static <T> java.util.List<T> |
dynamicQuery(com.liferay.portal.kernel.dao.orm.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(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator)
Performs a dynamic query on the database and returns an ordered range of the matching rows.
|
static long |
dynamicQueryCount(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
Returns the number of rows matching the dynamic query.
|
static long |
dynamicQueryCount(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
com.liferay.portal.kernel.dao.orm.Projection projection)
Returns the number of rows matching the dynamic query.
|
static LayoutClassedModelUsage |
fetchLayoutClassedModelUsage(long layoutClassedModelUsageId) |
static LayoutClassedModelUsage |
fetchLayoutClassedModelUsage(long classNameId,
long classPK,
java.lang.String containerKey,
long containerType,
long plid) |
static LayoutClassedModelUsage |
fetchLayoutClassedModelUsageByUuidAndGroupId(java.lang.String uuid,
long groupId)
Returns the layout classed model usage matching the UUID and group.
|
static com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery |
getActionableDynamicQuery() |
static com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuery |
getExportActionableDynamicQuery(com.liferay.exportimport.kernel.lar.PortletDataContext portletDataContext) |
static com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery |
getIndexableActionableDynamicQuery() |
static LayoutClassedModelUsage |
getLayoutClassedModelUsage(long layoutClassedModelUsageId)
Returns the layout classed model usage with the primary key.
|
static LayoutClassedModelUsage |
getLayoutClassedModelUsageByUuidAndGroupId(java.lang.String uuid,
long groupId)
Returns the layout classed model usage matching the UUID and group.
|
static java.util.List<LayoutClassedModelUsage> |
getLayoutClassedModelUsages(int start,
int end)
Returns a range of all the layout classed model usages.
|
static java.util.List<LayoutClassedModelUsage> |
getLayoutClassedModelUsages(long classNameId,
long classPK) |
static java.util.List<LayoutClassedModelUsage> |
getLayoutClassedModelUsages(long classNameId,
long classPK,
int type,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<LayoutClassedModelUsage> orderByComparator) |
static java.util.List<LayoutClassedModelUsage> |
getLayoutClassedModelUsages(long classNameId,
long classPK,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<LayoutClassedModelUsage> orderByComparator) |
static java.util.List<LayoutClassedModelUsage> |
getLayoutClassedModelUsagesByPlid(long plid) |
static java.util.List<LayoutClassedModelUsage> |
getLayoutClassedModelUsagesByUuidAndCompanyId(java.lang.String uuid,
long companyId)
Returns all the layout classed model usages matching the UUID and company.
|
static java.util.List<LayoutClassedModelUsage> |
getLayoutClassedModelUsagesByUuidAndCompanyId(java.lang.String uuid,
long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<LayoutClassedModelUsage> orderByComparator)
Returns a range of layout classed model usages matching the UUID and company.
|
static int |
getLayoutClassedModelUsagesCount()
Returns the number of layout classed model usages.
|
static int |
getLayoutClassedModelUsagesCount(long classNameId,
long classPK) |
static int |
getLayoutClassedModelUsagesCount(long classNameId,
long classPK,
int type) |
static java.lang.String |
getOSGiServiceIdentifier()
Returns the OSGi service identifier.
|
static com.liferay.portal.kernel.model.PersistedModel |
getPersistedModel(java.io.Serializable primaryKeyObj) |
static LayoutClassedModelUsageLocalService |
getService() |
static int |
getUniqueLayoutClassedModelUsagesCount(long classNameId,
long classPK) |
static boolean |
hasDefaultLayoutClassedModelUsage(long classNameId,
long classPK) |
static LayoutClassedModelUsage |
updateLayoutClassedModelUsage(LayoutClassedModelUsage layoutClassedModelUsage)
Updates the layout classed model usage in the database or adds it if it does not yet exist.
|
public LayoutClassedModelUsageLocalServiceUtil()
public static LayoutClassedModelUsage addDefaultLayoutClassedModelUsage(long groupId, long classNameId, long classPK, com.liferay.portal.kernel.service.ServiceContext serviceContext)
public static LayoutClassedModelUsage addLayoutClassedModelUsage(LayoutClassedModelUsage layoutClassedModelUsage)
Important: Inspect LayoutClassedModelUsageLocalServiceImpl for overloaded versions of the method. If provided, use these entry points to the API, as the implementation logic may require the additional parameters defined there.
layoutClassedModelUsage
- the layout classed model usagepublic static LayoutClassedModelUsage addLayoutClassedModelUsage(long groupId, long classNameId, long classPK, java.lang.String containerKey, long containerType, long plid, com.liferay.portal.kernel.service.ServiceContext serviceContext)
public static LayoutClassedModelUsage createLayoutClassedModelUsage(long layoutClassedModelUsageId)
layoutClassedModelUsageId
- the primary key for the new layout classed model usagepublic static com.liferay.portal.kernel.model.PersistedModel createPersistedModel(java.io.Serializable primaryKeyObj) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static LayoutClassedModelUsage deleteLayoutClassedModelUsage(LayoutClassedModelUsage layoutClassedModelUsage)
Important: Inspect LayoutClassedModelUsageLocalServiceImpl for overloaded versions of the method. If provided, use these entry points to the API, as the implementation logic may require the additional parameters defined there.
layoutClassedModelUsage
- the layout classed model usagepublic static LayoutClassedModelUsage deleteLayoutClassedModelUsage(long layoutClassedModelUsageId) throws com.liferay.portal.kernel.exception.PortalException
Important: Inspect LayoutClassedModelUsageLocalServiceImpl for overloaded versions of the method. If provided, use these entry points to the API, as the implementation logic may require the additional parameters defined there.
layoutClassedModelUsageId
- the primary key of the layout classed model usagecom.liferay.portal.kernel.exception.PortalException
- if a layout classed model usage with the primary key could not be foundpublic static void deleteLayoutClassedModelUsages(long classNameId, long classPK)
public static void deleteLayoutClassedModelUsages(java.lang.String containerKey, long containerType, long plid)
public static void deleteLayoutClassedModelUsagesByPlid(long plid)
public static com.liferay.portal.kernel.model.PersistedModel deletePersistedModel(com.liferay.portal.kernel.model.PersistedModel persistedModel) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static <T> T dslQuery(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery)
public static int dslQueryCount(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery)
public static com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery()
public static <T> java.util.List<T> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
dynamicQuery
- the dynamic querypublic static <T> java.util.List<T> dynamicQuery(com.liferay.portal.kernel.dao.orm.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 com.liferay.portal.kernel.dao.orm.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, then the query will include the default ORDER BY logic from com.liferay.layout.model.impl.LayoutClassedModelUsageModelImpl
.
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(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.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 com.liferay.portal.kernel.dao.orm.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, then the query will include the default ORDER BY logic from com.liferay.layout.model.impl.LayoutClassedModelUsageModelImpl
.
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(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
dynamicQuery
- the dynamic querypublic static long dynamicQueryCount(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, com.liferay.portal.kernel.dao.orm.Projection projection)
dynamicQuery
- the dynamic queryprojection
- the projection to apply to the querypublic static LayoutClassedModelUsage fetchLayoutClassedModelUsage(long layoutClassedModelUsageId)
public static LayoutClassedModelUsage fetchLayoutClassedModelUsage(long classNameId, long classPK, java.lang.String containerKey, long containerType, long plid)
public static LayoutClassedModelUsage fetchLayoutClassedModelUsageByUuidAndGroupId(java.lang.String uuid, long groupId)
uuid
- the layout classed model usage's UUIDgroupId
- the primary key of the groupnull
if a matching layout classed model usage could not be foundpublic static com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery()
public static com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuery getExportActionableDynamicQuery(com.liferay.exportimport.kernel.lar.PortletDataContext portletDataContext)
public static com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery getIndexableActionableDynamicQuery()
public static LayoutClassedModelUsage getLayoutClassedModelUsage(long layoutClassedModelUsageId) throws com.liferay.portal.kernel.exception.PortalException
layoutClassedModelUsageId
- the primary key of the layout classed model usagecom.liferay.portal.kernel.exception.PortalException
- if a layout classed model usage with the primary key could not be foundpublic static LayoutClassedModelUsage getLayoutClassedModelUsageByUuidAndGroupId(java.lang.String uuid, long groupId) throws com.liferay.portal.kernel.exception.PortalException
uuid
- the layout classed model usage's UUIDgroupId
- the primary key of the groupcom.liferay.portal.kernel.exception.PortalException
- if a matching layout classed model usage could not be foundpublic static java.util.List<LayoutClassedModelUsage> getLayoutClassedModelUsages(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 com.liferay.portal.kernel.dao.orm.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, then the query will include the default ORDER BY logic from com.liferay.layout.model.impl.LayoutClassedModelUsageModelImpl
.
start
- the lower bound of the range of layout classed model usagesend
- the upper bound of the range of layout classed model usages (not inclusive)public static java.util.List<LayoutClassedModelUsage> getLayoutClassedModelUsages(long classNameId, long classPK)
public static java.util.List<LayoutClassedModelUsage> getLayoutClassedModelUsages(long classNameId, long classPK, int type, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<LayoutClassedModelUsage> orderByComparator)
public static java.util.List<LayoutClassedModelUsage> getLayoutClassedModelUsages(long classNameId, long classPK, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<LayoutClassedModelUsage> orderByComparator)
public static java.util.List<LayoutClassedModelUsage> getLayoutClassedModelUsagesByPlid(long plid)
public static java.util.List<LayoutClassedModelUsage> getLayoutClassedModelUsagesByUuidAndCompanyId(java.lang.String uuid, long companyId)
uuid
- the UUID of the layout classed model usagescompanyId
- the primary key of the companypublic static java.util.List<LayoutClassedModelUsage> getLayoutClassedModelUsagesByUuidAndCompanyId(java.lang.String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<LayoutClassedModelUsage> orderByComparator)
uuid
- the UUID of the layout classed model usagescompanyId
- the primary key of the companystart
- the lower bound of the range of layout classed model usagesend
- the upper bound of the range of layout classed model usages (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static int getLayoutClassedModelUsagesCount()
public static int getLayoutClassedModelUsagesCount(long classNameId, long classPK)
public static int getLayoutClassedModelUsagesCount(long classNameId, long classPK, int type)
public static java.lang.String getOSGiServiceIdentifier()
public static com.liferay.portal.kernel.model.PersistedModel getPersistedModel(java.io.Serializable primaryKeyObj) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static int getUniqueLayoutClassedModelUsagesCount(long classNameId, long classPK)
public static boolean hasDefaultLayoutClassedModelUsage(long classNameId, long classPK)
public static LayoutClassedModelUsage updateLayoutClassedModelUsage(LayoutClassedModelUsage layoutClassedModelUsage)
Important: Inspect LayoutClassedModelUsageLocalServiceImpl for overloaded versions of the method. If provided, use these entry points to the API, as the implementation logic may require the additional parameters defined there.
layoutClassedModelUsage
- the layout classed model usagepublic static LayoutClassedModelUsageLocalService getService()