001: /*
002: * Copyright 2007 The Kuali Foundation.
003: *
004: * Licensed under the Educational Community License, Version 1.0 (the "License");
005: * you may not use this file except in compliance with the License.
006: * You may obtain a copy of the License at
007: *
008: * http://www.opensource.org/licenses/ecl1.php
009: *
010: * Unless required by applicable law or agreed to in writing, software
011: * distributed under the License is distributed on an "AS IS" BASIS,
012: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
013: * See the License for the specific language governing permissions and
014: * limitations under the License.
015: */
016: /*
017: * Created on Sep 22, 2004
018: *
019: */
020: package org.kuali.module.pdp.service;
021:
022: import java.io.Serializable;
023:
024: /**
025: * @author jsissom
026: */
027: public class SecurityRecord implements Serializable {
028: private boolean sysAdminRole = false;
029: private boolean rangesRole = false;
030: private boolean cancelRole = false;
031: private boolean submitRole = false;
032: private boolean processRole = false;
033: private boolean holdRole = false;
034: private boolean viewAllRole = false;
035: private boolean viewIdRole = false;
036: private boolean viewBankRole = false;
037: private boolean limitedViewRole = false;
038: private boolean taxHoldersRole = false;
039:
040: public SecurityRecord() {
041: super ();
042: }
043:
044: @Override
045: public String toString() {
046: String out = "sysAdminRole = " + sysAdminRole
047: + " rangesRole = " + rangesRole + " cancelRole = "
048: + cancelRole + " submitRole = " + submitRole;
049: out = out + " processRole = " + processRole + " holdRole = "
050: + holdRole + " viewAllRole = " + viewAllRole
051: + " viewIdRole = " + viewIdRole;
052: out = out + " viewBankRole = " + viewBankRole
053: + " limitedViewRole = " + limitedViewRole
054: + " taxHoldersrole = " + taxHoldersRole;
055: return out;
056: }
057:
058: public boolean isAnyRole() {
059: return sysAdminRole || rangesRole || cancelRole || submitRole
060: || processRole || holdRole || viewAllRole || viewIdRole
061: || viewBankRole || limitedViewRole || taxHoldersRole;
062: }
063:
064: public boolean isAnyViewRole() {
065: return sysAdminRole || viewAllRole || viewIdRole
066: || viewBankRole || limitedViewRole;
067: }
068:
069: public boolean isCancelRole() {
070: return cancelRole;
071: }
072:
073: public void setCancelRole(boolean cancelRole) {
074: this .cancelRole = cancelRole;
075: }
076:
077: public boolean isHoldRole() {
078: return holdRole;
079: }
080:
081: public void setHoldRole(boolean holdRole) {
082: this .holdRole = holdRole;
083: }
084:
085: public boolean isLimitedViewRole() {
086: return limitedViewRole;
087: }
088:
089: public void setLimitedViewRole(boolean limitedViewRole) {
090: this .limitedViewRole = limitedViewRole;
091: }
092:
093: public boolean isProcessRole() {
094: return processRole;
095: }
096:
097: public void setProcessRole(boolean processRole) {
098: this .processRole = processRole;
099: }
100:
101: public boolean isRangesRole() {
102: return rangesRole;
103: }
104:
105: public void setRangesRole(boolean rangesRole) {
106: this .rangesRole = rangesRole;
107: }
108:
109: public boolean isSubmitRole() {
110: return submitRole;
111: }
112:
113: public void setSubmitRole(boolean submitRole) {
114: this .submitRole = submitRole;
115: }
116:
117: public boolean isSysAdminRole() {
118: return sysAdminRole;
119: }
120:
121: public void setSysAdminRole(boolean sysAdminRole) {
122: this .sysAdminRole = sysAdminRole;
123: }
124:
125: public boolean isTaxHoldersRole() {
126: return taxHoldersRole;
127: }
128:
129: public void setTaxHoldersRole(boolean taxHoldersRole) {
130: this .taxHoldersRole = taxHoldersRole;
131: }
132:
133: public boolean isViewAllRole() {
134: return viewAllRole;
135: }
136:
137: public void setViewAllRole(boolean viewAllRole) {
138: this .viewAllRole = viewAllRole;
139: }
140:
141: public boolean isViewIdRole() {
142: return viewIdRole;
143: }
144:
145: public void setViewIdRole(boolean viewIdRole) {
146: this .viewIdRole = viewIdRole;
147: }
148:
149: public boolean isViewBankRole() {
150: return viewIdRole;
151: }
152:
153: public void setViewBankRole(boolean viewBankRole) {
154: this.viewBankRole = viewBankRole;
155: }
156: }
|