001    /**
002     * Copyright (c) 2000-2013 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.io.Serializable;
018    
019    import java.util.Date;
020    import java.util.Map;
021    
022    /**
023     * @author Bruno Farache
024     */
025    public class LayoutsLocalPublisherRequest implements Serializable {
026    
027            public static final String COMMAND_ALL_PAGES = "ALL_PAGES";
028    
029            public static final String COMMAND_SELECTED_PAGES = "SELECTED_PAGES";
030    
031            public LayoutsLocalPublisherRequest() {
032            }
033    
034            public LayoutsLocalPublisherRequest(
035                    String command, long userId, long sourceGroupId, long targetGroupId,
036                    boolean privateLayout, Map<Long, Boolean> layoutIdMap,
037                    Map<String, String[]> parameterMap, Date startDate, Date endDate) {
038    
039                    _command = command;
040                    _userId = userId;
041                    _sourceGroupId = sourceGroupId;
042                    _targetGroupId = targetGroupId;
043                    _privateLayout = privateLayout;
044                    _layoutIdMap = layoutIdMap;
045                    _parameterMap = parameterMap;
046                    _startDate = startDate;
047                    _endDate = endDate;
048            }
049    
050            public String getCommand() {
051                    return _command;
052            }
053    
054            public String getCronText() {
055                    return _cronText;
056            }
057    
058            public Date getEndDate() {
059                    return _endDate;
060            }
061    
062            public Map<Long, Boolean> getLayoutIdMap() {
063                    return _layoutIdMap;
064            }
065    
066            public Map<String, String[]> getParameterMap() {
067                    return _parameterMap;
068            }
069    
070            public Date getScheduledFireTime() {
071                    return _scheduledFireTime;
072            }
073    
074            public long getSourceGroupId() {
075                    return _sourceGroupId;
076            }
077    
078            public Date getStartDate() {
079                    return _startDate;
080            }
081    
082            public long getTargetGroupId() {
083                    return _targetGroupId;
084            }
085    
086            public long getUserId() {
087                    return _userId;
088            }
089    
090            public boolean isPrivateLayout() {
091                    return _privateLayout;
092            }
093    
094            public void setCommand(String command) {
095                    _command = command;
096            }
097    
098            public void setCronText(String cronText) {
099                    _cronText = cronText;
100            }
101    
102            public void setEndDate(Date endDate) {
103                    _endDate = endDate;
104            }
105    
106            public void setLayoutIdMap(Map<Long, Boolean> layoutIdMap) {
107                    _layoutIdMap = layoutIdMap;
108            }
109    
110            public void setParameterMap(Map<String, String[]> parameterMap) {
111                    _parameterMap = parameterMap;
112            }
113    
114            public void setPrivateLayout(boolean privateLayout) {
115                    _privateLayout = privateLayout;
116            }
117    
118            public void setScheduledFireTime(Date scheduledFireTime) {
119                    _scheduledFireTime = scheduledFireTime;
120            }
121    
122            public void setSourceGroupId(long sourceGroupId) {
123                    _sourceGroupId = sourceGroupId;
124            }
125    
126            public void setStartDate(Date startDate) {
127                    _startDate = startDate;
128            }
129    
130            public void setTargetGroupId(long targetGroupId) {
131                    _targetGroupId = targetGroupId;
132            }
133    
134            public void setUserId(long userId) {
135                    _userId = userId;
136            }
137    
138            private static final long serialVersionUID = 5924338343434811142L;
139    
140            private String _command;
141            private String _cronText;
142            private Date _endDate;
143            private Map<Long, Boolean> _layoutIdMap;
144            private Map<String, String[]> _parameterMap;
145            private boolean _privateLayout;
146            private Date _scheduledFireTime;
147            private long _sourceGroupId;
148            private Date _startDate;
149            private long _targetGroupId;
150            private long _userId;
151    
152    }