001    /**
002     * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
003     *
004     * The contents of this file are subject to the terms of the Liferay Enterprise
005     * Subscription License ("License"). You may not use this file except in
006     * compliance with the License. You can obtain a copy of the License by
007     * contacting Liferay, Inc. See the License for the specific language governing
008     * permissions and limitations under the License, including but not limited to
009     * distribution rights of the Software.
010     *
011     *
012     *
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    }