Package com.liferay.portal.service.impl
Class LayoutFriendlyURLLocalServiceImpl
Object
com.liferay.portal.kernel.service.BaseLocalServiceImpl
com.liferay.portal.service.base.LayoutFriendlyURLLocalServiceBaseImpl
com.liferay.portal.service.impl.LayoutFriendlyURLLocalServiceImpl
- All Implemented Interfaces:
com.liferay.portal.kernel.module.framework.service.IdentifiableOSGiService
,com.liferay.portal.kernel.service.BaseLocalService
,com.liferay.portal.kernel.service.change.tracking.CTService<com.liferay.portal.kernel.model.LayoutFriendlyURL>
,com.liferay.portal.kernel.service.LayoutFriendlyURLLocalService
,com.liferay.portal.kernel.service.PersistedModelLocalService
Provides the local service for accessing, adding, deleting, and updating
friendly URLs for layouts.
All custom service methods should be put in this class. Whenever methods are
added, rerun ServiceBuilder to copy their definitions into the LayoutFriendlyURLLocalService
interface.
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.
- Author:
- Brian Wing Shun Chan
-
Field Summary
Fields inherited from class com.liferay.portal.service.base.LayoutFriendlyURLLocalServiceBaseImpl
counterLocalService, layoutFriendlyURLLocalService, layoutFriendlyURLPersistence
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.liferay.portal.kernel.model.LayoutFriendlyURL
addLayoutFriendlyURL
(long userId, long companyId, long groupId, long plid, boolean privateLayout, String friendlyURL, String languageId, com.liferay.portal.kernel.service.ServiceContext serviceContext) List<com.liferay.portal.kernel.model.LayoutFriendlyURL>
addLayoutFriendlyURLs
(long userId, long companyId, long groupId, long plid, boolean privateLayout, Map<Locale, String> friendlyURLMap, com.liferay.portal.kernel.service.ServiceContext serviceContext) void
deleteLayoutFriendlyURL
(long plid, String languageId) com.liferay.portal.kernel.model.LayoutFriendlyURL
deleteLayoutFriendlyURL
(com.liferay.portal.kernel.model.LayoutFriendlyURL layoutFriendlyURL) Deletes the layout friendly url from the database.void
deleteLayoutFriendlyURLs
(long plid) com.liferay.portal.kernel.model.LayoutFriendlyURL
fetchFirstLayoutFriendlyURL
(long groupId, boolean privateLayout, String friendlyURL) com.liferay.portal.kernel.model.LayoutFriendlyURL
fetchLayoutFriendlyURL
(long groupId, boolean privateLayout, String friendlyURL, String languageId) com.liferay.portal.kernel.model.LayoutFriendlyURL
fetchLayoutFriendlyURL
(long plid, String languageId) com.liferay.portal.kernel.model.LayoutFriendlyURL
fetchLayoutFriendlyURL
(long plid, String languageId, boolean useDefault) com.liferay.portal.kernel.model.LayoutFriendlyURL
getLayoutFriendlyURL
(long groupId, boolean privateLayout, String friendlyURL, String languageId) com.liferay.portal.kernel.model.LayoutFriendlyURL
getLayoutFriendlyURL
(long plid, String languageId) com.liferay.portal.kernel.model.LayoutFriendlyURL
getLayoutFriendlyURL
(long plid, String languageId, boolean useDefault) List<com.liferay.portal.kernel.model.LayoutFriendlyURL>
getLayoutFriendlyURLs
(long plid) List<com.liferay.portal.kernel.model.LayoutFriendlyURL>
getLayoutFriendlyURLs
(long plid, String friendlyURL, int start, int end) getLayoutFriendlyURLs
(com.liferay.portal.kernel.model.Group siteGroup, List<com.liferay.portal.kernel.model.Layout> layouts, String languageId) int
getLayoutFriendlyURLsCount
(long companyId, String friendlyURL) com.liferay.portal.kernel.model.LayoutFriendlyURL
updateLayoutFriendlyURL
(long userId, long companyId, long groupId, long plid, boolean privateLayout, String friendlyURL, String languageId, com.liferay.portal.kernel.service.ServiceContext serviceContext) List<com.liferay.portal.kernel.model.LayoutFriendlyURL>
updateLayoutFriendlyURLs
(long userId, long companyId, long groupId, long plid, boolean privateLayout, Map<Locale, String> friendlyURLMap, com.liferay.portal.kernel.service.ServiceContext serviceContext) Methods inherited from class com.liferay.portal.service.base.LayoutFriendlyURLLocalServiceBaseImpl
addLayoutFriendlyURL, afterPropertiesSet, createLayoutFriendlyURL, createPersistedModel, deleteLayoutFriendlyURL, deletePersistedModel, destroy, dslQuery, dslQueryCount, dynamicQuery, dynamicQuery, dynamicQuery, dynamicQuery, dynamicQueryCount, dynamicQueryCount, fetchLayoutFriendlyURL, fetchLayoutFriendlyURLByUuidAndGroupId, getActionableDynamicQuery, getBasePersistence, getCounterLocalService, getCTPersistence, getExportActionableDynamicQuery, getIndexableActionableDynamicQuery, getLayoutFriendlyURL, getLayoutFriendlyURLByUuidAndGroupId, getLayoutFriendlyURLLocalService, getLayoutFriendlyURLPersistence, getLayoutFriendlyURLs, getLayoutFriendlyURLsByUuidAndCompanyId, getLayoutFriendlyURLsByUuidAndCompanyId, getLayoutFriendlyURLsCount, getModelClass, getModelClassName, getOSGiServiceIdentifier, getPersistedModel, initActionableDynamicQuery, runSQL, setCounterLocalService, setLayoutFriendlyURLLocalService, setLayoutFriendlyURLPersistence, updateLayoutFriendlyURL, updateWithUnsafeFunction
Methods inherited from class com.liferay.portal.kernel.service.BaseLocalServiceImpl
getClassLoader, getLocalizationMap
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
-
LayoutFriendlyURLLocalServiceImpl
public LayoutFriendlyURLLocalServiceImpl()
-
-
Method Details
-
addLayoutFriendlyURL
public com.liferay.portal.kernel.model.LayoutFriendlyURL addLayoutFriendlyURL(long userId, long companyId, long groupId, long plid, boolean privateLayout, String friendlyURL, String languageId, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
addLayoutFriendlyURLs
public List<com.liferay.portal.kernel.model.LayoutFriendlyURL> addLayoutFriendlyURLs(long userId, long companyId, long groupId, long plid, boolean privateLayout, Map<Locale, String> friendlyURLMap, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException- Throws:
com.liferay.portal.kernel.exception.PortalException
-
deleteLayoutFriendlyURL
@SystemEvent(type=1) public com.liferay.portal.kernel.model.LayoutFriendlyURL deleteLayoutFriendlyURL(com.liferay.portal.kernel.model.LayoutFriendlyURL layoutFriendlyURL) Description copied from class:LayoutFriendlyURLLocalServiceBaseImpl
Deletes the layout friendly url from the database. Also notifies the appropriate model listeners.Important: Inspect LayoutFriendlyURLLocalServiceImpl 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:
deleteLayoutFriendlyURL
in interfacecom.liferay.portal.kernel.service.LayoutFriendlyURLLocalService
- Overrides:
deleteLayoutFriendlyURL
in classLayoutFriendlyURLLocalServiceBaseImpl
- Parameters:
layoutFriendlyURL
- the layout friendly url- Returns:
- the layout friendly url that was removed
-
deleteLayoutFriendlyURL
-
deleteLayoutFriendlyURLs
public void deleteLayoutFriendlyURLs(long plid) -
fetchFirstLayoutFriendlyURL
public com.liferay.portal.kernel.model.LayoutFriendlyURL fetchFirstLayoutFriendlyURL(long groupId, boolean privateLayout, String friendlyURL) -
fetchLayoutFriendlyURL
-
fetchLayoutFriendlyURL
public com.liferay.portal.kernel.model.LayoutFriendlyURL fetchLayoutFriendlyURL(long plid, String languageId) -
fetchLayoutFriendlyURL
public com.liferay.portal.kernel.model.LayoutFriendlyURL fetchLayoutFriendlyURL(long plid, String languageId, boolean useDefault) -
getLayoutFriendlyURL
public com.liferay.portal.kernel.model.LayoutFriendlyURL getLayoutFriendlyURL(long groupId, boolean privateLayout, String friendlyURL, String languageId) throws com.liferay.portal.kernel.exception.NoSuchLayoutFriendlyURLException - Throws:
com.liferay.portal.kernel.exception.NoSuchLayoutFriendlyURLException
-
getLayoutFriendlyURL
public com.liferay.portal.kernel.model.LayoutFriendlyURL getLayoutFriendlyURL(long plid, String languageId) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
getLayoutFriendlyURL
public com.liferay.portal.kernel.model.LayoutFriendlyURL getLayoutFriendlyURL(long plid, String languageId, boolean useDefault) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
getLayoutFriendlyURLs
-
getLayoutFriendlyURLs
-
getLayoutFriendlyURLs
-
getLayoutFriendlyURLsCount
-
updateLayoutFriendlyURL
public com.liferay.portal.kernel.model.LayoutFriendlyURL updateLayoutFriendlyURL(long userId, long companyId, long groupId, long plid, boolean privateLayout, String friendlyURL, String languageId, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
updateLayoutFriendlyURLs
public List<com.liferay.portal.kernel.model.LayoutFriendlyURL> updateLayoutFriendlyURLs(long userId, long companyId, long groupId, long plid, boolean privateLayout, Map<Locale, String> friendlyURLMap, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException- Throws:
com.liferay.portal.kernel.exception.PortalException
-