001 /** 002 * Copyright (c) 2000-2013 Liferay, Inc. All rights reserved. 003 * 004 * This library is free software; you can redistribute it and/or modify it under 005 * the terms of the GNU Lesser General Public License as published by the Free 006 * Software Foundation; either version 2.1 of the License, or (at your option) 007 * any later version. 008 * 009 * This library is distributed in the hope that it will be useful, but WITHOUT 010 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS 011 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more 012 * details. 013 */ 014 015 package com.liferay.portlet.announcements.service; 016 017 import aQute.bnd.annotation.ProviderType; 018 019 import com.liferay.portal.service.ServiceWrapper; 020 021 /** 022 * Provides a wrapper for {@link AnnouncementsFlagLocalService}. 023 * 024 * @author Brian Wing Shun Chan 025 * @see AnnouncementsFlagLocalService 026 * @generated 027 */ 028 @ProviderType 029 public class AnnouncementsFlagLocalServiceWrapper 030 implements AnnouncementsFlagLocalService, 031 ServiceWrapper<AnnouncementsFlagLocalService> { 032 public AnnouncementsFlagLocalServiceWrapper( 033 AnnouncementsFlagLocalService announcementsFlagLocalService) { 034 _announcementsFlagLocalService = announcementsFlagLocalService; 035 } 036 037 /** 038 * Adds the announcements flag to the database. Also notifies the appropriate model listeners. 039 * 040 * @param announcementsFlag the announcements flag 041 * @return the announcements flag that was added 042 * @throws SystemException if a system exception occurred 043 */ 044 @Override 045 public com.liferay.portlet.announcements.model.AnnouncementsFlag addAnnouncementsFlag( 046 com.liferay.portlet.announcements.model.AnnouncementsFlag announcementsFlag) 047 throws com.liferay.portal.kernel.exception.SystemException { 048 return _announcementsFlagLocalService.addAnnouncementsFlag(announcementsFlag); 049 } 050 051 /** 052 * Creates a new announcements flag with the primary key. Does not add the announcements flag to the database. 053 * 054 * @param flagId the primary key for the new announcements flag 055 * @return the new announcements flag 056 */ 057 @Override 058 public com.liferay.portlet.announcements.model.AnnouncementsFlag createAnnouncementsFlag( 059 long flagId) { 060 return _announcementsFlagLocalService.createAnnouncementsFlag(flagId); 061 } 062 063 /** 064 * Deletes the announcements flag with the primary key from the database. Also notifies the appropriate model listeners. 065 * 066 * @param flagId the primary key of the announcements flag 067 * @return the announcements flag that was removed 068 * @throws PortalException if a announcements flag with the primary key could not be found 069 * @throws SystemException if a system exception occurred 070 */ 071 @Override 072 public com.liferay.portlet.announcements.model.AnnouncementsFlag deleteAnnouncementsFlag( 073 long flagId) 074 throws com.liferay.portal.kernel.exception.PortalException, 075 com.liferay.portal.kernel.exception.SystemException { 076 return _announcementsFlagLocalService.deleteAnnouncementsFlag(flagId); 077 } 078 079 /** 080 * Deletes the announcements flag from the database. Also notifies the appropriate model listeners. 081 * 082 * @param announcementsFlag the announcements flag 083 * @return the announcements flag that was removed 084 * @throws SystemException if a system exception occurred 085 */ 086 @Override 087 public com.liferay.portlet.announcements.model.AnnouncementsFlag deleteAnnouncementsFlag( 088 com.liferay.portlet.announcements.model.AnnouncementsFlag announcementsFlag) 089 throws com.liferay.portal.kernel.exception.SystemException { 090 return _announcementsFlagLocalService.deleteAnnouncementsFlag(announcementsFlag); 091 } 092 093 @Override 094 public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() { 095 return _announcementsFlagLocalService.dynamicQuery(); 096 } 097 098 /** 099 * Performs a dynamic query on the database and returns the matching rows. 100 * 101 * @param dynamicQuery the dynamic query 102 * @return the matching rows 103 * @throws SystemException if a system exception occurred 104 */ 105 @Override 106 @SuppressWarnings("rawtypes") 107 public java.util.List dynamicQuery( 108 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) 109 throws com.liferay.portal.kernel.exception.SystemException { 110 return _announcementsFlagLocalService.dynamicQuery(dynamicQuery); 111 } 112 113 /** 114 * Performs a dynamic query on the database and returns a range of the matching rows. 115 * 116 * <p> 117 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.announcements.model.impl.AnnouncementsFlagModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 118 * </p> 119 * 120 * @param dynamicQuery the dynamic query 121 * @param start the lower bound of the range of model instances 122 * @param end the upper bound of the range of model instances (not inclusive) 123 * @return the range of matching rows 124 * @throws SystemException if a system exception occurred 125 */ 126 @Override 127 @SuppressWarnings("rawtypes") 128 public java.util.List dynamicQuery( 129 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, 130 int end) throws com.liferay.portal.kernel.exception.SystemException { 131 return _announcementsFlagLocalService.dynamicQuery(dynamicQuery, start, 132 end); 133 } 134 135 /** 136 * Performs a dynamic query on the database and returns an ordered range of the matching rows. 137 * 138 * <p> 139 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.announcements.model.impl.AnnouncementsFlagModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 140 * </p> 141 * 142 * @param dynamicQuery the dynamic query 143 * @param start the lower bound of the range of model instances 144 * @param end the upper bound of the range of model instances (not inclusive) 145 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 146 * @return the ordered range of matching rows 147 * @throws SystemException if a system exception occurred 148 */ 149 @Override 150 @SuppressWarnings("rawtypes") 151 public java.util.List dynamicQuery( 152 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, 153 int end, 154 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 155 throws com.liferay.portal.kernel.exception.SystemException { 156 return _announcementsFlagLocalService.dynamicQuery(dynamicQuery, start, 157 end, orderByComparator); 158 } 159 160 /** 161 * Returns the number of rows that match the dynamic query. 162 * 163 * @param dynamicQuery the dynamic query 164 * @return the number of rows that match the dynamic query 165 * @throws SystemException if a system exception occurred 166 */ 167 @Override 168 public long dynamicQueryCount( 169 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) 170 throws com.liferay.portal.kernel.exception.SystemException { 171 return _announcementsFlagLocalService.dynamicQueryCount(dynamicQuery); 172 } 173 174 /** 175 * Returns the number of rows that match the dynamic query. 176 * 177 * @param dynamicQuery the dynamic query 178 * @param projection the projection to apply to the query 179 * @return the number of rows that match the dynamic query 180 * @throws SystemException if a system exception occurred 181 */ 182 @Override 183 public long dynamicQueryCount( 184 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, 185 com.liferay.portal.kernel.dao.orm.Projection projection) 186 throws com.liferay.portal.kernel.exception.SystemException { 187 return _announcementsFlagLocalService.dynamicQueryCount(dynamicQuery, 188 projection); 189 } 190 191 @Override 192 public com.liferay.portlet.announcements.model.AnnouncementsFlag fetchAnnouncementsFlag( 193 long flagId) throws com.liferay.portal.kernel.exception.SystemException { 194 return _announcementsFlagLocalService.fetchAnnouncementsFlag(flagId); 195 } 196 197 /** 198 * Returns the announcements flag with the primary key. 199 * 200 * @param flagId the primary key of the announcements flag 201 * @return the announcements flag 202 * @throws PortalException if a announcements flag with the primary key could not be found 203 * @throws SystemException if a system exception occurred 204 */ 205 @Override 206 public com.liferay.portlet.announcements.model.AnnouncementsFlag getAnnouncementsFlag( 207 long flagId) 208 throws com.liferay.portal.kernel.exception.PortalException, 209 com.liferay.portal.kernel.exception.SystemException { 210 return _announcementsFlagLocalService.getAnnouncementsFlag(flagId); 211 } 212 213 @Override 214 public com.liferay.portal.model.PersistedModel getPersistedModel( 215 java.io.Serializable primaryKeyObj) 216 throws com.liferay.portal.kernel.exception.PortalException, 217 com.liferay.portal.kernel.exception.SystemException { 218 return _announcementsFlagLocalService.getPersistedModel(primaryKeyObj); 219 } 220 221 /** 222 * Returns a range of all the announcements flags. 223 * 224 * <p> 225 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.announcements.model.impl.AnnouncementsFlagModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 226 * </p> 227 * 228 * @param start the lower bound of the range of announcements flags 229 * @param end the upper bound of the range of announcements flags (not inclusive) 230 * @return the range of announcements flags 231 * @throws SystemException if a system exception occurred 232 */ 233 @Override 234 public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsFlag> getAnnouncementsFlags( 235 int start, int end) 236 throws com.liferay.portal.kernel.exception.SystemException { 237 return _announcementsFlagLocalService.getAnnouncementsFlags(start, end); 238 } 239 240 /** 241 * Returns the number of announcements flags. 242 * 243 * @return the number of announcements flags 244 * @throws SystemException if a system exception occurred 245 */ 246 @Override 247 public int getAnnouncementsFlagsCount() 248 throws com.liferay.portal.kernel.exception.SystemException { 249 return _announcementsFlagLocalService.getAnnouncementsFlagsCount(); 250 } 251 252 /** 253 * Updates the announcements flag in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners. 254 * 255 * @param announcementsFlag the announcements flag 256 * @return the announcements flag that was updated 257 * @throws SystemException if a system exception occurred 258 */ 259 @Override 260 public com.liferay.portlet.announcements.model.AnnouncementsFlag updateAnnouncementsFlag( 261 com.liferay.portlet.announcements.model.AnnouncementsFlag announcementsFlag) 262 throws com.liferay.portal.kernel.exception.SystemException { 263 return _announcementsFlagLocalService.updateAnnouncementsFlag(announcementsFlag); 264 } 265 266 /** 267 * Returns the Spring bean ID for this bean. 268 * 269 * @return the Spring bean ID for this bean 270 */ 271 @Override 272 public java.lang.String getBeanIdentifier() { 273 return _announcementsFlagLocalService.getBeanIdentifier(); 274 } 275 276 /** 277 * Sets the Spring bean ID for this bean. 278 * 279 * @param beanIdentifier the Spring bean ID for this bean 280 */ 281 @Override 282 public void setBeanIdentifier(java.lang.String beanIdentifier) { 283 _announcementsFlagLocalService.setBeanIdentifier(beanIdentifier); 284 } 285 286 @Override 287 public com.liferay.portlet.announcements.model.AnnouncementsFlag addFlag( 288 long userId, long entryId, int value) 289 throws com.liferay.portal.kernel.exception.SystemException { 290 return _announcementsFlagLocalService.addFlag(userId, entryId, value); 291 } 292 293 @Override 294 public void deleteFlag( 295 com.liferay.portlet.announcements.model.AnnouncementsFlag flag) 296 throws com.liferay.portal.kernel.exception.SystemException { 297 _announcementsFlagLocalService.deleteFlag(flag); 298 } 299 300 @Override 301 public void deleteFlag(long flagId) 302 throws com.liferay.portal.kernel.exception.PortalException, 303 com.liferay.portal.kernel.exception.SystemException { 304 _announcementsFlagLocalService.deleteFlag(flagId); 305 } 306 307 @Override 308 public void deleteFlags(long entryId) 309 throws com.liferay.portal.kernel.exception.SystemException { 310 _announcementsFlagLocalService.deleteFlags(entryId); 311 } 312 313 @Override 314 public com.liferay.portlet.announcements.model.AnnouncementsFlag getFlag( 315 long userId, long entryId, int value) 316 throws com.liferay.portal.kernel.exception.PortalException, 317 com.liferay.portal.kernel.exception.SystemException { 318 return _announcementsFlagLocalService.getFlag(userId, entryId, value); 319 } 320 321 /** 322 * @deprecated As of 6.1.0, replaced by {@link #getWrappedService} 323 */ 324 public AnnouncementsFlagLocalService getWrappedAnnouncementsFlagLocalService() { 325 return _announcementsFlagLocalService; 326 } 327 328 /** 329 * @deprecated As of 6.1.0, replaced by {@link #setWrappedService} 330 */ 331 public void setWrappedAnnouncementsFlagLocalService( 332 AnnouncementsFlagLocalService announcementsFlagLocalService) { 333 _announcementsFlagLocalService = announcementsFlagLocalService; 334 } 335 336 @Override 337 public AnnouncementsFlagLocalService getWrappedService() { 338 return _announcementsFlagLocalService; 339 } 340 341 @Override 342 public void setWrappedService( 343 AnnouncementsFlagLocalService announcementsFlagLocalService) { 344 _announcementsFlagLocalService = announcementsFlagLocalService; 345 } 346 347 private AnnouncementsFlagLocalService _announcementsFlagLocalService; 348 }