Coverage Report - org.kuali.student.common.assembly.old.AssemblerFilter
 
Classes in this File Line Coverage Branch Coverage Complexity
AssemblerFilter
N/A
N/A
1
AssemblerFilter$AssembleFilterChain
N/A
N/A
1
AssemblerFilter$AssemblerManagerAccessable
N/A
N/A
1
AssemblerFilter$DisassembleFilterChain
N/A
N/A
1
AssemblerFilter$FilterParamWrapper
100%
4/4
N/A
1
AssemblerFilter$GetFilterChain
N/A
N/A
1
AssemblerFilter$GetMetadataFilterChain
N/A
N/A
1
AssemblerFilter$SaveFilterChain
N/A
N/A
1
AssemblerFilter$TypeStateFilterParamWrapper
0%
0/7
N/A
1
AssemblerFilter$ValidateFilterChain
N/A
N/A
1
 
 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.common.assembly.old;
 17  
 
 18  
 import java.util.List;
 19  
 
 20  
 import org.kuali.student.common.assembly.data.AssemblyException;
 21  
 import org.kuali.student.common.assembly.data.Metadata;
 22  
 import org.kuali.student.common.assembly.old.data.SaveResult;
 23  
 import org.kuali.student.common.validation.dto.ValidationResultInfo;
 24  
 
 25  
 @Deprecated
 26  
 public interface AssemblerFilter<TargetType, SourceType> {
 27  
 
 28  
         public void doGetMetadataFilter(TypeStateFilterParamWrapper request, FilterParamWrapper<Metadata> response, GetMetadataFilterChain<TargetType, SourceType> chain) throws AssemblyException;
 29  
 
 30  
         public void doSaveFilter(FilterParamWrapper<TargetType> request, FilterParamWrapper<SaveResult<TargetType>> response, SaveFilterChain<TargetType, SourceType> chain) throws AssemblyException;
 31  
         
 32  
         public void doAssembleFilter(FilterParamWrapper<SourceType> request, FilterParamWrapper<TargetType> response, AssembleFilterChain<TargetType, SourceType> chain) throws AssemblyException;
 33  
         
 34  
         public void doDisassembleFilter(FilterParamWrapper<TargetType> request, FilterParamWrapper<SourceType> response, DisassembleFilterChain<TargetType, SourceType> chain) throws AssemblyException;
 35  
         
 36  
         public void doGetFilter(FilterParamWrapper<String> id, FilterParamWrapper<TargetType> response, GetFilterChain<TargetType, SourceType> chain) throws AssemblyException;
 37  
         
 38  
         public void doValidateFilter(FilterParamWrapper<TargetType> request, FilterParamWrapper<List<ValidationResultInfo>> response,  ValidateFilterChain<TargetType, SourceType> chain) throws AssemblyException;
 39  
         
 40  
         public interface AssemblerManagerAccessable <TargetType, SourceType>{
 41  
                 public AssemblerFilterManager<TargetType, SourceType> getManager();
 42  
         }
 43  
         
 44  
         public interface GetMetadataFilterChain<TargetType, SourceType> extends AssemblerManagerAccessable<TargetType, SourceType>{
 45  
                 public void doGetMetadataFilter(TypeStateFilterParamWrapper request, FilterParamWrapper<Metadata> response) throws AssemblyException;
 46  
         }
 47  
         public interface SaveFilterChain<TargetType, SourceType> extends AssemblerManagerAccessable<TargetType, SourceType>{
 48  
                 public void doSaveFilter(FilterParamWrapper<TargetType> request, FilterParamWrapper<SaveResult<TargetType>> response) throws AssemblyException;
 49  
         }
 50  
         public interface AssembleFilterChain<TargetType, SourceType> extends AssemblerManagerAccessable<TargetType, SourceType>{
 51  
                 public void doAssembleFilter(FilterParamWrapper<SourceType> request, FilterParamWrapper<TargetType> response) throws AssemblyException;
 52  
         }
 53  
         public interface DisassembleFilterChain<TargetType, SourceType> extends AssemblerManagerAccessable<TargetType, SourceType>{
 54  
                 public void doDisassembleFilter(FilterParamWrapper<TargetType> request, FilterParamWrapper<SourceType> response) throws AssemblyException;
 55  
         }
 56  
         public interface GetFilterChain<TargetType, SourceType> extends AssemblerManagerAccessable<TargetType, SourceType>{
 57  
                 public void doGetFilter(FilterParamWrapper<String> id, FilterParamWrapper<TargetType> response) throws AssemblyException;
 58  
         }
 59  
         public interface ValidateFilterChain<TargetType, SourceType> extends AssemblerManagerAccessable<TargetType, SourceType>{
 60  
                 public void doValidateFilter(FilterParamWrapper<TargetType> request, FilterParamWrapper<List<ValidationResultInfo>> response) throws AssemblyException;
 61  
         }
 62  
 
 63  6
         public class FilterParamWrapper<T>{
 64  
                 T value;
 65  
                 public T getValue(){
 66  14
                         return value;
 67  
                 }
 68  
                 public void setValue(T newValue){
 69  8
                         value = newValue;
 70  8
                 }
 71  
         }
 72  0
         public class TypeStateFilterParamWrapper{
 73  
                 String type;
 74  
                 String state;
 75  
                 public String getType() {
 76  0
                         return type;
 77  
                 }
 78  
                 public void setType(String type) {
 79  0
                         this.type = type;
 80  0
                 }
 81  
                 public String getState() {
 82  0
                         return state;
 83  
                 }
 84  
                 public void setState(String state) {
 85  0
                         this.state = state;
 86  0
                 }
 87  
                 
 88  
         }
 89  
 
 90  
         
 91  
 }