/** * Copyright (C) 2009 eXo Platform SAS. * * This 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 software 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 software; if not, write to the Free * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA * 02110-1301 USA, or see the FSF site: http://www.fsf.org. */ package org.exoplatform.portal.pom.data; import java.util.List; import java.util.Map; import org.exoplatform.portal.config.model.ApplicationState; import org.exoplatform.portal.config.model.ApplicationType; /** * @author <a href="mailto:julien.viet@exoplatform.com">Julien Viet</a> * @version $Revision$ */ public class ApplicationData<S> extends ComponentData { /** . */ private final ApplicationType<S> type; /** . */ private final ApplicationState<S> state; /** . */ private final String id; /** . */ private final String title; /** . */ private final String icon; /** . */ private final String description; /** . */ private final boolean showInfoBar; /** . */ private final boolean showApplicationState; /** . */ private final boolean showApplicationMode; /** . */ private final String theme; /** . */ private final String width; /** . */ private final String height; /** . */ private final Map<String, String> properties; /** . */ private final List<String> accessPermissions; public ApplicationData(String storageId, String storageName, ApplicationType<S> type, ApplicationState<S> state, String id, String title, String icon, String description, boolean showInfoBar, boolean showApplicationState, boolean showApplicationMode, String theme, String width, String height, Map<String, String> properties, List<String> accessPermissions) { super(storageId, storageName); // this.type = type; this.state = state; this.id = id; this.title = title; this.icon = icon; this.description = description; this.showInfoBar = showInfoBar; this.showApplicationState = showApplicationState; this.showApplicationMode = showApplicationMode; this.theme = theme; this.width = width; this.height = height; this.properties = properties; this.accessPermissions = accessPermissions; } public ApplicationType<S> getType() { return type; } public ApplicationState<S> getState() { return state; } public String getId() { return id; } public String getTitle() { return title; } public String getIcon() { return icon; } public String getDescription() { return description; } public boolean isShowInfoBar() { return showInfoBar; } public boolean isShowApplicationState() { return showApplicationState; } public boolean isShowApplicationMode() { return showApplicationMode; } public String getTheme() { return theme; } public String getWidth() { return width; } public String getHeight() { return height; } public Map<String, String> getProperties() { return properties; } public List<String> getAccessPermissions() { return accessPermissions; } }