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 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
72 public com.liferay.portal.model.Portlet getPortlet(long id)
73 throws com.liferay.portal.PortalException,
74 com.liferay.portal.SystemException;
75
76 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
77 public java.util.List<com.liferay.portal.model.Portlet> getPortlets(
78 int start, int end) throws com.liferay.portal.SystemException;
79
80 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
81 public int getPortletsCount() throws com.liferay.portal.SystemException;
82
83 public com.liferay.portal.model.Portlet updatePortlet(
84 com.liferay.portal.model.Portlet portlet)
85 throws com.liferay.portal.SystemException;
86
87 public com.liferay.portal.model.Portlet updatePortlet(
88 com.liferay.portal.model.Portlet portlet, boolean merge)
89 throws com.liferay.portal.SystemException;
90
91 public com.liferay.portal.model.Portlet deployRemotePortlet(
92 com.liferay.portal.model.Portlet portlet, java.lang.String categoryName)
93 throws com.liferay.portal.SystemException;
94
95 public void destroyRemotePortlet(com.liferay.portal.model.Portlet portlet);
96
97 public void destroyPortlet(com.liferay.portal.model.Portlet portlet);
98
99 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
100 public com.liferay.portal.model.PortletCategory getEARDisplay(
101 java.lang.String xml) throws com.liferay.portal.SystemException;
102
103 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
104 public com.liferay.portal.model.PortletApp getPortletApp(
105 java.lang.String servletContextName);
106
107 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
108 public com.liferay.portal.model.PortletCategory getWARDisplay(
109 java.lang.String servletContextName, java.lang.String xml)
110 throws com.liferay.portal.SystemException;
111
112 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
113 public java.util.List<com.liferay.portal.model.Portlet> getFriendlyURLMapperPortlets();
114
115 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
116 public java.util.List<com.liferay.portal.kernel.portlet.FriendlyURLMapper> getFriendlyURLMappers();
117
118 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
119 public com.liferay.portal.model.Portlet getPortletById(
120 java.lang.String portletId);
121
122 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
123 public com.liferay.portal.model.Portlet getPortletById(long companyId,
124 java.lang.String portletId) throws com.liferay.portal.SystemException;
125
126 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
127 public com.liferay.portal.model.Portlet getPortletByStrutsPath(
128 long companyId, java.lang.String strutsPath)
129 throws com.liferay.portal.SystemException;
130
131 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
132 public java.util.List<com.liferay.portal.model.Portlet> getPortlets();
133
134 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
135 public java.util.List<com.liferay.portal.model.Portlet> getPortlets(
136 long companyId) throws com.liferay.portal.SystemException;
137
138 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
139 public java.util.List<com.liferay.portal.model.Portlet> getPortlets(
140 long companyId, boolean showSystem, boolean showPortal)
141 throws com.liferay.portal.SystemException;
142
143 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
144 public boolean hasPortlet(long companyId, java.lang.String portletId)
145 throws com.liferay.portal.SystemException;
146
147 public void initEAR(javax.servlet.ServletContext servletContext,
148 java.lang.String[] xmls,
149 com.liferay.portal.kernel.plugin.PluginPackage pluginPackage);
150
151 public java.util.List<com.liferay.portal.model.Portlet> initWAR(
152 java.lang.String servletContextName,
153 javax.servlet.ServletContext servletContext, java.lang.String[] xmls,
154 com.liferay.portal.kernel.plugin.PluginPackage pluginPackage);
155
156 public com.liferay.portal.model.Portlet newPortlet(long companyId,
157 java.lang.String portletId);
158
159 public com.liferay.portal.model.Portlet updatePortlet(long companyId,
160 java.lang.String portletId, java.lang.String roles, boolean active)
161 throws com.liferay.portal.SystemException;
162 }