/* * Copyright (C) 2003-2004 Red Hat Inc. All Rights Reserved. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public License * as published by the Free Software Foundation; either version 2.1 of * the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * */ package com.arsdigita.cms.contentassets; import com.arsdigita.runtime.AbstractConfig; import com.arsdigita.util.parameter.BooleanParameter; import com.arsdigita.util.parameter.Parameter; import org.apache.log4j.Logger; /** * A record containing server-session scoped configuration properties. * * Accessors of this class may return null. Developers should take * care to trap null return values in their code. * * @see ContentSection#getConfig() * * @author Justin Ross <jross@redhat.com> * @version $Id: $ */ public final class ItemImageAttachmentConfig extends AbstractConfig { private static final Logger s_log = Logger.getLogger(ItemImageAttachmentConfig.class); // Are the description and title properties available for // display/editing. These properties are used by the // ImageGallery content type. private final Parameter m_isImageStepDescriptionAndTitleShown; /** * Do not instantiate this class directly. * * @see ContentSection#getConfig() **/ public ItemImageAttachmentConfig() { m_isImageStepDescriptionAndTitleShown = new BooleanParameter ("com.arsdigita.cms.m_is_image_step_description_and_title_shown", Parameter.REQUIRED, new Boolean(false)); register(m_isImageStepDescriptionAndTitleShown); loadInfo(); } public final boolean getIsImageStepDescriptionAndTitleShown() { return ((Boolean) get(m_isImageStepDescriptionAndTitleShown)).booleanValue(); } }