01: /*
02: * AllowDenyItem.java
03: *
04: * Created on September 13, 2005, 4:40 PM
05: *
06: * To change this template, choose Tools | Options and locate the template under
07: * the Source Creation and Management node. Right-click the template and choose
08: * Open. You can then make changes to the template in the Source Editor.
09: */
10:
11: package com.sun.portal.admin.console.sra.utils;
12:
13: /**
14: *
15: * @author aa147324
16: */
17:
18: import java.io.Serializable;
19:
20: /**
21: * @author aa147324
22: *
23: * TODO To change the template for this generated type comment go to Window -
24: * Preferences - Java - Code Style - Code Templates
25: */
26: public class AllowDenyItem implements Serializable {
27:
28: boolean _selected;
29:
30: private String _item = "";
31:
32: private boolean _isAllowed = false;
33:
34: public AllowDenyItem() {
35:
36: }
37:
38: public AllowDenyItem(String Item, boolean isAllowed) {
39: _item = Item;
40: _isAllowed = isAllowed;
41: }
42:
43: /**
44: * @return Returns the isAllowed.
45: */
46: public boolean getIsAllowed() {
47: return _isAllowed;
48: }
49:
50: /**
51: * @param isAllowed
52: * The isAllowed to set.
53: */
54: public void setIsAllowed(boolean isAllowed) {
55: _isAllowed = isAllowed;
56: }
57:
58: /**
59: * @return Returns the Item.
60: */
61: public String getItem() {
62: return _item;
63: }
64:
65: /**
66: * @param Item
67: * The Item to set.
68: */
69: public void setItem(String item) {
70: _item = item;
71: }
72:
73: public boolean isEmpty() {
74: return _item.equals("") && (_isAllowed == false);
75: }
76:
77: public boolean getSelected() {
78: return _selected;
79: }
80:
81: /**
82: * @param selected
83: * The selected to set.
84: */
85: public void setSelected(boolean selected) {
86: _selected = selected;
87: }
88: }
|