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.impl;
016    
017    import com.liferay.portal.model.Resource;
018    
019    /**
020     * @author Brian Wing Shun Chan
021     */
022    public class ResourceImpl implements Resource {
023    
024            public ResourceImpl() {
025            }
026    
027            @Override
028            public long getCodeId() {
029                    return _codeId;
030            }
031    
032            @Override
033            public long getCompanyId() {
034                    return _companyId;
035            }
036    
037            @Override
038            public String getName() {
039                    return _name;
040            }
041    
042            @Override
043            public String getPrimKey() {
044                    return _primKey;
045            }
046    
047            @Override
048            public long getResourceId() {
049                    return _resourceId;
050            }
051    
052            @Override
053            public int getScope() {
054                    return _scope;
055            }
056    
057            @Override
058            public void setCodeId(long codeId) {
059                    _codeId = codeId;
060            }
061    
062            @Override
063            public void setCompanyId(long companyId) {
064                    _companyId = companyId;
065            }
066    
067            @Override
068            public void setName(String name) {
069                    _name = name;
070            }
071    
072            @Override
073            public void setPrimKey(String primKey) {
074                    _primKey = primKey;
075            }
076    
077            @Override
078            public void setResourceId(long resourceId) {
079                    _resourceId = resourceId;
080            }
081    
082            @Override
083            public void setScope(int scope) {
084                    _scope = scope;
085            }
086    
087            private long _codeId;
088            private long _companyId;
089            private String _name;
090            private String _primKey;
091            private long _resourceId;
092            private int _scope;
093    
094    }