1
14
15 package com.liferay.portlet.wiki.service;
16
17 import com.liferay.portal.kernel.annotation.Isolation;
18 import com.liferay.portal.kernel.annotation.Propagation;
19 import com.liferay.portal.kernel.annotation.Transactional;
20 import com.liferay.portal.kernel.exception.PortalException;
21 import com.liferay.portal.kernel.exception.SystemException;
22
23
47 @Transactional(isolation = Isolation.PORTAL, rollbackFor = {
48 PortalException.class, SystemException.class})
49 public interface WikiNodeLocalService {
50 public com.liferay.portlet.wiki.model.WikiNode addWikiNode(
51 com.liferay.portlet.wiki.model.WikiNode wikiNode)
52 throws com.liferay.portal.kernel.exception.SystemException;
53
54 public com.liferay.portlet.wiki.model.WikiNode createWikiNode(long nodeId);
55
56 public void deleteWikiNode(long nodeId)
57 throws com.liferay.portal.kernel.exception.PortalException,
58 com.liferay.portal.kernel.exception.SystemException;
59
60 public void deleteWikiNode(com.liferay.portlet.wiki.model.WikiNode wikiNode)
61 throws com.liferay.portal.kernel.exception.SystemException;
62
63 public java.util.List<Object> dynamicQuery(
64 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
65 throws com.liferay.portal.kernel.exception.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.kernel.exception.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.kernel.exception.SystemException;
76
77 public int dynamicQueryCount(
78 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
79 throws com.liferay.portal.kernel.exception.SystemException;
80
81 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
82 public com.liferay.portlet.wiki.model.WikiNode getWikiNode(long nodeId)
83 throws com.liferay.portal.kernel.exception.PortalException,
84 com.liferay.portal.kernel.exception.SystemException;
85
86 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
87 public java.util.List<com.liferay.portlet.wiki.model.WikiNode> getWikiNodes(
88 int start, int end)
89 throws com.liferay.portal.kernel.exception.SystemException;
90
91 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
92 public int getWikiNodesCount()
93 throws com.liferay.portal.kernel.exception.SystemException;
94
95 public com.liferay.portlet.wiki.model.WikiNode updateWikiNode(
96 com.liferay.portlet.wiki.model.WikiNode wikiNode)
97 throws com.liferay.portal.kernel.exception.SystemException;
98
99 public com.liferay.portlet.wiki.model.WikiNode updateWikiNode(
100 com.liferay.portlet.wiki.model.WikiNode wikiNode, boolean merge)
101 throws com.liferay.portal.kernel.exception.SystemException;
102
103 public com.liferay.portlet.wiki.model.WikiNode addNode(long userId,
104 java.lang.String name, java.lang.String description,
105 com.liferay.portal.service.ServiceContext serviceContext)
106 throws com.liferay.portal.kernel.exception.PortalException,
107 com.liferay.portal.kernel.exception.SystemException;
108
109 public com.liferay.portlet.wiki.model.WikiNode addNode(
110 java.lang.String uuid, long userId, java.lang.String name,
111 java.lang.String description,
112 com.liferay.portal.service.ServiceContext serviceContext)
113 throws com.liferay.portal.kernel.exception.PortalException,
114 com.liferay.portal.kernel.exception.SystemException;
115
116 public void addNodeResources(long nodeId, boolean addCommunityPermissions,
117 boolean addGuestPermissions)
118 throws com.liferay.portal.kernel.exception.PortalException,
119 com.liferay.portal.kernel.exception.SystemException;
120
121 public void addNodeResources(com.liferay.portlet.wiki.model.WikiNode node,
122 boolean addCommunityPermissions, boolean addGuestPermissions)
123 throws com.liferay.portal.kernel.exception.PortalException,
124 com.liferay.portal.kernel.exception.SystemException;
125
126 public void addNodeResources(long nodeId,
127 java.lang.String[] communityPermissions,
128 java.lang.String[] guestPermissions)
129 throws com.liferay.portal.kernel.exception.PortalException,
130 com.liferay.portal.kernel.exception.SystemException;
131
132 public void addNodeResources(com.liferay.portlet.wiki.model.WikiNode node,
133 java.lang.String[] communityPermissions,
134 java.lang.String[] guestPermissions)
135 throws com.liferay.portal.kernel.exception.PortalException,
136 com.liferay.portal.kernel.exception.SystemException;
137
138 public void deleteNode(long nodeId)
139 throws com.liferay.portal.kernel.exception.PortalException,
140 com.liferay.portal.kernel.exception.SystemException;
141
142 public void deleteNode(com.liferay.portlet.wiki.model.WikiNode node)
143 throws com.liferay.portal.kernel.exception.PortalException,
144 com.liferay.portal.kernel.exception.SystemException;
145
146 public void deleteNodes(long groupId)
147 throws com.liferay.portal.kernel.exception.PortalException,
148 com.liferay.portal.kernel.exception.SystemException;
149
150 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
151 public java.util.List<com.liferay.portlet.wiki.model.WikiNode> getCompanyNodes(
152 long companyId, int start, int end)
153 throws com.liferay.portal.kernel.exception.SystemException;
154
155 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
156 public int getCompanyNodesCount(long companyId)
157 throws com.liferay.portal.kernel.exception.SystemException;
158
159 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
160 public com.liferay.portlet.wiki.model.WikiNode getNode(long nodeId)
161 throws com.liferay.portal.kernel.exception.PortalException,
162 com.liferay.portal.kernel.exception.SystemException;
163
164 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
165 public com.liferay.portlet.wiki.model.WikiNode getNode(long groupId,
166 java.lang.String nodeName)
167 throws com.liferay.portal.kernel.exception.PortalException,
168 com.liferay.portal.kernel.exception.SystemException;
169
170 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
171 public java.util.List<com.liferay.portlet.wiki.model.WikiNode> getNodes(
172 long groupId)
173 throws com.liferay.portal.kernel.exception.SystemException;
174
175 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
176 public java.util.List<com.liferay.portlet.wiki.model.WikiNode> getNodes(
177 long groupId, int start, int end)
178 throws com.liferay.portal.kernel.exception.SystemException;
179
180 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
181 public int getNodesCount(long groupId)
182 throws com.liferay.portal.kernel.exception.SystemException;
183
184 public void importPages(long userId, long nodeId,
185 java.lang.String importer, java.io.File[] files,
186 java.util.Map<String, String[]> options)
187 throws com.liferay.portal.kernel.exception.PortalException,
188 com.liferay.portal.kernel.exception.SystemException;
189
190 public void subscribeNode(long userId, long nodeId)
191 throws com.liferay.portal.kernel.exception.PortalException,
192 com.liferay.portal.kernel.exception.SystemException;
193
194 public void unsubscribeNode(long userId, long nodeId)
195 throws com.liferay.portal.kernel.exception.PortalException,
196 com.liferay.portal.kernel.exception.SystemException;
197
198 public com.liferay.portlet.wiki.model.WikiNode updateNode(long nodeId,
199 java.lang.String name, java.lang.String description,
200 com.liferay.portal.service.ServiceContext serviceContext)
201 throws com.liferay.portal.kernel.exception.PortalException,
202 com.liferay.portal.kernel.exception.SystemException;
203 }