Coverage Report - org.kuali.student.core.organization.ui.client.service.OrgRpcService
 
Classes in this File Line Coverage Branch Coverage Complexity
OrgRpcService
N/A
N/A
1
 
 1  
 /**
 2  
  * Copyright 2010 The Kuali Foundation Licensed under the
 3  
  * Educational Community License, Version 2.0 (the "License"); you may
 4  
  * not use this file except in compliance with the License. You may
 5  
  * obtain a copy of the License at
 6  
  *
 7  
  * http://www.osedu.org/licenses/ECL-2.0
 8  
  *
 9  
  * Unless required by applicable law or agreed to in writing,
 10  
  * software distributed under the License is distributed on an "AS IS"
 11  
  * BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
 12  
  * or implied. See the License for the specific language governing
 13  
  * permissions and limitations under the License.
 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.assembly.data.AssemblyException;
 22  
 import org.kuali.student.common.assembly.data.Data;
 23  
 import org.kuali.student.common.dto.StatusInfo;
 24  
 import org.kuali.student.common.ui.client.service.BaseDataOrchestrationRpcService;
 25  
 import org.kuali.student.common.ui.client.service.DataSaveResult;
 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  
 * This class lists all of the methods that the remote calls between client and servlet make, 
 44  
 * most of these will be verbatim from the web service  
 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  
 }