1
14
15 package com.liferay.portlet.wiki.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 WikiPageService {
50 public com.liferay.portlet.wiki.model.WikiPage addPage(long nodeId,
51 java.lang.String title, java.lang.String content,
52 java.lang.String summary, boolean minorEdit,
53 javax.portlet.PortletPreferences prefs,
54 com.liferay.portal.theme.ThemeDisplay themeDisplay)
55 throws java.rmi.RemoteException, com.liferay.portal.PortalException,
56 com.liferay.portal.SystemException;
57
58 public com.liferay.portlet.wiki.model.WikiPage addPage(long nodeId,
59 java.lang.String title, java.lang.String content,
60 java.lang.String summary, boolean minorEdit, java.lang.String format,
61 java.lang.String parentTitle, java.lang.String redirectTitle,
62 java.lang.String[] tagsEntries, javax.portlet.PortletPreferences prefs,
63 com.liferay.portal.theme.ThemeDisplay themeDisplay)
64 throws java.rmi.RemoteException, com.liferay.portal.PortalException,
65 com.liferay.portal.SystemException;
66
67 public void addPageAttachments(long nodeId, java.lang.String title,
68 java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<String, byte[]>> files)
69 throws java.rmi.RemoteException, com.liferay.portal.PortalException,
70 com.liferay.portal.SystemException;
71
72 public void changeParent(long nodeId, java.lang.String title,
73 java.lang.String newParentTitle,
74 javax.portlet.PortletPreferences prefs,
75 com.liferay.portal.theme.ThemeDisplay themeDisplay)
76 throws java.rmi.RemoteException, com.liferay.portal.PortalException,
77 com.liferay.portal.SystemException;
78
79 public void deletePage(long nodeId, java.lang.String title)
80 throws java.rmi.RemoteException, com.liferay.portal.PortalException,
81 com.liferay.portal.SystemException;
82
83 public void deletePageAttachment(long nodeId, java.lang.String title,
84 java.lang.String fileName)
85 throws java.rmi.RemoteException, com.liferay.portal.PortalException,
86 com.liferay.portal.SystemException;
87
88 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
89 public java.util.List<com.liferay.portlet.wiki.model.WikiPage> getNodePages(
90 long nodeId, int max)
91 throws java.rmi.RemoteException, com.liferay.portal.PortalException,
92 com.liferay.portal.SystemException;
93
94 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
95 public java.lang.String getNodePagesRSS(long nodeId, int max,
96 java.lang.String type, double version, java.lang.String displayStyle,
97 java.lang.String feedURL, java.lang.String entryURL)
98 throws java.rmi.RemoteException, com.liferay.portal.PortalException,
99 com.liferay.portal.SystemException;
100
101 public com.liferay.portlet.wiki.model.WikiPage getPage(long nodeId,
102 java.lang.String title)
103 throws java.rmi.RemoteException, com.liferay.portal.PortalException,
104 com.liferay.portal.SystemException;
105
106 public com.liferay.portlet.wiki.model.WikiPage getPage(long nodeId,
107 java.lang.String title, double version)
108 throws java.rmi.RemoteException, com.liferay.portal.PortalException,
109 com.liferay.portal.SystemException;
110
111 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
112 public java.lang.String getPagesRSS(long companyId, long nodeId,
113 java.lang.String title, int max, java.lang.String type, double version,
114 java.lang.String displayStyle, java.lang.String feedURL,
115 java.lang.String entryURL, java.util.Locale locale)
116 throws java.rmi.RemoteException, com.liferay.portal.PortalException,
117 com.liferay.portal.SystemException;
118
119 public void movePage(long nodeId, java.lang.String title,
120 java.lang.String newTitle, javax.portlet.PortletPreferences prefs,
121 com.liferay.portal.theme.ThemeDisplay themeDisplay)
122 throws java.rmi.RemoteException, com.liferay.portal.PortalException,
123 com.liferay.portal.SystemException;
124
125 public com.liferay.portlet.wiki.model.WikiPage revertPage(long nodeId,
126 java.lang.String title, double version,
127 javax.portlet.PortletPreferences prefs,
128 com.liferay.portal.theme.ThemeDisplay themeDisplay)
129 throws java.rmi.RemoteException, com.liferay.portal.PortalException,
130 com.liferay.portal.SystemException;
131
132 public void subscribePage(long nodeId, java.lang.String title)
133 throws java.rmi.RemoteException, com.liferay.portal.PortalException,
134 com.liferay.portal.SystemException;
135
136 public void unsubscribePage(long nodeId, java.lang.String title)
137 throws java.rmi.RemoteException, com.liferay.portal.PortalException,
138 com.liferay.portal.SystemException;
139
140 public com.liferay.portlet.wiki.model.WikiPage updatePage(long nodeId,
141 java.lang.String title, double version, java.lang.String content,
142 java.lang.String summary, boolean minorEdit, java.lang.String format,
143 java.lang.String parentTitle, java.lang.String redirectTitle,
144 java.lang.String[] tagsEntries, javax.portlet.PortletPreferences prefs,
145 com.liferay.portal.theme.ThemeDisplay themeDisplay)
146 throws java.rmi.RemoteException, com.liferay.portal.PortalException,
147 com.liferay.portal.SystemException;
148 }