View Javadoc
1   /*
2    * Copyright (c) 2002-2022, 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.genericattributes.business;
35  
36  import java.io.Serializable;
37  
38  /**
39   *
40   * class entryType
41   *
42   */
43  public class EntryType implements Serializable
44  {
45      private static final long serialVersionUID = 2528514010464635136L;
46      private int _nIdType;
47      private String _strTitle;
48      private String _strBeanName;
49      private String _strIconName;
50      private Boolean _bGroup;
51      private Boolean _bComment;
52      private Boolean _bMyLuteceUser;
53      private String _strPlugin;
54  
55      private int _nOrder;
56      private boolean _bInactive;
57  
58      /**
59       *
60       * @return the id of the entry type
61       */
62      public int getIdType( )
63      {
64          return _nIdType;
65      }
66  
67      /**
68       * set the id of the entry type
69       * 
70       * @param idType
71       *            the id of the entry type
72       */
73      public void setIdType( int idType )
74      {
75          _nIdType = idType;
76      }
77  
78      /***
79       *
80       * @return true if the type is a group
81       */
82      public Boolean getGroup( )
83      {
84          return _bGroup;
85      }
86  
87      /**
88       * set true if the type is a group
89       * 
90       * @param isGroup
91       *            if the type is a group
92       */
93      public void setGroup( Boolean isGroup )
94      {
95          _bGroup = isGroup;
96      }
97  
98      /**
99       *
100      * @return the title of the entry type
101      */
102     public String getTitle( )
103     {
104         return _strTitle;
105     }
106 
107     /**
108      * set the title of the entry type
109      * 
110      * @param title
111      *            the title of the entry type
112      */
113     public void setTitle( String title )
114     {
115         _strTitle = title;
116     }
117 
118     /**
119      * Get the name of the bean of the entry type service
120      * 
121      * @return The name of the bean of the entry type service
122      */
123     public String getBeanName( )
124     {
125         return _strBeanName;
126     }
127 
128     /**
129      * set the path for access to the Class Entry
130      * 
131      * @param strBeanName
132      *            The name of the bean of the entry type service of this entry type
133      */
134     public void setBeanName( String strBeanName )
135     {
136         _strBeanName = strBeanName;
137     }
138 
139     /**
140      * Get the icon name
141      * 
142      * @return the strIconName
143      */
144     public String getIconName( )
145     {
146         return _strIconName;
147     }
148 
149     /**
150      * Set the icon name
151      * 
152      * @param strIconName
153      *            the strIconName to set
154      */
155     public void setIconName( String strIconName )
156     {
157         _strIconName = strIconName;
158     }
159 
160     /**
161      *
162      * @return true if the type is a comment
163      */
164     public Boolean getComment( )
165     {
166         return _bComment;
167     }
168 
169     /**
170      *
171      * @param isComment
172      *            set true if the type is a comment
173      */
174     public void setComment( Boolean isComment )
175     {
176         _bComment = isComment;
177     }
178 
179     /**
180      *
181      * @return true if the type is MyLutece user
182      */
183     public Boolean getMyLuteceUser( )
184     {
185         return _bMyLuteceUser;
186     }
187 
188     /**
189      *
190      * @param isMyLuteceUser
191      *            set true if the type is MyLutece user
192      */
193     public void setMyLuteceUser( Boolean isMyLuteceUser )
194     {
195         _bMyLuteceUser = isMyLuteceUser;
196     }
197 
198     /**
199      * Get the name of the plugin associated with this entry type
200      * 
201      * @return The name of the plugin associated with this entry type
202      */
203     public String getPlugin( )
204     {
205         return _strPlugin;
206     }
207 
208     /**
209      * Set the name of the plugin associated with this entry type
210      * 
211      * @param strPlugin
212      *            The name of the plugin associated with this entry type
213      */
214     public void setPlugin( String strPlugin )
215     {
216         this._strPlugin = strPlugin;
217     }
218 
219     /**
220      * @return the nOrder
221      */
222     public int getOrder( )
223     {
224         return _nOrder;
225     }
226 
227     /**
228      * @param nOrder
229      *            the nOrder to set
230      */
231     public void setOrder( int nOrder )
232     {
233         _nOrder = nOrder;
234     }
235 
236     /**
237      * @return the bInactive
238      */
239     public boolean isInactive( )
240     {
241         return _bInactive;
242     }
243 
244     /**
245      * @param bInactive
246      *            the bInactive to set
247      */
248     public void setInactive( boolean bInactive )
249     {
250         _bInactive = bInactive;
251     }
252 }