001: /* Copyright 2005 The JA-SIG Collaborative. All rights reserved.
002: * See license distributed with this file and
003: * available online at http://www.uportal.org/license.html
004: */
005:
006: package org.jasig.portal.services.stats;
007:
008: /**
009: * Mutable JavaBean implementation of IStatsRecorderFlags.
010: * Each IStatsRecorder method has an associated flag indicating whether we
011: * should attend to that method.
012: * @version $Revision: 35948 $ $Date: 2005-07-15 14:47:07 -0700 (Fri, 15 Jul 2005) $
013: * @since uPortal 2.5.1
014: * @see IStatsRecorder
015: * @see IStatsRecorderFlags
016: */
017: public class StatsRecorderFlagsImpl implements IStatsRecorderFlags {
018:
019: private boolean recordLogin = false;
020: private boolean recordLogout = false;
021: private boolean recordSessionCreated = false;
022: private boolean recordSessionDestroyed = false;
023: private boolean recordChannelDefinitionPublished = false;
024: private boolean recordChannelDefinitionModified = false;
025: private boolean recordChannelDefinitionRemoved = false;
026: private boolean recordChannelAddedToLayout = false;
027: private boolean recordChannelUpdatedInLayout = false;
028: private boolean recordChannelMovedInLayout = false;
029: private boolean recordChannelRemovedFromLayout = false;
030: private boolean recordFolderAddedToLayout = false;
031: private boolean recordFolderUpdatedInLayout = false;
032: private boolean recordFolderMovedInLayout = false;
033: private boolean recordFolderRemovedFromLayout = false;
034: private boolean recordChannelInstantiated = false;
035: private boolean recordChannelRendered = false;
036: private boolean recordChannelTargeted = false;
037:
038: /**
039: * Returns true if we should record when a channel is added to a layout;
040: * false otherwise.
041: * @return Returns the recordChannelAddedToLayout.
042: */
043: public boolean isRecordChannelAddedToLayout() {
044: return this .recordChannelAddedToLayout;
045: }
046:
047: /**
048: * Set whether we should record when a channel is added to a layout.
049: * @param recordChannelAddedToLayout true iff we should record when a channel is added to a layout
050: */
051: public void setRecordChannelAddedToLayout(
052: boolean recordChannelAddedToLayout) {
053: this .recordChannelAddedToLayout = recordChannelAddedToLayout;
054: }
055:
056: /**
057: * Returns true if we should record when a channel definition is modified.
058: * @return Returns whether we should record when a channel definition is modified.
059: */
060: public boolean isRecordChannelDefinitionModified() {
061: return this .recordChannelDefinitionModified;
062: }
063:
064: /**
065: * Set whether we should record when a channel definition is modified.
066: * @param recordChannelDefinitionModified true iff we should record when a channel definition is modified.
067: */
068: public void setRecordChannelDefinitionModified(
069: boolean recordChannelDefinitionModified) {
070: this .recordChannelDefinitionModified = recordChannelDefinitionModified;
071: }
072:
073: /**
074: * Returns true if we should record when a channel definition is published, false otherwise.
075: * @return Returns true iff we should record when a channel definition is published.
076: */
077: public boolean isRecordChannelDefinitionPublished() {
078: return this .recordChannelDefinitionPublished;
079: }
080:
081: /**
082: * Set whether we should record when a channel definition is published.
083: * @param recordChannelDefinitionPublished The recordChannelDefinitionPublished to set.
084: */
085: public void setRecordChannelDefinitionPublished(
086: boolean recordChannelDefinitionPublished) {
087: this .recordChannelDefinitionPublished = recordChannelDefinitionPublished;
088: }
089:
090: /**
091: * Returns true iff we should record when a channel definition is removed.
092: * @return Returns true iff we should record when a channel definition is removed.
093: */
094: public boolean isRecordChannelDefinitionRemoved() {
095: return this .recordChannelDefinitionRemoved;
096: }
097:
098: /**
099: * Set whether we should record when a channel definition is removed.
100: * @param recordChannelDefinitionRemoved true iff we should record when a channel definition is removed.
101: */
102: public void setRecordChannelDefinitionRemoved(
103: boolean recordChannelDefinitionRemoved) {
104: this .recordChannelDefinitionRemoved = recordChannelDefinitionRemoved;
105: }
106:
107: /**
108: * Returns whether we should record when a channel is instantiated.
109: * @return Returns whether we should record when a channel is instantiated.
110: */
111: public boolean isRecordChannelInstantiated() {
112: return this .recordChannelInstantiated;
113: }
114:
115: /**
116: * Set whether we should record channel instantiation.
117: * @param recordChannelInstantiated true iff we should record channel instantiation.
118: */
119: public void setRecordChannelInstantiated(
120: boolean recordChannelInstantiated) {
121: this .recordChannelInstantiated = recordChannelInstantiated;
122: }
123:
124: /**
125: * Returns whether we should record a channel being moved within a layout.
126: * @return Returns true iff we should record a channel being moved within a layout.
127: */
128: public boolean isRecordChannelMovedInLayout() {
129: return this .recordChannelMovedInLayout;
130: }
131:
132: /**
133: * Set whether we should record a channel being moved within a layout.
134: * @param recordChannelMovedInLayout true iff we should record a channel being moved within a layout.
135: */
136: public void setRecordChannelMovedInLayout(
137: boolean recordChannelMovedInLayout) {
138: this .recordChannelMovedInLayout = recordChannelMovedInLayout;
139: }
140:
141: /**
142: * Returns true if we should record a channel being removed from a layout, false otherwise.
143: * @return true if we should record a channel being removed from a layout, false otherwise.
144: */
145: public boolean isRecordChannelRemovedFromLayout() {
146: return this .recordChannelRemovedFromLayout;
147: }
148:
149: /**
150: * Set whether we should record a channel being removed from a layout.
151: * @param recordChannelRemovedFromLayout true iff we should record a channel being removed from a layout.
152: */
153: public void setRecordChannelRemovedFromLayout(
154: boolean recordChannelRemovedFromLayout) {
155: this .recordChannelRemovedFromLayout = recordChannelRemovedFromLayout;
156: }
157:
158: /**
159: * Returns true if we should record when a channel is rendered, false otherwise.
160: * @return Returns true iff we should record when a channel is rendered.
161: */
162: public boolean isRecordChannelRendered() {
163: return this .recordChannelRendered;
164: }
165:
166: /**
167: * Set whether we should record when a channel is rendered.
168: * @param recordChannelRendered The recordChannelRendered to set.
169: */
170: public void setRecordChannelRendered(boolean recordChannelRendered) {
171: this .recordChannelRendered = recordChannelRendered;
172: }
173:
174: /**
175: * Returns true if we should record when a channel is targetted, false otherwise.
176: * @return Returns true iff we should record when a channel is targetted.
177: */
178: public boolean isRecordChannelTargeted() {
179: return this .recordChannelTargeted;
180: }
181:
182: /**
183: * Set whether we should record when a channel is targetted.
184: * @param recordChannelTargeted true iff we should record when a channel is targetted
185: */
186: public void setRecordChannelTargeted(boolean recordChannelTargeted) {
187: this .recordChannelTargeted = recordChannelTargeted;
188: }
189:
190: /**
191: * Returns true if we should record when a channel is updated within a layout, false otherwise.
192: * @return Returns true iff we should record when a channel is updated in a layout.
193: */
194: public boolean isRecordChannelUpdatedInLayout() {
195: return this .recordChannelUpdatedInLayout;
196: }
197:
198: /**
199: * Set whether we should record a channel being updated within a layout.
200: * @param recordChannelUpdatedInLayout true iff we should record a channel being updated within a layout.
201: */
202: public void setRecordChannelUpdatedInLayout(
203: boolean recordChannelUpdatedInLayout) {
204: this .recordChannelUpdatedInLayout = recordChannelUpdatedInLayout;
205: }
206:
207: /**
208: * Returns true if we should record when a folder is added to a layout, false otherwise.
209: * @return Returns true iff we should record when a folder is added to a layout.
210: */
211: public boolean isRecordFolderAddedToLayout() {
212: return this .recordFolderAddedToLayout;
213: }
214:
215: /**
216: * Set whether we should record when a folder is added to a layout.
217: * @param recordFolderAddedToLayout true iff we should record when a folder is added to a layout.
218: */
219: public void setRecordFolderAddedToLayout(
220: boolean recordFolderAddedToLayout) {
221: this .recordFolderAddedToLayout = recordFolderAddedToLayout;
222: }
223:
224: /**
225: * Returns true if we should record that a folder is moved in a layout, false otherwise.
226: * @return Returns true iff we should record that a folder is moved in a layout.
227: */
228: public boolean isRecordFolderMovedInLayout() {
229: return this .recordFolderMovedInLayout;
230: }
231:
232: /**
233: * Set whether we should record that a folder is moved within a layout.
234: * @param recordFolderMovedInLayout true iff we should record a folder being moved in a layout.
235: */
236: public void setRecordFolderMovedInLayout(
237: boolean recordFolderMovedInLayout) {
238: this .recordFolderMovedInLayout = recordFolderMovedInLayout;
239: }
240:
241: /**
242: * Returns true iff we should record a folder being removed from a layout.
243: * @return Returns true if a folder is removed from a layout.
244: */
245: public boolean isRecordFolderRemovedFromLayout() {
246: return this .recordFolderRemovedFromLayout;
247: }
248:
249: /**
250: * Set whether we should record a folder being removed from a layout.
251: * @param recordFolderRemovedFromLayout true iff we should record a folder being removed from a layout
252: */
253: public void setRecordFolderRemovedFromLayout(
254: boolean recordFolderRemovedFromLayout) {
255: this .recordFolderRemovedFromLayout = recordFolderRemovedFromLayout;
256: }
257:
258: /**
259: * Returns true if we should record a folder being updated within a layout, false otherwise.
260: * @return true iff we should record a folder being updated within a layout.
261: */
262: public boolean isRecordFolderUpdatedInLayout() {
263: return this .recordFolderUpdatedInLayout;
264: }
265:
266: /**
267: * Set whether we should record a folder being updated within a layout.
268: * @param recordFolderUpdatedInLayout true iff we should record a folder being updated within a layout.
269: */
270: public void setRecordFolderUpdatedInLayout(
271: boolean recordFolderUpdatedInLayout) {
272: this .recordFolderUpdatedInLayout = recordFolderUpdatedInLayout;
273: }
274:
275: /**
276: * Returns true iff we should record a user logging in.
277: * @return true iff we should record a user logging in.
278: */
279: public boolean isRecordLogin() {
280: return this .recordLogin;
281: }
282:
283: /**
284: * Set whether we should record a user logging in.
285: * @param recordLogin true iff we should record a user logging in.
286: */
287: public void setRecordLogin(boolean recordLogin) {
288: this .recordLogin = recordLogin;
289: }
290:
291: /**
292: * Returns true iff we should record a user logging out.
293: * @return true iff we should record a user logging out.
294: */
295: public boolean isRecordLogout() {
296: return this .recordLogout;
297: }
298:
299: /**
300: * Set whether we should record a user logging out.
301: * @param recordLogout true iff we should record a user logging out.
302: */
303: public void setRecordLogout(boolean recordLogout) {
304: this .recordLogout = recordLogout;
305: }
306:
307: /**
308: * Returns true if we should record a session being created, false otherwise.
309: * @return true iff we should record when a session is created.
310: */
311: public boolean isRecordSessionCreated() {
312: return this .recordSessionCreated;
313: }
314:
315: /**
316: * Set whether we should record a session being created.
317: * @param recordSessionCreated true iff we should record when a session is created.
318: */
319: public void setRecordSessionCreated(boolean recordSessionCreated) {
320: this .recordSessionCreated = recordSessionCreated;
321: }
322:
323: /**
324: * Return true iff we should record a session being destroyed.
325: * @return true iff we should record a session being destroyed.
326: */
327: public boolean isRecordSessionDestroyed() {
328: return this .recordSessionDestroyed;
329: }
330:
331: /**
332: * Set whether we should record a session being destroyed.
333: * @param recordSessionDestroyed True iff we should record a session being destroyed.
334: */
335: public void setRecordSessionDestroyed(boolean recordSessionDestroyed) {
336: this.recordSessionDestroyed = recordSessionDestroyed;
337: }
338:
339: }
|