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.ade.containerpage.shared; 029 030import org.opencms.db.CmsResourceState; 031import org.opencms.gwt.shared.CmsAdditionalInfoBean; 032 033import java.util.ArrayList; 034 035import com.google.gwt.user.client.rpc.IsSerializable; 036 037/** 038 * Represents the setting configuration for a container element.<p> 039 */ 040public class CmsElementSettingsConfig implements IsSerializable { 041 042 /** The additional infos to display. */ 043 private ArrayList<CmsAdditionalInfoBean> m_additionalInfo; 044 045 /** The data for the container element. */ 046 private CmsContainerElementData m_elementData; 047 048 /** Schema path for element. **/ 049 private String m_schema; 050 051 /** The resource state. */ 052 private CmsResourceState m_state; 053 054 /** 055 * Creates a new instance.<p> 056 * 057 * @param elementData the element data 058 * @param state the resource state 059 * @param additionalInfo the additional infos 060 */ 061 public CmsElementSettingsConfig( 062 CmsContainerElementData elementData, 063 CmsResourceState state, 064 ArrayList<CmsAdditionalInfoBean> additionalInfo, 065 String schema) { 066 067 m_elementData = elementData; 068 m_additionalInfo = additionalInfo; 069 m_state = state; 070 m_schema = schema; 071 } 072 073 /** 074 * Default constructor for serialization.<p> 075 */ 076 protected CmsElementSettingsConfig() { 077 // do nothing 078 079 } 080 081 /** 082 * Gets the additional info items.<p> 083 * 084 * @return the additional info items 085 */ 086 public ArrayList<CmsAdditionalInfoBean> getAdditionalInfo() { 087 088 return m_additionalInfo; 089 } 090 091 /** 092 * Gets the element data.<p> 093 * 094 * @return the element data 095 */ 096 public CmsContainerElementData getElementData() { 097 098 return m_elementData; 099 } 100 101 /** 102 * Gets the schema path. 103 * 104 * @return the schema path 105 */ 106 public String getSchema() { 107 108 return m_schema; 109 } 110 111 /** 112 * The state.<p> 113 * 114 * @return the resource state 115 */ 116 public CmsResourceState getState() { 117 118 return m_state; 119 } 120 121}