View Javadoc

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.proposal.dao;
17  
18  import java.util.List;
19  
20  import javax.persistence.EntityManager;
21  
22  import org.kuali.student.common.dao.CrudDao;
23  import org.kuali.student.common.dao.SearchableDao;
24  import org.kuali.student.common.exceptions.DoesNotExistException;
25  import org.kuali.student.core.proposal.entity.Proposal;
26  import org.kuali.student.core.proposal.entity.ProposalOrg;
27  import org.kuali.student.core.proposal.entity.ProposalPerson;
28  import org.kuali.student.core.proposal.entity.ProposalReference;
29  import org.kuali.student.core.proposal.entity.ProposalType;
30  
31  /**
32   * This is a description of what this class does - lindholm don't forget to fill this in.
33   *
34   * @author Kuali Rice Team (kuali-rice@googlegroups.com)
35   *
36   */
37  public interface ProposalDao extends CrudDao, SearchableDao {
38      public List<Proposal> getProposalsByIdList(List<String> idList);
39      public List<Proposal> getProposalsByProposalType(String proposalTypeId) throws DoesNotExistException;
40      public List<Proposal> getProposalsByReference(String referenceTypeId, String referenceId) throws DoesNotExistException;
41      public List<Proposal> getProposalsByState(String proposalState, String proposalTypeId) throws DoesNotExistException;
42      public Proposal getProposalByWorkflowId(String workflowId) throws DoesNotExistException;
43      public List<ProposalType> getProposalTypesForReferenceType(String referenceTypeId) throws DoesNotExistException;
44      public ProposalPerson getProposalPerson(String proposerId);
45      public ProposalOrg getProposalOrg(String orgId);
46      public ProposalReference getObjectReference(String objectReferenceId, String objectReferenceType);
47      public EntityManager getEm();
48  	public List<Proposal> getProposalsByRefernceIds(List<String> referenceIds);
49  }