| /* |
| * |
| * Copyright (c) 2011, 2016 - Loetz GmbH&Co.KG (69115 Heidelberg, Germany) |
| * |
| * All rights reserved. This program and the accompanying materials |
| * are made available under the terms of the Eclipse Public License 2.0 |
| * which accompanies this distribution, and is available at |
| * https://www.eclipse.org/legal/epl-2.0/ |
| * |
| * SPDX-License-Identifier: EPL-2.0 |
| * |
| * Contributors: |
| * Florian Pirchner - Initial implementation |
| * Loetz GmbH&Co.KG |
| * |
| */ |
| |
| package org.eclipse.osbp.webserver.messagequeue; |
| |
| import java.util.HashMap; |
| import java.util.Map; |
| |
| /** |
| * The Class CXMqMessagePerspectiveData. |
| */ |
| public class CXMqMessagePerspectiveData { |
| |
| /** The perspective id. */ |
| private final String fPerspectiveId; |
| |
| /** The title. */ |
| private final String fTitle; |
| |
| /** The icon uri. */ |
| private final String fIconURI; |
| |
| /** |
| * Instantiates a new CX mq message perspective data. |
| * |
| * @param perspectiveId |
| * the perspective id |
| * @param title |
| * the title |
| * @param iconURI |
| * the icon uri |
| */ |
| public CXMqMessagePerspectiveData(String perspectiveId, String title, String iconURI) { |
| fPerspectiveId = perspectiveId; |
| fTitle = title; |
| fIconURI = iconURI; |
| } |
| |
| /** |
| * Instantiates a new CX mq message perspective data. |
| * |
| * @param map |
| * the map |
| */ |
| public CXMqMessagePerspectiveData(Map<String,Object> map) { |
| fPerspectiveId = (String)map.get(ECXMqMessageAttribute.PERSPECTIVE_ID.toString()); |
| fTitle = (String)map.get(ECXMqMessageAttribute.TITLE.toString()); |
| fIconURI = (String)map.get(ECXMqMessageAttribute.ICON_URI.toString()); |
| } |
| |
| /** |
| * Gets the map. |
| * |
| * @return the map |
| */ |
| public Map<String,Object> getMap() { |
| Map<String,Object> retcode = new HashMap<String,Object>(); |
| retcode.put(ECXMqMessageAttribute.PERSPECTIVE_ID.toString(), fPerspectiveId); |
| retcode.put(ECXMqMessageAttribute.TITLE.toString(), fTitle); |
| retcode.put(ECXMqMessageAttribute.ICON_URI.toString(), fIconURI); |
| return retcode; |
| } |
| |
| /** |
| * Gets the perspective id. |
| * |
| * @return the perspective id |
| */ |
| public String getPerspectiveId() { |
| return fPerspectiveId; |
| } |
| |
| /** |
| * Gets the title. |
| * |
| * @return the title |
| */ |
| public String getTitle() { |
| return fTitle; |
| } |
| |
| /** |
| * Gets the icon uri. |
| * |
| * @return the icon uri |
| */ |
| public String getIconURI() { |
| return fIconURI; |
| } |
| } |