@ProviderType @Transactional(isolation=PORTAL, rollbackFor={PortalException.class,SystemException.class}) public interface LayoutRevisionLocalService extends BaseLocalService, PersistedModelLocalService
LayoutRevisionLocalServiceUtil
,
LayoutRevisionLocalServiceBaseImpl
,
LayoutRevisionLocalServiceImpl
Modifier and Type | Method and Description |
---|---|
LayoutRevision |
addLayoutRevision(LayoutRevision layoutRevision)
Adds the layout revision to the database.
|
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) |
LayoutRevision |
createLayoutRevision(long layoutRevisionId)
Creates a new layout revision with the primary key.
|
void |
deleteLayoutLayoutRevisions(long plid) |
LayoutRevision |
deleteLayoutRevision(LayoutRevision layoutRevision)
Deletes the layout revision from the database.
|
LayoutRevision |
deleteLayoutRevision(long layoutRevisionId)
Deletes the layout revision with the primary key from the database.
|
void |
deleteLayoutRevisions(long layoutSetBranchId,
long plid) |
void |
deleteLayoutRevisions(long layoutSetBranchId,
long layoutBranchId,
long plid) |
void |
deleteLayoutSetBranchLayoutRevisions(long layoutSetBranchId) |
PersistedModel |
deletePersistedModel(PersistedModel persistedModel) |
DynamicQuery |
dynamicQuery() |
<T> List<T> |
dynamicQuery(DynamicQuery dynamicQuery)
Performs a dynamic query on the database and returns the matching rows.
|
<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.
|
<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.
|
long |
dynamicQueryCount(DynamicQuery dynamicQuery)
Returns the number of rows matching the dynamic query.
|
long |
dynamicQueryCount(DynamicQuery dynamicQuery,
Projection projection)
Returns the number of rows matching the dynamic query.
|
LayoutRevision |
fetchLastLayoutRevision(long plid,
boolean head) |
LayoutRevision |
fetchLatestLayoutRevision(long layoutSetBranchId,
long plid) |
LayoutRevision |
fetchLayoutRevision(long layoutRevisionId) |
LayoutRevision |
fetchLayoutRevision(long layoutSetBranchId,
boolean head,
long plid)
Deprecated.
As of Judson (7.1.x), with no direct replacement
|
LayoutRevision |
fetchLayoutRevision(long layoutSetBranchId,
long layoutBranchId,
boolean head,
long plid) |
ActionableDynamicQuery |
getActionableDynamicQuery() |
List<LayoutRevision> |
getChildLayoutRevisions(long layoutSetBranchId,
long parentLayoutRevisionId,
long plid) |
List<LayoutRevision> |
getChildLayoutRevisions(long layoutSetBranchId,
long parentLayoutRevision,
long plid,
int start,
int end,
OrderByComparator<LayoutRevision> orderByComparator) |
int |
getChildLayoutRevisionsCount(long layoutSetBranchId,
long parentLayoutRevision,
long plid) |
IndexableActionableDynamicQuery |
getIndexableActionableDynamicQuery() |
LayoutRevision |
getLayoutRevision(long layoutRevisionId)
Returns the layout revision with the primary key.
|
LayoutRevision |
getLayoutRevision(long layoutSetBranchId,
long plid,
boolean head)
Deprecated.
As of Judson (7.1.x), with no direct replacement
|
LayoutRevision |
getLayoutRevision(long layoutSetBranchId,
long layoutBranchId,
long plid) |
List<LayoutRevision> |
getLayoutRevisions(int start,
int end)
Returns a range of all the layout revisions.
|
List<LayoutRevision> |
getLayoutRevisions(long plid) |
List<LayoutRevision> |
getLayoutRevisions(long layoutSetBranchId,
boolean head) |
List<LayoutRevision> |
getLayoutRevisions(long layoutSetBranchId,
boolean head,
int status) |
List<LayoutRevision> |
getLayoutRevisions(long layoutSetBranchId,
int status) |
List<LayoutRevision> |
getLayoutRevisions(long layoutSetBranchId,
long plid) |
List<LayoutRevision> |
getLayoutRevisions(long layoutSetBranchId,
long plid,
boolean head) |
List<LayoutRevision> |
getLayoutRevisions(long layoutSetBranchId,
long plid,
int status) |
List<LayoutRevision> |
getLayoutRevisions(long layoutSetBranchId,
long plid,
int start,
int end,
OrderByComparator<LayoutRevision> orderByComparator) |
List<LayoutRevision> |
getLayoutRevisions(long layoutSetBranchId,
long layoutBranchId,
long plid,
int start,
int end,
OrderByComparator<LayoutRevision> orderByComparator) |
int |
getLayoutRevisionsCount()
Returns the number of layout revisions.
|
int |
getLayoutRevisionsCount(long layoutSetBranchId,
long layoutBranchId,
long plid) |
String |
getOSGiServiceIdentifier()
Returns the OSGi service identifier.
|
PersistedModel |
getPersistedModel(Serializable primaryKeyObj) |
LayoutRevision |
updateLayoutRevision(LayoutRevision layoutRevision)
Updates the layout revision in the database or adds it if it does not yet exist.
|
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) |
LayoutRevision |
updateStatus(long userId,
long layoutRevisionId,
int status,
ServiceContext serviceContext) |
@Indexable(type=REINDEX) LayoutRevision addLayoutRevision(LayoutRevision layoutRevision)
layoutRevision
- the layout revisionLayoutRevision 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
@Transactional(enabled=false) LayoutRevision createLayoutRevision(long layoutRevisionId)
layoutRevisionId
- the primary key for the new layout revisionvoid deleteLayoutLayoutRevisions(long plid) throws PortalException
PortalException
@Indexable(type=DELETE) LayoutRevision deleteLayoutRevision(LayoutRevision layoutRevision) throws PortalException
layoutRevision
- the layout revisionPortalException
@Indexable(type=DELETE) 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 foundvoid deleteLayoutRevisions(long layoutSetBranchId, long plid) throws PortalException
PortalException
void deleteLayoutRevisions(long layoutSetBranchId, long layoutBranchId, long plid) throws PortalException
PortalException
void deleteLayoutSetBranchLayoutRevisions(long layoutSetBranchId) throws PortalException
PortalException
PersistedModel deletePersistedModel(PersistedModel persistedModel) throws PortalException
deletePersistedModel
in interface PersistedModelLocalService
PortalException
DynamicQuery dynamicQuery()
<T> List<T> dynamicQuery(DynamicQuery dynamicQuery)
dynamicQuery
- the dynamic query<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)<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
)long dynamicQueryCount(DynamicQuery dynamicQuery)
dynamicQuery
- the dynamic querylong dynamicQueryCount(DynamicQuery dynamicQuery, Projection projection)
dynamicQuery
- the dynamic queryprojection
- the projection to apply to the query@Transactional(propagation=SUPPORTS, readOnly=true) LayoutRevision fetchLastLayoutRevision(long plid, boolean head)
@Transactional(propagation=SUPPORTS, readOnly=true) LayoutRevision fetchLatestLayoutRevision(long layoutSetBranchId, long plid)
@Transactional(propagation=SUPPORTS, readOnly=true) LayoutRevision fetchLayoutRevision(long layoutRevisionId)
@Deprecated @Transactional(propagation=SUPPORTS, readOnly=true) LayoutRevision fetchLayoutRevision(long layoutSetBranchId, boolean head, long plid)
@Transactional(propagation=SUPPORTS, readOnly=true) LayoutRevision fetchLayoutRevision(long layoutSetBranchId, long layoutBranchId, boolean head, long plid)
@Transactional(propagation=SUPPORTS, readOnly=true) ActionableDynamicQuery getActionableDynamicQuery()
@Transactional(propagation=SUPPORTS, readOnly=true) List<LayoutRevision> getChildLayoutRevisions(long layoutSetBranchId, long parentLayoutRevisionId, long plid)
@Transactional(propagation=SUPPORTS, readOnly=true) List<LayoutRevision> getChildLayoutRevisions(long layoutSetBranchId, long parentLayoutRevision, long plid, int start, int end, OrderByComparator<LayoutRevision> orderByComparator)
@Transactional(propagation=SUPPORTS, readOnly=true) int getChildLayoutRevisionsCount(long layoutSetBranchId, long parentLayoutRevision, long plid)
@Transactional(propagation=SUPPORTS, readOnly=true) IndexableActionableDynamicQuery getIndexableActionableDynamicQuery()
@Transactional(propagation=SUPPORTS, readOnly=true) 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 @Transactional(propagation=SUPPORTS, readOnly=true) LayoutRevision getLayoutRevision(long layoutSetBranchId, long plid, boolean head) throws PortalException
PortalException
@Transactional(propagation=SUPPORTS, readOnly=true) LayoutRevision getLayoutRevision(long layoutSetBranchId, long layoutBranchId, long plid) throws PortalException
PortalException
@Transactional(propagation=SUPPORTS, readOnly=true) 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)@Transactional(propagation=SUPPORTS, readOnly=true) List<LayoutRevision> getLayoutRevisions(long plid)
@Transactional(propagation=SUPPORTS, readOnly=true) List<LayoutRevision> getLayoutRevisions(long layoutSetBranchId, boolean head)
@Transactional(propagation=SUPPORTS, readOnly=true) List<LayoutRevision> getLayoutRevisions(long layoutSetBranchId, boolean head, int status)
@Transactional(propagation=SUPPORTS, readOnly=true) List<LayoutRevision> getLayoutRevisions(long layoutSetBranchId, int status)
@Transactional(propagation=SUPPORTS, readOnly=true) List<LayoutRevision> getLayoutRevisions(long layoutSetBranchId, long plid)
@Transactional(propagation=SUPPORTS, readOnly=true) List<LayoutRevision> getLayoutRevisions(long layoutSetBranchId, long plid, boolean head)
@Transactional(propagation=SUPPORTS, readOnly=true) List<LayoutRevision> getLayoutRevisions(long layoutSetBranchId, long plid, int status)
@Transactional(propagation=SUPPORTS, readOnly=true) List<LayoutRevision> getLayoutRevisions(long layoutSetBranchId, long plid, int start, int end, OrderByComparator<LayoutRevision> orderByComparator)
@Transactional(propagation=SUPPORTS, readOnly=true) List<LayoutRevision> getLayoutRevisions(long layoutSetBranchId, long layoutBranchId, long plid, int start, int end, OrderByComparator<LayoutRevision> orderByComparator)
@Transactional(propagation=SUPPORTS, readOnly=true) int getLayoutRevisionsCount()
@Transactional(propagation=SUPPORTS, readOnly=true) int getLayoutRevisionsCount(long layoutSetBranchId, long layoutBranchId, long plid)
String getOSGiServiceIdentifier()
@Transactional(propagation=SUPPORTS, readOnly=true) PersistedModel getPersistedModel(Serializable primaryKeyObj) throws PortalException
getPersistedModel
in interface PersistedModelLocalService
PortalException
@Indexable(type=REINDEX) LayoutRevision updateLayoutRevision(LayoutRevision layoutRevision)
layoutRevision
- the layout revisionLayoutRevision 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
LayoutRevision updateStatus(long userId, long layoutRevisionId, int status, ServiceContext serviceContext) throws PortalException
PortalException