001    /*
002     * Copyright 2005-2008 The Kuali Foundation
003     *
004     *
005     * Licensed under the Educational Community License, Version 2.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/ecl2.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 org.kuali.rice.kew.user;
018    
019    import org.kuali.rice.kew.actionrequest.Recipient;
020    import org.kuali.rice.kew.rule.ResolvedQualifiedRole;
021    
022    /**
023     * Marks a Role to be used in an ActionRequestValue.
024     *
025     * @author Kuali Rice Team (rice.collab@kuali.org)
026     */
027    public class RoleRecipient implements Recipient {
028    
029            private static final long serialVersionUID = -8694150869017306593L;
030    
031            private String roleName;
032            private String qualifiedRoleName;
033            private ResolvedQualifiedRole resolvedQualifiedRole;
034            private Recipient targetRecipient;
035    
036            public RoleRecipient(){}
037    
038            public RoleRecipient(String roleName) {
039                    this.roleName = roleName;
040            }
041    
042            public RoleRecipient(String roleName, String qualifiedRoleName, ResolvedQualifiedRole resolvedQualifiedRole) {
043                    this.roleName = roleName;
044                    this.qualifiedRoleName = qualifiedRoleName;
045                    this.resolvedQualifiedRole = resolvedQualifiedRole;
046            }
047    
048            public String getRoleName() {
049                    return roleName;
050            }
051    
052            public void setRoleName(String roleName) {
053                    this.roleName = roleName;
054            }
055    
056            public String getQualifiedRoleName() {
057                    return qualifiedRoleName;
058            }
059    
060            public void setQualifiedRoleName(String qualifiedRoleName) {
061                    this.qualifiedRoleName = qualifiedRoleName;
062            }
063    
064            public ResolvedQualifiedRole getResolvedQualifiedRole() {
065                    return resolvedQualifiedRole;
066            }
067    
068            public void setResolvedQualifiedRole(ResolvedQualifiedRole resolvedQualifiedRole) {
069                    this.resolvedQualifiedRole = resolvedQualifiedRole;
070            }
071    
072            public Recipient getTarget() {
073                    return targetRecipient;
074            }
075    
076            public void setTarget(Recipient target) {
077                    this.targetRecipient = target;
078            }
079    }