1 | |
|
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
|
8 | |
|
9 | |
|
10 | |
|
11 | |
|
12 | |
|
13 | |
|
14 | |
|
15 | |
|
16 | |
package org.kuali.student.r2.core.versionmanagement.service; |
17 | |
|
18 | |
import org.kuali.student.r2.common.dto.ContextInfo; |
19 | |
import org.kuali.student.r2.common.exceptions.DoesNotExistException; |
20 | |
import org.kuali.student.r2.common.exceptions.InvalidParameterException; |
21 | |
import org.kuali.student.r2.common.exceptions.MissingParameterException; |
22 | |
import org.kuali.student.r2.common.exceptions.OperationFailedException; |
23 | |
import org.kuali.student.r2.common.exceptions.PermissionDeniedException; |
24 | |
import org.kuali.student.r2.core.versionmanagement.dto.VersionDisplayInfo; |
25 | |
|
26 | |
import java.util.Date; |
27 | |
import java.util.List; |
28 | |
|
29 | |
|
30 | |
|
31 | |
|
32 | |
|
33 | 0 | public class VersionManagementServiceDecorator implements VersionManagementService { |
34 | |
|
35 | |
private VersionManagementService nextDecorator; |
36 | |
|
37 | |
public VersionManagementService getNextDecorator() { |
38 | 0 | return nextDecorator; |
39 | |
} |
40 | |
|
41 | |
public void setNextDecorator(VersionManagementService nextDecorator) { |
42 | 0 | this.nextDecorator = nextDecorator; |
43 | 0 | } |
44 | |
|
45 | |
@Override |
46 | |
public List<VersionDisplayInfo> getVersions(String refObjectUri, String refObjectId, ContextInfo contextInfo) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException { |
47 | 0 | return nextDecorator.getVersions(refObjectUri, refObjectId, contextInfo); |
48 | |
} |
49 | |
|
50 | |
@Override |
51 | |
public VersionDisplayInfo getFirstVersion(String refObjectUri, String refObjectId, ContextInfo contextInfo) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException { |
52 | 0 | return nextDecorator.getFirstVersion(refObjectUri, refObjectId, contextInfo); |
53 | |
} |
54 | |
|
55 | |
@Override |
56 | |
public VersionDisplayInfo getLatestVersion(String refObjectUri, String refObjectId, ContextInfo contextInfo) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException { |
57 | 0 | return nextDecorator.getLatestVersion(refObjectUri, refObjectId, contextInfo); |
58 | |
} |
59 | |
|
60 | |
@Override |
61 | |
public VersionDisplayInfo getCurrentVersion(String refObjectUri, String refObjectId, ContextInfo contextInfo) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException { |
62 | 0 | return nextDecorator.getCurrentVersion(refObjectUri, refObjectId, contextInfo); |
63 | |
} |
64 | |
|
65 | |
@Override |
66 | |
public VersionDisplayInfo getVersionBySequenceNumber(String refObjectUri, String refObjectId, Long sequence, ContextInfo contextInfo) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException { |
67 | 0 | return nextDecorator.getVersionBySequenceNumber(refObjectUri, refObjectId, sequence, contextInfo); |
68 | |
} |
69 | |
|
70 | |
@Override |
71 | |
public VersionDisplayInfo getCurrentVersionOnDate(String refObjectUri, String refObjectId, Date date, ContextInfo contextInfo) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException { |
72 | 0 | return nextDecorator.getCurrentVersionOnDate(refObjectUri, refObjectId, date, contextInfo); |
73 | |
} |
74 | |
|
75 | |
@Override |
76 | |
public List<VersionDisplayInfo> getVersionsInDateRange(String refObjectUri, String refObjectId, Date from, Date to, ContextInfo contextInfo) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException { |
77 | 0 | return nextDecorator.getVersionsInDateRange(refObjectUri, refObjectId, from, to, contextInfo); |
78 | |
} |
79 | |
} |