@ProviderType
public class LayoutRevisionLocalServiceUtil
extends Object
LayoutRevisionLocalServiceImpl
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.LayoutRevisionLocalService
,
LayoutRevisionLocalServiceBaseImpl
,
LayoutRevisionLocalServiceImpl
Constructor and Description |
---|
LayoutRevisionLocalServiceUtil() |
Modifier and Type | Method and Description |
---|---|
static LayoutRevision |
addLayoutRevision(LayoutRevision layoutRevision)
Adds the layout revision to the database.
|
static LayoutRevision |
addLayoutRevision(long userId,
long layoutSetBranchId,
long layoutBranchId,
long parentLayoutRevisionId,
boolean head,
long plid,
long portletPreferencesPlid,
boolean privateLayout,
String name,
String title,
String description,
String keywords,
String robots,
String typeSettings,
boolean iconImage,
long iconImageId,
String themeId,
String colorSchemeId,
String css,
ServiceContext serviceContext) |
static LayoutRevision |
createLayoutRevision(long layoutRevisionId)
Creates a new layout revision with the primary key.
|
static void |
deleteLayoutLayoutRevisions(long plid) |
static LayoutRevision |
deleteLayoutRevision(LayoutRevision layoutRevision)
Deletes the layout revision from the database.
|
static LayoutRevision |
deleteLayoutRevision(long layoutRevisionId)
Deletes the layout revision with the primary key from the database.
|
static void |
deleteLayoutRevisions(long layoutSetBranchId,
long plid) |
static void |
deleteLayoutRevisions(long layoutSetBranchId,
long layoutBranchId,
long plid) |
static void |
deleteLayoutSetBranchLayoutRevisions(long layoutSetBranchId) |
static PersistedModel |
deletePersistedModel(PersistedModel persistedModel) |
static DynamicQuery |
dynamicQuery() |
static <T> List<T> |
dynamicQuery(DynamicQuery dynamicQuery)
Performs a dynamic query on the database and returns the matching rows.
|
static <T> 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> 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 LayoutRevision |
fetchLastLayoutRevision(long plid,
boolean head) |
static LayoutRevision |
fetchLatestLayoutRevision(long layoutSetBranchId,
long plid) |
static LayoutRevision |
fetchLayoutRevision(long layoutRevisionId) |
static LayoutRevision |
fetchLayoutRevision(long layoutSetBranchId,
boolean head,
long plid)
Deprecated.
As of Judson (7.1.x), with no direct replacement
|
static LayoutRevision |
fetchLayoutRevision(long layoutSetBranchId,
long layoutBranchId,
boolean head,
long plid) |
static ActionableDynamicQuery |
getActionableDynamicQuery() |
static List<LayoutRevision> |
getChildLayoutRevisions(long layoutSetBranchId,
long parentLayoutRevisionId,
long plid) |
static List<LayoutRevision> |
getChildLayoutRevisions(long layoutSetBranchId,
long parentLayoutRevision,
long plid,
int start,
int end,
OrderByComparator<LayoutRevision> orderByComparator) |
static int |
getChildLayoutRevisionsCount(long layoutSetBranchId,
long parentLayoutRevision,
long plid) |
static IndexableActionableDynamicQuery |
getIndexableActionableDynamicQuery() |
static LayoutRevision |
getLayoutRevision(long layoutRevisionId)
Returns the layout revision with the primary key.
|
static LayoutRevision |
getLayoutRevision(long layoutSetBranchId,
long plid,
boolean head)
Deprecated.
As of Judson (7.1.x), with no direct replacement
|
static LayoutRevision |
getLayoutRevision(long layoutSetBranchId,
long layoutBranchId,
long plid) |
static List<LayoutRevision> |
getLayoutRevisions(int start,
int end)
Returns a range of all the layout revisions.
|
static List<LayoutRevision> |
getLayoutRevisions(long plid) |
static List<LayoutRevision> |
getLayoutRevisions(long layoutSetBranchId,
boolean head) |
static List<LayoutRevision> |
getLayoutRevisions(long layoutSetBranchId,
boolean head,
int status) |
static List<LayoutRevision> |
getLayoutRevisions(long layoutSetBranchId,
int status) |
static List<LayoutRevision> |
getLayoutRevisions(long layoutSetBranchId,
long plid) |
static List<LayoutRevision> |
getLayoutRevisions(long layoutSetBranchId,
long plid,
boolean head) |
static List<LayoutRevision> |
getLayoutRevisions(long layoutSetBranchId,
long plid,
int status) |
static List<LayoutRevision> |
getLayoutRevisions(long layoutSetBranchId,
long plid,
int start,
int end,
OrderByComparator<LayoutRevision> orderByComparator) |
static List<LayoutRevision> |
getLayoutRevisions(long layoutSetBranchId,
long layoutBranchId,
long plid,
int start,
int end,
OrderByComparator<LayoutRevision> orderByComparator) |
static int |
getLayoutRevisionsCount()
Returns the number of layout revisions.
|
static int |
getLayoutRevisionsCount(long layoutSetBranchId,
long layoutBranchId,
long plid) |
static String |
getOSGiServiceIdentifier()
Returns the OSGi service identifier.
|
static PersistedModel |
getPersistedModel(Serializable primaryKeyObj) |
static LayoutRevisionLocalService |
getService() |
static LayoutRevision |
updateLayoutRevision(LayoutRevision layoutRevision)
Updates the layout revision in the database or adds it if it does not yet exist.
|
static LayoutRevision |
updateLayoutRevision(long userId,
long layoutRevisionId,
long layoutBranchId,
String name,
String title,
String description,
String keywords,
String robots,
String typeSettings,
boolean iconImage,
long iconImageId,
String themeId,
String colorSchemeId,
String css,
ServiceContext serviceContext) |
static LayoutRevision |
updateStatus(long userId,
long layoutRevisionId,
int status,
ServiceContext serviceContext) |
public static LayoutRevision addLayoutRevision(LayoutRevision layoutRevision)
layoutRevision
- the layout revisionpublic static LayoutRevision addLayoutRevision(long userId, long layoutSetBranchId, long layoutBranchId, long parentLayoutRevisionId, boolean head, long plid, long portletPreferencesPlid, boolean privateLayout, String name, String title, String description, String keywords, String robots, String typeSettings, boolean iconImage, long iconImageId, String themeId, String colorSchemeId, String css, ServiceContext serviceContext) throws PortalException
PortalException
public static LayoutRevision createLayoutRevision(long layoutRevisionId)
layoutRevisionId
- the primary key for the new layout revisionpublic static void deleteLayoutLayoutRevisions(long plid) throws PortalException
PortalException
public static LayoutRevision deleteLayoutRevision(LayoutRevision layoutRevision) throws PortalException
layoutRevision
- the layout revisionPortalException
public static LayoutRevision deleteLayoutRevision(long layoutRevisionId) throws PortalException
layoutRevisionId
- the primary key of the layout revisionPortalException
- if a layout revision with the primary key could not be foundpublic static void deleteLayoutRevisions(long layoutSetBranchId, long plid) throws PortalException
PortalException
public static void deleteLayoutRevisions(long layoutSetBranchId, long layoutBranchId, long plid) throws PortalException
PortalException
public static void deleteLayoutSetBranchLayoutRevisions(long layoutSetBranchId) throws PortalException
PortalException
public static PersistedModel deletePersistedModel(PersistedModel persistedModel) throws PortalException
PortalException
public static DynamicQuery dynamicQuery()
public static <T> List<T> dynamicQuery(DynamicQuery dynamicQuery)
dynamicQuery
- the dynamic querypublic static <T> 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 LayoutRevisionModelImpl
. 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> 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 LayoutRevisionModelImpl
. 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 LayoutRevision fetchLastLayoutRevision(long plid, boolean head)
public static LayoutRevision fetchLatestLayoutRevision(long layoutSetBranchId, long plid)
public static LayoutRevision fetchLayoutRevision(long layoutRevisionId)
@Deprecated public static LayoutRevision fetchLayoutRevision(long layoutSetBranchId, boolean head, long plid)
public static LayoutRevision fetchLayoutRevision(long layoutSetBranchId, long layoutBranchId, boolean head, long plid)
public static ActionableDynamicQuery getActionableDynamicQuery()
public static List<LayoutRevision> getChildLayoutRevisions(long layoutSetBranchId, long parentLayoutRevisionId, long plid)
public static List<LayoutRevision> getChildLayoutRevisions(long layoutSetBranchId, long parentLayoutRevision, long plid, int start, int end, OrderByComparator<LayoutRevision> orderByComparator)
public static int getChildLayoutRevisionsCount(long layoutSetBranchId, long parentLayoutRevision, long plid)
public static IndexableActionableDynamicQuery getIndexableActionableDynamicQuery()
public static LayoutRevision getLayoutRevision(long layoutRevisionId) throws PortalException
layoutRevisionId
- the primary key of the layout revisionPortalException
- if a layout revision with the primary key could not be found@Deprecated public static LayoutRevision getLayoutRevision(long layoutSetBranchId, long plid, boolean head) throws PortalException
PortalException
public static LayoutRevision getLayoutRevision(long layoutSetBranchId, long layoutBranchId, long plid) throws PortalException
PortalException
public static List<LayoutRevision> getLayoutRevisions(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 LayoutRevisionModelImpl
. 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 layout revisionsend
- the upper bound of the range of layout revisions (not inclusive)public static List<LayoutRevision> getLayoutRevisions(long plid)
public static List<LayoutRevision> getLayoutRevisions(long layoutSetBranchId, boolean head)
public static List<LayoutRevision> getLayoutRevisions(long layoutSetBranchId, boolean head, int status)
public static List<LayoutRevision> getLayoutRevisions(long layoutSetBranchId, int status)
public static List<LayoutRevision> getLayoutRevisions(long layoutSetBranchId, long plid)
public static List<LayoutRevision> getLayoutRevisions(long layoutSetBranchId, long plid, boolean head)
public static List<LayoutRevision> getLayoutRevisions(long layoutSetBranchId, long plid, int status)
public static List<LayoutRevision> getLayoutRevisions(long layoutSetBranchId, long plid, int start, int end, OrderByComparator<LayoutRevision> orderByComparator)
public static List<LayoutRevision> getLayoutRevisions(long layoutSetBranchId, long layoutBranchId, long plid, int start, int end, OrderByComparator<LayoutRevision> orderByComparator)
public static int getLayoutRevisionsCount()
public static int getLayoutRevisionsCount(long layoutSetBranchId, long layoutBranchId, long plid)
public static String getOSGiServiceIdentifier()
public static PersistedModel getPersistedModel(Serializable primaryKeyObj) throws PortalException
PortalException
public static LayoutRevision updateLayoutRevision(LayoutRevision layoutRevision)
layoutRevision
- the layout revisionpublic static LayoutRevision updateLayoutRevision(long userId, long layoutRevisionId, long layoutBranchId, String name, String title, String description, String keywords, String robots, String typeSettings, boolean iconImage, long iconImageId, String themeId, String colorSchemeId, String css, ServiceContext serviceContext) throws PortalException
PortalException
public static LayoutRevision updateStatus(long userId, long layoutRevisionId, int status, ServiceContext serviceContext) throws PortalException
PortalException
public static LayoutRevisionLocalService getService()