001
014
015 package com.liferay.portal.service;
016
017 import com.liferay.portal.kernel.annotation.Isolation;
018 import com.liferay.portal.kernel.annotation.Propagation;
019 import com.liferay.portal.kernel.annotation.Transactional;
020 import com.liferay.portal.kernel.exception.PortalException;
021 import com.liferay.portal.kernel.exception.SystemException;
022
023
040 @Transactional(isolation = Isolation.PORTAL, rollbackFor = {
041 PortalException.class, SystemException.class})
042 public interface LayoutPrototypeService {
043 public com.liferay.portal.model.LayoutPrototype addLayoutPrototype(
044 java.util.Map<java.util.Locale, java.lang.String> nameMap,
045 java.lang.String description, boolean active)
046 throws com.liferay.portal.kernel.exception.PortalException,
047 com.liferay.portal.kernel.exception.SystemException;
048
049 public void deleteLayoutPrototype(long layoutPrototypeId)
050 throws com.liferay.portal.kernel.exception.PortalException,
051 com.liferay.portal.kernel.exception.SystemException;
052
053 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
054 public com.liferay.portal.model.LayoutPrototype getLayoutPrototype(
055 long layoutPrototypeId)
056 throws com.liferay.portal.kernel.exception.PortalException,
057 com.liferay.portal.kernel.exception.SystemException;
058
059 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
060 public java.util.List<com.liferay.portal.model.LayoutPrototype> search(
061 long companyId, java.lang.Boolean active,
062 com.liferay.portal.kernel.util.OrderByComparator obc)
063 throws com.liferay.portal.kernel.exception.PortalException,
064 com.liferay.portal.kernel.exception.SystemException;
065
066 public com.liferay.portal.model.LayoutPrototype updateLayoutPrototype(
067 long layoutPrototypeId,
068 java.util.Map<java.util.Locale, java.lang.String> nameMap,
069 java.lang.String description, boolean active)
070 throws com.liferay.portal.kernel.exception.PortalException,
071 com.liferay.portal.kernel.exception.SystemException;
072 }