001 /** 002 * Copyright (c) 2000-2013 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 * @return the repository entry that was removed 063 * @throws PortalException if a repository entry with the primary key could not be found 064 * @throws SystemException if a system exception occurred 065 */ 066 public com.liferay.portal.model.RepositoryEntry deleteRepositoryEntry( 067 long repositoryEntryId) 068 throws com.liferay.portal.kernel.exception.PortalException, 069 com.liferay.portal.kernel.exception.SystemException { 070 return _repositoryEntryLocalService.deleteRepositoryEntry(repositoryEntryId); 071 } 072 073 /** 074 * Deletes the repository entry from the database. Also notifies the appropriate model listeners. 075 * 076 * @param repositoryEntry the repository entry 077 * @return the repository entry that was removed 078 * @throws SystemException if a system exception occurred 079 */ 080 public com.liferay.portal.model.RepositoryEntry deleteRepositoryEntry( 081 com.liferay.portal.model.RepositoryEntry repositoryEntry) 082 throws com.liferay.portal.kernel.exception.SystemException { 083 return _repositoryEntryLocalService.deleteRepositoryEntry(repositoryEntry); 084 } 085 086 public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() { 087 return _repositoryEntryLocalService.dynamicQuery(); 088 } 089 090 /** 091 * Performs a dynamic query on the database and returns the matching rows. 092 * 093 * @param dynamicQuery the dynamic query 094 * @return the matching rows 095 * @throws SystemException if a system exception occurred 096 */ 097 @SuppressWarnings("rawtypes") 098 public java.util.List dynamicQuery( 099 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) 100 throws com.liferay.portal.kernel.exception.SystemException { 101 return _repositoryEntryLocalService.dynamicQuery(dynamicQuery); 102 } 103 104 /** 105 * Performs a dynamic query on the database and returns a range of the matching rows. 106 * 107 * <p> 108 * 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.RepositoryEntryModelImpl}. 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. 109 * </p> 110 * 111 * @param dynamicQuery the dynamic query 112 * @param start the lower bound of the range of model instances 113 * @param end the upper bound of the range of model instances (not inclusive) 114 * @return the range of matching rows 115 * @throws SystemException if a system exception occurred 116 */ 117 @SuppressWarnings("rawtypes") 118 public java.util.List dynamicQuery( 119 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, 120 int end) throws com.liferay.portal.kernel.exception.SystemException { 121 return _repositoryEntryLocalService.dynamicQuery(dynamicQuery, start, 122 end); 123 } 124 125 /** 126 * Performs a dynamic query on the database and returns an ordered range of the matching rows. 127 * 128 * <p> 129 * 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.RepositoryEntryModelImpl}. 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. 130 * </p> 131 * 132 * @param dynamicQuery the dynamic query 133 * @param start the lower bound of the range of model instances 134 * @param end the upper bound of the range of model instances (not inclusive) 135 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 136 * @return the ordered range of matching rows 137 * @throws SystemException if a system exception occurred 138 */ 139 @SuppressWarnings("rawtypes") 140 public java.util.List dynamicQuery( 141 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, 142 int end, 143 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 144 throws com.liferay.portal.kernel.exception.SystemException { 145 return _repositoryEntryLocalService.dynamicQuery(dynamicQuery, start, 146 end, orderByComparator); 147 } 148 149 /** 150 * Returns the number of rows that match the dynamic query. 151 * 152 * @param dynamicQuery the dynamic query 153 * @return the number of rows that match the dynamic query 154 * @throws SystemException if a system exception occurred 155 */ 156 public long dynamicQueryCount( 157 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) 158 throws com.liferay.portal.kernel.exception.SystemException { 159 return _repositoryEntryLocalService.dynamicQueryCount(dynamicQuery); 160 } 161 162 public com.liferay.portal.model.RepositoryEntry fetchRepositoryEntry( 163 long repositoryEntryId) 164 throws com.liferay.portal.kernel.exception.SystemException { 165 return _repositoryEntryLocalService.fetchRepositoryEntry(repositoryEntryId); 166 } 167 168 /** 169 * Returns the repository entry with the primary key. 170 * 171 * @param repositoryEntryId the primary key of the repository entry 172 * @return the repository entry 173 * @throws PortalException if a repository entry with the primary key could not be found 174 * @throws SystemException if a system exception occurred 175 */ 176 public com.liferay.portal.model.RepositoryEntry getRepositoryEntry( 177 long repositoryEntryId) 178 throws com.liferay.portal.kernel.exception.PortalException, 179 com.liferay.portal.kernel.exception.SystemException { 180 return _repositoryEntryLocalService.getRepositoryEntry(repositoryEntryId); 181 } 182 183 public com.liferay.portal.model.PersistedModel getPersistedModel( 184 java.io.Serializable primaryKeyObj) 185 throws com.liferay.portal.kernel.exception.PortalException, 186 com.liferay.portal.kernel.exception.SystemException { 187 return _repositoryEntryLocalService.getPersistedModel(primaryKeyObj); 188 } 189 190 /** 191 * Returns the repository entry matching the UUID and group. 192 * 193 * @param uuid the repository entry's UUID 194 * @param groupId the primary key of the group 195 * @return the matching repository entry 196 * @throws PortalException if a matching repository entry could not be found 197 * @throws SystemException if a system exception occurred 198 */ 199 public com.liferay.portal.model.RepositoryEntry getRepositoryEntryByUuidAndGroupId( 200 java.lang.String uuid, long groupId) 201 throws com.liferay.portal.kernel.exception.PortalException, 202 com.liferay.portal.kernel.exception.SystemException { 203 return _repositoryEntryLocalService.getRepositoryEntryByUuidAndGroupId(uuid, 204 groupId); 205 } 206 207 /** 208 * Returns a range of all the repository entries. 209 * 210 * <p> 211 * 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.RepositoryEntryModelImpl}. 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. 212 * </p> 213 * 214 * @param start the lower bound of the range of repository entries 215 * @param end the upper bound of the range of repository entries (not inclusive) 216 * @return the range of repository entries 217 * @throws SystemException if a system exception occurred 218 */ 219 public java.util.List<com.liferay.portal.model.RepositoryEntry> getRepositoryEntries( 220 int start, int end) 221 throws com.liferay.portal.kernel.exception.SystemException { 222 return _repositoryEntryLocalService.getRepositoryEntries(start, end); 223 } 224 225 /** 226 * Returns the number of repository entries. 227 * 228 * @return the number of repository entries 229 * @throws SystemException if a system exception occurred 230 */ 231 public int getRepositoryEntriesCount() 232 throws com.liferay.portal.kernel.exception.SystemException { 233 return _repositoryEntryLocalService.getRepositoryEntriesCount(); 234 } 235 236 /** 237 * Updates the repository entry in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners. 238 * 239 * @param repositoryEntry the repository entry 240 * @return the repository entry that was updated 241 * @throws SystemException if a system exception occurred 242 */ 243 public com.liferay.portal.model.RepositoryEntry updateRepositoryEntry( 244 com.liferay.portal.model.RepositoryEntry repositoryEntry) 245 throws com.liferay.portal.kernel.exception.SystemException { 246 return _repositoryEntryLocalService.updateRepositoryEntry(repositoryEntry); 247 } 248 249 /** 250 * Returns the Spring bean ID for this bean. 251 * 252 * @return the Spring bean ID for this bean 253 */ 254 public java.lang.String getBeanIdentifier() { 255 return _repositoryEntryLocalService.getBeanIdentifier(); 256 } 257 258 /** 259 * Sets the Spring bean ID for this bean. 260 * 261 * @param beanIdentifier the Spring bean ID for this bean 262 */ 263 public void setBeanIdentifier(java.lang.String beanIdentifier) { 264 _repositoryEntryLocalService.setBeanIdentifier(beanIdentifier); 265 } 266 267 public com.liferay.portal.model.RepositoryEntry addRepositoryEntry( 268 long userId, long groupId, long repositoryId, 269 java.lang.String mappedId, 270 com.liferay.portal.service.ServiceContext serviceContext) 271 throws com.liferay.portal.kernel.exception.PortalException, 272 com.liferay.portal.kernel.exception.SystemException { 273 return _repositoryEntryLocalService.addRepositoryEntry(userId, groupId, 274 repositoryId, mappedId, serviceContext); 275 } 276 277 public com.liferay.portal.model.RepositoryEntry updateRepositoryEntry( 278 long repositoryEntryId, java.lang.String mappedId) 279 throws com.liferay.portal.kernel.exception.PortalException, 280 com.liferay.portal.kernel.exception.SystemException { 281 return _repositoryEntryLocalService.updateRepositoryEntry(repositoryEntryId, 282 mappedId); 283 } 284 285 /** 286 * @deprecated As of 6.1.0, replaced by {@link #getWrappedService} 287 */ 288 public RepositoryEntryLocalService getWrappedRepositoryEntryLocalService() { 289 return _repositoryEntryLocalService; 290 } 291 292 /** 293 * @deprecated As of 6.1.0, replaced by {@link #setWrappedService} 294 */ 295 public void setWrappedRepositoryEntryLocalService( 296 RepositoryEntryLocalService repositoryEntryLocalService) { 297 _repositoryEntryLocalService = repositoryEntryLocalService; 298 } 299 300 public RepositoryEntryLocalService getWrappedService() { 301 return _repositoryEntryLocalService; 302 } 303 304 public void setWrappedService( 305 RepositoryEntryLocalService repositoryEntryLocalService) { 306 _repositoryEntryLocalService = repositoryEntryLocalService; 307 } 308 309 private RepositoryEntryLocalService _repositoryEntryLocalService; 310 }