1
22
23 package com.liferay.portlet.documentlibrary.service;
24
25 import com.liferay.portal.PortalException;
26 import com.liferay.portal.SystemException;
27 import com.liferay.portal.kernel.annotation.Propagation;
28 import com.liferay.portal.kernel.annotation.Transactional;
29
30
54 @Transactional(rollbackFor = {
55 PortalException.class, SystemException.class})
56 public interface DLFolderLocalService {
57 public com.liferay.portlet.documentlibrary.model.DLFolder addDLFolder(
58 com.liferay.portlet.documentlibrary.model.DLFolder dlFolder)
59 throws com.liferay.portal.SystemException;
60
61 public com.liferay.portlet.documentlibrary.model.DLFolder createDLFolder(
62 long folderId);
63
64 public void deleteDLFolder(long folderId)
65 throws com.liferay.portal.SystemException,
66 com.liferay.portal.PortalException;
67
68 public void deleteDLFolder(
69 com.liferay.portlet.documentlibrary.model.DLFolder dlFolder)
70 throws com.liferay.portal.SystemException;
71
72 public java.util.List<Object> dynamicQuery(
73 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
74 throws com.liferay.portal.SystemException;
75
76 public java.util.List<Object> dynamicQuery(
77 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
78 int end) throws com.liferay.portal.SystemException;
79
80 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
81 public com.liferay.portlet.documentlibrary.model.DLFolder getDLFolder(
82 long folderId)
83 throws com.liferay.portal.SystemException,
84 com.liferay.portal.PortalException;
85
86 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
87 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getDLFolders(
88 int start, int end) throws com.liferay.portal.SystemException;
89
90 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
91 public int getDLFoldersCount() throws com.liferay.portal.SystemException;
92
93 public com.liferay.portlet.documentlibrary.model.DLFolder updateDLFolder(
94 com.liferay.portlet.documentlibrary.model.DLFolder dlFolder)
95 throws com.liferay.portal.SystemException;
96
97 public com.liferay.portlet.documentlibrary.model.DLFolder addFolder(
98 long userId, long plid, long parentFolderId, java.lang.String name,
99 java.lang.String description, boolean addCommunityPermissions,
100 boolean addGuestPermissions)
101 throws com.liferay.portal.PortalException,
102 com.liferay.portal.SystemException;
103
104 public com.liferay.portlet.documentlibrary.model.DLFolder addFolder(
105 java.lang.String uuid, long userId, long plid, long parentFolderId,
106 java.lang.String name, java.lang.String description,
107 boolean addCommunityPermissions, boolean addGuestPermissions)
108 throws com.liferay.portal.PortalException,
109 com.liferay.portal.SystemException;
110
111 public com.liferay.portlet.documentlibrary.model.DLFolder addFolder(
112 long userId, long plid, long parentFolderId, java.lang.String name,
113 java.lang.String description, java.lang.String[] communityPermissions,
114 java.lang.String[] guestPermissions)
115 throws com.liferay.portal.PortalException,
116 com.liferay.portal.SystemException;
117
118 public com.liferay.portlet.documentlibrary.model.DLFolder addFolder(
119 java.lang.String uuid, long userId, long plid, long parentFolderId,
120 java.lang.String name, java.lang.String description,
121 java.lang.Boolean addCommunityPermissions,
122 java.lang.Boolean addGuestPermissions,
123 java.lang.String[] communityPermissions,
124 java.lang.String[] guestPermissions)
125 throws com.liferay.portal.PortalException,
126 com.liferay.portal.SystemException;
127
128 public com.liferay.portlet.documentlibrary.model.DLFolder addFolderToGroup(
129 java.lang.String uuid, long userId, long groupId, long parentFolderId,
130 java.lang.String name, java.lang.String description,
131 java.lang.Boolean addCommunityPermissions,
132 java.lang.Boolean addGuestPermissions,
133 java.lang.String[] communityPermissions,
134 java.lang.String[] guestPermissions)
135 throws com.liferay.portal.PortalException,
136 com.liferay.portal.SystemException;
137
138 public void addFolderResources(long folderId,
139 boolean addCommunityPermissions, boolean addGuestPermissions)
140 throws com.liferay.portal.PortalException,
141 com.liferay.portal.SystemException;
142
143 public void addFolderResources(
144 com.liferay.portlet.documentlibrary.model.DLFolder folder,
145 boolean addCommunityPermissions, boolean addGuestPermissions)
146 throws com.liferay.portal.PortalException,
147 com.liferay.portal.SystemException;
148
149 public void addFolderResources(long folderId,
150 java.lang.String[] communityPermissions,
151 java.lang.String[] guestPermissions)
152 throws com.liferay.portal.PortalException,
153 com.liferay.portal.SystemException;
154
155 public void addFolderResources(
156 com.liferay.portlet.documentlibrary.model.DLFolder folder,
157 java.lang.String[] communityPermissions,
158 java.lang.String[] guestPermissions)
159 throws com.liferay.portal.PortalException,
160 com.liferay.portal.SystemException;
161
162 public void deleteFolder(long folderId)
163 throws com.liferay.portal.PortalException,
164 com.liferay.portal.SystemException;
165
166 public void deleteFolder(
167 com.liferay.portlet.documentlibrary.model.DLFolder folder)
168 throws com.liferay.portal.PortalException,
169 com.liferay.portal.SystemException;
170
171 public void deleteFolders(long groupId)
172 throws com.liferay.portal.PortalException,
173 com.liferay.portal.SystemException;
174
175 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
176 public com.liferay.portlet.documentlibrary.model.DLFolder getFolder(
177 long folderId)
178 throws com.liferay.portal.PortalException,
179 com.liferay.portal.SystemException;
180
181 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
182 public com.liferay.portlet.documentlibrary.model.DLFolder getFolder(
183 long groupId, long parentFolderId, java.lang.String name)
184 throws com.liferay.portal.PortalException,
185 com.liferay.portal.SystemException;
186
187 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
188 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getFolders(
189 long companyId) throws com.liferay.portal.SystemException;
190
191 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
192 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getFolders(
193 long groupId, long parentFolderId)
194 throws com.liferay.portal.SystemException;
195
196 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
197 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getFolders(
198 long groupId, long parentFolderId, int start, int end)
199 throws com.liferay.portal.SystemException;
200
201 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
202 public int getFoldersCount(long groupId, long parentFolderId)
203 throws com.liferay.portal.SystemException;
204
205 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
206 public void getSubfolderIds(java.util.List<Long> folderIds, long groupId,
207 long folderId) throws com.liferay.portal.SystemException;
208
209 public void reIndex(java.lang.String[] ids)
210 throws com.liferay.portal.SystemException;
211
212 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
213 public com.liferay.portal.kernel.search.Hits search(long companyId,
214 long groupId, long[] folderIds, java.lang.String keywords, int start,
215 int end) throws com.liferay.portal.SystemException;
216
217 public com.liferay.portlet.documentlibrary.model.DLFolder updateFolder(
218 long folderId, long parentFolderId, java.lang.String name,
219 java.lang.String description)
220 throws com.liferay.portal.PortalException,
221 com.liferay.portal.SystemException;
222 }