001    /**
002     * Copyright (c) 2000-2013 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.model;
016    
017    import java.io.Serializable;
018    
019    /**
020     * @author Brian Wing Shun Chan
021     */
022    public class PortletPreferencesIds implements Serializable {
023    
024            public PortletPreferencesIds() {
025            }
026    
027            public PortletPreferencesIds(
028                    long companyId, long ownerId, int ownerType, long plid,
029                    String portletId) {
030    
031                    _companyId = companyId;
032                    _ownerId = ownerId;
033                    _ownerType = ownerType;
034                    _plid = plid;
035                    _portletId = portletId;
036            }
037    
038            public long getCompanyId() {
039                    return _companyId;
040            }
041    
042            public long getOwnerId() {
043                    return _ownerId;
044            }
045    
046            public int getOwnerType() {
047                    return _ownerType;
048            }
049    
050            public long getPlid() {
051                    return _plid;
052            }
053    
054            public String getPortletId() {
055                    return _portletId;
056            }
057    
058            public void setCompanyId(long companyId) {
059                    _companyId = companyId;
060            }
061    
062            public void setOwnerId(long ownerId) {
063                    _ownerId = ownerId;
064            }
065    
066            public void setOwnerType(int ownerType) {
067                    _ownerType = ownerType;
068            }
069    
070            public void setPlid(long plid) {
071                    _plid = plid;
072            }
073    
074            public void setPortletId(String portletId) {
075                    _portletId = portletId;
076            }
077    
078            private long _companyId;
079            private long _ownerId;
080            private int _ownerType;
081            private long _plid;
082            private String _portletId;
083    
084    }