1 | |
package org.kuali.student.common.ui.server.gwt; |
2 | |
|
3 | |
import java.util.List; |
4 | |
import java.util.Map; |
5 | |
|
6 | |
import org.kuali.student.common.assembly.data.Data; |
7 | |
import org.kuali.student.common.assembly.data.Metadata; |
8 | |
import org.kuali.student.common.exceptions.DataValidationErrorException; |
9 | |
import org.kuali.student.common.exceptions.DoesNotExistException; |
10 | |
import org.kuali.student.common.exceptions.InvalidParameterException; |
11 | |
import org.kuali.student.common.exceptions.MissingParameterException; |
12 | |
import org.kuali.student.common.exceptions.OperationFailedException; |
13 | |
import org.kuali.student.common.exceptions.VersionMismatchException; |
14 | |
import org.kuali.student.common.rice.authorization.PermissionType; |
15 | |
import org.kuali.student.common.ui.client.service.DataSaveResult; |
16 | |
import org.kuali.student.common.validation.dto.ValidationResultInfo; |
17 | |
|
18 | |
public interface DataService { |
19 | |
|
20 | |
public Data getData(String dataId) throws OperationFailedException, DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException; |
21 | |
|
22 | |
public Metadata getMetadata(String id, Map<String, String> attributes) throws OperationFailedException; |
23 | |
|
24 | |
public DataSaveResult saveData(Data data) throws OperationFailedException, DataValidationErrorException, VersionMismatchException; |
25 | |
|
26 | |
public List<ValidationResultInfo> validateData(Data data) throws OperationFailedException; |
27 | |
|
28 | |
|
29 | |
public Boolean isAuthorized(PermissionType type, Map<String,String> attributes); |
30 | |
} |