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