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