Class LayoutSetLocalServiceWrapper
- All Implemented Interfaces:
BaseLocalService
,CTService<LayoutSet>
,LayoutSetLocalService
,PersistedModelLocalService
,ServiceWrapper<LayoutSetLocalService>
LayoutSetLocalService
.- Author:
- Brian Wing Shun Chan
- See Also:
- {$generated.description}
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddLayoutSet
(long groupId, boolean privateLayout) addLayoutSet
(LayoutSet layoutSet) Adds the layout set to the database.createLayoutSet
(long layoutSetId) Creates a new layout set with the primary key.createPersistedModel
(Serializable primaryKeyObj) deleteLayoutSet
(long layoutSetId) Deletes the layout set with the primary key from the database.void
deleteLayoutSet
(long groupId, boolean privateLayout, ServiceContext serviceContext) deleteLayoutSet
(LayoutSet layoutSet) Deletes the layout set from the database.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.fetchLayoutSet
(long layoutSetId) fetchLayoutSet
(long groupId, boolean privateLayout) fetchLayoutSet
(String virtualHostname) fetchLayoutSetByLogoId
(boolean privateLayout, long logoId) getLayoutSet
(long layoutSetId) Returns the layout set with the primary key.getLayoutSet
(long groupId, boolean privateLayout) getLayoutSet
(String virtualHostname) getLayoutSets
(int start, int end) Returns a range of all the layout sets.getLayoutSetsByLayoutSetPrototypeUuid
(String layoutSetPrototypeUuid) int
Returns the number of layout sets.Returns the OSGi service identifier.int
getPageCount
(long groupId, boolean privateLayout) getPersistedModel
(Serializable primaryKeyObj) void
setWrappedService
(LayoutSetLocalService layoutSetLocalService) updateFaviconFileEntryId
(long groupId, boolean privateLayout, long faviconFileEntryId) updateLayoutSet
(LayoutSet layoutSet) Updates the layout set in the database or adds it if it does not yet exist.void
updateLayoutSetPrototypeLinkEnabled
(long groupId, boolean privateLayout, boolean layoutSetPrototypeLinkEnabled, String layoutSetPrototypeUuid) Updates the state of the layout set prototype link.updateLogo
(long groupId, boolean privateLayout, boolean hasLogo, byte[] bytes) updateLogo
(long groupId, boolean privateLayout, boolean hasLogo, File file) updateLogo
(long groupId, boolean privateLayout, boolean hasLogo, InputStream inputStream) updateLogo
(long groupId, boolean privateLayout, boolean hasLogo, InputStream inputStream, boolean cleanUpStream) updateLookAndFeel
(long groupId, boolean privateLayout, String themeId, String colorSchemeId, String css) void
updateLookAndFeel
(long groupId, String themeId, String colorSchemeId, String css) updateSettings
(long groupId, boolean privateLayout, String settings) updateVirtualHosts
(long groupId, boolean privateLayout, TreeMap<String, String> virtualHostnames) <R,
E extends Throwable>
RupdateWithUnsafeFunction
(com.liferay.petra.function.UnsafeFunction<CTPersistence<LayoutSet>, R, E> updateUnsafeFunction) 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
-
LayoutSetLocalServiceWrapper
public LayoutSetLocalServiceWrapper() -
LayoutSetLocalServiceWrapper
-
-
Method Details
-
addLayoutSet
Adds the layout set to the database. Also notifies the appropriate model listeners.Important: Inspect LayoutSetLocalServiceImpl 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:
addLayoutSet
in interfaceLayoutSetLocalService
- Parameters:
layoutSet
- the layout set- Returns:
- the layout set that was added
-
addLayoutSet
- Specified by:
addLayoutSet
in interfaceLayoutSetLocalService
- Throws:
PortalException
-
createLayoutSet
Creates a new layout set with the primary key. Does not add the layout set to the database.- Specified by:
createLayoutSet
in interfaceLayoutSetLocalService
- Parameters:
layoutSetId
- the primary key for the new layout set- Returns:
- the new layout set
-
createPersistedModel
- Specified by:
createPersistedModel
in interfaceLayoutSetLocalService
- Specified by:
createPersistedModel
in interfacePersistedModelLocalService
- Throws:
PortalException
PortalException
-
deleteLayoutSet
Deletes the layout set from the database. Also notifies the appropriate model listeners.Important: Inspect LayoutSetLocalServiceImpl 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:
deleteLayoutSet
in interfaceLayoutSetLocalService
- Parameters:
layoutSet
- the layout set- Returns:
- the layout set that was removed
-
deleteLayoutSet
Deletes the layout set with the primary key from the database. Also notifies the appropriate model listeners.Important: Inspect LayoutSetLocalServiceImpl 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:
deleteLayoutSet
in interfaceLayoutSetLocalService
- Parameters:
layoutSetId
- the primary key of the layout set- Returns:
- the layout set that was removed
- Throws:
PortalException
- if a layout set with the primary key could not be foundPortalException
-
deleteLayoutSet
public void deleteLayoutSet(long groupId, boolean privateLayout, ServiceContext serviceContext) throws PortalException - Specified by:
deleteLayoutSet
in interfaceLayoutSetLocalService
- Throws:
PortalException
-
deletePersistedModel
- Specified by:
deletePersistedModel
in interfaceLayoutSetLocalService
- 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 interfaceLayoutSetLocalService
- Specified by:
dslQuery
in interfacePersistedModelLocalService
-
dslQueryCount
public int dslQueryCount(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) - Specified by:
dslQueryCount
in interfaceLayoutSetLocalService
- Specified by:
dslQueryCount
in interfacePersistedModelLocalService
-
dynamicQuery
- Specified by:
dynamicQuery
in interfaceLayoutSetLocalService
-
dynamicQuery
Performs a dynamic query on the database and returns the matching rows.- Specified by:
dynamicQuery
in interfaceLayoutSetLocalService
- 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.LayoutSetModelImpl
.- Specified by:
dynamicQuery
in interfaceLayoutSetLocalService
- 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.LayoutSetModelImpl
.- Specified by:
dynamicQuery
in interfaceLayoutSetLocalService
- 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 interfaceLayoutSetLocalService
- 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 interfaceLayoutSetLocalService
- Parameters:
dynamicQuery
- the dynamic queryprojection
- the projection to apply to the query- Returns:
- the number of rows matching the dynamic query
-
fetchLayoutSet
- Specified by:
fetchLayoutSet
in interfaceLayoutSetLocalService
-
fetchLayoutSet
- Specified by:
fetchLayoutSet
in interfaceLayoutSetLocalService
-
fetchLayoutSet
- Specified by:
fetchLayoutSet
in interfaceLayoutSetLocalService
-
fetchLayoutSetByLogoId
- Specified by:
fetchLayoutSetByLogoId
in interfaceLayoutSetLocalService
- Throws:
PortalException
-
getActionableDynamicQuery
- Specified by:
getActionableDynamicQuery
in interfaceLayoutSetLocalService
-
getIndexableActionableDynamicQuery
- Specified by:
getIndexableActionableDynamicQuery
in interfaceLayoutSetLocalService
-
getLayoutSet
Returns the layout set with the primary key.- Specified by:
getLayoutSet
in interfaceLayoutSetLocalService
- Parameters:
layoutSetId
- the primary key of the layout set- Returns:
- the layout set
- Throws:
PortalException
- if a layout set with the primary key could not be foundPortalException
-
getLayoutSet
- Specified by:
getLayoutSet
in interfaceLayoutSetLocalService
- Throws:
PortalException
-
getLayoutSet
- Specified by:
getLayoutSet
in interfaceLayoutSetLocalService
- Throws:
PortalException
-
getLayoutSets
Returns a range of all the layout sets.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.LayoutSetModelImpl
.- Specified by:
getLayoutSets
in interfaceLayoutSetLocalService
- Parameters:
start
- the lower bound of the range of layout setsend
- the upper bound of the range of layout sets (not inclusive)- Returns:
- the range of layout sets
-
getLayoutSetsByLayoutSetPrototypeUuid
- Specified by:
getLayoutSetsByLayoutSetPrototypeUuid
in interfaceLayoutSetLocalService
-
getLayoutSetsCount
public int getLayoutSetsCount()Returns the number of layout sets.- Specified by:
getLayoutSetsCount
in interfaceLayoutSetLocalService
- Returns:
- the number of layout sets
-
getOSGiServiceIdentifier
Returns the OSGi service identifier.- Specified by:
getOSGiServiceIdentifier
in interfaceLayoutSetLocalService
- Returns:
- the OSGi service identifier
-
getPageCount
public int getPageCount(long groupId, boolean privateLayout) - Specified by:
getPageCount
in interfaceLayoutSetLocalService
-
getPersistedModel
- Specified by:
getPersistedModel
in interfaceLayoutSetLocalService
- Specified by:
getPersistedModel
in interfacePersistedModelLocalService
- Throws:
PortalException
PortalException
-
updateFaviconFileEntryId
public LayoutSet updateFaviconFileEntryId(long groupId, boolean privateLayout, long faviconFileEntryId) throws PortalException - Specified by:
updateFaviconFileEntryId
in interfaceLayoutSetLocalService
- Throws:
PortalException
-
updateLayoutSet
Updates the layout set in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.Important: Inspect LayoutSetLocalServiceImpl 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:
updateLayoutSet
in interfaceLayoutSetLocalService
- Parameters:
layoutSet
- the layout set- Returns:
- the layout set that was updated
-
updateLayoutSetPrototypeLinkEnabled
public void updateLayoutSetPrototypeLinkEnabled(long groupId, boolean privateLayout, boolean layoutSetPrototypeLinkEnabled, String layoutSetPrototypeUuid) throws PortalException Updates the state of the layout set prototype link.- Specified by:
updateLayoutSetPrototypeLinkEnabled
in interfaceLayoutSetLocalService
- Parameters:
groupId
- the primary key of the groupprivateLayout
- whether the layout set is private to the grouplayoutSetPrototypeLinkEnabled
- whether the layout set prototype is link enabledlayoutSetPrototypeUuid
- the uuid of the layout set prototype to link with- Throws:
PortalException
-
updateLogo
public LayoutSet updateLogo(long groupId, boolean privateLayout, boolean hasLogo, byte[] bytes) throws PortalException - Specified by:
updateLogo
in interfaceLayoutSetLocalService
- Throws:
PortalException
-
updateLogo
public LayoutSet updateLogo(long groupId, boolean privateLayout, boolean hasLogo, File file) throws PortalException - Specified by:
updateLogo
in interfaceLayoutSetLocalService
- Throws:
PortalException
-
updateLogo
public LayoutSet updateLogo(long groupId, boolean privateLayout, boolean hasLogo, InputStream inputStream) throws PortalException - Specified by:
updateLogo
in interfaceLayoutSetLocalService
- Throws:
PortalException
-
updateLogo
public LayoutSet updateLogo(long groupId, boolean privateLayout, boolean hasLogo, InputStream inputStream, boolean cleanUpStream) throws PortalException - Specified by:
updateLogo
in interfaceLayoutSetLocalService
- Throws:
PortalException
-
updateLookAndFeel
public LayoutSet updateLookAndFeel(long groupId, boolean privateLayout, String themeId, String colorSchemeId, String css) throws PortalException - Specified by:
updateLookAndFeel
in interfaceLayoutSetLocalService
- Throws:
PortalException
-
updateLookAndFeel
public void updateLookAndFeel(long groupId, String themeId, String colorSchemeId, String css) throws PortalException - Specified by:
updateLookAndFeel
in interfaceLayoutSetLocalService
- Throws:
PortalException
-
updateSettings
public LayoutSet updateSettings(long groupId, boolean privateLayout, String settings) throws PortalException - Specified by:
updateSettings
in interfaceLayoutSetLocalService
- Throws:
PortalException
-
updateVirtualHosts
public LayoutSet updateVirtualHosts(long groupId, boolean privateLayout, TreeMap<String, String> virtualHostnames) throws PortalException- Specified by:
updateVirtualHosts
in interfaceLayoutSetLocalService
- Throws:
PortalException
-
getBasePersistence
- Specified by:
getBasePersistence
in interfacePersistedModelLocalService
-
getCTPersistence
- Specified by:
getCTPersistence
in interfaceCTService<LayoutSet>
- Specified by:
getCTPersistence
in interfaceLayoutSetLocalService
-
getModelClass
- Specified by:
getModelClass
in interfaceCTService<LayoutSet>
- Specified by:
getModelClass
in interfaceLayoutSetLocalService
-
updateWithUnsafeFunction
public <R,E extends Throwable> R updateWithUnsafeFunction(com.liferay.petra.function.UnsafeFunction<CTPersistence<LayoutSet>, R, throws EE> updateUnsafeFunction) - Specified by:
updateWithUnsafeFunction
in interfaceCTService<LayoutSet>
- Specified by:
updateWithUnsafeFunction
in interfaceLayoutSetLocalService
- Throws:
E extends Throwable
-
getWrappedService
- Specified by:
getWrappedService
in interfaceServiceWrapper<LayoutSetLocalService>
-
setWrappedService
- Specified by:
setWrappedService
in interfaceServiceWrapper<LayoutSetLocalService>
-