1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * This library is free software; you can redistribute it and/or modify it under
5    * the terms of the GNU Lesser General Public License as published by the Free
6    * Software Foundation; either version 2.1 of the License, or (at your option)
7    * any later version.
8    *
9    * This library is distributed in the hope that it will be useful, but WITHOUT
10   * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11   * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
12   * details.
13   */
14  
15  package com.liferay.portlet.communities.messaging;
16  
17  import java.io.Serializable;
18  
19  import java.util.Date;
20  import java.util.Map;
21  
22  /**
23   * <a href="LayoutsLocalPublisherRequest.java.html"><b><i>View Source</i></b>
24   * </a>
25   *
26   * @author Bruno Farache
27   */
28  public class LayoutsLocalPublisherRequest implements Serializable {
29  
30      public static final String COMMAND_ALL_PAGES = "ALL_PAGES";
31  
32      public static final String COMMAND_SELECTED_PAGES = "SELECTED_PAGES";
33  
34      public LayoutsLocalPublisherRequest() {
35      }
36  
37      public LayoutsLocalPublisherRequest(
38          String command, long userId, long sourceGroupId, long targetGroupId,
39          boolean privateLayout, Map<Long, Boolean> layoutIdMap,
40          Map<String, String[]> parameterMap, Date startDate, Date endDate) {
41  
42          _command = command;
43          _userId = userId;
44          _sourceGroupId = sourceGroupId;
45          _targetGroupId = targetGroupId;
46          _privateLayout = privateLayout;
47          _layoutIdMap = layoutIdMap;
48          _parameterMap = parameterMap;
49          _startDate = startDate;
50          _endDate = endDate;
51      }
52  
53      public String getCommand() {
54          return _command;
55      }
56  
57      public void setCommand(String command) {
58          _command = command;
59      }
60  
61      public String getCronText() {
62          return _cronText;
63      }
64  
65      public void setCronText(String cronText) {
66          _cronText = cronText;
67      }
68  
69      public long getUserId() {
70          return _userId;
71      }
72  
73      public void setUserId(long userId) {
74          _userId = userId;
75      }
76  
77      public long getSourceGroupId() {
78          return _sourceGroupId;
79      }
80  
81      public void setSourceGroupId(long sourceGroupId) {
82          _sourceGroupId = sourceGroupId;
83      }
84  
85      public long getTargetGroupId() {
86          return _targetGroupId;
87      }
88  
89      public void setTargetGroupId(long targetGroupId) {
90          _targetGroupId = targetGroupId;
91      }
92  
93      public boolean isPrivateLayout() {
94          return _privateLayout;
95      }
96  
97      public void setPrivateLayout(boolean privateLayout) {
98          _privateLayout = privateLayout;
99      }
100 
101     public Map<Long, Boolean> getLayoutIdMap() {
102         return _layoutIdMap;
103     }
104 
105     public void setLayoutIdMap(Map<Long, Boolean> layoutIdMap) {
106         _layoutIdMap = layoutIdMap;
107     }
108 
109     public Map<String, String[]> getParameterMap() {
110         return _parameterMap;
111     }
112 
113     public void setParameterMap(Map<String, String[]> parameterMap) {
114         _parameterMap = parameterMap;
115     }
116 
117     public Date getStartDate() {
118         return _startDate;
119     }
120 
121     public void setStartDate(Date startDate) {
122         _startDate = startDate;
123     }
124 
125     public Date getEndDate() {
126         return _endDate;
127     }
128 
129     public void setEndDate(Date endDate) {
130         _endDate = endDate;
131     }
132 
133     public Date getScheduledFireTime() {
134         return _scheduledFireTime;
135     }
136 
137     public void setScheduledFireTime(Date scheduledFireTime) {
138         _scheduledFireTime = scheduledFireTime;
139     }
140 
141     private String _command;
142     private String _cronText;
143     private long _userId;
144     private long _sourceGroupId;
145     private long _targetGroupId;
146     private boolean _privateLayout;
147     private Map<Long, Boolean> _layoutIdMap;
148     private Map<String, String[]> _parameterMap;
149     private Date _startDate;
150     private Date _endDate;
151     private Date _scheduledFireTime;
152 
153 }