001 /** 002 * Copyright (c) 2000-2011 Liferay, Inc. All rights reserved. 003 * 004 * The contents of this file are subject to the terms of the Liferay Enterprise 005 * Subscription License ("License"). You may not use this file except in 006 * compliance with the License. You can obtain a copy of the License by 007 * contacting Liferay, Inc. See the License for the specific language governing 008 * permissions and limitations under the License, including but not limited to 009 * distribution rights of the Software. 010 * 011 * 012 * 013 */ 014 015 package com.liferay.portal.service; 016 017 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil; 018 import com.liferay.portal.kernel.util.MethodCache; 019 import com.liferay.portal.kernel.util.ReferenceRegistry; 020 021 /** 022 * The utility for the quartz local service. This utility wraps {@link com.liferay.portal.service.impl.QuartzLocalServiceImpl} and is the primary access point for service operations in application layer code running on the local server. 023 * 024 * <p> 025 * This is a local service. Methods of this service will not have security checks based on the propagated JAAS credentials because this service can only be accessed from within the same VM. 026 * </p> 027 * 028 * @author Brian Wing Shun Chan 029 * @see QuartzLocalService 030 * @see com.liferay.portal.service.base.QuartzLocalServiceBaseImpl 031 * @see com.liferay.portal.service.impl.QuartzLocalServiceImpl 032 * @generated 033 */ 034 public class QuartzLocalServiceUtil { 035 /* 036 * NOTE FOR DEVELOPERS: 037 * 038 * Never modify this class directly. Add custom service methods to {@link com.liferay.portal.service.impl.QuartzLocalServiceImpl} and rerun ServiceBuilder to regenerate this class. 039 */ 040 041 /** 042 * Returns the Spring bean ID for this bean. 043 * 044 * @return the Spring bean ID for this bean 045 */ 046 public static java.lang.String getBeanIdentifier() { 047 return getService().getBeanIdentifier(); 048 } 049 050 /** 051 * Sets the Spring bean ID for this bean. 052 * 053 * @param beanIdentifier the Spring bean ID for this bean 054 */ 055 public static void setBeanIdentifier(java.lang.String beanIdentifier) { 056 getService().setBeanIdentifier(beanIdentifier); 057 } 058 059 public static void checkQuartzTables() 060 throws com.liferay.portal.kernel.exception.SystemException { 061 getService().checkQuartzTables(); 062 } 063 064 public static QuartzLocalService getService() { 065 if (_service == null) { 066 _service = (QuartzLocalService)PortalBeanLocatorUtil.locate(QuartzLocalService.class.getName()); 067 068 ReferenceRegistry.registerReference(QuartzLocalServiceUtil.class, 069 "_service"); 070 MethodCache.remove(QuartzLocalService.class); 071 } 072 073 return _service; 074 } 075 076 public void setService(QuartzLocalService service) { 077 MethodCache.remove(QuartzLocalService.class); 078 079 _service = service; 080 081 ReferenceRegistry.registerReference(QuartzLocalServiceUtil.class, 082 "_service"); 083 MethodCache.remove(QuartzLocalService.class); 084 } 085 086 private static QuartzLocalService _service; 087 }