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