eu.etaxonomy.cdm.persistence.dao.agent
Interface IAgentDao

All Superinterfaces:
IAnnotatableDao<AgentBase>, ICdmEntityDao<AgentBase>, IIdentifiableDao<AgentBase>, ISearchableDao<AgentBase>, ITitledDao<AgentBase>, IVersionableDao<AgentBase>
All Known Implementing Classes:
AgentDaoImpl

public interface IAgentDao
extends IIdentifiableDao<AgentBase>


Method Summary
 Integer countAddresses(AgentBase agent)
          Return a count of addresses of a given agent
 int countInstitutionalMemberships(Person person)
          Return a count of institutional memberships held by a person
 int countMembers(Team team)
          Return a count of members of a given team
 List<Address> getAddresses(AgentBase agent, Integer pageSize, Integer pageNumber)
          Return a List of addresses of a given agent
 List<InstitutionalMembership> getInstitutionalMemberships(Person person, Integer pageSize, Integer pageNumber)
          Return a List of the institutional memberships of a given person
 List<Institution> getInstitutionByCode(String code)
           
 List<UuidAndTitleCache<Institution>> getInstitutionUuidAndTitleCache()
           
 List<Person> getMembers(Team team, Integer pageSize, Integer pageNumber)
          Return a List of members of a given team
 List<UuidAndTitleCache<Person>> getPersonUuidAndTitleCache()
          Returns a list of UuidAndTitleCache containing all Persons
 List<UuidAndTitleCache<Team>> getTeamUuidAndNomenclaturalTitle()
          Returns a list of UuidAndTitleCache containing all TeamOrPersonBase obejcts with their respective nomenclaturalTitle instead of regular titleCache
 List<UuidAndTitleCache<Team>> getTeamUuidAndTitleCache()
          Returns a list of UuidAndTitleCache containing all TeamOrPersonBase obejcts with their respective titleCache
 
Methods inherited from interface eu.etaxonomy.cdm.persistence.dao.common.IIdentifiableDao
countByReferenceTitle, countByTitle, countRights, countSources, countTitleCache, find, findByReferenceTitle, findByTitle, findOriginalSourceByIdInSource, findTitleCache, getRights, getSources, getUuidAndTitleCache
 
Methods inherited from interface eu.etaxonomy.cdm.persistence.dao.common.IAnnotatableDao
countAnnotations, countMarkers, countMarkers, getAnnotations, getMarkers, groupMarkers
 
Methods inherited from interface eu.etaxonomy.cdm.persistence.dao.common.IVersionableDao
countAuditEvents, countAuditEvents, getAuditEvents, getAuditEvents, getNextAuditEvent, getPreviousAuditEvent
 
Methods inherited from interface eu.etaxonomy.cdm.persistence.dao.common.ICdmEntityDao
clear, count, count, count, delete, exists, findById, findByUuid, flush, getSession, getType, group, list, list, list, list, list, list, list, listByIds, load, load, load, lock, merge, refresh, refresh, replace, rows, save, saveAll, saveOrUpdate, saveOrUpdateAll, update
 
Methods inherited from interface eu.etaxonomy.cdm.persistence.dao.common.ITitledDao
countByTitle, countByTitle, countByTitle, findByTitle, findByTitle, findByTitle, findByTitleAndClass
 
Methods inherited from interface eu.etaxonomy.cdm.persistence.dao.common.ISearchableDao
count, optimizeIndex, purgeIndex, rebuildIndex, search, suggestQuery
 

Method Detail

getInstitutionByCode

List<Institution> getInstitutionByCode(String code)

getInstitutionalMemberships

List<InstitutionalMembership> getInstitutionalMemberships(Person person,
                                                          Integer pageSize,
                                                          Integer pageNumber)
Return a List of the institutional memberships of a given person

Parameters:
person - the person
pageSize - The maximum number of institutional memberships returned (can be null for all memberships)
pageNumber - The offset (in pageSize chunks) from the start of the result set (0 - based)
Returns:
a List of InstitutionalMembership instances

countInstitutionalMemberships

int countInstitutionalMemberships(Person person)
Return a count of institutional memberships held by a person

Parameters:
person - the person
Returns:
a count of InstitutionalMembership instances

getMembers

List<Person> getMembers(Team team,
                        Integer pageSize,
                        Integer pageNumber)
Return a List of members of a given team

Parameters:
team - the team
pageSize - The maximum number of people returned (can be null for all members)
pageNumber - The offset (in pageSize chunks) from the start of the result set (0 - based)
Returns:
a List of Person instances

countMembers

int countMembers(Team team)
Return a count of members of a given team

Parameters:
team - the team
Returns:
a count of Person instances

countAddresses

Integer countAddresses(AgentBase agent)
Return a count of addresses of a given agent

Parameters:
agent - the agent
Returns:
a count of Address instances

getAddresses

List<Address> getAddresses(AgentBase agent,
                           Integer pageSize,
                           Integer pageNumber)
Return a List of addresses of a given agent

Parameters:
agent - the agent
pageSize - The maximum number of addresses returned (can be null for all addresses)
pageNumber - The offset (in pageSize chunks) from the start of the result set (0 - based)
Returns:
a List of Address instances

getPersonUuidAndTitleCache

List<UuidAndTitleCache<Person>> getPersonUuidAndTitleCache()
Returns a list of UuidAndTitleCache containing all Persons

Returns:
a list of UuidAndTitleCache instances

getTeamUuidAndNomenclaturalTitle

List<UuidAndTitleCache<Team>> getTeamUuidAndNomenclaturalTitle()
Returns a list of UuidAndTitleCache containing all TeamOrPersonBase obejcts with their respective nomenclaturalTitle instead of regular titleCache

Returns:
a list of UuidAndTitleCache instances

getTeamUuidAndTitleCache

List<UuidAndTitleCache<Team>> getTeamUuidAndTitleCache()
Returns a list of UuidAndTitleCache containing all TeamOrPersonBase obejcts with their respective titleCache

Returns:
a list of UuidAndTitleCache instances

getInstitutionUuidAndTitleCache

List<UuidAndTitleCache<Institution>> getInstitutionUuidAndTitleCache()
Returns:


Copyright © 2007-2013 EDIT. All Rights Reserved.