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