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.rice.authorization.PermissionType; |
14 | |
import org.kuali.student.common.ui.client.service.DataSaveResult; |
15 | |
import org.kuali.student.common.validation.dto.ValidationResultInfo; |
16 | |
|
17 | |
public interface DataService { |
18 | |
|
19 | |
public Data getData(String dataId) throws OperationFailedException, DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException; |
20 | |
|
21 | |
public Metadata getMetadata(String id, Map<String, String> attributes) throws OperationFailedException; |
22 | |
|
23 | |
public DataSaveResult saveData(Data data) throws OperationFailedException, DataValidationErrorException; |
24 | |
|
25 | |
public List<ValidationResultInfo> validateData(Data data) throws OperationFailedException; |
26 | |
|
27 | |
|
28 | |
public Boolean isAuthorized(PermissionType type, Map<String,String> attributes); |
29 | |
} |