Coverage Report - org.kuali.rice.kim.bo.group.dto.GroupInfo
 
Classes in this File Line Coverage Branch Coverage Complexity
GroupInfo
0%
0/31
0%
0/6
1.353
 
 1  
 /*
 2  
  * Copyright 2007-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.group.dto;
 17  
 
 18  
 import org.apache.commons.lang.builder.EqualsBuilder;
 19  
 import org.apache.commons.lang.builder.HashCodeBuilder;
 20  
 import org.kuali.rice.core.xml.dto.AttributeSet;
 21  
 import org.kuali.rice.kim.bo.Group;
 22  
 
 23  
 import javax.xml.bind.annotation.*;
 24  
 import java.io.Serializable;
 25  
 
 26  
 
 27  
 /**
 28  
  * This is a description of what this class does - sgibson don't forget to fill this in. 
 29  
  * 
 30  
  * @author Kuali Rice Team (rice.collab@kuali.org)
 31  
  *
 32  
  */
 33  
 
 34  
 @XmlRootElement(name = "group", namespace = "http://rice.kuali.org/xsd/kim/group")
 35  
 @XmlAccessorType(XmlAccessType.FIELD)
 36  
 @XmlType(name = "Group", namespace = "http://rice.kuali.org/xsd/kim/group", propOrder = {
 37  
     "groupId", "groupName", "groupDescription", "active", "kimTypeId", "namespaceCode", "attributes"
 38  
 })
 39  
 
 40  0
 public class GroupInfo implements Group, Serializable {
 41  
         
 42  
         private static final long serialVersionUID = 1L;
 43  
 
 44  
         @XmlElement(name = "groupId", namespace = "http://rice.kuali.org/xsd/kim/group")        
 45  
         protected String groupId;
 46  
 
 47  
         @XmlElement(name = "groupName", namespace = "http://rice.kuali.org/xsd/kim/group")        
 48  
         protected String groupName;
 49  
 
 50  
         @XmlElement(name = "groupDescription", namespace = "http://rice.kuali.org/xsd/kim/group")        
 51  
         protected String groupDescription;
 52  
 
 53  
         @XmlElement(name = "active", namespace = "http://rice.kuali.org/xsd/kim/group")        
 54  
         protected boolean active;
 55  
 
 56  
         @XmlElement(name = "kimTypeId", namespace = "http://rice.kuali.org/xsd/kim/group")        
 57  
         protected String kimTypeId;
 58  
 
 59  
         @XmlElement(name = "namespaceCode", namespace = "http://rice.kuali.org/xsd/kim/group")        
 60  
         protected String namespaceCode;
 61  
 
 62  
         @XmlElement(name = "attributes", namespace = "http://rice.kuali.org/xsd/kim/group")        
 63  
         protected AttributeSet attributes;
 64  
         
 65  
 
 66  
         public String getGroupDescription() {
 67  0
                 return this.groupDescription;
 68  
         }
 69  
 
 70  
         public String getGroupId() {
 71  0
                 return this.groupId;
 72  
         }
 73  
 
 74  
         public String getGroupName() {
 75  0
                 return this.groupName;
 76  
         }
 77  
 
 78  
         public String getKimTypeId() {
 79  0
                 return this.kimTypeId;
 80  
         }
 81  
 
 82  
         public String getNamespaceCode() {
 83  0
                 return this.namespaceCode;
 84  
         }
 85  
 
 86  
         public AttributeSet getAttributes() {
 87  0
                 return this.attributes;
 88  
         }
 89  
 
 90  
         public void setGroupDescription(String groupDescription) {
 91  0
                 this.groupDescription = groupDescription;
 92  0
         }
 93  
 
 94  
         public void setGroupId(String groupId) {
 95  0
                 this.groupId = groupId;
 96  0
         }
 97  
 
 98  
         public void setGroupName(String groupName) {
 99  0
                 this.groupName = groupName;
 100  0
         }
 101  
 
 102  
         public void setKimTypeId(String kimTypeId) {
 103  0
                 this.kimTypeId = kimTypeId;
 104  0
         }
 105  
 
 106  
         public void setNamespaceCode(String namespaceCode) {
 107  0
                 this.namespaceCode = namespaceCode;
 108  0
         }
 109  
 
 110  
         public void setAttributes(AttributeSet attributes) {
 111  0
                 this.attributes = attributes;
 112  0
         }
 113  
 
 114  
         public boolean isActive() {
 115  0
                 return this.active;
 116  
         }
 117  
 
 118  
         public void setActive(boolean active) {
 119  0
                 this.active = active;
 120  0
         }
 121  
 
 122  
     public void refresh(){
 123  
             
 124  0
     }
 125  
 
 126  
         public boolean equals(Object object) {
 127  0
                 if (object == null) { return false; }
 128  0
                 if (object == this) { return true; }
 129  0
                 if (object.getClass() != getClass()) {
 130  0
                         return false;
 131  
                 }
 132  0
                 GroupInfo rhs = (GroupInfo)object;
 133  0
                 EqualsBuilder eb = new EqualsBuilder()
 134  
                         .append( this.groupId, rhs.getGroupId() );
 135  0
                 return eb.isEquals();
 136  
         }
 137  
 
 138  
         public int hashCode() {
 139  0
                 return new HashCodeBuilder( -462347871, 744315189 )
 140  
                         .append( this.groupId )
 141  
                         .toHashCode();
 142  
         }
 143  
     
 144  
 }