1
14
15 package com.liferay.portlet.imagegallery.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 IGFolderLocalService {
50 public com.liferay.portlet.imagegallery.model.IGFolder addIGFolder(
51 com.liferay.portlet.imagegallery.model.IGFolder igFolder)
52 throws com.liferay.portal.SystemException;
53
54 public com.liferay.portlet.imagegallery.model.IGFolder createIGFolder(
55 long folderId);
56
57 public void deleteIGFolder(long folderId)
58 throws com.liferay.portal.PortalException,
59 com.liferay.portal.SystemException;
60
61 public void deleteIGFolder(
62 com.liferay.portlet.imagegallery.model.IGFolder igFolder)
63 throws com.liferay.portal.SystemException;
64
65 @SuppressWarnings("rawtypes")
66 public java.util.List dynamicQuery(
67 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
68 throws com.liferay.portal.SystemException;
69
70 @SuppressWarnings("rawtypes")
71 public java.util.List dynamicQuery(
72 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
73 int end) throws com.liferay.portal.SystemException;
74
75 @SuppressWarnings("rawtypes")
76 public java.util.List dynamicQuery(
77 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
78 int end,
79 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
80 throws com.liferay.portal.SystemException;
81
82 public int dynamicQueryCount(
83 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
84 throws com.liferay.portal.SystemException;
85
86 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
87 public com.liferay.portlet.imagegallery.model.IGFolder getIGFolder(
88 long folderId)
89 throws com.liferay.portal.PortalException,
90 com.liferay.portal.SystemException;
91
92 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
93 public com.liferay.portlet.imagegallery.model.IGFolder getIGFolderByUuidAndGroupId(
94 java.lang.String uuid, long groupId)
95 throws com.liferay.portal.PortalException,
96 com.liferay.portal.SystemException;
97
98 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
99 public java.util.List<com.liferay.portlet.imagegallery.model.IGFolder> getIGFolders(
100 int start, int end) throws com.liferay.portal.SystemException;
101
102 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
103 public int getIGFoldersCount() throws com.liferay.portal.SystemException;
104
105 public com.liferay.portlet.imagegallery.model.IGFolder updateIGFolder(
106 com.liferay.portlet.imagegallery.model.IGFolder igFolder)
107 throws com.liferay.portal.SystemException;
108
109 public com.liferay.portlet.imagegallery.model.IGFolder updateIGFolder(
110 com.liferay.portlet.imagegallery.model.IGFolder igFolder, boolean merge)
111 throws com.liferay.portal.SystemException;
112
113 public com.liferay.portlet.imagegallery.model.IGFolder addFolder(
114 long userId, long parentFolderId, java.lang.String name,
115 java.lang.String description,
116 com.liferay.portal.service.ServiceContext serviceContext)
117 throws com.liferay.portal.PortalException,
118 com.liferay.portal.SystemException;
119
120 public com.liferay.portlet.imagegallery.model.IGFolder addFolder(
121 java.lang.String uuid, long userId, long parentFolderId,
122 java.lang.String name, java.lang.String description,
123 com.liferay.portal.service.ServiceContext serviceContext)
124 throws com.liferay.portal.PortalException,
125 com.liferay.portal.SystemException;
126
127 public void addFolderResources(
128 com.liferay.portlet.imagegallery.model.IGFolder folder,
129 boolean addCommunityPermissions, boolean addGuestPermissions)
130 throws com.liferay.portal.PortalException,
131 com.liferay.portal.SystemException;
132
133 public void addFolderResources(
134 com.liferay.portlet.imagegallery.model.IGFolder folder,
135 java.lang.String[] communityPermissions,
136 java.lang.String[] guestPermissions)
137 throws com.liferay.portal.PortalException,
138 com.liferay.portal.SystemException;
139
140 public void addFolderResources(long folderId,
141 boolean addCommunityPermissions, boolean addGuestPermissions)
142 throws com.liferay.portal.PortalException,
143 com.liferay.portal.SystemException;
144
145 public void addFolderResources(long folderId,
146 java.lang.String[] communityPermissions,
147 java.lang.String[] guestPermissions)
148 throws com.liferay.portal.PortalException,
149 com.liferay.portal.SystemException;
150
151 public void deleteFolder(
152 com.liferay.portlet.imagegallery.model.IGFolder folder)
153 throws com.liferay.portal.PortalException,
154 com.liferay.portal.SystemException;
155
156 public void deleteFolder(long folderId)
157 throws com.liferay.portal.PortalException,
158 com.liferay.portal.SystemException;
159
160 public void deleteFolders(long groupId)
161 throws com.liferay.portal.PortalException,
162 com.liferay.portal.SystemException;
163
164 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
165 public com.liferay.portlet.imagegallery.model.IGFolder getFolder(
166 long folderId)
167 throws com.liferay.portal.PortalException,
168 com.liferay.portal.SystemException;
169
170 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
171 public com.liferay.portlet.imagegallery.model.IGFolder getFolder(
172 long groupId, long parentFolderId, java.lang.String name)
173 throws com.liferay.portal.PortalException,
174 com.liferay.portal.SystemException;
175
176 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
177 public java.util.List<com.liferay.portlet.imagegallery.model.IGFolder> getFolders(
178 long groupId) throws com.liferay.portal.SystemException;
179
180 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
181 public java.util.List<com.liferay.portlet.imagegallery.model.IGFolder> getFolders(
182 long groupId, long parentFolderId)
183 throws com.liferay.portal.SystemException;
184
185 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
186 public java.util.List<com.liferay.portlet.imagegallery.model.IGFolder> getFolders(
187 long groupId, long parentFolderId, int start, int end)
188 throws com.liferay.portal.SystemException;
189
190 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
191 public int getFoldersCount(long groupId, long parentFolderId)
192 throws com.liferay.portal.SystemException;
193
194 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
195 public void getSubfolderIds(java.util.List<java.lang.Long> folderIds,
196 long groupId, long folderId) throws com.liferay.portal.SystemException;
197
198 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
199 public void reIndex(java.lang.String[] ids)
200 throws com.liferay.portal.SystemException;
201
202 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
203 public com.liferay.portal.kernel.search.Hits search(long companyId,
204 long groupId, long userId, long[] folderIds, java.lang.String keywords,
205 int start, int end) throws com.liferay.portal.SystemException;
206
207 public com.liferay.portlet.imagegallery.model.IGFolder updateFolder(
208 long folderId, long parentFolderId, java.lang.String name,
209 java.lang.String description, boolean mergeWithParentFolder,
210 com.liferay.portal.service.ServiceContext serviceContext)
211 throws com.liferay.portal.PortalException,
212 com.liferay.portal.SystemException;
213 }