001/*
002 * This library is part of OpenCms -
003 * the Open Source Content Management System
004 *
005 * Copyright (c) Alkacon Software GmbH & Co. KG (http://www.alkacon.com)
006 *
007 * This library is free software; you can redistribute it and/or
008 * modify it under the terms of the GNU Lesser General Public
009 * License as published by the Free Software Foundation; either
010 * version 2.1 of the License, or (at your option) any later version.
011 *
012 * This library is distributed in the hope that it will be useful,
013 * but WITHOUT ANY WARRANTY; without even the implied warranty of
014 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
015 * Lesser General Public License for more details.
016 *
017 * For further information about Alkacon Software, please see the
018 * company website: http://www.alkacon.com
019 *
020 * For further information about OpenCms, please see the
021 * project website: http://www.opencms.org
022 *
023 * You should have received a copy of the GNU Lesser General Public
024 * License along with this library; if not, write to the Free Software
025 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
026 */
027
028package org.opencms.ugc;
029
030import org.opencms.configuration.CmsConfigurationManager;
031import org.opencms.db.CmsPublishList;
032import org.opencms.file.CmsObject;
033import org.opencms.main.CmsEvent;
034import org.opencms.module.CmsModule;
035import org.opencms.module.I_CmsModuleAction;
036import org.opencms.report.I_CmsReport;
037
038/**
039 * Module action class for the user-generated content module.<p>
040 */
041public class CmsUgcModuleAction implements I_CmsModuleAction {
042
043    /**
044     * The admin-level CMS context.<p>
045     *
046     */
047    private static CmsObject m_adminCms;
048
049    /**
050     * Returns a CMS context with admin privileges.<p>
051     *
052     * @return a CMS context with admin privileges
053     */
054    protected static CmsObject getAdminCms() {
055
056        return m_adminCms;
057    }
058
059    /**
060     * @see org.opencms.main.I_CmsEventListener#cmsEvent(org.opencms.main.CmsEvent)
061     */
062    public void cmsEvent(CmsEvent event) {
063
064        // ignore
065    }
066
067    /**
068     * @see org.opencms.module.I_CmsModuleAction#initialize(org.opencms.file.CmsObject, org.opencms.configuration.CmsConfigurationManager, org.opencms.module.CmsModule)
069     */
070    public void initialize(CmsObject adminCms, CmsConfigurationManager configurationManager, CmsModule module) {
071
072        m_adminCms = adminCms;
073    }
074
075    /**
076     * @see org.opencms.module.I_CmsModuleAction#moduleUninstall(org.opencms.module.CmsModule)
077     */
078    public void moduleUninstall(CmsModule module) {
079
080        // ignore
081    }
082
083    /**
084     * @see org.opencms.module.I_CmsModuleAction#moduleUpdate(org.opencms.module.CmsModule)
085     */
086    public void moduleUpdate(CmsModule module) {
087
088        // ignore
089    }
090
091    /**
092     * @see org.opencms.module.I_CmsModuleAction#publishProject(org.opencms.file.CmsObject, org.opencms.db.CmsPublishList, int, org.opencms.report.I_CmsReport)
093     */
094    public void publishProject(CmsObject cms, CmsPublishList publishList, int publishTag, I_CmsReport report) {
095
096        // ignore
097
098    }
099
100    /**
101     * @see org.opencms.module.I_CmsModuleAction#shutDown(org.opencms.module.CmsModule)
102     */
103    public void shutDown(CmsModule module) {
104
105        // ignore
106
107    }
108
109}