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 PortletPreferencesLocalService {
043 public com.liferay.portal.model.PortletPreferences addPortletPreferences(
044 com.liferay.portal.model.PortletPreferences portletPreferences)
045 throws com.liferay.portal.kernel.exception.SystemException;
046
047 public com.liferay.portal.model.PortletPreferences createPortletPreferences(
048 long portletPreferencesId);
049
050 public void deletePortletPreferences(long portletPreferencesId)
051 throws com.liferay.portal.kernel.exception.PortalException,
052 com.liferay.portal.kernel.exception.SystemException;
053
054 public void deletePortletPreferences(
055 com.liferay.portal.model.PortletPreferences portletPreferences)
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.PortletPreferences getPortletPreferences(
081 long portletPreferencesId)
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.PortletPreferences> getPortletPreferenceses(
087 int start, int end)
088 throws com.liferay.portal.kernel.exception.SystemException;
089
090 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
091 public int getPortletPreferencesesCount()
092 throws com.liferay.portal.kernel.exception.SystemException;
093
094 public com.liferay.portal.model.PortletPreferences updatePortletPreferences(
095 com.liferay.portal.model.PortletPreferences portletPreferences)
096 throws com.liferay.portal.kernel.exception.SystemException;
097
098 public com.liferay.portal.model.PortletPreferences updatePortletPreferences(
099 com.liferay.portal.model.PortletPreferences portletPreferences,
100 boolean merge)
101 throws com.liferay.portal.kernel.exception.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.kernel.exception.SystemException;
108
109 public void deletePortletPreferences(long ownerId, int ownerType, long plid)
110 throws com.liferay.portal.kernel.exception.SystemException;
111
112 public void deletePortletPreferences(long ownerId, int ownerType,
113 long plid, java.lang.String portletId)
114 throws com.liferay.portal.kernel.exception.PortalException,
115 com.liferay.portal.kernel.exception.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.kernel.exception.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.kernel.exception.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.kernel.exception.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.kernel.exception.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.kernel.exception.PortalException,
140 com.liferay.portal.kernel.exception.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.kernel.exception.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.kernel.exception.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.kernel.exception.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.kernel.exception.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.kernel.exception.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)
170 throws com.liferay.portal.kernel.exception.SystemException;
171 }