001
014
015 package com.liferay.portlet.wiki.service;
016
017 import com.liferay.portal.kernel.exception.PortalException;
018 import com.liferay.portal.kernel.exception.SystemException;
019 import com.liferay.portal.kernel.jsonwebservice.JSONWebService;
020 import com.liferay.portal.kernel.transaction.Isolation;
021 import com.liferay.portal.kernel.transaction.Propagation;
022 import com.liferay.portal.kernel.transaction.Transactional;
023 import com.liferay.portal.security.ac.AccessControlled;
024 import com.liferay.portal.service.BaseService;
025
026
037 @AccessControlled
038 @JSONWebService
039 @Transactional(isolation = Isolation.PORTAL, rollbackFor = {
040 PortalException.class, SystemException.class})
041 public interface WikiNodeService extends BaseService {
042
047
048
053 public java.lang.String getBeanIdentifier();
054
055
060 public void setBeanIdentifier(java.lang.String beanIdentifier);
061
062 public com.liferay.portlet.wiki.model.WikiNode addNode(
063 java.lang.String name, java.lang.String description,
064 com.liferay.portal.service.ServiceContext serviceContext)
065 throws com.liferay.portal.kernel.exception.PortalException,
066 com.liferay.portal.kernel.exception.SystemException;
067
068 public void deleteNode(long nodeId)
069 throws com.liferay.portal.kernel.exception.PortalException,
070 com.liferay.portal.kernel.exception.SystemException;
071
072 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
073 public com.liferay.portlet.wiki.model.WikiNode getNode(long nodeId)
074 throws com.liferay.portal.kernel.exception.PortalException,
075 com.liferay.portal.kernel.exception.SystemException;
076
077 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
078 public com.liferay.portlet.wiki.model.WikiNode getNode(long groupId,
079 java.lang.String name)
080 throws com.liferay.portal.kernel.exception.PortalException,
081 com.liferay.portal.kernel.exception.SystemException;
082
083 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
084 public java.util.List<com.liferay.portlet.wiki.model.WikiNode> getNodes(
085 long groupId)
086 throws com.liferay.portal.kernel.exception.PortalException,
087 com.liferay.portal.kernel.exception.SystemException;
088
089 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
090 public java.util.List<com.liferay.portlet.wiki.model.WikiNode> getNodes(
091 long groupId, int status)
092 throws com.liferay.portal.kernel.exception.PortalException,
093 com.liferay.portal.kernel.exception.SystemException;
094
095 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
096 public java.util.List<com.liferay.portlet.wiki.model.WikiNode> getNodes(
097 long groupId, int start, int end)
098 throws com.liferay.portal.kernel.exception.SystemException;
099
100 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
101 public java.util.List<com.liferay.portlet.wiki.model.WikiNode> getNodes(
102 long groupId, int status, int start, int end)
103 throws com.liferay.portal.kernel.exception.SystemException;
104
105 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
106 public int getNodesCount(long groupId)
107 throws com.liferay.portal.kernel.exception.SystemException;
108
109 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
110 public int getNodesCount(long groupId, int status)
111 throws com.liferay.portal.kernel.exception.SystemException;
112
113 public void importPages(long nodeId, java.lang.String importer,
114 java.io.InputStream[] inputStreams,
115 java.util.Map<java.lang.String, java.lang.String[]> options)
116 throws com.liferay.portal.kernel.exception.PortalException,
117 com.liferay.portal.kernel.exception.SystemException;
118
119 public com.liferay.portlet.wiki.model.WikiNode moveNodeToTrash(long nodeId)
120 throws com.liferay.portal.kernel.exception.PortalException,
121 com.liferay.portal.kernel.exception.SystemException;
122
123 public void restoreNodeFromTrash(long nodeId)
124 throws com.liferay.portal.kernel.exception.PortalException,
125 com.liferay.portal.kernel.exception.SystemException;
126
127 public void subscribeNode(long nodeId)
128 throws com.liferay.portal.kernel.exception.PortalException,
129 com.liferay.portal.kernel.exception.SystemException;
130
131 public void unsubscribeNode(long nodeId)
132 throws com.liferay.portal.kernel.exception.PortalException,
133 com.liferay.portal.kernel.exception.SystemException;
134
135 public com.liferay.portlet.wiki.model.WikiNode updateNode(long nodeId,
136 java.lang.String name, java.lang.String description,
137 com.liferay.portal.service.ServiceContext serviceContext)
138 throws com.liferay.portal.kernel.exception.PortalException,
139 com.liferay.portal.kernel.exception.SystemException;
140 }