Class LayoutRevisionLocalServiceWrapper
- All Implemented Interfaces:
BaseLocalService
,LayoutRevisionLocalService
,PersistedModelLocalService
,ServiceWrapper<LayoutRevisionLocalService>
LayoutRevisionLocalService
.- Author:
- Brian Wing Shun Chan
- See Also:
- {$generated.description}
-
Constructor Summary
ConstructorsConstructorDescriptionLayoutRevisionLocalServiceWrapper
(LayoutRevisionLocalService layoutRevisionLocalService) -
Method Summary
Modifier and TypeMethodDescriptionaddLayoutRevision
(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) addLayoutRevision
(LayoutRevision layoutRevision) Adds the layout revision to the database.createLayoutRevision
(long layoutRevisionId) Creates a new layout revision with the primary key.createPersistedModel
(Serializable primaryKeyObj) void
deleteLayoutLayoutRevisions
(long plid) deleteLayoutRevision
(long layoutRevisionId) Deletes the layout revision with the primary key from the database.deleteLayoutRevision
(LayoutRevision layoutRevision) Deletes the layout revision from the database.void
deleteLayoutRevisions
(long layoutSetBranchId, long plid) void
deleteLayoutRevisions
(long layoutSetBranchId, long layoutBranchId, long plid) void
deleteLayoutSetBranchLayoutRevisions
(long layoutSetBranchId) deletePersistedModel
(PersistedModel persistedModel) <T> T
dslQuery
(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) int
dslQueryCount
(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) <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.fetchLastLayoutRevision
(long plid, boolean head) fetchLatestLayoutRevision
(long layoutSetBranchId, long plid) fetchLatestLayoutRevision
(long layoutSetBranchId, long layoutBranchId, long plid) fetchLayoutRevision
(long layoutRevisionId) fetchLayoutRevision
(long layoutSetBranchId, long layoutBranchId, boolean head, long plid) getChildLayoutRevisions
(long layoutSetBranchId, long parentLayoutRevisionId, long plid) getChildLayoutRevisions
(long layoutSetBranchId, long parentLayoutRevision, long plid, int start, int end, OrderByComparator<LayoutRevision> orderByComparator) int
getChildLayoutRevisionsCount
(long layoutSetBranchId, long parentLayoutRevision, long plid) getLayoutRevision
(long layoutRevisionId) Returns the layout revision with the primary key.getLayoutRevision
(long layoutSetBranchId, long layoutBranchId, long plid) getLayoutRevisions
(int start, int end) Returns a range of all the layout revisions.getLayoutRevisions
(long plid) getLayoutRevisions
(long layoutSetBranchId, boolean head) getLayoutRevisions
(long layoutSetBranchId, boolean head, int status) getLayoutRevisions
(long layoutSetBranchId, int status) getLayoutRevisions
(long layoutSetBranchId, long plid) getLayoutRevisions
(long layoutSetBranchId, long plid, boolean head) getLayoutRevisions
(long layoutSetBranchId, long plid, int status) getLayoutRevisions
(long layoutSetBranchId, long plid, int start, int end, OrderByComparator<LayoutRevision> orderByComparator) getLayoutRevisions
(long layoutSetBranchId, long layoutBranchId, long plid, int start, int end, OrderByComparator<LayoutRevision> orderByComparator) getLayoutRevisionsByStatus
(int status) int
Returns the number of layout revisions.int
getLayoutRevisionsCount
(long plid) int
getLayoutRevisionsCount
(long layoutSetBranchId, long layoutBranchId, long plid) Returns the OSGi service identifier.getPersistedModel
(Serializable primaryKeyObj) void
setWrappedService
(LayoutRevisionLocalService layoutRevisionLocalService) 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) updateLayoutRevision
(LayoutRevision layoutRevision) Updates the layout revision in the database or adds it if it does not yet exist.updateStatus
(long userId, long layoutRevisionId, int status, ServiceContext serviceContext) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.liferay.portal.kernel.service.PersistedModelLocalService
fetchPersistedModel
-
Constructor Details
-
LayoutRevisionLocalServiceWrapper
public LayoutRevisionLocalServiceWrapper() -
LayoutRevisionLocalServiceWrapper
-
-
Method Details
-
addLayoutRevision
Adds the layout revision to the database. Also notifies the appropriate model listeners.Important: Inspect LayoutRevisionLocalServiceImpl 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.
- Specified by:
addLayoutRevision
in interfaceLayoutRevisionLocalService
- Parameters:
layoutRevision
- the layout revision- Returns:
- the layout revision that was added
-
addLayoutRevision
public 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 - Specified by:
addLayoutRevision
in interfaceLayoutRevisionLocalService
- Throws:
PortalException
-
createLayoutRevision
Creates a new layout revision with the primary key. Does not add the layout revision to the database.- Specified by:
createLayoutRevision
in interfaceLayoutRevisionLocalService
- Parameters:
layoutRevisionId
- the primary key for the new layout revision- Returns:
- the new layout revision
-
createPersistedModel
- Specified by:
createPersistedModel
in interfaceLayoutRevisionLocalService
- Specified by:
createPersistedModel
in interfacePersistedModelLocalService
- Throws:
PortalException
PortalException
-
deleteLayoutLayoutRevisions
- Specified by:
deleteLayoutLayoutRevisions
in interfaceLayoutRevisionLocalService
- Throws:
PortalException
-
deleteLayoutRevision
Deletes the layout revision from the database. Also notifies the appropriate model listeners.Important: Inspect LayoutRevisionLocalServiceImpl 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.
- Specified by:
deleteLayoutRevision
in interfaceLayoutRevisionLocalService
- Parameters:
layoutRevision
- the layout revision- Returns:
- the layout revision that was removed
- Throws:
PortalException
PortalException
-
deleteLayoutRevision
Deletes the layout revision with the primary key from the database. Also notifies the appropriate model listeners.Important: Inspect LayoutRevisionLocalServiceImpl 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.
- Specified by:
deleteLayoutRevision
in interfaceLayoutRevisionLocalService
- Parameters:
layoutRevisionId
- the primary key of the layout revision- Returns:
- the layout revision that was removed
- Throws:
PortalException
- if a layout revision with the primary key could not be foundPortalException
-
deleteLayoutRevisions
- Specified by:
deleteLayoutRevisions
in interfaceLayoutRevisionLocalService
- Throws:
PortalException
-
deleteLayoutRevisions
public void deleteLayoutRevisions(long layoutSetBranchId, long layoutBranchId, long plid) throws PortalException - Specified by:
deleteLayoutRevisions
in interfaceLayoutRevisionLocalService
- Throws:
PortalException
-
deleteLayoutSetBranchLayoutRevisions
- Specified by:
deleteLayoutSetBranchLayoutRevisions
in interfaceLayoutRevisionLocalService
- Throws:
PortalException
-
deletePersistedModel
- Specified by:
deletePersistedModel
in interfaceLayoutRevisionLocalService
- Specified by:
deletePersistedModel
in interfacePersistedModelLocalService
- Throws:
PortalException
PortalException
-
dslQuery
public <T> T dslQuery(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) - Specified by:
dslQuery
in interfaceLayoutRevisionLocalService
- Specified by:
dslQuery
in interfacePersistedModelLocalService
-
dslQueryCount
public int dslQueryCount(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) - Specified by:
dslQueryCount
in interfaceLayoutRevisionLocalService
- Specified by:
dslQueryCount
in interfacePersistedModelLocalService
-
dynamicQuery
- Specified by:
dynamicQuery
in interfaceLayoutRevisionLocalService
-
dynamicQuery
Performs a dynamic query on the database and returns the matching rows.- Specified by:
dynamicQuery
in interfaceLayoutRevisionLocalService
- Parameters:
dynamicQuery
- the dynamic query- Returns:
- the matching rows
-
dynamicQuery
Performs a dynamic query on the database and returns a range of the matching rows.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
tocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromcom.liferay.portal.model.impl.LayoutRevisionModelImpl
.- Specified by:
dynamicQuery
in interfaceLayoutRevisionLocalService
- Parameters:
dynamicQuery
- the dynamic querystart
- the lower bound of the range of model instancesend
- the upper bound of the range of model instances (not inclusive)- Returns:
- the range of matching rows
-
dynamicQuery
public <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.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
tocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromcom.liferay.portal.model.impl.LayoutRevisionModelImpl
.- Specified by:
dynamicQuery
in interfaceLayoutRevisionLocalService
- Parameters:
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 (optionallynull
)- Returns:
- the ordered range of matching rows
-
dynamicQueryCount
Returns the number of rows matching the dynamic query.- Specified by:
dynamicQueryCount
in interfaceLayoutRevisionLocalService
- Parameters:
dynamicQuery
- the dynamic query- Returns:
- the number of rows matching the dynamic query
-
dynamicQueryCount
Returns the number of rows matching the dynamic query.- Specified by:
dynamicQueryCount
in interfaceLayoutRevisionLocalService
- Parameters:
dynamicQuery
- the dynamic queryprojection
- the projection to apply to the query- Returns:
- the number of rows matching the dynamic query
-
fetchLastLayoutRevision
- Specified by:
fetchLastLayoutRevision
in interfaceLayoutRevisionLocalService
-
fetchLatestLayoutRevision
- Specified by:
fetchLatestLayoutRevision
in interfaceLayoutRevisionLocalService
-
fetchLatestLayoutRevision
public LayoutRevision fetchLatestLayoutRevision(long layoutSetBranchId, long layoutBranchId, long plid) - Specified by:
fetchLatestLayoutRevision
in interfaceLayoutRevisionLocalService
-
fetchLayoutRevision
- Specified by:
fetchLayoutRevision
in interfaceLayoutRevisionLocalService
-
fetchLayoutRevision
public LayoutRevision fetchLayoutRevision(long layoutSetBranchId, long layoutBranchId, boolean head, long plid) - Specified by:
fetchLayoutRevision
in interfaceLayoutRevisionLocalService
-
getActionableDynamicQuery
- Specified by:
getActionableDynamicQuery
in interfaceLayoutRevisionLocalService
-
getChildLayoutRevisions
public List<LayoutRevision> getChildLayoutRevisions(long layoutSetBranchId, long parentLayoutRevisionId, long plid) - Specified by:
getChildLayoutRevisions
in interfaceLayoutRevisionLocalService
-
getChildLayoutRevisions
public List<LayoutRevision> getChildLayoutRevisions(long layoutSetBranchId, long parentLayoutRevision, long plid, int start, int end, OrderByComparator<LayoutRevision> orderByComparator) - Specified by:
getChildLayoutRevisions
in interfaceLayoutRevisionLocalService
-
getChildLayoutRevisionsCount
public int getChildLayoutRevisionsCount(long layoutSetBranchId, long parentLayoutRevision, long plid) - Specified by:
getChildLayoutRevisionsCount
in interfaceLayoutRevisionLocalService
-
getIndexableActionableDynamicQuery
- Specified by:
getIndexableActionableDynamicQuery
in interfaceLayoutRevisionLocalService
-
getLayoutRevision
Returns the layout revision with the primary key.- Specified by:
getLayoutRevision
in interfaceLayoutRevisionLocalService
- Parameters:
layoutRevisionId
- the primary key of the layout revision- Returns:
- the layout revision
- Throws:
PortalException
- if a layout revision with the primary key could not be foundPortalException
-
getLayoutRevision
public LayoutRevision getLayoutRevision(long layoutSetBranchId, long layoutBranchId, long plid) throws PortalException - Specified by:
getLayoutRevision
in interfaceLayoutRevisionLocalService
- Throws:
PortalException
-
getLayoutRevisions
Returns a range of all the layout revisions.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
tocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromcom.liferay.portal.model.impl.LayoutRevisionModelImpl
.- Specified by:
getLayoutRevisions
in interfaceLayoutRevisionLocalService
- Parameters:
start
- the lower bound of the range of layout revisionsend
- the upper bound of the range of layout revisions (not inclusive)- Returns:
- the range of layout revisions
-
getLayoutRevisions
- Specified by:
getLayoutRevisions
in interfaceLayoutRevisionLocalService
-
getLayoutRevisions
- Specified by:
getLayoutRevisions
in interfaceLayoutRevisionLocalService
-
getLayoutRevisions
- Specified by:
getLayoutRevisions
in interfaceLayoutRevisionLocalService
-
getLayoutRevisions
- Specified by:
getLayoutRevisions
in interfaceLayoutRevisionLocalService
-
getLayoutRevisions
- Specified by:
getLayoutRevisions
in interfaceLayoutRevisionLocalService
-
getLayoutRevisions
- Specified by:
getLayoutRevisions
in interfaceLayoutRevisionLocalService
-
getLayoutRevisions
- Specified by:
getLayoutRevisions
in interfaceLayoutRevisionLocalService
-
getLayoutRevisions
public List<LayoutRevision> getLayoutRevisions(long layoutSetBranchId, long plid, int start, int end, OrderByComparator<LayoutRevision> orderByComparator) - Specified by:
getLayoutRevisions
in interfaceLayoutRevisionLocalService
-
getLayoutRevisions
public List<LayoutRevision> getLayoutRevisions(long layoutSetBranchId, long layoutBranchId, long plid, int start, int end, OrderByComparator<LayoutRevision> orderByComparator) - Specified by:
getLayoutRevisions
in interfaceLayoutRevisionLocalService
-
getLayoutRevisionsByStatus
- Specified by:
getLayoutRevisionsByStatus
in interfaceLayoutRevisionLocalService
-
getLayoutRevisionsCount
public int getLayoutRevisionsCount()Returns the number of layout revisions.- Specified by:
getLayoutRevisionsCount
in interfaceLayoutRevisionLocalService
- Returns:
- the number of layout revisions
-
getLayoutRevisionsCount
public int getLayoutRevisionsCount(long plid) - Specified by:
getLayoutRevisionsCount
in interfaceLayoutRevisionLocalService
-
getLayoutRevisionsCount
public int getLayoutRevisionsCount(long layoutSetBranchId, long layoutBranchId, long plid) - Specified by:
getLayoutRevisionsCount
in interfaceLayoutRevisionLocalService
-
getOSGiServiceIdentifier
Returns the OSGi service identifier.- Specified by:
getOSGiServiceIdentifier
in interfaceLayoutRevisionLocalService
- Returns:
- the OSGi service identifier
-
getPersistedModel
- Specified by:
getPersistedModel
in interfaceLayoutRevisionLocalService
- Specified by:
getPersistedModel
in interfacePersistedModelLocalService
- Throws:
PortalException
PortalException
-
updateLayoutRevision
Updates the layout revision in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.Important: Inspect LayoutRevisionLocalServiceImpl 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.
- Specified by:
updateLayoutRevision
in interfaceLayoutRevisionLocalService
- Parameters:
layoutRevision
- the layout revision- Returns:
- the layout revision that was updated
-
updateLayoutRevision
public 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 - Specified by:
updateLayoutRevision
in interfaceLayoutRevisionLocalService
- Throws:
PortalException
-
updateStatus
public LayoutRevision updateStatus(long userId, long layoutRevisionId, int status, ServiceContext serviceContext) throws PortalException - Specified by:
updateStatus
in interfaceLayoutRevisionLocalService
- Throws:
PortalException
-
getBasePersistence
- Specified by:
getBasePersistence
in interfacePersistedModelLocalService
-
getWrappedService
- Specified by:
getWrappedService
in interfaceServiceWrapper<LayoutRevisionLocalService>
-
setWrappedService
- Specified by:
setWrappedService
in interfaceServiceWrapper<LayoutRevisionLocalService>
-