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