1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * The contents of this file are subject to the terms of the Liferay Enterprise
5    * Subscription License ("License"). You may not use this file except in
6    * compliance with the License. You can obtain a copy of the License by
7    * contacting Liferay, Inc. See the License for the specific language governing
8    * permissions and limitations under the License, including but not limited to
9    * distribution rights of the Software.
10   *
11   *
12   *
13   */
14  
15  package com.liferay.portlet.communities.messaging;
16  
17  import java.util.Date;
18  import java.util.Map;
19  
20  /**
21   * <a href="LayoutsRemotePublisherRequest.java.html"><b><i>View Source</i></b>
22   * </a>
23   *
24   * @author Bruno Farache
25   */
26  public class LayoutsRemotePublisherRequest
27      extends LayoutsLocalPublisherRequest {
28  
29      public LayoutsRemotePublisherRequest() {
30      }
31  
32      public LayoutsRemotePublisherRequest(
33          long userId, long sourceGroupId, boolean privateLayout,
34          Map<Long, Boolean> layoutIdMap, Map<String, String[]> parameterMap,
35          String remoteAddress, int remotePort, boolean secureConnection,
36          long remoteGroupId, boolean remotePrivateLayout, Date startDate,
37          Date endDate) {
38  
39          _userId = userId;
40          _sourceGroupId = sourceGroupId;
41          _privateLayout = privateLayout;
42          _layoutIdMap = layoutIdMap;
43          _parameterMap = parameterMap;
44          _remoteAddress = remoteAddress;
45          _remotePort = remotePort;
46          _secureConnection = secureConnection;
47          _remoteGroupId = remoteGroupId;
48          _remotePrivateLayout = remotePrivateLayout;
49          _startDate = startDate;
50          _endDate = endDate;
51      }
52  
53      public String getCronText() {
54          return _cronText;
55      }
56  
57      public void setCronText(String cronText) {
58          _cronText = cronText;
59      }
60  
61      public long getUserId() {
62          return _userId;
63      }
64  
65      public void setUserId(long userId) {
66          _userId = userId;
67      }
68  
69      public long getSourceGroupId() {
70          return _sourceGroupId;
71      }
72  
73      public void setSourceGroupId(long sourceGroupId) {
74          _sourceGroupId = sourceGroupId;
75      }
76  
77      public boolean isPrivateLayout() {
78          return _privateLayout;
79      }
80  
81      public void setPrivateLayout(boolean privateLayout) {
82          _privateLayout = privateLayout;
83      }
84  
85      public Map<Long, Boolean> getLayoutIdMap() {
86          return _layoutIdMap;
87      }
88  
89      public void setLayoutIdMap(Map<Long, Boolean> layoutIdMap) {
90          _layoutIdMap = layoutIdMap;
91      }
92  
93      public Map<String, String[]> getParameterMap() {
94          return _parameterMap;
95      }
96  
97      public void setParameterMap(Map<String, String[]> parameterMap) {
98          _parameterMap = parameterMap;
99      }
100 
101     public String getRemoteAddress() {
102         return _remoteAddress;
103     }
104 
105     public void setRemoteAddress(String remoteAddress) {
106         _remoteAddress = remoteAddress;
107     }
108 
109     public int getRemotePort() {
110         return _remotePort;
111     }
112 
113     public void setRemotePort(int remotePort) {
114         _remotePort = remotePort;
115     }
116 
117     public boolean isSecureConnection() {
118         return _secureConnection;
119     }
120 
121     public void setSecureConnection(boolean secureConnection) {
122         _secureConnection = secureConnection;
123     }
124 
125     public long getRemoteGroupId() {
126         return _remoteGroupId;
127     }
128 
129     public void setRemoteGroupId(long remoteGroupId) {
130         _remoteGroupId = remoteGroupId;
131     }
132 
133     public boolean isRemotePrivateLayout() {
134         return _remotePrivateLayout;
135     }
136 
137     public void setRemotePrivateLayout(boolean remotePrivateLayout) {
138         _remotePrivateLayout = remotePrivateLayout;
139     }
140 
141     public Date getStartDate() {
142         return _startDate;
143     }
144 
145     public void setStartDate(Date startDate) {
146         _startDate = startDate;
147     }
148 
149     public Date getEndDate() {
150         return _endDate;
151     }
152 
153     public void setEndDate(Date endDate) {
154         _endDate = endDate;
155     }
156 
157     public Date getScheduledFireTime() {
158         return _scheduledFireTime;
159     }
160 
161     public void setScheduledFireTime(Date scheduledFireTime) {
162         _scheduledFireTime = scheduledFireTime;
163     }
164 
165     private String _cronText;
166     private long _userId;
167     private long _sourceGroupId;
168     private boolean _privateLayout;
169     private Map<Long, Boolean> _layoutIdMap;
170     private Map<String, String[]> _parameterMap;
171     private String _remoteAddress;
172     private int _remotePort;
173     private boolean _secureConnection;
174     private long _remoteGroupId;
175     private boolean _remotePrivateLayout;
176     private Date _startDate;
177     private Date _endDate;
178     private Date _scheduledFireTime;
179 
180 }