1 | |
|
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
|
8 | |
|
9 | |
|
10 | |
|
11 | |
|
12 | |
|
13 | |
|
14 | |
|
15 | |
|
16 | |
package org.kuali.student.core.organization.ui.client.service; |
17 | |
|
18 | |
import java.util.List; |
19 | |
import java.util.Map; |
20 | |
|
21 | |
import org.kuali.student.common.ui.client.service.BaseDataOrchestrationRpcService; |
22 | |
import org.kuali.student.common.ui.client.service.DataSaveResult; |
23 | |
import org.kuali.student.core.assembly.data.AssemblyException; |
24 | |
import org.kuali.student.core.assembly.data.Data; |
25 | |
import org.kuali.student.core.dto.StatusInfo; |
26 | |
import org.kuali.student.core.organization.dto.OrgHierarchyInfo; |
27 | |
import org.kuali.student.core.organization.dto.OrgInfo; |
28 | |
import org.kuali.student.core.organization.dto.OrgOrgRelationInfo; |
29 | |
import org.kuali.student.core.organization.dto.OrgOrgRelationTypeInfo; |
30 | |
import org.kuali.student.core.organization.dto.OrgPersonRelationInfo; |
31 | |
import org.kuali.student.core.organization.dto.OrgPersonRelationTypeInfo; |
32 | |
import org.kuali.student.core.organization.dto.OrgPositionRestrictionInfo; |
33 | |
import org.kuali.student.core.organization.dto.OrgTreeInfo; |
34 | |
import org.kuali.student.core.organization.dto.OrgTypeInfo; |
35 | |
import org.kuali.student.core.organization.ui.client.mvc.model.MembershipInfo; |
36 | |
import org.kuali.student.core.organization.ui.client.mvc.model.OrgPositionPersonRelationInfo; |
37 | |
import org.kuali.student.core.organization.ui.client.mvc.model.SectionConfigInfo; |
38 | |
|
39 | |
import com.google.gwt.user.client.rpc.RemoteService; |
40 | |
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath; |
41 | |
|
42 | |
|
43 | |
|
44 | |
|
45 | |
|
46 | |
@RemoteServiceRelativePath("rpcservices/OrgRpcService") |
47 | |
public interface OrgRpcService extends RemoteService, BaseDataOrchestrationRpcService { |
48 | |
|
49 | |
public OrgInfo createOrganization(OrgInfo orgInfo); |
50 | |
public OrgOrgRelationInfo createOrgOrgRelation(OrgOrgRelationInfo orgOrgRelationInfo); |
51 | |
|
52 | |
public List<OrgHierarchyInfo> getOrgHierarchies(); |
53 | |
public OrgInfo getOrganization(String orgId); |
54 | |
public List<OrgInfo> getOrganizationsByIdList(List<String> orgIdList); |
55 | |
public List<OrgOrgRelationInfo> getOrgOrgRelationsByOrg(String orgId); |
56 | |
public List<OrgOrgRelationInfo> getOrgOrgRelationsByRelatedOrg(String orgId); |
57 | |
public List<String> getAllDescendants(String orgId, String orgHierarchy); |
58 | |
public List<OrgOrgRelationTypeInfo> getOrgOrgRelationTypes(); |
59 | |
public OrgOrgRelationTypeInfo getOrgOrgRelationType(String orgOrgRelationTypeKey); |
60 | |
public List<OrgPersonRelationTypeInfo> getOrgPersonRelationTypes(); |
61 | |
public List<OrgTypeInfo> getOrgTypes(); |
62 | |
public List<OrgPositionRestrictionInfo> getPositionRestrictionsByOrg(String orgId); |
63 | |
|
64 | |
public OrgPositionRestrictionInfo addPositionRestrictionToOrg(OrgPositionRestrictionInfo orgPositionRestrictionInfo); |
65 | |
public List<OrgTreeInfo> getOrgDisplayTree(String orgId, String orgHierarchy, int maxLevels); |
66 | |
|
67 | |
public OrgInfo updateOrganization(OrgInfo orgInfo); |
68 | |
public OrgPositionRestrictionInfo updatePositionRestrictionForOrg(OrgPositionRestrictionInfo orgPositionRestrictionInfo); |
69 | |
public OrgOrgRelationInfo updateOrgOrgRelation(OrgOrgRelationInfo orgOrgRelationInfo); |
70 | |
|
71 | |
public OrgPersonRelationInfo createOrgPersonRelation(String orgId, String personId, String orgPersonRelationTypeKey, OrgPersonRelationInfo orgPersonRelationInfo); |
72 | |
public OrgPersonRelationInfo updateOrgPersonRelation(String orgPersonRelationId, OrgPersonRelationInfo orgPersonRelationInfo); |
73 | |
public StatusInfo removeOrgPersonRelation(String orgPersonRelationId); |
74 | |
public List<OrgPersonRelationTypeInfo> getOrgPersonRelationTypesForOrgType(String orgTypeKey); |
75 | |
public List<OrgPersonRelationInfo> getOrgPersonRelationsByOrg(String orgId); |
76 | |
public StatusInfo removeOrgOrgRelation(String orgOrgRelationId); |
77 | |
public StatusInfo removePositionRestrictionFromOrg(String orgId, String orgPersonRelationTypeKey); |
78 | |
public DataSaveResult saveOrgProposal(Data proposal) throws AssemblyException, org.kuali.student.common.ui.client.service.exceptions.OperationFailedException; |
79 | |
public SectionConfigInfo getSectionConfig() throws org.kuali.student.common.ui.client.service.exceptions.OperationFailedException; |
80 | |
public Data fetchOrg(String orgId); |
81 | |
public List<OrgPositionPersonRelationInfo> getOrgPositionPersonRelation(String orgId); |
82 | |
public Map<String, MembershipInfo> getNamesForPersonIds(List<String> personIds); |
83 | |
|
84 | |
} |