001 /** 002 * Copyright (c) 2000-present 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.social.service; 016 017 import aQute.bnd.annotation.ProviderType; 018 019 import com.liferay.portal.service.ServiceWrapper; 020 021 /** 022 * Provides a wrapper for {@link SocialActivityLimitLocalService}. 023 * 024 * @author Brian Wing Shun Chan 025 * @see SocialActivityLimitLocalService 026 * @generated 027 */ 028 @ProviderType 029 public class SocialActivityLimitLocalServiceWrapper 030 implements SocialActivityLimitLocalService, 031 ServiceWrapper<SocialActivityLimitLocalService> { 032 public SocialActivityLimitLocalServiceWrapper( 033 SocialActivityLimitLocalService socialActivityLimitLocalService) { 034 _socialActivityLimitLocalService = socialActivityLimitLocalService; 035 } 036 037 @Override 038 public com.liferay.portlet.social.model.SocialActivityLimit addActivityLimit( 039 long userId, long groupId, long classNameId, long classPK, 040 int activityType, java.lang.String activityCounterName, int limitPeriod) 041 throws com.liferay.portal.kernel.exception.PortalException { 042 return _socialActivityLimitLocalService.addActivityLimit(userId, 043 groupId, classNameId, classPK, activityType, activityCounterName, 044 limitPeriod); 045 } 046 047 /** 048 * Adds the social activity limit to the database. Also notifies the appropriate model listeners. 049 * 050 * @param socialActivityLimit the social activity limit 051 * @return the social activity limit that was added 052 */ 053 @Override 054 public com.liferay.portlet.social.model.SocialActivityLimit addSocialActivityLimit( 055 com.liferay.portlet.social.model.SocialActivityLimit socialActivityLimit) { 056 return _socialActivityLimitLocalService.addSocialActivityLimit(socialActivityLimit); 057 } 058 059 /** 060 * Creates a new social activity limit with the primary key. Does not add the social activity limit to the database. 061 * 062 * @param activityLimitId the primary key for the new social activity limit 063 * @return the new social activity limit 064 */ 065 @Override 066 public com.liferay.portlet.social.model.SocialActivityLimit createSocialActivityLimit( 067 long activityLimitId) { 068 return _socialActivityLimitLocalService.createSocialActivityLimit(activityLimitId); 069 } 070 071 /** 072 * @throws PortalException 073 */ 074 @Override 075 public com.liferay.portal.model.PersistedModel deletePersistedModel( 076 com.liferay.portal.model.PersistedModel persistedModel) 077 throws com.liferay.portal.kernel.exception.PortalException { 078 return _socialActivityLimitLocalService.deletePersistedModel(persistedModel); 079 } 080 081 /** 082 * Deletes the social activity limit with the primary key from the database. Also notifies the appropriate model listeners. 083 * 084 * @param activityLimitId the primary key of the social activity limit 085 * @return the social activity limit that was removed 086 * @throws PortalException if a social activity limit with the primary key could not be found 087 */ 088 @Override 089 public com.liferay.portlet.social.model.SocialActivityLimit deleteSocialActivityLimit( 090 long activityLimitId) 091 throws com.liferay.portal.kernel.exception.PortalException { 092 return _socialActivityLimitLocalService.deleteSocialActivityLimit(activityLimitId); 093 } 094 095 /** 096 * Deletes the social activity limit from the database. Also notifies the appropriate model listeners. 097 * 098 * @param socialActivityLimit the social activity limit 099 * @return the social activity limit that was removed 100 */ 101 @Override 102 public com.liferay.portlet.social.model.SocialActivityLimit deleteSocialActivityLimit( 103 com.liferay.portlet.social.model.SocialActivityLimit socialActivityLimit) { 104 return _socialActivityLimitLocalService.deleteSocialActivityLimit(socialActivityLimit); 105 } 106 107 @Override 108 public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() { 109 return _socialActivityLimitLocalService.dynamicQuery(); 110 } 111 112 /** 113 * Performs a dynamic query on the database and returns the matching rows. 114 * 115 * @param dynamicQuery the dynamic query 116 * @return the matching rows 117 */ 118 @Override 119 public <T> java.util.List<T> dynamicQuery( 120 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) { 121 return _socialActivityLimitLocalService.dynamicQuery(dynamicQuery); 122 } 123 124 /** 125 * Performs a dynamic query on the database and returns a range of the matching rows. 126 * 127 * <p> 128 * 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.social.model.impl.SocialActivityLimitModelImpl}. 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. 129 * </p> 130 * 131 * @param dynamicQuery the dynamic query 132 * @param start the lower bound of the range of model instances 133 * @param end the upper bound of the range of model instances (not inclusive) 134 * @return the range of matching rows 135 */ 136 @Override 137 public <T> java.util.List<T> dynamicQuery( 138 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, 139 int end) { 140 return _socialActivityLimitLocalService.dynamicQuery(dynamicQuery, 141 start, end); 142 } 143 144 /** 145 * Performs a dynamic query on the database and returns an ordered range of the matching rows. 146 * 147 * <p> 148 * 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.social.model.impl.SocialActivityLimitModelImpl}. 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. 149 * </p> 150 * 151 * @param dynamicQuery the dynamic query 152 * @param start the lower bound of the range of model instances 153 * @param end the upper bound of the range of model instances (not inclusive) 154 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 155 * @return the ordered range of matching rows 156 */ 157 @Override 158 public <T> java.util.List<T> dynamicQuery( 159 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, 160 int end, 161 com.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator) { 162 return _socialActivityLimitLocalService.dynamicQuery(dynamicQuery, 163 start, end, orderByComparator); 164 } 165 166 /** 167 * Returns the number of rows matching the dynamic query. 168 * 169 * @param dynamicQuery the dynamic query 170 * @return the number of rows matching the dynamic query 171 */ 172 @Override 173 public long dynamicQueryCount( 174 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) { 175 return _socialActivityLimitLocalService.dynamicQueryCount(dynamicQuery); 176 } 177 178 /** 179 * Returns the number of rows matching the dynamic query. 180 * 181 * @param dynamicQuery the dynamic query 182 * @param projection the projection to apply to the query 183 * @return the number of rows matching the dynamic query 184 */ 185 @Override 186 public long dynamicQueryCount( 187 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, 188 com.liferay.portal.kernel.dao.orm.Projection projection) { 189 return _socialActivityLimitLocalService.dynamicQueryCount(dynamicQuery, 190 projection); 191 } 192 193 @Override 194 public com.liferay.portlet.social.model.SocialActivityLimit fetchActivityLimit( 195 long groupId, long userId, long classNameId, long classPK, 196 int activityType, java.lang.String activityCounterName) { 197 return _socialActivityLimitLocalService.fetchActivityLimit(groupId, 198 userId, classNameId, classPK, activityType, activityCounterName); 199 } 200 201 @Override 202 public com.liferay.portlet.social.model.SocialActivityLimit fetchSocialActivityLimit( 203 long activityLimitId) { 204 return _socialActivityLimitLocalService.fetchSocialActivityLimit(activityLimitId); 205 } 206 207 @Override 208 public com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery() { 209 return _socialActivityLimitLocalService.getActionableDynamicQuery(); 210 } 211 212 @Override 213 public com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery getIndexableActionableDynamicQuery() { 214 return _socialActivityLimitLocalService.getIndexableActionableDynamicQuery(); 215 } 216 217 /** 218 * Returns the OSGi service identifier. 219 * 220 * @return the OSGi service identifier 221 */ 222 @Override 223 public java.lang.String getOSGiServiceIdentifier() { 224 return _socialActivityLimitLocalService.getOSGiServiceIdentifier(); 225 } 226 227 @Override 228 public com.liferay.portal.model.PersistedModel getPersistedModel( 229 java.io.Serializable primaryKeyObj) 230 throws com.liferay.portal.kernel.exception.PortalException { 231 return _socialActivityLimitLocalService.getPersistedModel(primaryKeyObj); 232 } 233 234 /** 235 * Returns the social activity limit with the primary key. 236 * 237 * @param activityLimitId the primary key of the social activity limit 238 * @return the social activity limit 239 * @throws PortalException if a social activity limit with the primary key could not be found 240 */ 241 @Override 242 public com.liferay.portlet.social.model.SocialActivityLimit getSocialActivityLimit( 243 long activityLimitId) 244 throws com.liferay.portal.kernel.exception.PortalException { 245 return _socialActivityLimitLocalService.getSocialActivityLimit(activityLimitId); 246 } 247 248 /** 249 * Returns a range of all the social activity limits. 250 * 251 * <p> 252 * 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.social.model.impl.SocialActivityLimitModelImpl}. 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. 253 * </p> 254 * 255 * @param start the lower bound of the range of social activity limits 256 * @param end the upper bound of the range of social activity limits (not inclusive) 257 * @return the range of social activity limits 258 */ 259 @Override 260 public java.util.List<com.liferay.portlet.social.model.SocialActivityLimit> getSocialActivityLimits( 261 int start, int end) { 262 return _socialActivityLimitLocalService.getSocialActivityLimits(start, 263 end); 264 } 265 266 /** 267 * Returns the number of social activity limits. 268 * 269 * @return the number of social activity limits 270 */ 271 @Override 272 public int getSocialActivityLimitsCount() { 273 return _socialActivityLimitLocalService.getSocialActivityLimitsCount(); 274 } 275 276 /** 277 * Updates the social activity limit in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners. 278 * 279 * @param socialActivityLimit the social activity limit 280 * @return the social activity limit that was updated 281 */ 282 @Override 283 public com.liferay.portlet.social.model.SocialActivityLimit updateSocialActivityLimit( 284 com.liferay.portlet.social.model.SocialActivityLimit socialActivityLimit) { 285 return _socialActivityLimitLocalService.updateSocialActivityLimit(socialActivityLimit); 286 } 287 288 @Override 289 public SocialActivityLimitLocalService getWrappedService() { 290 return _socialActivityLimitLocalService; 291 } 292 293 @Override 294 public void setWrappedService( 295 SocialActivityLimitLocalService socialActivityLimitLocalService) { 296 _socialActivityLimitLocalService = socialActivityLimitLocalService; 297 } 298 299 private SocialActivityLimitLocalService _socialActivityLimitLocalService; 300 }