KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jahia > content > events > ContentActivationEvent


1 package org.jahia.content.events;
2
3 import java.util.*;
4
5 import org.jahia.content.ObjectKey;
6 import org.jahia.data.events.JahiaEvent;
7 import org.jahia.params.ParamBean;
8 import org.jahia.services.usermanager.JahiaUser;
9 import org.jahia.services.version.*;
10 import org.jahia.content.ContentObject;
11
12 /**
13  *
14  * <p>Title: </p>
15  * <p>Description: </p>
16  * <p>Copyright: Copyright (c) 2004</p>
17  * <p>Company: Jahia Ltd</p>
18  * @author not attributable
19  * @version 1.0
20  */

21 public class ContentActivationEvent extends JahiaEvent {
22
23     private JahiaUser user;
24     private Set languageCodes;
25     private boolean versioningActive;
26     private JahiaSaveVersion saveVersion;
27     private StateModificationContext stateModifContext;
28     private ActivationTestResults result;
29
30     public ContentActivationEvent(Object JavaDoc source,
31                                   ObjectKey objectKey,
32                                   JahiaUser user,
33                                   Set languageCodes,
34                                   boolean versioningActive,
35                                   JahiaSaveVersion saveVersion,
36                                   ParamBean jParams,
37                                   StateModificationContext stateModifContext,
38                                   ActivationTestResults result) {
39         super(source, jParams, objectKey);
40         this.user = user;
41         this.languageCodes = languageCodes;
42         this.versioningActive = versioningActive;
43         this.saveVersion = saveVersion;
44         this.stateModifContext = stateModifContext;
45         this.result = result;
46     }
47
48     public JahiaUser getUser() {
49         return user;
50     }
51
52     public Set getLanguageCodes() {
53         return languageCodes;
54     }
55
56     public boolean getVersioningActive() {
57         return versioningActive;
58     }
59
60     public JahiaSaveVersion getSaveVersion() {
61         return saveVersion;
62     }
63
64     public StateModificationContext getStateModifContext() {
65         return stateModifContext;
66     }
67
68     public ActivationTestResults getActivationTestResults() {
69         return result;
70     }
71
72     public ObjectKey getObjectKey() {
73         return (ObjectKey)getObject();
74     }
75
76     public ContentObject getContentObject() {
77         return (ContentObject)getSource();
78     }
79
80 }
81
Popular Tags