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