001    /**
002     * Copyright (c) 2000-2010 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.events;
016    
017    import com.liferay.portal.kernel.upgrade.UpgradeException;
018    import com.liferay.portal.verify.VerifyException;
019    
020    /**
021     * @author Brian Wing Shun Chan
022     * @author Alexander Chow
023     * @author Raymond Augé
024     */
025    public class StartupHelperUtil {
026    
027            public static StartupHelper getStartupHelper() {
028                    return _startupHelper;
029            }
030    
031            public static void setDropIndexes(boolean dropIndexes) {
032                    getStartupHelper().setDropIndexes(dropIndexes);
033            }
034    
035            public static void updateIndexes() {
036                    getStartupHelper().updateIndexes();
037            }
038    
039            public static void upgradeProcess(int buildNumber) throws UpgradeException {
040                    getStartupHelper().upgradeProcess(buildNumber);
041            }
042    
043            public static void verifyProcess(boolean verified) throws VerifyException {
044                    getStartupHelper().verifyProcess(verified);
045            }
046    
047            public static boolean isUpgraded() {
048                    return getStartupHelper().isUpgraded();
049            }
050    
051            public static boolean isVerified() {
052                    return getStartupHelper().isVerified();
053            }
054    
055            public void setStartupHelper(StartupHelper startupHelper) {
056                    _startupHelper = startupHelper;
057            }
058    
059            private static StartupHelper _startupHelper;
060    
061    }