001    /**
002     * Copyright (c) 2000-2011 Liferay, Inc. All rights reserved.
003     *
004     * The contents of this file are subject to the terms of the Liferay Enterprise
005     * Subscription License ("License"). You may not use this file except in
006     * compliance with the License. You can obtain a copy of the License by
007     * contacting Liferay, Inc. See the License for the specific language governing
008     * permissions and limitations under the License, including but not limited to
009     * distribution rights of the Software.
010     *
011     *
012     *
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     */
023    public class LayoutsRemotePublisherRequest
024            extends LayoutsLocalPublisherRequest {
025    
026            public LayoutsRemotePublisherRequest() {
027            }
028    
029            public LayoutsRemotePublisherRequest(
030                    long userId, long sourceGroupId, boolean privateLayout,
031                    Map<Long, Boolean> layoutIdMap, Map<String, String[]> parameterMap,
032                    String remoteAddress, int remotePort, boolean secureConnection,
033                    long remoteGroupId, boolean remotePrivateLayout, Date startDate,
034                    Date endDate) {
035    
036                    _userId = userId;
037                    _sourceGroupId = sourceGroupId;
038                    _privateLayout = privateLayout;
039                    _layoutIdMap = layoutIdMap;
040                    _parameterMap = parameterMap;
041                    _remoteAddress = remoteAddress;
042                    _remotePort = remotePort;
043                    _secureConnection = secureConnection;
044                    _remoteGroupId = remoteGroupId;
045                    _remotePrivateLayout = remotePrivateLayout;
046                    _startDate = startDate;
047                    _endDate = endDate;
048            }
049    
050            @Override
051            public String getCronText() {
052                    return _cronText;
053            }
054    
055            @Override
056            public void setCronText(String cronText) {
057                    _cronText = cronText;
058            }
059    
060            @Override
061            public long getUserId() {
062                    return _userId;
063            }
064    
065            @Override
066            public void setUserId(long userId) {
067                    _userId = userId;
068            }
069    
070            @Override
071            public long getSourceGroupId() {
072                    return _sourceGroupId;
073            }
074    
075            @Override
076            public void setSourceGroupId(long sourceGroupId) {
077                    _sourceGroupId = sourceGroupId;
078            }
079    
080            @Override
081            public boolean isPrivateLayout() {
082                    return _privateLayout;
083            }
084    
085            @Override
086            public void setPrivateLayout(boolean privateLayout) {
087                    _privateLayout = privateLayout;
088            }
089    
090            @Override
091            public Map<Long, Boolean> getLayoutIdMap() {
092                    return _layoutIdMap;
093            }
094    
095            @Override
096            public void setLayoutIdMap(Map<Long, Boolean> layoutIdMap) {
097                    _layoutIdMap = layoutIdMap;
098            }
099    
100            @Override
101            public Map<String, String[]> getParameterMap() {
102                    return _parameterMap;
103            }
104    
105            @Override
106            public void setParameterMap(Map<String, String[]> parameterMap) {
107                    _parameterMap = parameterMap;
108            }
109    
110            public String getRemoteAddress() {
111                    return _remoteAddress;
112            }
113    
114            public void setRemoteAddress(String remoteAddress) {
115                    _remoteAddress = remoteAddress;
116            }
117    
118            public int getRemotePort() {
119                    return _remotePort;
120            }
121    
122            public void setRemotePort(int remotePort) {
123                    _remotePort = remotePort;
124            }
125    
126            public boolean isSecureConnection() {
127                    return _secureConnection;
128            }
129    
130            public void setSecureConnection(boolean secureConnection) {
131                    _secureConnection = secureConnection;
132            }
133    
134            public long getRemoteGroupId() {
135                    return _remoteGroupId;
136            }
137    
138            public void setRemoteGroupId(long remoteGroupId) {
139                    _remoteGroupId = remoteGroupId;
140            }
141    
142            public boolean isRemotePrivateLayout() {
143                    return _remotePrivateLayout;
144            }
145    
146            public void setRemotePrivateLayout(boolean remotePrivateLayout) {
147                    _remotePrivateLayout = remotePrivateLayout;
148            }
149    
150            @Override
151            public Date getStartDate() {
152                    return _startDate;
153            }
154    
155            @Override
156            public void setStartDate(Date startDate) {
157                    _startDate = startDate;
158            }
159    
160            @Override
161            public Date getEndDate() {
162                    return _endDate;
163            }
164    
165            @Override
166            public void setEndDate(Date endDate) {
167                    _endDate = endDate;
168            }
169    
170            @Override
171            public Date getScheduledFireTime() {
172                    return _scheduledFireTime;
173            }
174    
175            @Override
176            public void setScheduledFireTime(Date scheduledFireTime) {
177                    _scheduledFireTime = scheduledFireTime;
178            }
179    
180            private static final long serialVersionUID = -8270092763766057207L;
181    
182            private String _cronText;
183            private long _userId;
184            private long _sourceGroupId;
185            private boolean _privateLayout;
186            private Map<Long, Boolean> _layoutIdMap;
187            private Map<String, String[]> _parameterMap;
188            private String _remoteAddress;
189            private int _remotePort;
190            private boolean _secureConnection;
191            private long _remoteGroupId;
192            private boolean _remotePrivateLayout;
193            private Date _startDate;
194            private Date _endDate;
195            private Date _scheduledFireTime;
196    
197    }