Coverage Report - org.kuali.student.core.organization.assembly.data.server.org.OrgSearchHelper
 
Classes in this File Line Coverage Branch Coverage Complexity
OrgSearchHelper
0%
0/10
0%
0/2
1.286
OrgSearchHelper$Properties
0%
0/6
N/A
1.286
 
 1  
 /**
 2  
  * Copyright 2010 The Kuali Foundation Licensed under the
 3  
  * Educational Community License, Version 2.0 (the "License"); you may
 4  
  * not use this file except in compliance with the License. You may
 5  
  * obtain a copy of the License at
 6  
  *
 7  
  * http://www.osedu.org/licenses/ECL-2.0
 8  
  *
 9  
  * Unless required by applicable law or agreed to in writing,
 10  
  * software distributed under the License is distributed on an "AS IS"
 11  
  * BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
 12  
  * or implied. See the License for the specific language governing
 13  
  * permissions and limitations under the License.
 14  
  */
 15  
 
 16  
 package org.kuali.student.core.organization.assembly.data.server.org;
 17  
 
 18  
 
 19  
 
 20  
 import org.kuali.student.common.assembly.data.Data;
 21  
 import org.kuali.student.common.assembly.helper.PropertyEnum;
 22  
 
 23  
 public class OrgSearchHelper {
 24  
     private static final long serialVersionUID = 1L;
 25  
 
 26  0
     public enum Properties implements PropertyEnum{
 27  0
         ORG_ID("searchOrgs");
 28  
 
 29  
         private final String key;
 30  
 
 31  0
         private Properties(final String key) {
 32  0
             this.key = key;
 33  0
         }
 34  
 
 35  
         @Override
 36  
         public String getKey() {
 37  0
             return this.key;
 38  
         }
 39  
     }
 40  
 
 41  
     private Data data;
 42  
     
 43  0
     private OrgSearchHelper(Data data){
 44  0
         this.data=data;
 45  0
     }
 46  
 
 47  
     public static OrgSearchHelper wrap (Data data)
 48  
     {
 49  0
         if (data == null)
 50  
         {
 51  0
              return null;
 52  
         }
 53  0
         return new OrgSearchHelper(data);
 54  
     }
 55  
     
 56  
     public Data getData(){
 57  0
         return data;
 58  
     }
 59  
     
 60  
     public void setOrgId(String id){
 61  0
         data.set(Properties.ORG_ID.getKey(), id);
 62  0
     }
 63  
     
 64  
     public String getOrgId() {
 65  0
         return data.get(Properties.ORG_ID.getKey());
 66  
     }
 67  
     
 68  
    
 69  
     
 70  
 
 71  
 }