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.portal.service; 016 017 /** 018 * <p> 019 * This class is a wrapper for {@link RepositoryEntryLocalService}. 020 * </p> 021 * 022 * @author Brian Wing Shun Chan 023 * @see RepositoryEntryLocalService 024 * @generated 025 */ 026 public class RepositoryEntryLocalServiceWrapper 027 implements RepositoryEntryLocalService, 028 ServiceWrapper<RepositoryEntryLocalService> { 029 public RepositoryEntryLocalServiceWrapper( 030 RepositoryEntryLocalService repositoryEntryLocalService) { 031 _repositoryEntryLocalService = repositoryEntryLocalService; 032 } 033 034 /** 035 * Adds the repository entry to the database. Also notifies the appropriate model listeners. 036 * 037 * @param repositoryEntry the repository entry 038 * @return the repository entry that was added 039 * @throws SystemException if a system exception occurred 040 */ 041 public com.liferay.portal.model.RepositoryEntry addRepositoryEntry( 042 com.liferay.portal.model.RepositoryEntry repositoryEntry) 043 throws com.liferay.portal.kernel.exception.SystemException { 044 return _repositoryEntryLocalService.addRepositoryEntry(repositoryEntry); 045 } 046 047 /** 048 * Creates a new repository entry with the primary key. Does not add the repository entry to the database. 049 * 050 * @param repositoryEntryId the primary key for the new repository entry 051 * @return the new repository entry 052 */ 053 public com.liferay.portal.model.RepositoryEntry createRepositoryEntry( 054 long repositoryEntryId) { 055 return _repositoryEntryLocalService.createRepositoryEntry(repositoryEntryId); 056 } 057 058 /** 059 * Deletes the repository entry with the primary key from the database. Also notifies the appropriate model listeners. 060 * 061 * @param repositoryEntryId the primary key of the repository entry 062 * @throws PortalException if a repository entry with the primary key could not be found 063 * @throws SystemException if a system exception occurred 064 */ 065 public void deleteRepositoryEntry(long repositoryEntryId) 066 throws com.liferay.portal.kernel.exception.PortalException, 067 com.liferay.portal.kernel.exception.SystemException { 068 _repositoryEntryLocalService.deleteRepositoryEntry(repositoryEntryId); 069 } 070 071 /** 072 * Deletes the repository entry from the database. Also notifies the appropriate model listeners. 073 * 074 * @param repositoryEntry the repository entry 075 * @throws SystemException if a system exception occurred 076 */ 077 public void deleteRepositoryEntry( 078 com.liferay.portal.model.RepositoryEntry repositoryEntry) 079 throws com.liferay.portal.kernel.exception.SystemException { 080 _repositoryEntryLocalService.deleteRepositoryEntry(repositoryEntry); 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 _repositoryEntryLocalService.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 _repositoryEntryLocalService.dynamicQuery(dynamicQuery, start, 115 end); 116 } 117 118 /** 119 * Performs a dynamic query on the database and returns an ordered range of the matching rows. 120 * 121 * <p> 122 * 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. 123 * </p> 124 * 125 * @param dynamicQuery the dynamic query 126 * @param start the lower bound of the range of model instances 127 * @param end the upper bound of the range of model instances (not inclusive) 128 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 129 * @return the ordered range of matching rows 130 * @throws SystemException if a system exception occurred 131 */ 132 @SuppressWarnings("rawtypes") 133 public java.util.List dynamicQuery( 134 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, 135 int end, 136 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 137 throws com.liferay.portal.kernel.exception.SystemException { 138 return _repositoryEntryLocalService.dynamicQuery(dynamicQuery, start, 139 end, orderByComparator); 140 } 141 142 /** 143 * Returns the number of rows that match the dynamic query. 144 * 145 * @param dynamicQuery the dynamic query 146 * @return the number of rows that match the dynamic query 147 * @throws SystemException if a system exception occurred 148 */ 149 public long dynamicQueryCount( 150 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) 151 throws com.liferay.portal.kernel.exception.SystemException { 152 return _repositoryEntryLocalService.dynamicQueryCount(dynamicQuery); 153 } 154 155 public com.liferay.portal.model.RepositoryEntry fetchRepositoryEntry( 156 long repositoryEntryId) 157 throws com.liferay.portal.kernel.exception.SystemException { 158 return _repositoryEntryLocalService.fetchRepositoryEntry(repositoryEntryId); 159 } 160 161 /** 162 * Returns the repository entry with the primary key. 163 * 164 * @param repositoryEntryId the primary key of the repository entry 165 * @return the repository entry 166 * @throws PortalException if a repository entry with the primary key could not be found 167 * @throws SystemException if a system exception occurred 168 */ 169 public com.liferay.portal.model.RepositoryEntry getRepositoryEntry( 170 long repositoryEntryId) 171 throws com.liferay.portal.kernel.exception.PortalException, 172 com.liferay.portal.kernel.exception.SystemException { 173 return _repositoryEntryLocalService.getRepositoryEntry(repositoryEntryId); 174 } 175 176 public com.liferay.portal.model.PersistedModel getPersistedModel( 177 java.io.Serializable primaryKeyObj) 178 throws com.liferay.portal.kernel.exception.PortalException, 179 com.liferay.portal.kernel.exception.SystemException { 180 return _repositoryEntryLocalService.getPersistedModel(primaryKeyObj); 181 } 182 183 /** 184 * Returns the repository entry with the UUID in the group. 185 * 186 * @param uuid the UUID of repository entry 187 * @param groupId the group id of the repository entry 188 * @return the repository entry 189 * @throws PortalException if a repository entry with the UUID in the group could not be found 190 * @throws SystemException if a system exception occurred 191 */ 192 public com.liferay.portal.model.RepositoryEntry getRepositoryEntryByUuidAndGroupId( 193 java.lang.String uuid, long groupId) 194 throws com.liferay.portal.kernel.exception.PortalException, 195 com.liferay.portal.kernel.exception.SystemException { 196 return _repositoryEntryLocalService.getRepositoryEntryByUuidAndGroupId(uuid, 197 groupId); 198 } 199 200 /** 201 * Returns a range of all the repository entries. 202 * 203 * <p> 204 * 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. 205 * </p> 206 * 207 * @param start the lower bound of the range of repository entries 208 * @param end the upper bound of the range of repository entries (not inclusive) 209 * @return the range of repository entries 210 * @throws SystemException if a system exception occurred 211 */ 212 public java.util.List<com.liferay.portal.model.RepositoryEntry> getRepositoryEntries( 213 int start, int end) 214 throws com.liferay.portal.kernel.exception.SystemException { 215 return _repositoryEntryLocalService.getRepositoryEntries(start, end); 216 } 217 218 /** 219 * Returns the number of repository entries. 220 * 221 * @return the number of repository entries 222 * @throws SystemException if a system exception occurred 223 */ 224 public int getRepositoryEntriesCount() 225 throws com.liferay.portal.kernel.exception.SystemException { 226 return _repositoryEntryLocalService.getRepositoryEntriesCount(); 227 } 228 229 /** 230 * Updates the repository entry in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners. 231 * 232 * @param repositoryEntry the repository entry 233 * @return the repository entry that was updated 234 * @throws SystemException if a system exception occurred 235 */ 236 public com.liferay.portal.model.RepositoryEntry updateRepositoryEntry( 237 com.liferay.portal.model.RepositoryEntry repositoryEntry) 238 throws com.liferay.portal.kernel.exception.SystemException { 239 return _repositoryEntryLocalService.updateRepositoryEntry(repositoryEntry); 240 } 241 242 /** 243 * Updates the repository entry in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners. 244 * 245 * @param repositoryEntry the repository entry 246 * @param merge whether to merge the repository entry 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. 247 * @return the repository entry that was updated 248 * @throws SystemException if a system exception occurred 249 */ 250 public com.liferay.portal.model.RepositoryEntry updateRepositoryEntry( 251 com.liferay.portal.model.RepositoryEntry repositoryEntry, boolean merge) 252 throws com.liferay.portal.kernel.exception.SystemException { 253 return _repositoryEntryLocalService.updateRepositoryEntry(repositoryEntry, 254 merge); 255 } 256 257 /** 258 * Returns the Spring bean ID for this bean. 259 * 260 * @return the Spring bean ID for this bean 261 */ 262 public java.lang.String getBeanIdentifier() { 263 return _repositoryEntryLocalService.getBeanIdentifier(); 264 } 265 266 /** 267 * Sets the Spring bean ID for this bean. 268 * 269 * @param beanIdentifier the Spring bean ID for this bean 270 */ 271 public void setBeanIdentifier(java.lang.String beanIdentifier) { 272 _repositoryEntryLocalService.setBeanIdentifier(beanIdentifier); 273 } 274 275 /** 276 * @deprecated Renamed to {@link #getWrappedService} 277 */ 278 public RepositoryEntryLocalService getWrappedRepositoryEntryLocalService() { 279 return _repositoryEntryLocalService; 280 } 281 282 /** 283 * @deprecated Renamed to {@link #setWrappedService} 284 */ 285 public void setWrappedRepositoryEntryLocalService( 286 RepositoryEntryLocalService repositoryEntryLocalService) { 287 _repositoryEntryLocalService = repositoryEntryLocalService; 288 } 289 290 public RepositoryEntryLocalService getWrappedService() { 291 return _repositoryEntryLocalService; 292 } 293 294 public void setWrappedService( 295 RepositoryEntryLocalService repositoryEntryLocalService) { 296 _repositoryEntryLocalService = repositoryEntryLocalService; 297 } 298 299 private RepositoryEntryLocalService _repositoryEntryLocalService; 300 }