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 LayoutPrototypeLocalService {
043 public com.liferay.portal.model.LayoutPrototype addLayoutPrototype(
044 com.liferay.portal.model.LayoutPrototype layoutPrototype)
045 throws com.liferay.portal.kernel.exception.SystemException;
046
047 public com.liferay.portal.model.LayoutPrototype createLayoutPrototype(
048 long layoutPrototypeId);
049
050 public void deleteLayoutPrototype(long layoutPrototypeId)
051 throws com.liferay.portal.kernel.exception.PortalException,
052 com.liferay.portal.kernel.exception.SystemException;
053
054 public void deleteLayoutPrototype(
055 com.liferay.portal.model.LayoutPrototype layoutPrototype)
056 throws com.liferay.portal.kernel.exception.SystemException;
057
058 @SuppressWarnings("unchecked")
059 public java.util.List dynamicQuery(
060 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
061 throws com.liferay.portal.kernel.exception.SystemException;
062
063 @SuppressWarnings("unchecked")
064 public java.util.List dynamicQuery(
065 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
066 int end) throws com.liferay.portal.kernel.exception.SystemException;
067
068 @SuppressWarnings("unchecked")
069 public java.util.List dynamicQuery(
070 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
071 int end,
072 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
073 throws com.liferay.portal.kernel.exception.SystemException;
074
075 public long dynamicQueryCount(
076 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
077 throws com.liferay.portal.kernel.exception.SystemException;
078
079 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
080 public com.liferay.portal.model.LayoutPrototype getLayoutPrototype(
081 long layoutPrototypeId)
082 throws com.liferay.portal.kernel.exception.PortalException,
083 com.liferay.portal.kernel.exception.SystemException;
084
085 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
086 public java.util.List<com.liferay.portal.model.LayoutPrototype> getLayoutPrototypes(
087 int start, int end)
088 throws com.liferay.portal.kernel.exception.SystemException;
089
090 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
091 public int getLayoutPrototypesCount()
092 throws com.liferay.portal.kernel.exception.SystemException;
093
094 public com.liferay.portal.model.LayoutPrototype updateLayoutPrototype(
095 com.liferay.portal.model.LayoutPrototype layoutPrototype)
096 throws com.liferay.portal.kernel.exception.SystemException;
097
098 public com.liferay.portal.model.LayoutPrototype updateLayoutPrototype(
099 com.liferay.portal.model.LayoutPrototype layoutPrototype, boolean merge)
100 throws com.liferay.portal.kernel.exception.SystemException;
101
102 public com.liferay.portal.model.LayoutPrototype addLayoutPrototype(
103 long userId, long companyId,
104 java.util.Map<java.util.Locale, java.lang.String> nameMap,
105 java.lang.String description, boolean active)
106 throws com.liferay.portal.kernel.exception.PortalException,
107 com.liferay.portal.kernel.exception.SystemException;
108
109 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
110 public java.util.List<com.liferay.portal.model.LayoutPrototype> search(
111 long companyId, java.lang.Boolean active, int start, int end,
112 com.liferay.portal.kernel.util.OrderByComparator obc)
113 throws com.liferay.portal.kernel.exception.SystemException;
114
115 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
116 public int searchCount(long companyId, java.lang.Boolean active)
117 throws com.liferay.portal.kernel.exception.SystemException;
118
119 public com.liferay.portal.model.LayoutPrototype updateLayoutPrototype(
120 long layoutPrototypeId,
121 java.util.Map<java.util.Locale, java.lang.String> nameMap,
122 java.lang.String description, boolean active)
123 throws com.liferay.portal.kernel.exception.PortalException,
124 com.liferay.portal.kernel.exception.SystemException;
125 }