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.voiddeleteLayoutSet(long groupId, boolean privateLayout, ServiceContext serviceContext) deleteLayoutSet(LayoutSet layoutSet) Deletes the layout set from the database.deletePersistedModel(PersistedModel persistedModel) <T> TdslQuery(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) intdslQueryCount(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.longdynamicQueryCount(DynamicQuery dynamicQuery) Returns the number of rows matching the dynamic query.longdynamicQueryCount(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) intReturns the number of layout sets.Returns the OSGi service identifier.intgetPageCount(long groupId, boolean privateLayout) getPersistedModel(Serializable primaryKeyObj) voidsetWrappedService(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.voidupdateLayoutSetPrototypeLinkEnabled(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) voidupdateLookAndFeel(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, waitMethods 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:
addLayoutSetin interfaceLayoutSetLocalService- Parameters:
layoutSet- the layout set- Returns:
- the layout set that was added
-
addLayoutSet
- Specified by:
addLayoutSetin interfaceLayoutSetLocalService- Throws:
PortalException
-
createLayoutSet
Creates a new layout set with the primary key. Does not add the layout set to the database.- Specified by:
createLayoutSetin interfaceLayoutSetLocalService- Parameters:
layoutSetId- the primary key for the new layout set- Returns:
- the new layout set
-
createPersistedModel
- Specified by:
createPersistedModelin interfaceLayoutSetLocalService- Specified by:
createPersistedModelin interfacePersistedModelLocalService- Throws:
PortalExceptionPortalException
-
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:
deleteLayoutSetin 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:
deleteLayoutSetin 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:
deleteLayoutSetin interfaceLayoutSetLocalService- Throws:
PortalException
-
deletePersistedModel
- Specified by:
deletePersistedModelin interfaceLayoutSetLocalService- Specified by:
deletePersistedModelin interfacePersistedModelLocalService- Throws:
PortalExceptionPortalException
-
dslQuery
public <T> T dslQuery(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) - Specified by:
dslQueryin interfaceLayoutSetLocalService- Specified by:
dslQueryin interfacePersistedModelLocalService
-
dslQueryCount
public int dslQueryCount(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) - Specified by:
dslQueryCountin interfaceLayoutSetLocalService- Specified by:
dslQueryCountin interfacePersistedModelLocalService
-
dynamicQuery
- Specified by:
dynamicQueryin interfaceLayoutSetLocalService
-
dynamicQuery
Performs a dynamic query on the database and returns the matching rows.- Specified by:
dynamicQueryin 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.portal.model.impl.LayoutSetModelImpl.- Specified by:
dynamicQueryin 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.portal.model.impl.LayoutSetModelImpl.- Specified by:
dynamicQueryin 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:
dynamicQueryCountin 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:
dynamicQueryCountin 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:
fetchLayoutSetin interfaceLayoutSetLocalService
-
fetchLayoutSet
- Specified by:
fetchLayoutSetin interfaceLayoutSetLocalService
-
fetchLayoutSet
- Specified by:
fetchLayoutSetin interfaceLayoutSetLocalService
-
fetchLayoutSetByLogoId
- Specified by:
fetchLayoutSetByLogoIdin interfaceLayoutSetLocalService- Throws:
PortalException
-
getActionableDynamicQuery
- Specified by:
getActionableDynamicQueryin interfaceLayoutSetLocalService
-
getIndexableActionableDynamicQuery
- Specified by:
getIndexableActionableDynamicQueryin interfaceLayoutSetLocalService
-
getLayoutSet
Returns the layout set with the primary key.- Specified by:
getLayoutSetin 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:
getLayoutSetin interfaceLayoutSetLocalService- Throws:
PortalException
-
getLayoutSet
- Specified by:
getLayoutSetin interfaceLayoutSetLocalService- Throws:
PortalException
-
getLayoutSets
Returns a range of all the layout sets.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.portal.model.impl.LayoutSetModelImpl.- Specified by:
getLayoutSetsin 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:
getLayoutSetsByLayoutSetPrototypeUuidin interfaceLayoutSetLocalService
-
getLayoutSetsCount
public int getLayoutSetsCount()Returns the number of layout sets.- Specified by:
getLayoutSetsCountin interfaceLayoutSetLocalService- Returns:
- the number of layout sets
-
getOSGiServiceIdentifier
Returns the OSGi service identifier.- Specified by:
getOSGiServiceIdentifierin interfaceLayoutSetLocalService- Returns:
- the OSGi service identifier
-
getPageCount
public int getPageCount(long groupId, boolean privateLayout) - Specified by:
getPageCountin interfaceLayoutSetLocalService
-
getPersistedModel
- Specified by:
getPersistedModelin interfaceLayoutSetLocalService- Specified by:
getPersistedModelin interfacePersistedModelLocalService- Throws:
PortalExceptionPortalException
-
updateFaviconFileEntryId
public LayoutSet updateFaviconFileEntryId(long groupId, boolean privateLayout, long faviconFileEntryId) throws PortalException - Specified by:
updateFaviconFileEntryIdin 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:
updateLayoutSetin 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:
updateLayoutSetPrototypeLinkEnabledin 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:
updateLogoin interfaceLayoutSetLocalService- Throws:
PortalException
-
updateLogo
public LayoutSet updateLogo(long groupId, boolean privateLayout, boolean hasLogo, File file) throws PortalException - Specified by:
updateLogoin interfaceLayoutSetLocalService- Throws:
PortalException
-
updateLogo
public LayoutSet updateLogo(long groupId, boolean privateLayout, boolean hasLogo, InputStream inputStream) throws PortalException - Specified by:
updateLogoin interfaceLayoutSetLocalService- Throws:
PortalException
-
updateLogo
public LayoutSet updateLogo(long groupId, boolean privateLayout, boolean hasLogo, InputStream inputStream, boolean cleanUpStream) throws PortalException - Specified by:
updateLogoin interfaceLayoutSetLocalService- Throws:
PortalException
-
updateLookAndFeel
public LayoutSet updateLookAndFeel(long groupId, boolean privateLayout, String themeId, String colorSchemeId, String css) throws PortalException - Specified by:
updateLookAndFeelin interfaceLayoutSetLocalService- Throws:
PortalException
-
updateLookAndFeel
public void updateLookAndFeel(long groupId, String themeId, String colorSchemeId, String css) throws PortalException - Specified by:
updateLookAndFeelin interfaceLayoutSetLocalService- Throws:
PortalException
-
updateSettings
public LayoutSet updateSettings(long groupId, boolean privateLayout, String settings) throws PortalException - Specified by:
updateSettingsin interfaceLayoutSetLocalService- Throws:
PortalException
-
updateVirtualHosts
public LayoutSet updateVirtualHosts(long groupId, boolean privateLayout, TreeMap<String, String> virtualHostnames) throws PortalException- Specified by:
updateVirtualHostsin interfaceLayoutSetLocalService- Throws:
PortalException
-
getBasePersistence
- Specified by:
getBasePersistencein interfacePersistedModelLocalService
-
getCTPersistence
- Specified by:
getCTPersistencein interfaceCTService<LayoutSet>- Specified by:
getCTPersistencein interfaceLayoutSetLocalService
-
getModelClass
- Specified by:
getModelClassin interfaceCTService<LayoutSet>- Specified by:
getModelClassin interfaceLayoutSetLocalService
-
updateWithUnsafeFunction
public <R,E extends Throwable> R updateWithUnsafeFunction(com.liferay.petra.function.UnsafeFunction<CTPersistence<LayoutSet>, R, throws EE> updateUnsafeFunction) - Specified by:
updateWithUnsafeFunctionin interfaceCTService<LayoutSet>- Specified by:
updateWithUnsafeFunctionin interfaceLayoutSetLocalService- Throws:
E extends Throwable
-
getWrappedService
- Specified by:
getWrappedServicein interfaceServiceWrapper<LayoutSetLocalService>
-
setWrappedService
- Specified by:
setWrappedServicein interfaceServiceWrapper<LayoutSetLocalService>
-