1   /**
2    * Copyright (c) 2000-2009 Liferay, Inc. All rights reserved.
3    *
4    * Permission is hereby granted, free of charge, to any person obtaining a copy
5    * of this software and associated documentation files (the "Software"), to deal
6    * in the Software without restriction, including without limitation the rights
7    * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8    * copies of the Software, and to permit persons to whom the Software is
9    * furnished to do so, subject to the following conditions:
10   *
11   * The above copyright notice and this permission notice shall be included in
12   * all copies or substantial portions of the Software.
13   *
14   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15   * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16   * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17   * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18   * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19   * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20   * SOFTWARE.
21   */
22  
23  package com.liferay.portlet.communities.messaging;
24  
25  import java.util.Date;
26  import java.util.Map;
27  
28  /**
29   * <a href="LayoutsLocalPublisherRequest.java.html"><b><i>View Source</i></b>
30   * </a>
31   *
32   * @author Bruno Farache
33   *
34   */
35  public class LayoutsLocalPublisherRequest {
36  
37      public static final String COMMAND_ALL_PAGES = "ALL_PAGES";
38  
39      public static final String COMMAND_SELECTED_PAGES = "SELECTED_PAGES";
40  
41      public LayoutsLocalPublisherRequest() {
42      }
43  
44      public LayoutsLocalPublisherRequest(
45          String command, long userId, long sourceGroupId, long targetGroupId,
46          boolean privateLayout, Map<Long, Boolean> layoutIdMap,
47          Map<String, String[]> parameterMap, Date startDate, Date endDate) {
48  
49          _command = command;
50          _userId = userId;
51          _sourceGroupId = sourceGroupId;
52          _targetGroupId = targetGroupId;
53          _privateLayout = privateLayout;
54          _layoutIdMap = layoutIdMap;
55          _parameterMap = parameterMap;
56          _startDate = startDate;
57          _endDate = endDate;
58      }
59  
60      public String getCommand() {
61          return _command;
62      }
63  
64      public void setCommand(String command) {
65          _command = command;
66      }
67  
68      public String getCronText() {
69          return _cronText;
70      }
71  
72      public void setCronText(String cronText) {
73          _cronText = cronText;
74      }
75  
76      public long getUserId() {
77          return _userId;
78      }
79  
80      public void setUserId(long userId) {
81          _userId = userId;
82      }
83  
84      public long getSourceGroupId() {
85          return _sourceGroupId;
86      }
87  
88      public void setSourceGroupId(long sourceGroupId) {
89          _sourceGroupId = sourceGroupId;
90      }
91  
92      public long getTargetGroupId() {
93          return _targetGroupId;
94      }
95  
96      public void setTargetGroupId(long targetGroupId) {
97          _targetGroupId = targetGroupId;
98      }
99  
100     public boolean isPrivateLayout() {
101         return _privateLayout;
102     }
103 
104     public void setPrivateLayout(boolean privateLayout) {
105         _privateLayout = privateLayout;
106     }
107 
108     public Map<Long, Boolean> getLayoutIdMap() {
109         return _layoutIdMap;
110     }
111 
112     public void setLayoutIdMap(Map<Long, Boolean> layoutIdMap) {
113         _layoutIdMap = layoutIdMap;
114     }
115 
116     public Map<String, String[]> getParameterMap() {
117         return _parameterMap;
118     }
119 
120     public void setParameterMap(Map<String, String[]> parameterMap) {
121         _parameterMap = parameterMap;
122     }
123 
124     public Date getStartDate() {
125         return _startDate;
126     }
127 
128     public void setStartDate(Date startDate) {
129         _startDate = startDate;
130     }
131 
132     public Date getEndDate() {
133         return _endDate;
134     }
135 
136     public void setEndDate(Date endDate) {
137         _endDate = endDate;
138     }
139 
140     public Date getScheduledFireTime() {
141         return _scheduledFireTime;
142     }
143 
144     public void setScheduledFireTime(Date scheduledFireTime) {
145         _scheduledFireTime = scheduledFireTime;
146     }
147 
148     private String _command;
149     private String _cronText;
150     private long _userId;
151     private long _sourceGroupId;
152     private long _targetGroupId;
153     private boolean _privateLayout;
154     private Map<Long, Boolean> _layoutIdMap;
155     private Map<String, String[]> _parameterMap;
156     private Date _startDate;
157     private Date _endDate;
158     private Date _scheduledFireTime;
159 
160 }