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