1
14
15 package com.liferay.portal.service;
16
17 import com.liferay.portal.kernel.annotation.Isolation;
18 import com.liferay.portal.kernel.annotation.Propagation;
19 import com.liferay.portal.kernel.annotation.Transactional;
20 import com.liferay.portal.kernel.exception.PortalException;
21 import com.liferay.portal.kernel.exception.SystemException;
22
23
47 @Transactional(isolation = Isolation.PORTAL, rollbackFor = {
48 PortalException.class, SystemException.class})
49 public interface LayoutPrototypeService {
50 public com.liferay.portal.model.LayoutPrototype addLayoutPrototype(
51 java.util.Map<java.util.Locale, String> nameMap,
52 java.lang.String description, boolean active)
53 throws com.liferay.portal.kernel.exception.PortalException,
54 com.liferay.portal.kernel.exception.SystemException;
55
56 public void deleteLayoutPrototype(long layoutPrototypeId)
57 throws com.liferay.portal.kernel.exception.PortalException,
58 com.liferay.portal.kernel.exception.SystemException;
59
60 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
61 public com.liferay.portal.model.LayoutPrototype getLayoutPrototype(
62 long layoutPrototypeId)
63 throws com.liferay.portal.kernel.exception.PortalException,
64 com.liferay.portal.kernel.exception.SystemException;
65
66 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
67 public java.util.List<com.liferay.portal.model.LayoutPrototype> search(
68 long companyId, java.lang.Boolean active,
69 com.liferay.portal.kernel.util.OrderByComparator obc)
70 throws com.liferay.portal.kernel.exception.PortalException,
71 com.liferay.portal.kernel.exception.SystemException;
72
73 public com.liferay.portal.model.LayoutPrototype updateLayoutPrototype(
74 long layoutPrototypeId,
75 java.util.Map<java.util.Locale, String> nameMap,
76 java.lang.String description, boolean active)
77 throws com.liferay.portal.kernel.exception.PortalException,
78 com.liferay.portal.kernel.exception.SystemException;
79 }