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.messaging;
016    
017    import java.util.Date;
018    import java.util.Map;
019    
020    /**
021     * @author Bruno Farache
022     * @deprecated As of 7.0.0, with no direct replacement
023     */
024    @Deprecated
025    public class LayoutsRemotePublisherRequest
026            extends LayoutsLocalPublisherRequest {
027    
028            public LayoutsRemotePublisherRequest() {
029            }
030    
031            public LayoutsRemotePublisherRequest(
032                    long userId, long sourceGroupId, boolean privateLayout,
033                    Map<Long, Boolean> layoutIdMap, Map<String, String[]> parameterMap,
034                    String remoteAddress, int remotePort, String remotePathContext,
035                    boolean secureConnection, long remoteGroupId,
036                    boolean remotePrivateLayout, Date startDate, Date endDate) {
037    
038                    _userId = userId;
039                    _sourceGroupId = sourceGroupId;
040                    _privateLayout = privateLayout;
041                    _layoutIdMap = layoutIdMap;
042                    _parameterMap = parameterMap;
043                    _remoteAddress = remoteAddress;
044                    _remotePort = remotePort;
045                    _remotePathContext = remotePathContext;
046                    _secureConnection = secureConnection;
047                    _remoteGroupId = remoteGroupId;
048                    _remotePrivateLayout = remotePrivateLayout;
049                    _startDate = startDate;
050                    _endDate = endDate;
051            }
052    
053            @Override
054            public String getCronText() {
055                    return _cronText;
056            }
057    
058            @Override
059            public Date getEndDate() {
060                    return _endDate;
061            }
062    
063            @Override
064            public Map<Long, Boolean> getLayoutIdMap() {
065                    return _layoutIdMap;
066            }
067    
068            @Override
069            public Map<String, String[]> getParameterMap() {
070                    return _parameterMap;
071            }
072    
073            public String getRemoteAddress() {
074                    return _remoteAddress;
075            }
076    
077            public long getRemoteGroupId() {
078                    return _remoteGroupId;
079            }
080    
081            public String getRemotePathContext() {
082                    return _remotePathContext;
083            }
084    
085            public int getRemotePort() {
086                    return _remotePort;
087            }
088    
089            @Override
090            public Date getScheduledFireTime() {
091                    return _scheduledFireTime;
092            }
093    
094            @Override
095            public long getSourceGroupId() {
096                    return _sourceGroupId;
097            }
098    
099            @Override
100            public Date getStartDate() {
101                    return _startDate;
102            }
103    
104            @Override
105            public long getUserId() {
106                    return _userId;
107            }
108    
109            @Override
110            public boolean isPrivateLayout() {
111                    return _privateLayout;
112            }
113    
114            public boolean isRemotePrivateLayout() {
115                    return _remotePrivateLayout;
116            }
117    
118            public boolean isSecureConnection() {
119                    return _secureConnection;
120            }
121    
122            @Override
123            public void setCronText(String cronText) {
124                    _cronText = cronText;
125            }
126    
127            @Override
128            public void setEndDate(Date endDate) {
129                    _endDate = endDate;
130            }
131    
132            @Override
133            public void setLayoutIdMap(Map<Long, Boolean> layoutIdMap) {
134                    _layoutIdMap = layoutIdMap;
135            }
136    
137            @Override
138            public void setParameterMap(Map<String, String[]> parameterMap) {
139                    _parameterMap = parameterMap;
140            }
141    
142            @Override
143            public void setPrivateLayout(boolean privateLayout) {
144                    _privateLayout = privateLayout;
145            }
146    
147            public void setRemoteAddress(String remoteAddress) {
148                    _remoteAddress = remoteAddress;
149            }
150    
151            public void setRemoteGroupId(long remoteGroupId) {
152                    _remoteGroupId = remoteGroupId;
153            }
154    
155            public void setRemotePathContext(String remotePathContext) {
156                    _remotePathContext = remotePathContext;
157            }
158    
159            public void setRemotePort(int remotePort) {
160                    _remotePort = remotePort;
161            }
162    
163            public void setRemotePrivateLayout(boolean remotePrivateLayout) {
164                    _remotePrivateLayout = remotePrivateLayout;
165            }
166    
167            @Override
168            public void setScheduledFireTime(Date scheduledFireTime) {
169                    _scheduledFireTime = scheduledFireTime;
170            }
171    
172            public void setSecureConnection(boolean secureConnection) {
173                    _secureConnection = secureConnection;
174            }
175    
176            @Override
177            public void setSourceGroupId(long sourceGroupId) {
178                    _sourceGroupId = sourceGroupId;
179            }
180    
181            @Override
182            public void setStartDate(Date startDate) {
183                    _startDate = startDate;
184            }
185    
186            @Override
187            public void setUserId(long userId) {
188                    _userId = userId;
189            }
190    
191            private static final long serialVersionUID = -8270092763766057207L;
192    
193            private String _cronText;
194            private Date _endDate;
195            private Map<Long, Boolean> _layoutIdMap;
196            private Map<String, String[]> _parameterMap;
197            private boolean _privateLayout;
198            private String _remoteAddress;
199            private long _remoteGroupId;
200            private String _remotePathContext;
201            private int _remotePort;
202            private boolean _remotePrivateLayout;
203            private Date _scheduledFireTime;
204            private boolean _secureConnection;
205            private long _sourceGroupId;
206            private Date _startDate;
207            private long _userId;
208    
209    }