001
014
015 package com.liferay.portlet.journal.service;
016
017 import aQute.bnd.annotation.ProviderType;
018
019 import com.liferay.portal.kernel.exception.PortalException;
020 import com.liferay.portal.kernel.exception.SystemException;
021 import com.liferay.portal.kernel.jsonwebservice.JSONWebService;
022 import com.liferay.portal.kernel.transaction.Isolation;
023 import com.liferay.portal.kernel.transaction.Propagation;
024 import com.liferay.portal.kernel.transaction.Transactional;
025 import com.liferay.portal.security.ac.AccessControlled;
026 import com.liferay.portal.service.BaseService;
027
028
039 @ProviderType
040 @AccessControlled
041 @JSONWebService
042 @Transactional(isolation = Isolation.PORTAL, rollbackFor = {
043 PortalException.class, SystemException.class})
044 public interface JournalFolderService extends BaseService {
045
050
051
056 public java.lang.String getBeanIdentifier();
057
058
063 public void setBeanIdentifier(java.lang.String beanIdentifier);
064
065 public com.liferay.portlet.journal.model.JournalFolder addFolder(
066 long groupId, long parentFolderId, java.lang.String name,
067 java.lang.String description,
068 com.liferay.portal.service.ServiceContext serviceContext)
069 throws com.liferay.portal.kernel.exception.PortalException,
070 com.liferay.portal.kernel.exception.SystemException;
071
072 public void deleteFolder(long folderId)
073 throws com.liferay.portal.kernel.exception.PortalException,
074 com.liferay.portal.kernel.exception.SystemException;
075
076 public void deleteFolder(long folderId, boolean includeTrashedEntries)
077 throws com.liferay.portal.kernel.exception.PortalException,
078 com.liferay.portal.kernel.exception.SystemException;
079
080 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
081 public com.liferay.portlet.journal.model.JournalFolder getFolder(
082 long folderId)
083 throws com.liferay.portal.kernel.exception.PortalException,
084 com.liferay.portal.kernel.exception.SystemException;
085
086 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
087 public java.util.List<java.lang.Long> getFolderIds(long groupId,
088 long folderId)
089 throws com.liferay.portal.kernel.exception.PortalException,
090 com.liferay.portal.kernel.exception.SystemException;
091
092 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
093 public java.util.List<com.liferay.portlet.journal.model.JournalFolder> getFolders(
094 long groupId)
095 throws com.liferay.portal.kernel.exception.SystemException;
096
097 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
098 public java.util.List<com.liferay.portlet.journal.model.JournalFolder> getFolders(
099 long groupId, long parentFolderId)
100 throws com.liferay.portal.kernel.exception.SystemException;
101
102 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
103 public java.util.List<com.liferay.portlet.journal.model.JournalFolder> getFolders(
104 long groupId, long parentFolderId, int status)
105 throws com.liferay.portal.kernel.exception.SystemException;
106
107 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
108 public java.util.List<com.liferay.portlet.journal.model.JournalFolder> getFolders(
109 long groupId, long parentFolderId, int start, int end)
110 throws com.liferay.portal.kernel.exception.SystemException;
111
112 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
113 public java.util.List<com.liferay.portlet.journal.model.JournalFolder> getFolders(
114 long groupId, long parentFolderId, int status, int start, int end)
115 throws com.liferay.portal.kernel.exception.SystemException;
116
117 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
118 public java.util.List<java.lang.Object> getFoldersAndArticles(
119 long groupId, long folderId, int status, int start, int end,
120 com.liferay.portal.kernel.util.OrderByComparator obc)
121 throws com.liferay.portal.kernel.exception.SystemException;
122
123 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
124 public java.util.List<java.lang.Object> getFoldersAndArticles(
125 long groupId, long folderId, int start, int end,
126 com.liferay.portal.kernel.util.OrderByComparator obc)
127 throws com.liferay.portal.kernel.exception.SystemException;
128
129 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
130 public int getFoldersAndArticlesCount(long groupId,
131 java.util.List<java.lang.Long> folderIds, int status)
132 throws com.liferay.portal.kernel.exception.SystemException;
133
134 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
135 public int getFoldersAndArticlesCount(long groupId, long folderId)
136 throws com.liferay.portal.kernel.exception.SystemException;
137
138 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
139 public int getFoldersAndArticlesCount(long groupId, long folderId,
140 int status) throws com.liferay.portal.kernel.exception.SystemException;
141
142 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
143 public int getFoldersCount(long groupId, long parentFolderId)
144 throws com.liferay.portal.kernel.exception.SystemException;
145
146 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
147 public int getFoldersCount(long groupId, long parentFolderId, int status)
148 throws com.liferay.portal.kernel.exception.SystemException;
149
150 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
151 public void getSubfolderIds(java.util.List<java.lang.Long> folderIds,
152 long groupId, long folderId)
153 throws com.liferay.portal.kernel.exception.SystemException;
154
155 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
156 public java.util.List<java.lang.Long> getSubfolderIds(long groupId,
157 long folderId, boolean recurse)
158 throws com.liferay.portal.kernel.exception.SystemException;
159
160 public com.liferay.portlet.journal.model.JournalFolder moveFolder(
161 long folderId, long parentFolderId,
162 com.liferay.portal.service.ServiceContext serviceContext)
163 throws com.liferay.portal.kernel.exception.PortalException,
164 com.liferay.portal.kernel.exception.SystemException;
165
166 public com.liferay.portlet.journal.model.JournalFolder moveFolderFromTrash(
167 long folderId, long parentFolderId,
168 com.liferay.portal.service.ServiceContext serviceContext)
169 throws com.liferay.portal.kernel.exception.PortalException,
170 com.liferay.portal.kernel.exception.SystemException;
171
172 public com.liferay.portlet.journal.model.JournalFolder moveFolderToTrash(
173 long folderId)
174 throws com.liferay.portal.kernel.exception.PortalException,
175 com.liferay.portal.kernel.exception.SystemException;
176
177 public void restoreFolderFromTrash(long folderId)
178 throws com.liferay.portal.kernel.exception.PortalException,
179 com.liferay.portal.kernel.exception.SystemException;
180
181 public com.liferay.portlet.journal.model.JournalFolder updateFolder(
182 long folderId, long parentFolderId, java.lang.String name,
183 java.lang.String description, boolean mergeWithParentFolder,
184 com.liferay.portal.service.ServiceContext serviceContext)
185 throws com.liferay.portal.kernel.exception.PortalException,
186 com.liferay.portal.kernel.exception.SystemException;
187 }