Coverage Report - org.kuali.student.core.organization.dao.OrganizationDao
 
Classes in this File Line Coverage Branch Coverage Complexity
OrganizationDao
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.dao;
 17  
 
 18  
 import java.util.List;
 19  
 
 20  
 import org.kuali.student.common.dao.CrudDao;
 21  
 import org.kuali.student.common.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  
     public Org getOrgByRelatedOrgAndType(String relatedOrgId, String relationTypeKey);
 54  
 }