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.kernel.lar.lifecycle;
016    
017    import com.liferay.portal.kernel.security.pacl.permission.PortalRuntimePermission;
018    
019    import java.io.Serializable;
020    
021    /**
022     * @author Daniel Kocsis
023     */
024    public class ExportImportLifecycleEventFactoryUtil {
025    
026            public static ExportImportLifecycleEvent create(
027                    int code, Serializable... attributes) {
028    
029                    return getExportImportLifecycleEventFactory().create(code, attributes);
030            }
031    
032            public static ExportImportLifecycleEventFactory
033                    getExportImportLifecycleEventFactory() {
034    
035                    PortalRuntimePermission.checkGetBeanProperty(
036                            ExportImportLifecycleEventFactoryUtil.class);
037    
038                    return _exportImportLifecycleEventFactory;
039            }
040    
041            public void setExportImportLifecycleEventFactory(
042                    ExportImportLifecycleEventFactory exportImportLifecycleEventFactory) {
043    
044                    PortalRuntimePermission.checkSetBeanProperty(getClass());
045    
046                    _exportImportLifecycleEventFactory = exportImportLifecycleEventFactory;
047            }
048    
049            private static ExportImportLifecycleEventFactory
050                    _exportImportLifecycleEventFactory;
051    
052    }