1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 package org.apache.jetspeed.om.page.impl;
18
19 /***
20 * BaseSecurityConstraintsRef
21 *
22 * @author <a href="mailto:rwatler@apache.org">Randy Watler</a>
23 * @version $Id$
24 */
25 public class BaseSecurityConstraintsRef
26 {
27 private int id;
28 private int applyOrder;
29 private String name;
30
31 /***
32 * getApplyOrder
33 *
34 * @return apply order for constraints
35 */
36 public int getApplyOrder()
37 {
38 return applyOrder;
39 }
40
41 /***
42 * setApplyOrder
43 *
44 * @param order apply order for constraints
45 */
46 public void setApplyOrder(int order)
47 {
48 applyOrder = order;
49 }
50
51 /***
52 * getName
53 *
54 * @return name of referenced constraint
55 */
56 public String getName()
57 {
58 return name;
59 }
60
61 /***
62 * setName
63 *
64 * @param name name of referenced constraint
65 */
66 public void setName(String name)
67 {
68 this.name = name;
69 }
70
71
72
73
74 public boolean equals(Object o)
75 {
76 if (o instanceof BaseSecurityConstraintsRef)
77 {
78 if (name != null)
79 {
80 return name.equals(((BaseSecurityConstraintsRef)o).getName());
81 }
82 return (((BaseSecurityConstraintsRef)o).getName() == null);
83 }
84 return false;
85 }
86
87
88
89
90 public int hashCode()
91 {
92 if (name != null)
93 {
94 return name.hashCode();
95 }
96 return 0;
97 }
98 }