Coverage Report - org.kuali.rice.kim.bo.role.dto.RoleMembershipInfo
 
Classes in this File Line Coverage Branch Coverage Complexity
RoleMembershipInfo
0%
0/38
0%
0/4
1.211
 
 1  
 /*
 2  
  * Copyright 2008 The Kuali Foundation
 3  
  *
 4  
  * Licensed under the Educational Community License, Version 2.0 (the "License");
 5  
  * you may not use this file except in compliance with the License.
 6  
  * You may obtain a copy of the License at
 7  
  *
 8  
  * http://www.opensource.org/licenses/ecl2.php
 9  
  *
 10  
  * Unless required by applicable law or agreed to in writing, software
 11  
  * distributed under the License is distributed on an "AS IS" BASIS,
 12  
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 13  
  * See the License for the specific language governing permissions and
 14  
  * limitations under the License.
 15  
  */
 16  
 package org.kuali.rice.kim.bo.role.dto;
 17  
 
 18  
 import java.io.Serializable;
 19  
 import java.util.ArrayList;
 20  
 import java.util.List;
 21  
 
 22  
 import org.apache.commons.lang.builder.ToStringBuilder;
 23  
 import org.kuali.rice.core.util.AttributeSet;
 24  
 
 25  
 /**
 26  
  * This is a description of what this class does - kellerj don't forget to fill this in. 
 27  
  * 
 28  
  * @author Kuali Rice Team (rice.collab@kuali.org)
 29  
  *
 30  
  */
 31  
 public class RoleMembershipInfo implements Serializable {
 32  
         private static final long serialVersionUID = 1L;
 33  
         protected String roleId;
 34  
         protected String roleMemberId;
 35  
         protected String embeddedRoleId; // ID of the role from which the group or principal was derived
 36  
         protected String memberId;
 37  
         protected String memberTypeCode;
 38  
         protected String roleSortingCode; // value which can be used to sort the role members into a meaningful order
 39  
         protected AttributeSet qualifier;
 40  0
         protected List<DelegateInfo> delegates = new ArrayList<DelegateInfo>();
 41  
         
 42  
         // for jax-ws client proxy creation
 43  
         @SuppressWarnings("unused")
 44  0
         private RoleMembershipInfo() {}
 45  
         
 46  
         public RoleMembershipInfo(String roleId, String roleMemberId, String memberId, String memberTypeCode,
 47  
                         AttributeSet qualifier) {
 48  0
                 super();
 49  0
                 this.roleId = roleId;
 50  0
                 if ( memberId == null ) {
 51  0
                         throw new IllegalArgumentException( "memberId may not be null" );
 52  
                 }
 53  0
                 this.memberId = memberId;
 54  0
                 if ( memberTypeCode == null ) {
 55  0
                         throw new IllegalArgumentException( "memberTypeCode may not be null" );
 56  
                 }
 57  0
                 this.memberTypeCode = memberTypeCode;
 58  0
                 this.roleMemberId = roleMemberId;
 59  0
                 this.qualifier = qualifier;
 60  0
         }
 61  
         
 62  
         public String getRoleId() {
 63  0
                 return this.roleId;
 64  
         }
 65  
         public void setRoleId(String roleId) {
 66  0
                 this.roleId = roleId;
 67  0
         }
 68  
         public AttributeSet getQualifier() {
 69  0
                 return this.qualifier;
 70  
         }
 71  
         public void setQualifier(AttributeSet qualifier) {
 72  0
                 this.qualifier = qualifier;
 73  0
         }
 74  
         public List<DelegateInfo> getDelegates() {
 75  0
                 return this.delegates;
 76  
         }
 77  
         public void setDelegates(List<DelegateInfo> delegates) {
 78  0
                 this.delegates = delegates;
 79  0
         }
 80  
 
 81  
         public String getRoleMemberId() {
 82  0
                 return this.roleMemberId;
 83  
         }
 84  
 
 85  
 
 86  
         public void setRoleMemberId(String roleMemberId) {
 87  0
                 this.roleMemberId = roleMemberId;
 88  0
         }
 89  
 
 90  
 
 91  
         public String getMemberId() {
 92  0
                 return this.memberId;
 93  
         }
 94  
 
 95  
 
 96  
         public void setMemberId(String memberId) {
 97  0
                 this.memberId = memberId;
 98  0
         }
 99  
 
 100  
 
 101  
         public String getMemberTypeCode() {
 102  0
                 return this.memberTypeCode;
 103  
         }
 104  
 
 105  
 
 106  
         public void setMemberTypeCode(String memberTypeCode) {
 107  0
                 this.memberTypeCode = memberTypeCode;
 108  0
         }
 109  
 
 110  
         public String getEmbeddedRoleId() {
 111  0
                 return this.embeddedRoleId;
 112  
         }
 113  
 
 114  
         public void setEmbeddedRoleId(String embeddedRoleId) {
 115  0
                 this.embeddedRoleId = embeddedRoleId;
 116  0
         }
 117  
 
 118  
     /**
 119  
      * @see java.lang.Object#toString()
 120  
      */
 121  
     public String toString() {
 122  0
             return new ToStringBuilder( this )
 123  
                     .append( "memberTypeCode", this.memberTypeCode )
 124  
                             .append( "memberId", this.memberId )
 125  
                             .append( "roleId", this.roleId )
 126  
                             .append( "qualifier", this.qualifier ).toString();
 127  
     }
 128  
 
 129  
         /**
 130  
          * @return the roleSortingCode
 131  
          */
 132  
         public String getRoleSortingCode() {
 133  0
                 return this.roleSortingCode;
 134  
         }
 135  
 
 136  
         /**
 137  
          * @param roleSortingCode the roleSortingCode to set
 138  
          */
 139  
         public void setRoleSortingCode(String roleSortingCode) {
 140  0
                 this.roleSortingCode = roleSortingCode;
 141  0
         }
 142  
 }