001 /** 002 * Copyright (c) 2000-2012 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.documentlibrary.service; 016 017 import com.liferay.portal.service.ServiceWrapper; 018 019 /** 020 * <p> 021 * This class is a wrapper for {@link DLSyncLocalService}. 022 * </p> 023 * 024 * @author Brian Wing Shun Chan 025 * @see DLSyncLocalService 026 * @generated 027 */ 028 public class DLSyncLocalServiceWrapper implements DLSyncLocalService, 029 ServiceWrapper<DLSyncLocalService> { 030 public DLSyncLocalServiceWrapper(DLSyncLocalService dlSyncLocalService) { 031 _dlSyncLocalService = dlSyncLocalService; 032 } 033 034 /** 035 * Adds the d l sync to the database. Also notifies the appropriate model listeners. 036 * 037 * @param dlSync the d l sync 038 * @return the d l sync that was added 039 * @throws SystemException if a system exception occurred 040 */ 041 public com.liferay.portlet.documentlibrary.model.DLSync addDLSync( 042 com.liferay.portlet.documentlibrary.model.DLSync dlSync) 043 throws com.liferay.portal.kernel.exception.SystemException { 044 return _dlSyncLocalService.addDLSync(dlSync); 045 } 046 047 /** 048 * Creates a new d l sync with the primary key. Does not add the d l sync to the database. 049 * 050 * @param syncId the primary key for the new d l sync 051 * @return the new d l sync 052 */ 053 public com.liferay.portlet.documentlibrary.model.DLSync createDLSync( 054 long syncId) { 055 return _dlSyncLocalService.createDLSync(syncId); 056 } 057 058 /** 059 * Deletes the d l sync with the primary key from the database. Also notifies the appropriate model listeners. 060 * 061 * @param syncId the primary key of the d l sync 062 * @throws PortalException if a d l sync with the primary key could not be found 063 * @throws SystemException if a system exception occurred 064 */ 065 public void deleteDLSync(long syncId) 066 throws com.liferay.portal.kernel.exception.PortalException, 067 com.liferay.portal.kernel.exception.SystemException { 068 _dlSyncLocalService.deleteDLSync(syncId); 069 } 070 071 /** 072 * Deletes the d l sync from the database. Also notifies the appropriate model listeners. 073 * 074 * @param dlSync the d l sync 075 * @throws SystemException if a system exception occurred 076 */ 077 public void deleteDLSync( 078 com.liferay.portlet.documentlibrary.model.DLSync dlSync) 079 throws com.liferay.portal.kernel.exception.SystemException { 080 _dlSyncLocalService.deleteDLSync(dlSync); 081 } 082 083 /** 084 * Performs a dynamic query on the database and returns the matching rows. 085 * 086 * @param dynamicQuery the dynamic query 087 * @return the matching rows 088 * @throws SystemException if a system exception occurred 089 */ 090 @SuppressWarnings("rawtypes") 091 public java.util.List dynamicQuery( 092 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) 093 throws com.liferay.portal.kernel.exception.SystemException { 094 return _dlSyncLocalService.dynamicQuery(dynamicQuery); 095 } 096 097 /** 098 * Performs a dynamic query on the database and returns a range of the matching rows. 099 * 100 * <p> 101 * 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. 102 * </p> 103 * 104 * @param dynamicQuery the dynamic query 105 * @param start the lower bound of the range of model instances 106 * @param end the upper bound of the range of model instances (not inclusive) 107 * @return the range of matching rows 108 * @throws SystemException if a system exception occurred 109 */ 110 @SuppressWarnings("rawtypes") 111 public java.util.List dynamicQuery( 112 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, 113 int end) throws com.liferay.portal.kernel.exception.SystemException { 114 return _dlSyncLocalService.dynamicQuery(dynamicQuery, start, end); 115 } 116 117 /** 118 * Performs a dynamic query on the database and returns an ordered range of the matching rows. 119 * 120 * <p> 121 * 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. 122 * </p> 123 * 124 * @param dynamicQuery the dynamic query 125 * @param start the lower bound of the range of model instances 126 * @param end the upper bound of the range of model instances (not inclusive) 127 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 128 * @return the ordered range of matching rows 129 * @throws SystemException if a system exception occurred 130 */ 131 @SuppressWarnings("rawtypes") 132 public java.util.List dynamicQuery( 133 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, 134 int end, 135 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 136 throws com.liferay.portal.kernel.exception.SystemException { 137 return _dlSyncLocalService.dynamicQuery(dynamicQuery, start, end, 138 orderByComparator); 139 } 140 141 /** 142 * Returns the number of rows that match the dynamic query. 143 * 144 * @param dynamicQuery the dynamic query 145 * @return the number of rows that match the dynamic query 146 * @throws SystemException if a system exception occurred 147 */ 148 public long dynamicQueryCount( 149 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) 150 throws com.liferay.portal.kernel.exception.SystemException { 151 return _dlSyncLocalService.dynamicQueryCount(dynamicQuery); 152 } 153 154 public com.liferay.portlet.documentlibrary.model.DLSync fetchDLSync( 155 long syncId) throws com.liferay.portal.kernel.exception.SystemException { 156 return _dlSyncLocalService.fetchDLSync(syncId); 157 } 158 159 /** 160 * Returns the d l sync with the primary key. 161 * 162 * @param syncId the primary key of the d l sync 163 * @return the d l sync 164 * @throws PortalException if a d l sync with the primary key could not be found 165 * @throws SystemException if a system exception occurred 166 */ 167 public com.liferay.portlet.documentlibrary.model.DLSync getDLSync( 168 long syncId) 169 throws com.liferay.portal.kernel.exception.PortalException, 170 com.liferay.portal.kernel.exception.SystemException { 171 return _dlSyncLocalService.getDLSync(syncId); 172 } 173 174 public com.liferay.portal.model.PersistedModel getPersistedModel( 175 java.io.Serializable primaryKeyObj) 176 throws com.liferay.portal.kernel.exception.PortalException, 177 com.liferay.portal.kernel.exception.SystemException { 178 return _dlSyncLocalService.getPersistedModel(primaryKeyObj); 179 } 180 181 /** 182 * Returns a range of all the d l syncs. 183 * 184 * <p> 185 * 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. 186 * </p> 187 * 188 * @param start the lower bound of the range of d l syncs 189 * @param end the upper bound of the range of d l syncs (not inclusive) 190 * @return the range of d l syncs 191 * @throws SystemException if a system exception occurred 192 */ 193 public java.util.List<com.liferay.portlet.documentlibrary.model.DLSync> getDLSyncs( 194 int start, int end) 195 throws com.liferay.portal.kernel.exception.SystemException { 196 return _dlSyncLocalService.getDLSyncs(start, end); 197 } 198 199 /** 200 * Returns the number of d l syncs. 201 * 202 * @return the number of d l syncs 203 * @throws SystemException if a system exception occurred 204 */ 205 public int getDLSyncsCount() 206 throws com.liferay.portal.kernel.exception.SystemException { 207 return _dlSyncLocalService.getDLSyncsCount(); 208 } 209 210 /** 211 * Updates the d l sync in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners. 212 * 213 * @param dlSync the d l sync 214 * @return the d l sync that was updated 215 * @throws SystemException if a system exception occurred 216 */ 217 public com.liferay.portlet.documentlibrary.model.DLSync updateDLSync( 218 com.liferay.portlet.documentlibrary.model.DLSync dlSync) 219 throws com.liferay.portal.kernel.exception.SystemException { 220 return _dlSyncLocalService.updateDLSync(dlSync); 221 } 222 223 /** 224 * Updates the d l sync in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners. 225 * 226 * @param dlSync the d l sync 227 * @param merge whether to merge the d l sync with the current session. See {@link com.liferay.portal.service.persistence.BatchSession#update(com.liferay.portal.kernel.dao.orm.Session, com.liferay.portal.model.BaseModel, boolean)} for an explanation. 228 * @return the d l sync that was updated 229 * @throws SystemException if a system exception occurred 230 */ 231 public com.liferay.portlet.documentlibrary.model.DLSync updateDLSync( 232 com.liferay.portlet.documentlibrary.model.DLSync dlSync, boolean merge) 233 throws com.liferay.portal.kernel.exception.SystemException { 234 return _dlSyncLocalService.updateDLSync(dlSync, merge); 235 } 236 237 /** 238 * Returns the Spring bean ID for this bean. 239 * 240 * @return the Spring bean ID for this bean 241 */ 242 public java.lang.String getBeanIdentifier() { 243 return _dlSyncLocalService.getBeanIdentifier(); 244 } 245 246 /** 247 * Sets the Spring bean ID for this bean. 248 * 249 * @param beanIdentifier the Spring bean ID for this bean 250 */ 251 public void setBeanIdentifier(java.lang.String beanIdentifier) { 252 _dlSyncLocalService.setBeanIdentifier(beanIdentifier); 253 } 254 255 public com.liferay.portlet.documentlibrary.model.DLSync addSync( 256 long fileId, java.lang.String fileUuid, long companyId, 257 long repositoryId, long parentFolderId, java.lang.String name, 258 java.lang.String type, java.lang.String version) 259 throws com.liferay.portal.kernel.exception.SystemException { 260 return _dlSyncLocalService.addSync(fileId, fileUuid, companyId, 261 repositoryId, parentFolderId, name, type, version); 262 } 263 264 public com.liferay.portlet.documentlibrary.model.DLSync updateSync( 265 long fileId, long parentFolderId, java.lang.String name, 266 java.lang.String event, java.lang.String version) 267 throws com.liferay.portal.kernel.exception.PortalException, 268 com.liferay.portal.kernel.exception.SystemException { 269 return _dlSyncLocalService.updateSync(fileId, parentFolderId, name, 270 event, version); 271 } 272 273 /** 274 * @deprecated Renamed to {@link #getWrappedService} 275 */ 276 public DLSyncLocalService getWrappedDLSyncLocalService() { 277 return _dlSyncLocalService; 278 } 279 280 /** 281 * @deprecated Renamed to {@link #setWrappedService} 282 */ 283 public void setWrappedDLSyncLocalService( 284 DLSyncLocalService dlSyncLocalService) { 285 _dlSyncLocalService = dlSyncLocalService; 286 } 287 288 public DLSyncLocalService getWrappedService() { 289 return _dlSyncLocalService; 290 } 291 292 public void setWrappedService(DLSyncLocalService dlSyncLocalService) { 293 _dlSyncLocalService = dlSyncLocalService; 294 } 295 296 private DLSyncLocalService _dlSyncLocalService; 297 }