001
014
015 package com.liferay.portlet.imagegallery.service;
016
017 import com.liferay.portal.kernel.annotation.Isolation;
018 import com.liferay.portal.kernel.annotation.Propagation;
019 import com.liferay.portal.kernel.annotation.Transactional;
020 import com.liferay.portal.kernel.exception.PortalException;
021 import com.liferay.portal.kernel.exception.SystemException;
022
023
040 @Transactional(isolation = Isolation.PORTAL, rollbackFor = {
041 PortalException.class, SystemException.class})
042 public interface IGFolderLocalService {
043 public com.liferay.portlet.imagegallery.model.IGFolder addIGFolder(
044 com.liferay.portlet.imagegallery.model.IGFolder igFolder)
045 throws com.liferay.portal.kernel.exception.SystemException;
046
047 public com.liferay.portlet.imagegallery.model.IGFolder createIGFolder(
048 long folderId);
049
050 public void deleteIGFolder(long folderId)
051 throws com.liferay.portal.kernel.exception.PortalException,
052 com.liferay.portal.kernel.exception.SystemException;
053
054 public void deleteIGFolder(
055 com.liferay.portlet.imagegallery.model.IGFolder igFolder)
056 throws com.liferay.portal.kernel.exception.SystemException;
057
058 @SuppressWarnings("unchecked")
059 public java.util.List dynamicQuery(
060 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
061 throws com.liferay.portal.kernel.exception.SystemException;
062
063 @SuppressWarnings("unchecked")
064 public java.util.List dynamicQuery(
065 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
066 int end) throws com.liferay.portal.kernel.exception.SystemException;
067
068 @SuppressWarnings("unchecked")
069 public java.util.List dynamicQuery(
070 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
071 int end,
072 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
073 throws com.liferay.portal.kernel.exception.SystemException;
074
075 public long dynamicQueryCount(
076 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
077 throws com.liferay.portal.kernel.exception.SystemException;
078
079 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
080 public com.liferay.portlet.imagegallery.model.IGFolder getIGFolder(
081 long folderId)
082 throws com.liferay.portal.kernel.exception.PortalException,
083 com.liferay.portal.kernel.exception.SystemException;
084
085 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
086 public com.liferay.portlet.imagegallery.model.IGFolder getIGFolderByUuidAndGroupId(
087 java.lang.String uuid, long groupId)
088 throws com.liferay.portal.kernel.exception.PortalException,
089 com.liferay.portal.kernel.exception.SystemException;
090
091 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
092 public java.util.List<com.liferay.portlet.imagegallery.model.IGFolder> getIGFolders(
093 int start, int end)
094 throws com.liferay.portal.kernel.exception.SystemException;
095
096 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
097 public int getIGFoldersCount()
098 throws com.liferay.portal.kernel.exception.SystemException;
099
100 public com.liferay.portlet.imagegallery.model.IGFolder updateIGFolder(
101 com.liferay.portlet.imagegallery.model.IGFolder igFolder)
102 throws com.liferay.portal.kernel.exception.SystemException;
103
104 public com.liferay.portlet.imagegallery.model.IGFolder updateIGFolder(
105 com.liferay.portlet.imagegallery.model.IGFolder igFolder, boolean merge)
106 throws com.liferay.portal.kernel.exception.SystemException;
107
108 public com.liferay.portlet.imagegallery.model.IGFolder addFolder(
109 long userId, long parentFolderId, java.lang.String name,
110 java.lang.String description,
111 com.liferay.portal.service.ServiceContext serviceContext)
112 throws com.liferay.portal.kernel.exception.PortalException,
113 com.liferay.portal.kernel.exception.SystemException;
114
115 public void addFolderResources(
116 com.liferay.portlet.imagegallery.model.IGFolder folder,
117 boolean addCommunityPermissions, boolean addGuestPermissions)
118 throws com.liferay.portal.kernel.exception.PortalException,
119 com.liferay.portal.kernel.exception.SystemException;
120
121 public void addFolderResources(
122 com.liferay.portlet.imagegallery.model.IGFolder folder,
123 java.lang.String[] communityPermissions,
124 java.lang.String[] guestPermissions)
125 throws com.liferay.portal.kernel.exception.PortalException,
126 com.liferay.portal.kernel.exception.SystemException;
127
128 public void addFolderResources(long folderId,
129 boolean addCommunityPermissions, boolean addGuestPermissions)
130 throws com.liferay.portal.kernel.exception.PortalException,
131 com.liferay.portal.kernel.exception.SystemException;
132
133 public void addFolderResources(long folderId,
134 java.lang.String[] communityPermissions,
135 java.lang.String[] guestPermissions)
136 throws com.liferay.portal.kernel.exception.PortalException,
137 com.liferay.portal.kernel.exception.SystemException;
138
139 public void deleteFolder(
140 com.liferay.portlet.imagegallery.model.IGFolder folder)
141 throws com.liferay.portal.kernel.exception.PortalException,
142 com.liferay.portal.kernel.exception.SystemException;
143
144 public void deleteFolder(long folderId)
145 throws com.liferay.portal.kernel.exception.PortalException,
146 com.liferay.portal.kernel.exception.SystemException;
147
148 public void deleteFolders(long groupId)
149 throws com.liferay.portal.kernel.exception.PortalException,
150 com.liferay.portal.kernel.exception.SystemException;
151
152 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
153 public java.util.List<com.liferay.portlet.imagegallery.model.IGFolder> getCompanyFolders(
154 long companyId, int start, int end)
155 throws com.liferay.portal.kernel.exception.SystemException;
156
157 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
158 public int getCompanyFoldersCount(long companyId)
159 throws com.liferay.portal.kernel.exception.SystemException;
160
161 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
162 public com.liferay.portlet.imagegallery.model.IGFolder getFolder(
163 long folderId)
164 throws com.liferay.portal.kernel.exception.PortalException,
165 com.liferay.portal.kernel.exception.SystemException;
166
167 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
168 public com.liferay.portlet.imagegallery.model.IGFolder getFolder(
169 long groupId, long parentFolderId, java.lang.String name)
170 throws com.liferay.portal.kernel.exception.PortalException,
171 com.liferay.portal.kernel.exception.SystemException;
172
173 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
174 public java.util.List<com.liferay.portlet.imagegallery.model.IGFolder> getFolders(
175 long groupId)
176 throws com.liferay.portal.kernel.exception.SystemException;
177
178 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
179 public java.util.List<com.liferay.portlet.imagegallery.model.IGFolder> getFolders(
180 long groupId, long parentFolderId)
181 throws com.liferay.portal.kernel.exception.SystemException;
182
183 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
184 public java.util.List<com.liferay.portlet.imagegallery.model.IGFolder> getFolders(
185 long groupId, long parentFolderId, int start, int end)
186 throws com.liferay.portal.kernel.exception.SystemException;
187
188 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
189 public int getFoldersCount(long groupId, long parentFolderId)
190 throws com.liferay.portal.kernel.exception.SystemException;
191
192 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
193 public void getSubfolderIds(java.util.List<java.lang.Long> folderIds,
194 long groupId, long folderId)
195 throws com.liferay.portal.kernel.exception.SystemException;
196
197 public com.liferay.portlet.imagegallery.model.IGFolder updateFolder(
198 long folderId, long parentFolderId, java.lang.String name,
199 java.lang.String description, boolean mergeWithParentFolder,
200 com.liferay.portal.service.ServiceContext serviceContext)
201 throws com.liferay.portal.kernel.exception.PortalException,
202 com.liferay.portal.kernel.exception.SystemException;
203 }