001 /** 002 * Copyright (c) 2000-present 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 import aQute.bnd.annotation.ProviderType; 018 019 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil; 020 import com.liferay.portal.kernel.util.ReferenceRegistry; 021 022 /** 023 * Provides the local service utility for PasswordPolicyRel. This utility wraps 024 * {@link com.liferay.portal.service.impl.PasswordPolicyRelLocalServiceImpl} and is the 025 * primary access point for service operations in application layer code running 026 * on the local server. Methods of this service will not have security checks 027 * based on the propagated JAAS credentials because this service can only be 028 * accessed from within the same VM. 029 * 030 * @author Brian Wing Shun Chan 031 * @see PasswordPolicyRelLocalService 032 * @see com.liferay.portal.service.base.PasswordPolicyRelLocalServiceBaseImpl 033 * @see com.liferay.portal.service.impl.PasswordPolicyRelLocalServiceImpl 034 * @generated 035 */ 036 @ProviderType 037 public class PasswordPolicyRelLocalServiceUtil { 038 /* 039 * NOTE FOR DEVELOPERS: 040 * 041 * Never modify this class directly. Add custom service methods to {@link com.liferay.portal.service.impl.PasswordPolicyRelLocalServiceImpl} and rerun ServiceBuilder to regenerate this class. 042 */ 043 public static com.liferay.portal.model.PasswordPolicyRel addPasswordPolicyRel( 044 long passwordPolicyId, java.lang.String className, long classPK) { 045 return getService() 046 .addPasswordPolicyRel(passwordPolicyId, className, classPK); 047 } 048 049 /** 050 * Adds the password policy rel to the database. Also notifies the appropriate model listeners. 051 * 052 * @param passwordPolicyRel the password policy rel 053 * @return the password policy rel that was added 054 */ 055 public static com.liferay.portal.model.PasswordPolicyRel addPasswordPolicyRel( 056 com.liferay.portal.model.PasswordPolicyRel passwordPolicyRel) { 057 return getService().addPasswordPolicyRel(passwordPolicyRel); 058 } 059 060 public static void addPasswordPolicyRels(long passwordPolicyId, 061 java.lang.String className, long[] classPKs) { 062 getService().addPasswordPolicyRels(passwordPolicyId, className, classPKs); 063 } 064 065 /** 066 * Creates a new password policy rel with the primary key. Does not add the password policy rel to the database. 067 * 068 * @param passwordPolicyRelId the primary key for the new password policy rel 069 * @return the new password policy rel 070 */ 071 public static com.liferay.portal.model.PasswordPolicyRel createPasswordPolicyRel( 072 long passwordPolicyRelId) { 073 return getService().createPasswordPolicyRel(passwordPolicyRelId); 074 } 075 076 public static void deletePasswordPolicyRel(java.lang.String className, 077 long classPK) { 078 getService().deletePasswordPolicyRel(className, classPK); 079 } 080 081 public static void deletePasswordPolicyRel(long passwordPolicyId, 082 java.lang.String className, long classPK) { 083 getService() 084 .deletePasswordPolicyRel(passwordPolicyId, className, classPK); 085 } 086 087 /** 088 * Deletes the password policy rel from the database. Also notifies the appropriate model listeners. 089 * 090 * @param passwordPolicyRel the password policy rel 091 * @return the password policy rel that was removed 092 */ 093 public static com.liferay.portal.model.PasswordPolicyRel deletePasswordPolicyRel( 094 com.liferay.portal.model.PasswordPolicyRel passwordPolicyRel) { 095 return getService().deletePasswordPolicyRel(passwordPolicyRel); 096 } 097 098 /** 099 * Deletes the password policy rel with the primary key from the database. Also notifies the appropriate model listeners. 100 * 101 * @param passwordPolicyRelId the primary key of the password policy rel 102 * @return the password policy rel that was removed 103 * @throws PortalException if a password policy rel with the primary key could not be found 104 */ 105 public static com.liferay.portal.model.PasswordPolicyRel deletePasswordPolicyRel( 106 long passwordPolicyRelId) 107 throws com.liferay.portal.kernel.exception.PortalException { 108 return getService().deletePasswordPolicyRel(passwordPolicyRelId); 109 } 110 111 public static void deletePasswordPolicyRels(long passwordPolicyId) { 112 getService().deletePasswordPolicyRels(passwordPolicyId); 113 } 114 115 public static void deletePasswordPolicyRels(long passwordPolicyId, 116 java.lang.String className, long[] classPKs) { 117 getService() 118 .deletePasswordPolicyRels(passwordPolicyId, className, classPKs); 119 } 120 121 /** 122 * @throws PortalException 123 */ 124 public static com.liferay.portal.model.PersistedModel deletePersistedModel( 125 com.liferay.portal.model.PersistedModel persistedModel) 126 throws com.liferay.portal.kernel.exception.PortalException { 127 return getService().deletePersistedModel(persistedModel); 128 } 129 130 public static com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() { 131 return getService().dynamicQuery(); 132 } 133 134 /** 135 * Performs a dynamic query on the database and returns the matching rows. 136 * 137 * @param dynamicQuery the dynamic query 138 * @return the matching rows 139 */ 140 public static <T> java.util.List<T> dynamicQuery( 141 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) { 142 return getService().dynamicQuery(dynamicQuery); 143 } 144 145 /** 146 * Performs a dynamic query on the database and returns a range of the matching rows. 147 * 148 * <p> 149 * 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.PasswordPolicyRelModelImpl}. 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. 150 * </p> 151 * 152 * @param dynamicQuery the dynamic query 153 * @param start the lower bound of the range of model instances 154 * @param end the upper bound of the range of model instances (not inclusive) 155 * @return the range of matching rows 156 */ 157 public static <T> java.util.List<T> dynamicQuery( 158 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, 159 int end) { 160 return getService().dynamicQuery(dynamicQuery, start, end); 161 } 162 163 /** 164 * Performs a dynamic query on the database and returns an ordered range of the matching rows. 165 * 166 * <p> 167 * 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.PasswordPolicyRelModelImpl}. 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. 168 * </p> 169 * 170 * @param dynamicQuery the dynamic query 171 * @param start the lower bound of the range of model instances 172 * @param end the upper bound of the range of model instances (not inclusive) 173 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 174 * @return the ordered range of matching rows 175 */ 176 public static <T> java.util.List<T> dynamicQuery( 177 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, 178 int end, 179 com.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator) { 180 return getService() 181 .dynamicQuery(dynamicQuery, start, end, orderByComparator); 182 } 183 184 /** 185 * Returns the number of rows matching the dynamic query. 186 * 187 * @param dynamicQuery the dynamic query 188 * @return the number of rows matching the dynamic query 189 */ 190 public static long dynamicQueryCount( 191 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) { 192 return getService().dynamicQueryCount(dynamicQuery); 193 } 194 195 /** 196 * Returns the number of rows matching the dynamic query. 197 * 198 * @param dynamicQuery the dynamic query 199 * @param projection the projection to apply to the query 200 * @return the number of rows matching the dynamic query 201 */ 202 public static long dynamicQueryCount( 203 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, 204 com.liferay.portal.kernel.dao.orm.Projection projection) { 205 return getService().dynamicQueryCount(dynamicQuery, projection); 206 } 207 208 public static com.liferay.portal.model.PasswordPolicyRel fetchPasswordPolicyRel( 209 java.lang.String className, long classPK) { 210 return getService().fetchPasswordPolicyRel(className, classPK); 211 } 212 213 public static com.liferay.portal.model.PasswordPolicyRel fetchPasswordPolicyRel( 214 long passwordPolicyRelId) { 215 return getService().fetchPasswordPolicyRel(passwordPolicyRelId); 216 } 217 218 public static com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery() { 219 return getService().getActionableDynamicQuery(); 220 } 221 222 /** 223 * Returns the Spring bean ID for this bean. 224 * 225 * @return the Spring bean ID for this bean 226 */ 227 public static java.lang.String getBeanIdentifier() { 228 return getService().getBeanIdentifier(); 229 } 230 231 public static com.liferay.portal.model.PasswordPolicyRel getPasswordPolicyRel( 232 java.lang.String className, long classPK) 233 throws com.liferay.portal.kernel.exception.PortalException { 234 return getService().getPasswordPolicyRel(className, classPK); 235 } 236 237 public static com.liferay.portal.model.PasswordPolicyRel getPasswordPolicyRel( 238 long passwordPolicyId, java.lang.String className, long classPK) 239 throws com.liferay.portal.kernel.exception.PortalException { 240 return getService() 241 .getPasswordPolicyRel(passwordPolicyId, className, classPK); 242 } 243 244 /** 245 * Returns the password policy rel with the primary key. 246 * 247 * @param passwordPolicyRelId the primary key of the password policy rel 248 * @return the password policy rel 249 * @throws PortalException if a password policy rel with the primary key could not be found 250 */ 251 public static com.liferay.portal.model.PasswordPolicyRel getPasswordPolicyRel( 252 long passwordPolicyRelId) 253 throws com.liferay.portal.kernel.exception.PortalException { 254 return getService().getPasswordPolicyRel(passwordPolicyRelId); 255 } 256 257 /** 258 * Returns a range of all the password policy rels. 259 * 260 * <p> 261 * 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.PasswordPolicyRelModelImpl}. 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. 262 * </p> 263 * 264 * @param start the lower bound of the range of password policy rels 265 * @param end the upper bound of the range of password policy rels (not inclusive) 266 * @return the range of password policy rels 267 */ 268 public static java.util.List<com.liferay.portal.model.PasswordPolicyRel> getPasswordPolicyRels( 269 int start, int end) { 270 return getService().getPasswordPolicyRels(start, end); 271 } 272 273 /** 274 * Returns the number of password policy rels. 275 * 276 * @return the number of password policy rels 277 */ 278 public static int getPasswordPolicyRelsCount() { 279 return getService().getPasswordPolicyRelsCount(); 280 } 281 282 public static com.liferay.portal.model.PersistedModel getPersistedModel( 283 java.io.Serializable primaryKeyObj) 284 throws com.liferay.portal.kernel.exception.PortalException { 285 return getService().getPersistedModel(primaryKeyObj); 286 } 287 288 public static boolean hasPasswordPolicyRel(long passwordPolicyId, 289 java.lang.String className, long classPK) { 290 return getService() 291 .hasPasswordPolicyRel(passwordPolicyId, className, classPK); 292 } 293 294 /** 295 * Sets the Spring bean ID for this bean. 296 * 297 * @param beanIdentifier the Spring bean ID for this bean 298 */ 299 public static void setBeanIdentifier(java.lang.String beanIdentifier) { 300 getService().setBeanIdentifier(beanIdentifier); 301 } 302 303 /** 304 * Updates the password policy rel in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners. 305 * 306 * @param passwordPolicyRel the password policy rel 307 * @return the password policy rel that was updated 308 */ 309 public static com.liferay.portal.model.PasswordPolicyRel updatePasswordPolicyRel( 310 com.liferay.portal.model.PasswordPolicyRel passwordPolicyRel) { 311 return getService().updatePasswordPolicyRel(passwordPolicyRel); 312 } 313 314 public static PasswordPolicyRelLocalService getService() { 315 if (_service == null) { 316 _service = (PasswordPolicyRelLocalService)PortalBeanLocatorUtil.locate(PasswordPolicyRelLocalService.class.getName()); 317 318 ReferenceRegistry.registerReference(PasswordPolicyRelLocalServiceUtil.class, 319 "_service"); 320 } 321 322 return _service; 323 } 324 325 /** 326 * @deprecated As of 6.2.0 327 */ 328 @Deprecated 329 public void setService(PasswordPolicyRelLocalService service) { 330 } 331 332 private static PasswordPolicyRelLocalService _service; 333 }