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.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                    long companyId, long ownerId, int ownerType, long plid,
026                    String portletId) {
027    
028                    _companyId = companyId;
029                    _ownerId = ownerId;
030                    _ownerType = ownerType;
031                    _plid = plid;
032                    _portletId = portletId;
033            }
034    
035            public long getCompanyId() {
036                    return _companyId;
037            }
038    
039            public long getOwnerId() {
040                    return _ownerId;
041            }
042    
043            public int getOwnerType() {
044                    return _ownerType;
045            }
046    
047            public long getPlid() {
048                    return _plid;
049            }
050    
051            public String getPortletId() {
052                    return _portletId;
053            }
054    
055            private final long _companyId;
056            private final long _ownerId;
057            private final int _ownerType;
058            private final long _plid;
059            private final String _portletId;
060    
061    }