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.adapter.impl;
016    
017    import com.liferay.portal.model.Group;
018    import com.liferay.portal.model.adapter.StagedGroup;
019    import com.liferay.portal.model.impl.GroupImpl;
020    import com.liferay.portlet.exportimport.lar.StagedModelType;
021    
022    import java.io.Serializable;
023    
024    import java.util.Date;
025    
026    /**
027     * @author Daniel Kocsis
028     */
029    public class StagedGroupImpl extends GroupImpl implements StagedGroup {
030    
031            public StagedGroupImpl(Group group) {
032                    _group = group;
033            }
034    
035            @Override
036            public Object clone() {
037                    return new StagedGroupImpl(_group);
038            }
039    
040            @Override
041            public Date getCreateDate() {
042                    return new Date();
043            }
044    
045            @Override
046            public Class<?> getModelClass() {
047                    return StagedGroup.class;
048            }
049    
050            @Override
051            public String getModelClassName() {
052                    return StagedGroup.class.getName();
053            }
054    
055            @Override
056            public Date getModifiedDate() {
057                    return new Date();
058            }
059    
060            @Override
061            public StagedModelType getStagedModelType() {
062                    return new StagedModelType(StagedGroup.class);
063            }
064    
065            @Override
066            public void setCompanyId(long companyId) {
067                    throw new UnsupportedOperationException();
068            }
069    
070            @Override
071            public void setCreateDate(Date createDate) {
072                    throw new UnsupportedOperationException();
073            }
074    
075            @Override
076            public void setModifiedDate(Date modifiedDate) {
077                    throw new UnsupportedOperationException();
078            }
079    
080            @Override
081            public void setPrimaryKeyObj(Serializable primaryKeyObj) {
082                    throw new UnsupportedOperationException();
083            }
084    
085            @Override
086            public void setUuid(String uuid) {
087                    throw new UnsupportedOperationException();
088            }
089    
090            private final Group _group;
091    
092    }