001    /**
002     * Copyright (c) 2000-present Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portal.kernel.portlet;
016    
017    import com.liferay.portal.theme.PortletDisplay;
018    
019    /**
020     * @author Shuyang Zhou
021     */
022    public class PortletDisplayModel {
023    
024            public PortletDisplayModel(PortletDisplay portletDisplay) {
025                    _id = portletDisplay.getId();
026                    _instanceId = portletDisplay.getInstanceId();
027                    _portletName = portletDisplay.getPortletName();
028                    _resourcePK = portletDisplay.getResourcePK();
029                    _rootPortletId = portletDisplay.getRootPortletId();
030                    _title = portletDisplay.getTitle();
031            }
032    
033            public String getId() {
034                    return _id;
035            }
036    
037            public String getInstanceId() {
038                    return _instanceId;
039            }
040    
041            public String getPortletName() {
042                    return _portletName;
043            }
044    
045            public String getResourcePK() {
046                    return _resourcePK;
047            }
048    
049            public String getRootPortletId() {
050                    return _rootPortletId;
051            }
052    
053            public String getTitle() {
054                    return _title;
055            }
056    
057            private final String _id;
058            private final String _instanceId;
059            private final String _portletName;
060            private final String _resourcePK;
061            private final String _rootPortletId;
062            private final String _title;
063    
064    }