KickJava   Java API By Example, From Geeks To Geeks.

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


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 Status 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 int permission;
26
27     /**
28      * @return
29      */

30     public long getId() {
31         return id;
32     }
33
34     /**
35      * @param l
36      */

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

44     public String JavaDoc getTitle() {
45         return title;
46     }
47
48     /**
49      * @param string
50      */

51     public void setTitle(String JavaDoc string) {
52         title = string;
53     }
54
55     public int compareTo(Object JavaDoc compObject){
56         if(!(compObject instanceof Status))return -1;
57         Status status = (Status) compObject;
58         return (status.getTitle().compareTo(this.getTitle()));
59     }
60
61     /**
62      * @return
63      */

64     public int getPermission() {
65         return permission;
66     }
67
68     /**
69      * @param i
70      */

71     public void setPermission(int permission) {
72         this.permission = permission;
73     }
74
75 }
76
Popular Tags