| 1 |  |   | 
  | 2 |  |   | 
  | 3 |  |   | 
  | 4 |  |   | 
  | 5 |  |   | 
  | 6 |  |   | 
  | 7 |  |   | 
  | 8 |  |   | 
  | 9 |  |   | 
  | 10 |  |   | 
  | 11 |  |   | 
  | 12 |  |   | 
  | 13 |  |   | 
  | 14 |  |   | 
  | 15 |  |   | 
  | 16 |  |  package org.kuali.student.core.organization.dao; | 
  | 17 |  |   | 
  | 18 |  |  import java.util.List; | 
  | 19 |  |   | 
  | 20 |  |  import org.kuali.student.core.dao.CrudDao; | 
  | 21 |  |  import org.kuali.student.core.dao.SearchableDao; | 
  | 22 |  |  import org.kuali.student.core.organization.dto.OrgTreeInfo; | 
  | 23 |  |  import org.kuali.student.core.organization.entity.Org; | 
  | 24 |  |  import org.kuali.student.core.organization.entity.OrgOrgRelation; | 
  | 25 |  |  import org.kuali.student.core.organization.entity.OrgOrgRelationType; | 
  | 26 |  |  import org.kuali.student.core.organization.entity.OrgPersonRelation; | 
  | 27 |  |  import org.kuali.student.core.organization.entity.OrgPersonRelationType; | 
  | 28 |  |  import org.kuali.student.core.organization.entity.OrgPositionRestriction; | 
  | 29 |  |   | 
  | 30 |  |  public interface OrganizationDao extends CrudDao, SearchableDao{ | 
  | 31 |  |   | 
  | 32 |  |      public List<OrgPersonRelation> getAllOrgPersonRelationsByPerson(String personId); | 
  | 33 |  |      public List<OrgPersonRelation> getAllOrgPersonRelationsByOrg(String orgId); | 
  | 34 |  |      public List<String> getPersonIdsForOrgByRelationType(String orgId, String orgPersonRelationTypeKey); | 
  | 35 |  |          public List<Org> getOrganizationsByIdList(List<String> orgIdList); | 
  | 36 |  |          public List<OrgOrgRelation> getOrgOrgRelationsByOrg(String orgId); | 
  | 37 |  |          public List<OrgPositionRestriction> getPositionRestrictionsByOrg(String orgId); | 
  | 38 |  |          public List<String> getAllAncestors(String orgId, String orgHierarchy); | 
  | 39 |  |          public List<String> getAllDescendants(String orgId, String orgHierarchy); | 
  | 40 |  |          public List<OrgOrgRelationType> getOrgOrgRelationTypesForOrgHierarchy(String orgHierarchyKey); | 
  | 41 |  |          public boolean validatePositionRestriction(String orgId, String orgPersonRelationTypeKey); | 
  | 42 |  |          public List<OrgPersonRelationType> getOrgPersonRelationTypesForOrgType(String orgTypeKey); | 
  | 43 |  |          public List<OrgOrgRelation> getOrgOrgRelationsByIdList(List<String> orgOrgRelationIdList); | 
  | 44 |  |          public List<OrgPersonRelation> getOrgPersonRelationsByIdList(List<String> orgPersonRelationIdList); | 
  | 45 |  |          public List<OrgPersonRelation> getOrgPersonRelationsByPerson(String personId, String orgId); | 
  | 46 |  |          public List<OrgOrgRelationType> getOrgOrgRelationTypesForOrgType(String orgTypeKey); | 
  | 47 |  |          public List<OrgOrgRelation> getOrgOrgRelationsByRelatedOrg(String relatedOrgId); | 
  | 48 |  |          public List<OrgTreeInfo> getOrgTreeInfo(String rootOrgId, String orgHierarchyId); | 
  | 49 |  |          public boolean hasOrgOrgRelation(String orgId, String comparisonOrgId, String orgOrgRelationTypeKey); | 
  | 50 |  |          public boolean hasOrgPersonRelation(String orgId, String personId, String orgPersonRelationTypeKey); | 
  | 51 |  |          public OrgPositionRestriction getPositionRestrictionByOrgAndPersonRelationTypeKey(String orgId, String orgPersonRelationTypeKey); | 
  | 52 |  |          public Long getOrgMemebershipCount(String orgId); | 
  | 53 |  |  } |