001
014
015 package com.liferay.portal.service;
016
017 import com.liferay.portal.kernel.exception.PortalException;
018 import com.liferay.portal.kernel.exception.SystemException;
019 import com.liferay.portal.kernel.jsonwebservice.JSONWebService;
020 import com.liferay.portal.kernel.transaction.Isolation;
021 import com.liferay.portal.kernel.transaction.Propagation;
022 import com.liferay.portal.kernel.transaction.Transactional;
023
024
037 @JSONWebService
038 @Transactional(isolation = Isolation.PORTAL, rollbackFor = {
039 PortalException.class, SystemException.class})
040 public interface LayoutSetPrototypeService {
041
046 public com.liferay.portal.model.LayoutSetPrototype addLayoutSetPrototype(
047 java.util.Map<java.util.Locale, java.lang.String> nameMap,
048 java.lang.String description, boolean active)
049 throws com.liferay.portal.kernel.exception.PortalException,
050 com.liferay.portal.kernel.exception.SystemException;
051
052 public void deleteLayoutSetPrototype(long layoutSetPrototypeId)
053 throws com.liferay.portal.kernel.exception.PortalException,
054 com.liferay.portal.kernel.exception.SystemException;
055
056 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
057 public com.liferay.portal.model.LayoutSetPrototype getLayoutSetPrototype(
058 long layoutSetPrototypeId)
059 throws com.liferay.portal.kernel.exception.PortalException,
060 com.liferay.portal.kernel.exception.SystemException;
061
062 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
063 public java.util.List<com.liferay.portal.model.LayoutSetPrototype> search(
064 long companyId, java.lang.Boolean active,
065 com.liferay.portal.kernel.util.OrderByComparator obc)
066 throws com.liferay.portal.kernel.exception.PortalException,
067 com.liferay.portal.kernel.exception.SystemException;
068
069 public com.liferay.portal.model.LayoutSetPrototype updateLayoutSetPrototype(
070 long layoutSetPrototypeId,
071 java.util.Map<java.util.Locale, java.lang.String> nameMap,
072 java.lang.String description, boolean active)
073 throws com.liferay.portal.kernel.exception.PortalException,
074 com.liferay.portal.kernel.exception.SystemException;
075 }