001
014
015 package com.liferay.portlet.journal.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 JournalFolderService 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.journal.model.JournalFolder addFolder(
063 long groupId, long parentFolderId, java.lang.String name,
064 java.lang.String description,
065 com.liferay.portal.service.ServiceContext serviceContext)
066 throws com.liferay.portal.kernel.exception.PortalException,
067 com.liferay.portal.kernel.exception.SystemException;
068
069 public void deleteFolder(long folderId)
070 throws com.liferay.portal.kernel.exception.PortalException,
071 com.liferay.portal.kernel.exception.SystemException;
072
073 public void deleteFolder(long folderId, boolean includeTrashedEntries)
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.journal.model.JournalFolder getFolder(
079 long folderId)
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<java.lang.Long> getFolderIds(long groupId,
085 long folderId)
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.journal.model.JournalFolder> getFolders(
091 long groupId)
092 throws com.liferay.portal.kernel.exception.SystemException;
093
094 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
095 public java.util.List<com.liferay.portlet.journal.model.JournalFolder> getFolders(
096 long groupId, long parentFolderId)
097 throws com.liferay.portal.kernel.exception.SystemException;
098
099 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
100 public java.util.List<com.liferay.portlet.journal.model.JournalFolder> getFolders(
101 long groupId, long parentFolderId, int status)
102 throws com.liferay.portal.kernel.exception.SystemException;
103
104 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
105 public java.util.List<com.liferay.portlet.journal.model.JournalFolder> getFolders(
106 long groupId, long parentFolderId, int start, int end)
107 throws com.liferay.portal.kernel.exception.SystemException;
108
109 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
110 public java.util.List<com.liferay.portlet.journal.model.JournalFolder> getFolders(
111 long groupId, long parentFolderId, int status, int start, int end)
112 throws com.liferay.portal.kernel.exception.SystemException;
113
114 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
115 public java.util.List<java.lang.Object> getFoldersAndArticles(
116 long groupId, long folderId, int start, int end,
117 com.liferay.portal.kernel.util.OrderByComparator obc)
118 throws com.liferay.portal.kernel.exception.SystemException;
119
120 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
121 public int getFoldersAndArticlesCount(long groupId,
122 java.util.List<java.lang.Long> folderIds, int status)
123 throws com.liferay.portal.kernel.exception.SystemException;
124
125 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
126 public int getFoldersAndArticlesCount(long groupId, long folderId)
127 throws com.liferay.portal.kernel.exception.SystemException;
128
129 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
130 public int getFoldersAndArticlesCount(long groupId, long folderId,
131 int status) throws com.liferay.portal.kernel.exception.SystemException;
132
133 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
134 public int getFoldersCount(long groupId, long parentFolderId)
135 throws com.liferay.portal.kernel.exception.SystemException;
136
137 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
138 public int getFoldersCount(long groupId, long parentFolderId, int status)
139 throws com.liferay.portal.kernel.exception.SystemException;
140
141 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
142 public void getSubfolderIds(java.util.List<java.lang.Long> folderIds,
143 long groupId, long folderId)
144 throws com.liferay.portal.kernel.exception.SystemException;
145
146 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
147 public java.util.List<java.lang.Long> getSubfolderIds(long groupId,
148 long folderId, boolean recurse)
149 throws com.liferay.portal.kernel.exception.SystemException;
150
151 public com.liferay.portlet.journal.model.JournalFolder moveFolder(
152 long folderId, long parentFolderId,
153 com.liferay.portal.service.ServiceContext serviceContext)
154 throws com.liferay.portal.kernel.exception.PortalException,
155 com.liferay.portal.kernel.exception.SystemException;
156
157 public com.liferay.portlet.journal.model.JournalFolder moveFolderFromTrash(
158 long folderId, long parentFolderId,
159 com.liferay.portal.service.ServiceContext serviceContext)
160 throws com.liferay.portal.kernel.exception.PortalException,
161 com.liferay.portal.kernel.exception.SystemException;
162
163 public com.liferay.portlet.journal.model.JournalFolder moveFolderToTrash(
164 long folderId)
165 throws com.liferay.portal.kernel.exception.PortalException,
166 com.liferay.portal.kernel.exception.SystemException;
167
168 public void restoreFolderFromTrash(long folderId)
169 throws com.liferay.portal.kernel.exception.PortalException,
170 com.liferay.portal.kernel.exception.SystemException;
171
172 public com.liferay.portlet.journal.model.JournalFolder updateFolder(
173 long folderId, long parentFolderId, java.lang.String name,
174 java.lang.String description, boolean mergeWithParentFolder,
175 com.liferay.portal.service.ServiceContext serviceContext)
176 throws com.liferay.portal.kernel.exception.PortalException,
177 com.liferay.portal.kernel.exception.SystemException;
178 }