Package com.liferay.portal.service.impl
Class LayoutPrototypeLocalServiceImpl
Object
com.liferay.portal.kernel.service.BaseLocalServiceImpl
com.liferay.portal.service.base.LayoutPrototypeLocalServiceBaseImpl
com.liferay.portal.service.impl.LayoutPrototypeLocalServiceImpl
- 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.LayoutPrototype>
,com.liferay.portal.kernel.service.LayoutPrototypeLocalService
,com.liferay.portal.kernel.service.PersistedModelLocalService
- Author:
- Brian Wing Shun Chan, Jorge Ferrer, Vilmos Papp
-
Field Summary
Fields inherited from class com.liferay.portal.service.base.LayoutPrototypeLocalServiceBaseImpl
counterLocalService, layoutPrototypeLocalService, layoutPrototypePersistence
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.liferay.portal.kernel.model.LayoutPrototype
addLayoutPrototype
(long userId, long companyId, Map<Locale, String> nameMap, Map<Locale, String> descriptionMap, boolean active, com.liferay.portal.kernel.service.ServiceContext serviceContext) com.liferay.portal.kernel.model.LayoutPrototype
deleteLayoutPrototype
(long layoutPrototypeId) Deletes the layout prototype with the primary key from the database.com.liferay.portal.kernel.model.LayoutPrototype
deleteLayoutPrototype
(com.liferay.portal.kernel.model.LayoutPrototype layoutPrototype) Deletes the layout prototype from the database.void
deleteNondefaultLayoutPrototypes
(long companyId) com.liferay.portal.kernel.model.LayoutPrototype
fetchLayoutPrototype
(long companyId, String name, Locale locale) com.liferay.portal.kernel.model.LayoutPrototype
fetchLayoutProtoype
(long companyId, String name) com.liferay.portal.kernel.model.LayoutPrototype
getLayoutPrototype
(long companyId, String name) com.liferay.portal.kernel.model.LayoutPrototype
getLayoutPrototype
(long companyId, String name, Locale locale) List<com.liferay.portal.kernel.model.LayoutPrototype>
search
(long companyId, Boolean active, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.LayoutPrototype> orderByComparator) int
searchCount
(long companyId, Boolean active) com.liferay.portal.kernel.model.LayoutPrototype
updateLayoutPrototype
(long layoutPrototypeId, Map<Locale, String> nameMap, Map<Locale, String> descriptionMap, boolean active, com.liferay.portal.kernel.service.ServiceContext serviceContext) Methods inherited from class com.liferay.portal.service.base.LayoutPrototypeLocalServiceBaseImpl
addLayoutPrototype, afterPropertiesSet, createLayoutPrototype, createPersistedModel, deletePersistedModel, destroy, dslQuery, dslQueryCount, dynamicQuery, dynamicQuery, dynamicQuery, dynamicQuery, dynamicQueryCount, dynamicQueryCount, fetchLayoutPrototype, fetchLayoutPrototypeByUuidAndCompanyId, getActionableDynamicQuery, getBasePersistence, getCounterLocalService, getCTPersistence, getExportActionableDynamicQuery, getIndexableActionableDynamicQuery, getLayoutPrototype, getLayoutPrototypeByUuidAndCompanyId, getLayoutPrototypeLocalService, getLayoutPrototypePersistence, getLayoutPrototypes, getLayoutPrototypesCount, getModelClass, getModelClassName, getOSGiServiceIdentifier, getPersistedModel, initActionableDynamicQuery, runSQL, setCounterLocalService, setLayoutPrototypeLocalService, setLayoutPrototypePersistence, updateLayoutPrototype, 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
-
LayoutPrototypeLocalServiceImpl
public LayoutPrototypeLocalServiceImpl()
-
-
Method Details
-
addLayoutPrototype
public com.liferay.portal.kernel.model.LayoutPrototype addLayoutPrototype(long userId, long companyId, Map<Locale, String> nameMap, Map<Locale, throws com.liferay.portal.kernel.exception.PortalExceptionString> descriptionMap, boolean active, com.liferay.portal.kernel.service.ServiceContext serviceContext) - Throws:
com.liferay.portal.kernel.exception.PortalException
-
deleteLayoutPrototype
@SystemEvent(action=1, type=1) public com.liferay.portal.kernel.model.LayoutPrototype deleteLayoutPrototype(com.liferay.portal.kernel.model.LayoutPrototype layoutPrototype) throws com.liferay.portal.kernel.exception.PortalException Description copied from class:LayoutPrototypeLocalServiceBaseImpl
Deletes the layout prototype from the database. Also notifies the appropriate model listeners.Important: Inspect LayoutPrototypeLocalServiceImpl 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:
deleteLayoutPrototype
in interfacecom.liferay.portal.kernel.service.LayoutPrototypeLocalService
- Overrides:
deleteLayoutPrototype
in classLayoutPrototypeLocalServiceBaseImpl
- Parameters:
layoutPrototype
- the layout prototype- Returns:
- the layout prototype that was removed
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
deleteLayoutPrototype
public com.liferay.portal.kernel.model.LayoutPrototype deleteLayoutPrototype(long layoutPrototypeId) throws com.liferay.portal.kernel.exception.PortalException Description copied from class:LayoutPrototypeLocalServiceBaseImpl
Deletes the layout prototype with the primary key from the database. Also notifies the appropriate model listeners.Important: Inspect LayoutPrototypeLocalServiceImpl 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:
deleteLayoutPrototype
in interfacecom.liferay.portal.kernel.service.LayoutPrototypeLocalService
- Overrides:
deleteLayoutPrototype
in classLayoutPrototypeLocalServiceBaseImpl
- Parameters:
layoutPrototypeId
- the primary key of the layout prototype- Returns:
- the layout prototype that was removed
- Throws:
com.liferay.portal.kernel.exception.PortalException
- if a layout prototype with the primary key could not be found
-
deleteNondefaultLayoutPrototypes
public void deleteNondefaultLayoutPrototypes(long companyId) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
fetchLayoutPrototype
-
fetchLayoutProtoype
public com.liferay.portal.kernel.model.LayoutPrototype fetchLayoutProtoype(long companyId, String name) -
getLayoutPrototype
public com.liferay.portal.kernel.model.LayoutPrototype getLayoutPrototype(long companyId, String name) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
getLayoutPrototype
public com.liferay.portal.kernel.model.LayoutPrototype getLayoutPrototype(long companyId, String name, Locale locale) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
search
-
searchCount
-
updateLayoutPrototype
public com.liferay.portal.kernel.model.LayoutPrototype updateLayoutPrototype(long layoutPrototypeId, Map<Locale, String> nameMap, Map<Locale, throws com.liferay.portal.kernel.exception.PortalExceptionString> descriptionMap, boolean active, com.liferay.portal.kernel.service.ServiceContext serviceContext) - Throws:
com.liferay.portal.kernel.exception.PortalException
-