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 PortletLocalService {
50 public com.liferay.portal.model.Portlet addPortlet(
51 com.liferay.portal.model.Portlet portlet)
52 throws com.liferay.portal.SystemException;
53
54 public com.liferay.portal.model.Portlet createPortlet(long id);
55
56 public void deletePortlet(long id)
57 throws com.liferay.portal.PortalException,
58 com.liferay.portal.SystemException;
59
60 public void deletePortlet(com.liferay.portal.model.Portlet portlet)
61 throws com.liferay.portal.SystemException;
62
63 public java.util.List<Object> dynamicQuery(
64 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
65 throws com.liferay.portal.SystemException;
66
67 public java.util.List<Object> dynamicQuery(
68 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
69 int end) throws com.liferay.portal.SystemException;
70
71 public java.util.List<Object> dynamicQuery(
72 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
73 int end,
74 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
75 throws com.liferay.portal.SystemException;
76
77 public int dynamicQueryCount(
78 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
79 throws com.liferay.portal.SystemException;
80
81 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
82 public com.liferay.portal.model.Portlet getPortlet(long id)
83 throws com.liferay.portal.PortalException,
84 com.liferay.portal.SystemException;
85
86 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
87 public java.util.List<com.liferay.portal.model.Portlet> getPortlets(
88 int start, int end) throws com.liferay.portal.SystemException;
89
90 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
91 public int getPortletsCount() throws com.liferay.portal.SystemException;
92
93 public com.liferay.portal.model.Portlet updatePortlet(
94 com.liferay.portal.model.Portlet portlet)
95 throws com.liferay.portal.SystemException;
96
97 public com.liferay.portal.model.Portlet updatePortlet(
98 com.liferay.portal.model.Portlet portlet, boolean merge)
99 throws com.liferay.portal.SystemException;
100
101 public com.liferay.portal.model.Portlet clonePortlet(long companyId,
102 java.lang.String portletId) throws com.liferay.portal.SystemException;
103
104 public com.liferay.portal.model.Portlet deployRemotePortlet(
105 com.liferay.portal.model.Portlet portlet, java.lang.String categoryName)
106 throws com.liferay.portal.SystemException;
107
108 public void destroyPortlet(com.liferay.portal.model.Portlet portlet);
109
110 public void destroyRemotePortlet(com.liferay.portal.model.Portlet portlet);
111
112 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
113 public com.liferay.portal.model.PortletCategory getEARDisplay(
114 java.lang.String xml) throws com.liferay.portal.SystemException;
115
116 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
117 public java.util.List<com.liferay.portal.model.Portlet> getFriendlyURLMapperPortlets();
118
119 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
120 public java.util.List<com.liferay.portal.kernel.portlet.FriendlyURLMapper> getFriendlyURLMappers();
121
122 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
123 public com.liferay.portal.model.PortletApp getPortletApp(
124 java.lang.String servletContextName);
125
126 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
127 public com.liferay.portal.model.Portlet getPortletById(long companyId,
128 java.lang.String portletId) throws com.liferay.portal.SystemException;
129
130 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
131 public com.liferay.portal.model.Portlet getPortletById(
132 java.lang.String portletId);
133
134 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
135 public com.liferay.portal.model.Portlet getPortletByStrutsPath(
136 long companyId, java.lang.String strutsPath)
137 throws com.liferay.portal.SystemException;
138
139 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
140 public java.util.List<com.liferay.portal.model.Portlet> getPortlets();
141
142 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
143 public java.util.List<com.liferay.portal.model.Portlet> getPortlets(
144 long companyId) throws com.liferay.portal.SystemException;
145
146 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
147 public java.util.List<com.liferay.portal.model.Portlet> getPortlets(
148 long companyId, boolean showSystem, boolean showPortal)
149 throws com.liferay.portal.SystemException;
150
151 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
152 public com.liferay.portal.model.PortletCategory getWARDisplay(
153 java.lang.String servletContextName, java.lang.String xml)
154 throws com.liferay.portal.SystemException;
155
156 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
157 public boolean hasPortlet(long companyId, java.lang.String portletId)
158 throws com.liferay.portal.SystemException;
159
160 public void initEAR(javax.servlet.ServletContext servletContext,
161 java.lang.String[] xmls,
162 com.liferay.portal.kernel.plugin.PluginPackage pluginPackage);
163
164 public java.util.List<com.liferay.portal.model.Portlet> initWAR(
165 java.lang.String servletContextName,
166 javax.servlet.ServletContext servletContext, java.lang.String[] xmls,
167 com.liferay.portal.kernel.plugin.PluginPackage pluginPackage);
168
169 public com.liferay.portal.model.Portlet newPortlet(long companyId,
170 java.lang.String portletId);
171
172 public com.liferay.portal.model.Portlet updatePortlet(long companyId,
173 java.lang.String portletId, java.lang.String roles, boolean active)
174 throws com.liferay.portal.SystemException;
175 }