Coverage Report - org.kuali.rice.kim.api.jaxb.PermissionDetailList
 
Classes in this File Line Coverage Branch Coverage Complexity
PermissionDetailList
0%
0/10
0%
0/2
1.25
 
 1  
 /*
 2  
  * Copyright 2011 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/ecl1.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.api.jaxb;
 17  
 
 18  
 import org.kuali.rice.core.api.util.jaxb.StringMapEntry;
 19  
 
 20  
 import javax.xml.bind.annotation.XmlAccessType;
 21  
 import javax.xml.bind.annotation.XmlAccessorType;
 22  
 import javax.xml.bind.annotation.XmlElement;
 23  
 import javax.xml.bind.annotation.XmlType;
 24  
 import java.io.Serializable;
 25  
 import java.util.ArrayList;
 26  
 import java.util.List;
 27  
 import java.util.Map;
 28  
 
 29  
 /**
 30  
  * An XML element that can have zero or more StringMapEntry elements. This is similar
 31  
  * to the StringMapEntryList, except this element's children are <permissionDetail> elements.
 32  
  * 
 33  
  * @author Kuali Rice Team (rice.collab@kuali.org)
 34  
  */
 35  
 @XmlAccessorType(XmlAccessType.FIELD)
 36  
 @XmlType(name="PermissionDetailListType", propOrder={"permissionDetails"})
 37  
 public class PermissionDetailList implements Serializable {
 38  
 
 39  
     private static final long serialVersionUID = 1L;
 40  
     
 41  
     @XmlElement(name="permissionDetail")
 42  
     private List<StringMapEntry> permissionDetails;
 43  
     
 44  0
     public PermissionDetailList() {
 45  0
         this.permissionDetails = new ArrayList<StringMapEntry>();
 46  0
     }
 47  
     
 48  
     public PermissionDetailList(Map<String, String> map) {
 49  0
         this();
 50  0
         for (Map.Entry<String,String> tempEntry : map.entrySet()) {
 51  0
             permissionDetails.add(new StringMapEntry(tempEntry));
 52  
         }
 53  0
     }
 54  
 
 55  
     /**
 56  
      * @return the permissionDetails
 57  
      */
 58  
     public List<StringMapEntry> getPermissionDetails() {
 59  0
         return this.permissionDetails;
 60  
     }
 61  
 
 62  
     /**
 63  
      * @param permissionDetails the permissionDetails to set
 64  
      */
 65  
     public void setPermissionDetails(List<StringMapEntry> permissionDetails) {
 66  0
         this.permissionDetails = permissionDetails;
 67  0
     }
 68  
     
 69  
 }