/* * Copyright (C) 2005-2008 Alfresco Software Limited. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * This program 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 General Public License for more details. * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * As a special exception to the terms and conditions of version 2.0 of * the GPL, you may redistribute this Program in connection with Free/Libre * and Open Source Software ("FLOSS") applications as described in Alfresco's * FLOSS exception. You should have recieved a copy of the text describing * the FLOSS exception, and it is also available here: * http://www.alfresco.com/legal/licensing" */ package org.alfresco.wcm.webproject; import org.alfresco.service.cmr.repository.NodeRef; import org.alfresco.wcm.util.WCMUtil; /** * Web Project Information * * @author janv */ public class WebProjectInfoImpl implements WebProjectInfo { /** Web Project node reference */ private NodeRef nodeRef; /** Web Project name */ private String name; /** Web Project title */ private String title; /** Web Project description */ private String description; /** Web Project store id (aka DNS name) */ private String wpStoreId; /** Web Project default webApp name */ private String defaultWebApp; /** Web Project true if the web project can also be used as template */ private boolean isTemplate; /** * Constructor * * @param name name * @param description description * @param nodeRef web project node reference */ /*package*/ WebProjectInfoImpl(String name, String title, String description, String wpStoreId, String defaultWebApp, boolean isTemplate, NodeRef nodeRef) { this.name = name; this.title = title; this.description = description; this.wpStoreId = wpStoreId; this.defaultWebApp = defaultWebApp; this.isTemplate = isTemplate; this.nodeRef = nodeRef; } /** * Get the site node reference * * @return NodeRef site node reference, null if not set */ public NodeRef getNodeRef() { return nodeRef; } /** * Get the name * * @return String name */ public String getName() { return name; } /** * @param name the name to set */ public void setName(String name) { this.name = name; } /** * @return the dnsName */ public String getStoreId() { return wpStoreId; } /** * Get the staging store name * * @return String staging store name */ public String getStagingStoreName() { return WCMUtil.buildStagingStoreName(getStoreId()); } /** * Get the description * * @return String description */ public String getDescription() { return description; } /** * Set the description * * @param description description */ public void setDescription(String description) { this.description = description; } /** * @return the title */ public String getTitle() { return title; } /** * @param title the title to set */ public void setTitle(String title) { this.title = title; } /** * @return the webApp */ public String getDefaultWebApp() { return defaultWebApp; } /** * @param webApp the webApp to set */ public void setDefaultWebApp(String defaultWebApp) { this.defaultWebApp = defaultWebApp; } /** * @return the useAsTemplate */ public boolean isTemplate() { return isTemplate; } /** * @param isTemplate the isTemplate to set */ public void setIsTemplate(boolean isTemplate) { this.isTemplate = isTemplate; } }