001: /*
002: * Copyright 2005-2006 The Kuali Foundation.
003: *
004: *
005: * Licensed under the Educational Community License, Version 1.0 (the "License");
006: * you may not use this file except in compliance with the License.
007: * You may obtain a copy of the License at
008: *
009: * http://www.opensource.org/licenses/ecl1.php
010: *
011: * Unless required by applicable law or agreed to in writing, software
012: * distributed under the License is distributed on an "AS IS" BASIS,
013: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
014: * See the License for the specific language governing permissions and
015: * limitations under the License.
016: */
017: package edu.iu.uis.eden.clientapp.vo;
018:
019: /**
020: * @workflow.webservice-object
021: */
022: public class RuleResponsibilityVO implements java.io.Serializable {
023:
024: private static final long serialVersionUID = -5253556415865901457L;
025:
026: private Long responsibilityId;
027: private String actionRequestedCd;
028: private Integer priority;
029: private String approvePolicy;
030: /*
031: * Below we have replaced the two fields below with
032: * specific fields for what could be associated with
033: * this rule responsibility:
034: *
035: * ruleResponsibilityName
036: * ruleResponsibilityType
037: */
038: private UserVO user;
039: private WorkgroupVO workgroup;
040: private String roleName;
041:
042: private RuleDelegationVO[] delegationRules;
043:
044: public RuleResponsibilityVO() {
045: }
046:
047: public String getActionRequestedCd() {
048: return actionRequestedCd;
049: }
050:
051: public void setActionRequestedCd(String actionRequestedCd) {
052: this .actionRequestedCd = actionRequestedCd;
053: }
054:
055: public String getApprovePolicy() {
056: return approvePolicy;
057: }
058:
059: public void setApprovePolicy(String approvePolicy) {
060: this .approvePolicy = approvePolicy;
061: }
062:
063: public RuleDelegationVO[] getDelegationRules() {
064: return delegationRules;
065: }
066:
067: public void setDelegationRules(RuleDelegationVO[] delegationRules) {
068: this .delegationRules = delegationRules;
069: }
070:
071: public void addDelegationRule(RuleDelegationVO delegationRule) {
072: if (getDelegationRules() == null) {
073: setDelegationRules(new RuleDelegationVO[0]);
074: }
075: RuleDelegationVO[] newDelegationRules = new RuleDelegationVO[getDelegationRules().length + 1];
076: System.arraycopy(getDelegationRules(), 0, newDelegationRules,
077: 0, getDelegationRules().length);
078: newDelegationRules[getDelegationRules().length] = delegationRule;
079: setDelegationRules(newDelegationRules);
080: }
081:
082: public Integer getPriority() {
083: return priority;
084: }
085:
086: public void setPriority(Integer priority) {
087: this .priority = priority;
088: }
089:
090: public Long getResponsibilityId() {
091: return responsibilityId;
092: }
093:
094: public void setResponsibilityId(Long responsibilityId) {
095: this .responsibilityId = responsibilityId;
096: }
097:
098: public String getRoleName() {
099: return roleName;
100: }
101:
102: public void setRoleName(String roleName) {
103: this .roleName = roleName;
104: }
105:
106: public UserVO getUser() {
107: return user;
108: }
109:
110: public void setUser(UserVO user) {
111: this .user = user;
112: }
113:
114: public WorkgroupVO getWorkgroup() {
115: return workgroup;
116: }
117:
118: public void setWorkgroup(WorkgroupVO workgroup) {
119: this.workgroup = workgroup;
120: }
121:
122: }
|