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