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.gwt.shared;
029
030import com.google.gwt.user.client.rpc.IsSerializable;
031
032/**
033 * A bean that holds the informations of a principal to show the availability dialog.<p>
034 *
035 * @since 8.0.0
036 */
037public class CmsPrincipalBean implements IsSerializable {
038
039    /** The description. */
040    private String m_description;
041
042    /** The group flag. */
043    private boolean m_isGroup;
044
045    /** The name of the principal. */
046    private String m_name;
047
048    /**
049     * The default constructor.<p>
050     */
051    public CmsPrincipalBean() {
052
053        // noop
054    }
055
056    /**
057     * The public constructor.<p>
058     *
059     * @param name the name of the principal
060     * @param description the description
061     * @param isGruop the group flag
062     */
063    public CmsPrincipalBean(String name, String description, boolean isGruop) {
064
065        m_name = name;
066        m_description = description;
067        m_isGroup = isGruop;
068    }
069
070    /**
071     * Returns the description.<p>
072     *
073     * @return the description
074     */
075    public String getDescription() {
076
077        return m_description;
078    }
079
080    /**
081     * Returns the name.<p>
082     *
083     * @return the name
084     */
085    public String getName() {
086
087        return m_name;
088    }
089
090    /**
091     * Returns the isGroup.<p>
092     *
093     * @return the isGroup
094     */
095    public boolean isGroup() {
096
097        return m_isGroup;
098    }
099
100    /**
101     * Sets the description.<p>
102     *
103     * @param description the description to set
104     */
105    public void setDescription(String description) {
106
107        m_description = description;
108    }
109
110    /**
111     * Sets the isGroup.<p>
112     *
113     * @param isGroup the isGroup to set
114     */
115    public void setGroup(boolean isGroup) {
116
117        m_isGroup = isGroup;
118    }
119
120    /**
121     * Sets the name.<p>
122     *
123     * @param name the name to set
124     */
125    public void setName(String name) {
126
127        m_name = name;
128    }
129}