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 ClusterGroupLocalService}. 020 * </p> 021 * 022 * @author Brian Wing Shun Chan 023 * @see ClusterGroupLocalService 024 * @generated 025 */ 026 public class ClusterGroupLocalServiceWrapper implements ClusterGroupLocalService, 027 ServiceWrapper<ClusterGroupLocalService> { 028 public ClusterGroupLocalServiceWrapper( 029 ClusterGroupLocalService clusterGroupLocalService) { 030 _clusterGroupLocalService = clusterGroupLocalService; 031 } 032 033 /** 034 * Adds the cluster group to the database. Also notifies the appropriate model listeners. 035 * 036 * @param clusterGroup the cluster group 037 * @return the cluster group that was added 038 * @throws SystemException if a system exception occurred 039 */ 040 public com.liferay.portal.model.ClusterGroup addClusterGroup( 041 com.liferay.portal.model.ClusterGroup clusterGroup) 042 throws com.liferay.portal.kernel.exception.SystemException { 043 return _clusterGroupLocalService.addClusterGroup(clusterGroup); 044 } 045 046 /** 047 * Creates a new cluster group with the primary key. Does not add the cluster group to the database. 048 * 049 * @param clusterGroupId the primary key for the new cluster group 050 * @return the new cluster group 051 */ 052 public com.liferay.portal.model.ClusterGroup createClusterGroup( 053 long clusterGroupId) { 054 return _clusterGroupLocalService.createClusterGroup(clusterGroupId); 055 } 056 057 /** 058 * Deletes the cluster group with the primary key from the database. Also notifies the appropriate model listeners. 059 * 060 * @param clusterGroupId the primary key of the cluster group 061 * @throws PortalException if a cluster group with the primary key could not be found 062 * @throws SystemException if a system exception occurred 063 */ 064 public void deleteClusterGroup(long clusterGroupId) 065 throws com.liferay.portal.kernel.exception.PortalException, 066 com.liferay.portal.kernel.exception.SystemException { 067 _clusterGroupLocalService.deleteClusterGroup(clusterGroupId); 068 } 069 070 /** 071 * Deletes the cluster group from the database. Also notifies the appropriate model listeners. 072 * 073 * @param clusterGroup the cluster group 074 * @throws SystemException if a system exception occurred 075 */ 076 public void deleteClusterGroup( 077 com.liferay.portal.model.ClusterGroup clusterGroup) 078 throws com.liferay.portal.kernel.exception.SystemException { 079 _clusterGroupLocalService.deleteClusterGroup(clusterGroup); 080 } 081 082 /** 083 * Performs a dynamic query on the database and returns the matching rows. 084 * 085 * @param dynamicQuery the dynamic query 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 _clusterGroupLocalService.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 104 * @param start the lower bound of the range of model instances 105 * @param end the upper bound of the range of model instances (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 _clusterGroupLocalService.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 124 * @param start the lower bound of the range of model instances 125 * @param end the upper bound of the range of model instances (not inclusive) 126 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 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 _clusterGroupLocalService.dynamicQuery(dynamicQuery, start, end, 137 orderByComparator); 138 } 139 140 /** 141 * Returns the number of rows that match the dynamic query. 142 * 143 * @param dynamicQuery the dynamic query 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 _clusterGroupLocalService.dynamicQueryCount(dynamicQuery); 151 } 152 153 public com.liferay.portal.model.ClusterGroup fetchClusterGroup( 154 long clusterGroupId) 155 throws com.liferay.portal.kernel.exception.SystemException { 156 return _clusterGroupLocalService.fetchClusterGroup(clusterGroupId); 157 } 158 159 /** 160 * Returns the cluster group with the primary key. 161 * 162 * @param clusterGroupId the primary key of the cluster group 163 * @return the cluster group 164 * @throws PortalException if a cluster group with the primary key could not be found 165 * @throws SystemException if a system exception occurred 166 */ 167 public com.liferay.portal.model.ClusterGroup getClusterGroup( 168 long clusterGroupId) 169 throws com.liferay.portal.kernel.exception.PortalException, 170 com.liferay.portal.kernel.exception.SystemException { 171 return _clusterGroupLocalService.getClusterGroup(clusterGroupId); 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 _clusterGroupLocalService.getPersistedModel(primaryKeyObj); 179 } 180 181 /** 182 * Returns a range of all the cluster groups. 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 cluster groups 189 * @param end the upper bound of the range of cluster groups (not inclusive) 190 * @return the range of cluster groups 191 * @throws SystemException if a system exception occurred 192 */ 193 public java.util.List<com.liferay.portal.model.ClusterGroup> getClusterGroups( 194 int start, int end) 195 throws com.liferay.portal.kernel.exception.SystemException { 196 return _clusterGroupLocalService.getClusterGroups(start, end); 197 } 198 199 /** 200 * Returns the number of cluster groups. 201 * 202 * @return the number of cluster groups 203 * @throws SystemException if a system exception occurred 204 */ 205 public int getClusterGroupsCount() 206 throws com.liferay.portal.kernel.exception.SystemException { 207 return _clusterGroupLocalService.getClusterGroupsCount(); 208 } 209 210 /** 211 * Updates the cluster group in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners. 212 * 213 * @param clusterGroup the cluster group 214 * @return the cluster group that was updated 215 * @throws SystemException if a system exception occurred 216 */ 217 public com.liferay.portal.model.ClusterGroup updateClusterGroup( 218 com.liferay.portal.model.ClusterGroup clusterGroup) 219 throws com.liferay.portal.kernel.exception.SystemException { 220 return _clusterGroupLocalService.updateClusterGroup(clusterGroup); 221 } 222 223 /** 224 * Updates the cluster group in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners. 225 * 226 * @param clusterGroup the cluster group 227 * @param merge whether to merge the cluster group 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 cluster group that was updated 229 * @throws SystemException if a system exception occurred 230 */ 231 public com.liferay.portal.model.ClusterGroup updateClusterGroup( 232 com.liferay.portal.model.ClusterGroup clusterGroup, boolean merge) 233 throws com.liferay.portal.kernel.exception.SystemException { 234 return _clusterGroupLocalService.updateClusterGroup(clusterGroup, 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 _clusterGroupLocalService.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 _clusterGroupLocalService.setBeanIdentifier(beanIdentifier); 253 } 254 255 public com.liferay.portal.model.ClusterGroup addClusterGroup( 256 java.lang.String name, java.util.List<java.lang.String> clusterNodeIds) 257 throws com.liferay.portal.kernel.exception.SystemException { 258 return _clusterGroupLocalService.addClusterGroup(name, clusterNodeIds); 259 } 260 261 public com.liferay.portal.model.ClusterGroup addWholeClusterGroup( 262 java.lang.String name) 263 throws com.liferay.portal.kernel.exception.SystemException { 264 return _clusterGroupLocalService.addWholeClusterGroup(name); 265 } 266 267 /** 268 * @deprecated Renamed to {@link #getWrappedService} 269 */ 270 public ClusterGroupLocalService getWrappedClusterGroupLocalService() { 271 return _clusterGroupLocalService; 272 } 273 274 /** 275 * @deprecated Renamed to {@link #setWrappedService} 276 */ 277 public void setWrappedClusterGroupLocalService( 278 ClusterGroupLocalService clusterGroupLocalService) { 279 _clusterGroupLocalService = clusterGroupLocalService; 280 } 281 282 public ClusterGroupLocalService getWrappedService() { 283 return _clusterGroupLocalService; 284 } 285 286 public void setWrappedService( 287 ClusterGroupLocalService clusterGroupLocalService) { 288 _clusterGroupLocalService = clusterGroupLocalService; 289 } 290 291 private ClusterGroupLocalService _clusterGroupLocalService; 292 }