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 import com.liferay.portal.security.ac.AccessControlled;
024
025
038 @AccessControlled
039 @JSONWebService
040 @Transactional(isolation = Isolation.PORTAL, rollbackFor = {
041 PortalException.class, SystemException.class})
042 public interface LayoutPrototypeService extends BaseService {
043
048
049
054 public java.lang.String getBeanIdentifier();
055
056
061 public void setBeanIdentifier(java.lang.String beanIdentifier);
062
063 public com.liferay.portal.model.LayoutPrototype addLayoutPrototype(
064 java.util.Map<java.util.Locale, java.lang.String> nameMap,
065 java.lang.String description, boolean active)
066 throws com.liferay.portal.kernel.exception.PortalException,
067 com.liferay.portal.kernel.exception.SystemException;
068
069 public void deleteLayoutPrototype(long layoutPrototypeId)
070 throws com.liferay.portal.kernel.exception.PortalException,
071 com.liferay.portal.kernel.exception.SystemException;
072
073 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
074 public com.liferay.portal.model.LayoutPrototype getLayoutPrototype(
075 long layoutPrototypeId)
076 throws com.liferay.portal.kernel.exception.PortalException,
077 com.liferay.portal.kernel.exception.SystemException;
078
079 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
080 public java.util.List<com.liferay.portal.model.LayoutPrototype> search(
081 long companyId, java.lang.Boolean active,
082 com.liferay.portal.kernel.util.OrderByComparator obc)
083 throws com.liferay.portal.kernel.exception.PortalException,
084 com.liferay.portal.kernel.exception.SystemException;
085
086 public com.liferay.portal.model.LayoutPrototype updateLayoutPrototype(
087 long layoutPrototypeId,
088 java.util.Map<java.util.Locale, java.lang.String> nameMap,
089 java.lang.String description, boolean active)
090 throws com.liferay.portal.kernel.exception.PortalException,
091 com.liferay.portal.kernel.exception.SystemException;
092 }