1 | |
|
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
|
8 | |
|
9 | |
|
10 | |
|
11 | |
|
12 | |
|
13 | |
|
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 | |
} |