01: /**
02: * $Id: ACL.java,v 1.5 2005/10/16 18:07:18 ss150821 Exp $
03: * Copyright 2005 Sun Microsystems, Inc. All
04: * rights reserved. Use of this product is subject
05: * to license terms. Federal Acquisitions:
06: * Commercial Software -- Government Users
07: * Subject to Standard License Terms and
08: * Conditions.
09: *
10: * Sun, Sun Microsystems, the Sun logo, and Sun ONE
11: * are trademarks or registered trademarks of Sun Microsystems,
12: * Inc. in the United States and other countries.
13: */package com.sun.portal.admin.console.sra.accesslist;
14:
15: import java.io.Serializable;
16:
17: /**
18: * @author ss150821
19: *
20: * TODO To change the template for this generated type comment go to Window -
21: * Preferences - Java - Code Style - Code Templates
22: */
23: public class ACL implements Serializable {
24:
25: boolean _selected;
26:
27: private String _url = "";
28:
29: private boolean _isAllowed = false;
30:
31: private static final String EMPTY_STRING = "";
32:
33: public ACL() {
34:
35: }
36:
37: public ACL(String url, boolean isAllowed) {
38: _url = url;
39: _isAllowed = isAllowed;
40: }
41:
42: /**
43: * @return Returns the isAllowed.
44: */
45: public boolean getIsAllowed() {
46: return _isAllowed;
47: }
48:
49: /**
50: * @param isAllowed
51: * The isAllowed to set.
52: */
53: public void setIsAllowed(boolean isAllowed) {
54: _isAllowed = isAllowed;
55: }
56:
57: /**
58: * @return Returns the url.
59: */
60: public String getUrl() {
61: return _url;
62: }
63:
64: /**
65: * @param url
66: * The url to set.
67: */
68: public void setUrl(String url) {
69: _url = url;
70: }
71:
72: public boolean isEmpty() {
73: return _url.equals(EMPTY_STRING) && !_isAllowed;
74: }
75:
76: public boolean getSelected() {
77: return _selected;
78: }
79:
80: /**
81: * @param selected
82: * The selected to set.
83: */
84: public void setSelected(boolean selected) {
85: _selected = selected;
86: }
87: }
|