View Javadoc
1   /*
2    * Copyright (c) 2002-2024, City of Paris
3    * All rights reserved.
4    *
5    * Redistribution and use in source and binary forms, with or without
6    * modification, are permitted provided that the following conditions
7    * are met:
8    *
9    *  1. Redistributions of source code must retain the above copyright notice
10   *     and the following disclaimer.
11   *
12   *  2. Redistributions in binary form must reproduce the above copyright notice
13   *     and the following disclaimer in the documentation and/or other materials
14   *     provided with the distribution.
15   *
16   *  3. Neither the name of 'Mairie de Paris' nor 'Lutece' nor the names of its
17   *     contributors may be used to endorse or promote products derived from
18   *     this software without specific prior written permission.
19   *
20   * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
21   * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
22   * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
23   * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE
24   * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
25   * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
26   * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
27   * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
28   * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
29   * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
30   * POSSIBILITY OF SUCH DAMAGE.
31   *
32   * License 1.0
33   */
34  package fr.paris.lutece.plugins.grubusiness.business.notification;
35  
36  import com.fasterxml.jackson.annotation.JsonProperty;
37  import com.fasterxml.jackson.annotation.JsonPropertyOrder;
38  import com.fasterxml.jackson.annotation.JsonRootName;
39  
40  /**
41   * The Class MyDashboardNotification for 'Guichet' notification.<br/>
42   * Fields description :<br/>
43   * - status_text, status label which will be displayed<br/>
44   * - message, content for the new notif to add<br/>
45   * - subject, subject for the new notif to add<br/>
46   * - data, ...<br/>
47   * - sender_name, Sender name for the new notif to add<br/>
48   */
49  @JsonRootName( value = "mydashboard" )
50  @JsonPropertyOrder( {
51          "status_id", "status_text", "message", "subject", "data", "sender_name"
52  } )
53  public class MyDashboardNotification
54  {
55      // Variables declarations
56      private int _nStatusId;
57      private String _strStatusText;
58      private String _strMessage;
59      private String _strSubject;
60      private String _strSenderName;
61      private String _strData;
62  
63      /**
64       * Instantiates a new notify gru guichet notification.
65       */
66      public MyDashboardNotification( )
67      {
68          _nStatusId = NotificationConstants.DEFAULT_INT;
69          _strStatusText = NotificationConstants.DEFAULT_STRING;
70          _strMessage = NotificationConstants.DEFAULT_STRING;
71          _strSubject = NotificationConstants.DEFAULT_STRING;
72          _strSenderName = NotificationConstants.DEFAULT_STRING;
73          _strData = NotificationConstants.DEFAULT_STRING;
74      }
75  
76      /**
77       * @return the StatusId
78       */
79      @JsonProperty( "status_id" )
80      public int getStatusId( )
81      {
82          return _nStatusId;
83      }
84  
85      /**
86       * @param nStatusId
87       *            the StatusId to set
88       */
89      @JsonProperty( "status_id" )
90      public void setStatusId( int nStatusId )
91      {
92          _nStatusId = nStatusId;
93      }
94  
95      /**
96       * Gets the status text.
97       *
98       * @return the status text
99       */
100     @JsonProperty( "status_text" )
101     public String getStatusText( )
102     {
103         return _strStatusText;
104     }
105 
106     /**
107      * Sets the status text.
108      *
109      * @param strStatusText
110      *            the new status text
111      */
112     @JsonProperty( "status_text" )
113     public void setStatusText( String strStatusText )
114     {
115         _strStatusText = strStatusText;
116     }
117 
118     /**
119      * Gets the message.
120      *
121      * @return the message
122      */
123     @JsonProperty( "message" )
124     public String getMessage( )
125     {
126         return _strMessage;
127     }
128 
129     /**
130      * Sets the Message.
131      *
132      * @param strMessage
133      *            The Message
134      */
135     @JsonProperty( "message" )
136     public void setMessage( String strMessage )
137     {
138         _strMessage = strMessage;
139     }
140 
141     /**
142      * Gets the subject.
143      *
144      * @return the subject
145      */
146     @JsonProperty( "subject" )
147     public String getSubject( )
148     {
149         return _strSubject;
150     }
151 
152     /**
153      * Sets the Subject.
154      *
155      * @param strSubject
156      *            The Subject
157      */
158     @JsonProperty( "subject" )
159     public void setSubject( String strSubject )
160     {
161         _strSubject = strSubject;
162     }
163 
164     /**
165      * Returns the SenderName.
166      *
167      * @return The SenderName
168      */
169     @JsonProperty( "sender_name" )
170     public String getSenderName( )
171     {
172         return _strSenderName;
173     }
174 
175     /**
176      * Sets the SenderName.
177      *
178      * @param strSenderName
179      *            The SenderName
180      */
181     @JsonProperty( "sender_name" )
182     public void setSenderName( String strSenderName )
183     {
184         _strSenderName = strSenderName;
185     }
186 
187     /**
188      * Returns the Data.
189      *
190      * @return The Data
191      */
192     @JsonProperty( "data" )
193     public String getData( )
194     {
195         return _strData;
196     }
197 
198     /**
199      * Sets the Data.
200      *
201      * @param strData
202      *            The Data
203      */
204     @JsonProperty( "data" )
205     public void setData( String strData )
206     {
207         _strData = strData;
208     }
209 }