KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > dotmarketing > portlets > workflowmessages > model > Action


1 /*
2  * Created on Apr 5, 2004
3  *
4  * To change the template for this generated file go to
5  * Window>Preferences>Java>Code Generation>Code and Comments
6  */

7 package com.dotmarketing.portlets.workflowmessages.model;
8
9 import java.io.Serializable JavaDoc;
10
11 /**
12  * @author rocco
13  *
14  * To change the template for this generated type comment go to
15  * Window>Preferences>Java>Code Generation>Code and Comments
16  */

17 public class Action implements Serializable JavaDoc, Comparable JavaDoc {
18     
19     private static final long serialVersionUID = 1L;
20
21     private long id;
22     
23     private String JavaDoc title;
24     
25     private long antiStatusId;
26     
27     private long postStatusId;
28
29     private int permission;
30     
31     private boolean emailAllWithPermissions;
32     
33
34     /**
35      * @return
36      */

37     public long getId() {
38         return id;
39     }
40
41     /**
42      * @param l
43      */

44     public void setId(long l) {
45         id = l;
46     }
47
48     /**
49      * @return
50      */

51     public String JavaDoc getTitle() {
52         return title;
53     }
54
55     /**
56      * @param string
57      */

58     public void setTitle(String JavaDoc string) {
59         title = string;
60     }
61
62     public int compareTo(Object JavaDoc compObject){
63         if(!(compObject instanceof Action))return -1;
64         
65         Action action = (Action) compObject;
66         return (action.getTitle().compareTo(this.getTitle()));
67     }
68
69     /**
70      * @return
71      */

72     public long getAntiStatusId() {
73         return antiStatusId;
74     }
75
76     /**
77      * @return
78      */

79     public long getPostStatusId() {
80         return postStatusId;
81     }
82
83     /**
84      * @param l
85      */

86     public void setAntiStatusId(long statusId) {
87         antiStatusId = statusId;
88     }
89
90     /**
91      * @param l
92      */

93     public void setPostStatusId(long statusId) {
94         postStatusId = statusId;
95     }
96
97     /**
98      * @return
99      */

100     public int getPermission() {
101         return permission;
102     }
103
104     /**
105      * @param i
106      */

107     public void setPermission(int i) {
108         permission = i;
109     }
110
111     /**
112      * @return
113      */

114     public boolean isEmailAllWithPermissions() {
115         return emailAllWithPermissions;
116     }
117
118     /**
119      * @param b
120      */

121     public void setEmailAllWithPermissions(boolean b) {
122         emailAllWithPermissions = b;
123     }
124
125 }
126
Popular Tags