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 PortletPreferencesLocalService {
50 public com.liferay.portal.model.PortletPreferences addPortletPreferences(
51 com.liferay.portal.model.PortletPreferences portletPreferences)
52 throws com.liferay.portal.kernel.exception.SystemException;
53
54 public com.liferay.portal.model.PortletPreferences createPortletPreferences(
55 long portletPreferencesId);
56
57 public void deletePortletPreferences(long portletPreferencesId)
58 throws com.liferay.portal.kernel.exception.PortalException,
59 com.liferay.portal.kernel.exception.SystemException;
60
61 public void deletePortletPreferences(
62 com.liferay.portal.model.PortletPreferences portletPreferences)
63 throws com.liferay.portal.kernel.exception.SystemException;
64
65 @SuppressWarnings("unchecked")
66 public java.util.List dynamicQuery(
67 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
68 throws com.liferay.portal.kernel.exception.SystemException;
69
70 @SuppressWarnings("unchecked")
71 public java.util.List dynamicQuery(
72 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
73 int end) throws com.liferay.portal.kernel.exception.SystemException;
74
75 @SuppressWarnings("unchecked")
76 public java.util.List dynamicQuery(
77 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
78 int end,
79 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
80 throws com.liferay.portal.kernel.exception.SystemException;
81
82 public long dynamicQueryCount(
83 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
84 throws com.liferay.portal.kernel.exception.SystemException;
85
86 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
87 public com.liferay.portal.model.PortletPreferences getPortletPreferences(
88 long portletPreferencesId)
89 throws com.liferay.portal.kernel.exception.PortalException,
90 com.liferay.portal.kernel.exception.SystemException;
91
92 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
93 public java.util.List<com.liferay.portal.model.PortletPreferences> getPortletPreferenceses(
94 int start, int end)
95 throws com.liferay.portal.kernel.exception.SystemException;
96
97 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
98 public int getPortletPreferencesesCount()
99 throws com.liferay.portal.kernel.exception.SystemException;
100
101 public com.liferay.portal.model.PortletPreferences updatePortletPreferences(
102 com.liferay.portal.model.PortletPreferences portletPreferences)
103 throws com.liferay.portal.kernel.exception.SystemException;
104
105 public com.liferay.portal.model.PortletPreferences updatePortletPreferences(
106 com.liferay.portal.model.PortletPreferences portletPreferences,
107 boolean merge)
108 throws com.liferay.portal.kernel.exception.SystemException;
109
110 public com.liferay.portal.model.PortletPreferences addPortletPreferences(
111 long companyId, long ownerId, int ownerType, long plid,
112 java.lang.String portletId, com.liferay.portal.model.Portlet portlet,
113 java.lang.String defaultPreferences)
114 throws com.liferay.portal.kernel.exception.SystemException;
115
116 public void deletePortletPreferences(long ownerId, int ownerType, long plid)
117 throws com.liferay.portal.kernel.exception.SystemException;
118
119 public void deletePortletPreferences(long ownerId, int ownerType,
120 long plid, java.lang.String portletId)
121 throws com.liferay.portal.kernel.exception.PortalException,
122 com.liferay.portal.kernel.exception.SystemException;
123
124 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
125 public javax.portlet.PortletPreferences getDefaultPreferences(
126 long companyId, java.lang.String portletId)
127 throws com.liferay.portal.kernel.exception.SystemException;
128
129 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
130 public java.util.List<com.liferay.portal.model.PortletPreferences> getPortletPreferences()
131 throws com.liferay.portal.kernel.exception.SystemException;
132
133 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
134 public java.util.List<com.liferay.portal.model.PortletPreferences> getPortletPreferences(
135 long plid, java.lang.String portletId)
136 throws com.liferay.portal.kernel.exception.SystemException;
137
138 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
139 public java.util.List<com.liferay.portal.model.PortletPreferences> getPortletPreferences(
140 long ownerId, int ownerType, long plid)
141 throws com.liferay.portal.kernel.exception.SystemException;
142
143 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
144 public com.liferay.portal.model.PortletPreferences getPortletPreferences(
145 long ownerId, int ownerType, long plid, java.lang.String portletId)
146 throws com.liferay.portal.kernel.exception.PortalException,
147 com.liferay.portal.kernel.exception.SystemException;
148
149 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
150 public java.util.List<com.liferay.portal.model.PortletPreferences> getPortletPreferencesByPlid(
151 long plid) throws com.liferay.portal.kernel.exception.SystemException;
152
153 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
154 public javax.portlet.PortletPreferences getPreferences(
155 com.liferay.portal.model.PortletPreferencesIds portletPreferencesIds)
156 throws com.liferay.portal.kernel.exception.SystemException;
157
158 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
159 public javax.portlet.PortletPreferences getPreferences(long companyId,
160 long ownerId, int ownerType, long plid, java.lang.String portletId)
161 throws com.liferay.portal.kernel.exception.SystemException;
162
163 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
164 public javax.portlet.PortletPreferences getPreferences(long companyId,
165 long ownerId, int ownerType, long plid, java.lang.String portletId,
166 java.lang.String defaultPreferences)
167 throws com.liferay.portal.kernel.exception.SystemException;
168
169 public com.liferay.portal.model.PortletPreferences updatePreferences(
170 long ownerId, int ownerType, long plid, java.lang.String portletId,
171 javax.portlet.PortletPreferences preferences)
172 throws com.liferay.portal.kernel.exception.SystemException;
173
174 public com.liferay.portal.model.PortletPreferences updatePreferences(
175 long ownerId, int ownerType, long plid, java.lang.String portletId,
176 java.lang.String xml)
177 throws com.liferay.portal.kernel.exception.SystemException;
178 }