001: /**
002: * Copyright (c) 2000-2008 Liferay, Inc. All rights reserved.
003: *
004: * Permission is hereby granted, free of charge, to any person obtaining a copy
005: * of this software and associated documentation files (the "Software"), to deal
006: * in the Software without restriction, including without limitation the rights
007: * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
008: * copies of the Software, and to permit persons to whom the Software is
009: * furnished to do so, subject to the following conditions:
010: *
011: * The above copyright notice and this permission notice shall be included in
012: * all copies or substantial portions of the Software.
013: *
014: * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
015: * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
016: * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
017: * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
018: * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
019: * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
020: * SOFTWARE.
021: */package com.liferay.portlet.imagegallery.service;
022:
023: /**
024: * <a href="IGImageLocalService.java.html"><b><i>View Source</i></b></a>
025: *
026: * <p>
027: * ServiceBuilder generated this class. Modifications in this class will be
028: * overwritten the next time is generated.
029: * </p>
030: *
031: * <p>
032: * This interface defines the service. The default implementation is
033: * <code>com.liferay.portlet.imagegallery.service.impl.IGImageLocalServiceImpl</code>.
034: * Modify methods in that class and rerun ServiceBuilder to populate this class
035: * and all other generated classes.
036: * </p>
037: *
038: * <p>
039: * This is a local service. Methods of this service will not have security checks based on the propagated JAAS credentials because this service can only be accessed from within the same VM.
040: * </p>
041: *
042: * @author Brian Wing Shun Chan
043: *
044: * @see com.liferay.portlet.imagegallery.service.IGImageLocalServiceFactory
045: * @see com.liferay.portlet.imagegallery.service.IGImageLocalServiceUtil
046: *
047: */
048: public interface IGImageLocalService {
049: public com.liferay.portlet.imagegallery.model.IGImage addIGImage(
050: com.liferay.portlet.imagegallery.model.IGImage model)
051: throws com.liferay.portal.SystemException;
052:
053: public java.util.List dynamicQuery(
054: com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
055: throws com.liferay.portal.SystemException;
056:
057: public java.util.List dynamicQuery(
058: com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
059: int begin, int end)
060: throws com.liferay.portal.SystemException;
061:
062: public com.liferay.portlet.imagegallery.model.IGImage updateIGImage(
063: com.liferay.portlet.imagegallery.model.IGImage model)
064: throws com.liferay.portal.SystemException;
065:
066: public com.liferay.portlet.imagegallery.service.persistence.IGFolderPersistence getIGFolderPersistence();
067:
068: public void setIGFolderPersistence(
069: com.liferay.portlet.imagegallery.service.persistence.IGFolderPersistence igFolderPersistence);
070:
071: public com.liferay.portlet.imagegallery.service.persistence.IGImagePersistence getIGImagePersistence();
072:
073: public void setIGImagePersistence(
074: com.liferay.portlet.imagegallery.service.persistence.IGImagePersistence igImagePersistence);
075:
076: public com.liferay.portlet.imagegallery.service.persistence.IGImageFinder getIGImageFinder();
077:
078: public void setIGImageFinder(
079: com.liferay.portlet.imagegallery.service.persistence.IGImageFinder igImageFinder);
080:
081: public com.liferay.portal.service.persistence.ResourcePersistence getResourcePersistence();
082:
083: public void setResourcePersistence(
084: com.liferay.portal.service.persistence.ResourcePersistence resourcePersistence);
085:
086: public com.liferay.portal.service.persistence.ResourceFinder getResourceFinder();
087:
088: public void setResourceFinder(
089: com.liferay.portal.service.persistence.ResourceFinder resourceFinder);
090:
091: public com.liferay.portal.service.persistence.UserPersistence getUserPersistence();
092:
093: public void setUserPersistence(
094: com.liferay.portal.service.persistence.UserPersistence userPersistence);
095:
096: public com.liferay.portal.service.persistence.UserFinder getUserFinder();
097:
098: public void setUserFinder(
099: com.liferay.portal.service.persistence.UserFinder userFinder);
100:
101: public com.liferay.portlet.tags.service.persistence.TagsAssetPersistence getTagsAssetPersistence();
102:
103: public void setTagsAssetPersistence(
104: com.liferay.portlet.tags.service.persistence.TagsAssetPersistence tagsAssetPersistence);
105:
106: public com.liferay.portlet.tags.service.persistence.TagsAssetFinder getTagsAssetFinder();
107:
108: public void setTagsAssetFinder(
109: com.liferay.portlet.tags.service.persistence.TagsAssetFinder tagsAssetFinder);
110:
111: public void afterPropertiesSet();
112:
113: public com.liferay.portlet.imagegallery.model.IGImage addImage(
114: long userId, long folderId, java.lang.String description,
115: java.io.File file, java.lang.String contentType,
116: java.lang.String[] tagsEntries,
117: boolean addCommunityPermissions, boolean addGuestPermissions)
118: throws com.liferay.portal.SystemException,
119: com.liferay.portal.PortalException;
120:
121: public com.liferay.portlet.imagegallery.model.IGImage addImage(
122: java.lang.String uuid, long userId, long folderId,
123: java.lang.String description, java.io.File file,
124: java.lang.String contentType,
125: java.lang.String[] tagsEntries,
126: boolean addCommunityPermissions, boolean addGuestPermissions)
127: throws com.liferay.portal.SystemException,
128: com.liferay.portal.PortalException;
129:
130: public com.liferay.portlet.imagegallery.model.IGImage addImage(
131: long userId, long folderId, java.lang.String description,
132: java.io.File file, java.lang.String contentType,
133: java.lang.String[] tagsEntries,
134: java.lang.String[] communityPermissions,
135: java.lang.String[] guestPermissions)
136: throws com.liferay.portal.SystemException,
137: com.liferay.portal.PortalException;
138:
139: public com.liferay.portlet.imagegallery.model.IGImage addImage(
140: java.lang.String uuid, long userId, long folderId,
141: java.lang.String description, java.io.File file,
142: java.lang.String contentType,
143: java.lang.String[] tagsEntries,
144: java.lang.Boolean addCommunityPermissions,
145: java.lang.Boolean addGuestPermissions,
146: java.lang.String[] communityPermissions,
147: java.lang.String[] guestPermissions)
148: throws com.liferay.portal.SystemException,
149: com.liferay.portal.PortalException;
150:
151: public void addImageResources(long folderId, long imageId,
152: boolean addCommunityPermissions, boolean addGuestPermissions)
153: throws com.liferay.portal.SystemException,
154: com.liferay.portal.PortalException;
155:
156: public void addImageResources(
157: com.liferay.portlet.imagegallery.model.IGFolder folder,
158: com.liferay.portlet.imagegallery.model.IGImage image,
159: boolean addCommunityPermissions, boolean addGuestPermissions)
160: throws com.liferay.portal.SystemException,
161: com.liferay.portal.PortalException;
162:
163: public void addImageResources(long folderId, long imageId,
164: java.lang.String[] communityPermissions,
165: java.lang.String[] guestPermissions)
166: throws com.liferay.portal.SystemException,
167: com.liferay.portal.PortalException;
168:
169: public void addImageResources(
170: com.liferay.portlet.imagegallery.model.IGFolder folder,
171: com.liferay.portlet.imagegallery.model.IGImage image,
172: java.lang.String[] communityPermissions,
173: java.lang.String[] guestPermissions)
174: throws com.liferay.portal.SystemException,
175: com.liferay.portal.PortalException;
176:
177: public void deleteImage(long imageId)
178: throws com.liferay.portal.SystemException,
179: com.liferay.portal.PortalException;
180:
181: public void deleteImage(
182: com.liferay.portlet.imagegallery.model.IGImage image)
183: throws com.liferay.portal.SystemException,
184: com.liferay.portal.PortalException;
185:
186: public void deleteImages(long folderId)
187: throws com.liferay.portal.SystemException,
188: com.liferay.portal.PortalException;
189:
190: public int getFoldersImagesCount(java.util.List folderIds)
191: throws com.liferay.portal.SystemException;
192:
193: public java.util.List getGroupImages(long groupId, int begin,
194: int end) throws com.liferay.portal.SystemException;
195:
196: public java.util.List getGroupImages(long groupId, long userId,
197: int begin, int end)
198: throws com.liferay.portal.SystemException;
199:
200: public int getGroupImagesCount(long groupId)
201: throws com.liferay.portal.SystemException;
202:
203: public int getGroupImagesCount(long groupId, long userId)
204: throws com.liferay.portal.SystemException;
205:
206: public com.liferay.portlet.imagegallery.model.IGImage getImage(
207: long imageId) throws com.liferay.portal.SystemException,
208: com.liferay.portal.PortalException;
209:
210: public com.liferay.portlet.imagegallery.model.IGImage getImageByLargeImageId(
211: long largeImageId)
212: throws com.liferay.portal.SystemException,
213: com.liferay.portal.PortalException;
214:
215: public com.liferay.portlet.imagegallery.model.IGImage getImageBySmallImageId(
216: long smallImageId)
217: throws com.liferay.portal.SystemException,
218: com.liferay.portal.PortalException;
219:
220: public com.liferay.portlet.imagegallery.model.IGImage getImageByUuidAndGroupId(
221: java.lang.String uuid, long groupId)
222: throws com.liferay.portal.SystemException,
223: com.liferay.portal.PortalException;
224:
225: public java.util.List getImages(long folderId)
226: throws com.liferay.portal.SystemException;
227:
228: public java.util.List getImages(long folderId, int begin, int end)
229: throws com.liferay.portal.SystemException;
230:
231: public java.util.List getImages(long folderId, int begin, int end,
232: com.liferay.portal.kernel.util.OrderByComparator obc)
233: throws com.liferay.portal.SystemException;
234:
235: public int getImagesCount(long folderId)
236: throws com.liferay.portal.SystemException;
237:
238: public java.util.List getNoAssetImages()
239: throws com.liferay.portal.SystemException;
240:
241: public com.liferay.portlet.imagegallery.model.IGImage updateImage(
242: long userId, long imageId, long folderId,
243: java.lang.String description, java.io.File file,
244: java.lang.String contentType, java.lang.String[] tagsEntries)
245: throws com.liferay.portal.SystemException,
246: com.liferay.portal.PortalException;
247:
248: public void updateTagsAsset(long userId,
249: com.liferay.portlet.imagegallery.model.IGImage image,
250: java.lang.String[] tagsEntries)
251: throws com.liferay.portal.SystemException,
252: com.liferay.portal.PortalException;
253: }
|