1
22
23 package com.liferay.portal.service;
24
25 import com.liferay.portal.PortalException;
26 import com.liferay.portal.SystemException;
27 import com.liferay.portal.kernel.annotation.Isolation;
28 import com.liferay.portal.kernel.annotation.Propagation;
29 import com.liferay.portal.kernel.annotation.Transactional;
30
31
55 @Transactional(isolation = Isolation.PORTAL, rollbackFor = {
56 PortalException.class, SystemException.class})
57 public interface PortletPreferencesLocalService {
58 public com.liferay.portal.model.PortletPreferences addPortletPreferences(
59 com.liferay.portal.model.PortletPreferences portletPreferences)
60 throws com.liferay.portal.SystemException;
61
62 public com.liferay.portal.model.PortletPreferences createPortletPreferences(
63 long portletPreferencesId);
64
65 public void deletePortletPreferences(long portletPreferencesId)
66 throws com.liferay.portal.SystemException,
67 com.liferay.portal.PortalException;
68
69 public void deletePortletPreferences(
70 com.liferay.portal.model.PortletPreferences portletPreferences)
71 throws com.liferay.portal.SystemException;
72
73 public java.util.List<Object> dynamicQuery(
74 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
75 throws com.liferay.portal.SystemException;
76
77 public java.util.List<Object> dynamicQuery(
78 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
79 int end) throws com.liferay.portal.SystemException;
80
81 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
82 public com.liferay.portal.model.PortletPreferences getPortletPreferences(
83 long portletPreferencesId)
84 throws com.liferay.portal.SystemException,
85 com.liferay.portal.PortalException;
86
87 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
88 public java.util.List<com.liferay.portal.model.PortletPreferences> getPortletPreferenceses(
89 int start, int end) throws com.liferay.portal.SystemException;
90
91 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
92 public int getPortletPreferencesesCount()
93 throws com.liferay.portal.SystemException;
94
95 public com.liferay.portal.model.PortletPreferences updatePortletPreferences(
96 com.liferay.portal.model.PortletPreferences portletPreferences)
97 throws com.liferay.portal.SystemException;
98
99 public com.liferay.portal.model.PortletPreferences updatePortletPreferences(
100 com.liferay.portal.model.PortletPreferences portletPreferences,
101 boolean merge) throws com.liferay.portal.SystemException;
102
103 public com.liferay.portal.model.PortletPreferences addPortletPreferences(
104 long companyId, long ownerId, int ownerType, long plid,
105 java.lang.String portletId, com.liferay.portal.model.Portlet portlet,
106 java.lang.String defaultPreferences)
107 throws com.liferay.portal.SystemException;
108
109 public void deletePortletPreferences(long ownerId, int ownerType, long plid)
110 throws com.liferay.portal.SystemException;
111
112 public void deletePortletPreferences(long ownerId, int ownerType,
113 long plid, java.lang.String portletId)
114 throws com.liferay.portal.PortalException,
115 com.liferay.portal.SystemException;
116
117 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
118 public javax.portlet.PortletPreferences getDefaultPreferences(
119 long companyId, java.lang.String portletId)
120 throws com.liferay.portal.SystemException;
121
122 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
123 public java.util.List<com.liferay.portal.model.PortletPreferences> getPortletPreferences()
124 throws com.liferay.portal.SystemException;
125
126 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
127 public java.util.List<com.liferay.portal.model.PortletPreferences> getPortletPreferences(
128 long plid, java.lang.String portletId)
129 throws com.liferay.portal.SystemException;
130
131 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
132 public java.util.List<com.liferay.portal.model.PortletPreferences> getPortletPreferences(
133 long ownerId, int ownerType, long plid)
134 throws com.liferay.portal.SystemException;
135
136 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
137 public com.liferay.portal.model.PortletPreferences getPortletPreferences(
138 long ownerId, int ownerType, long plid, java.lang.String portletId)
139 throws com.liferay.portal.PortalException,
140 com.liferay.portal.SystemException;
141
142 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
143 public java.util.List<com.liferay.portal.model.PortletPreferences> getPortletPreferencesByPlid(
144 long plid) throws com.liferay.portal.SystemException;
145
146 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
147 public javax.portlet.PortletPreferences getPreferences(
148 com.liferay.portal.model.PortletPreferencesIds portletPreferencesIds)
149 throws com.liferay.portal.SystemException;
150
151 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
152 public javax.portlet.PortletPreferences getPreferences(long companyId,
153 long ownerId, int ownerType, long plid, java.lang.String portletId)
154 throws com.liferay.portal.SystemException;
155
156 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
157 public javax.portlet.PortletPreferences getPreferences(long companyId,
158 long ownerId, int ownerType, long plid, java.lang.String portletId,
159 java.lang.String defaultPreferences)
160 throws com.liferay.portal.SystemException;
161
162 public com.liferay.portal.model.PortletPreferences updatePreferences(
163 long ownerId, int ownerType, long plid, java.lang.String portletId,
164 javax.portlet.PortletPreferences preferences)
165 throws com.liferay.portal.SystemException;
166
167 public com.liferay.portal.model.PortletPreferences updatePreferences(
168 long ownerId, int ownerType, long plid, java.lang.String portletId,
169 java.lang.String xml) throws com.liferay.portal.SystemException;
170 }