public interface IAgentService extends IIdentifiableEntityService<AgentBase>
Modifier and Type | Method and Description |
---|---|
UpdateResult |
convertPerson2Team(Person person)
If possible replaces the given person by a new
Team . |
UpdateResult |
convertPerson2Team(java.util.UUID personUuid) |
UpdateResult |
convertTeam2Person(Team team)
If the given
Team is a single member team all links to the team are redirected to the
single member and the team itself is deleted. |
UpdateResult |
convertTeam2Person(java.util.UUID teamUuid) |
java.util.List<AgentBase> |
findByTitleAndAbbrevTitle(IIdentifiableEntityServiceConfigurator<AgentBase> config) |
Pager<Address> |
getAddresses(AgentBase agent,
java.lang.Integer pageSize,
java.lang.Integer pageNumber)
Return a paged list of the addresses of an agent
|
Pager<InstitutionalMembership> |
getInstitutionalMemberships(Person person,
java.lang.Integer pageSize,
java.lang.Integer pageNumber)
Return a paged list of the institutional memberships held by a person
|
java.util.List<UuidAndTitleCache<AgentBase>> |
getInstitutionUuidAndTitleCache(java.lang.Integer limit,
java.lang.String pattern)
Returns a list of
UuidAndTitleCache containing all Institution objects
with their respective titleCache |
Pager<Person> |
getMembers(Team team,
java.lang.Integer pageSize,
java.lang.Integer pageNumber)
Return a paged list of the members of a team
|
java.util.List<UuidAndTitleCache<Person>> |
getPersonUuidAndTitleCache()
Returns a list of
UuidAndTitleCache containing all Person s |
java.util.List<UuidAndTitleCache<Team>> |
getTeamUuidAndNomenclaturalTitle()
Returns a list of
UuidAndTitleCache containing all TeamOrPersonBase objects
with their respective nomenclaturalTitle instead of regular titleCache |
java.util.List<UuidAndTitleCache<Team>> |
getTeamUuidAndTitleCache()
Returns a list of
UuidAndTitleCache containing all TeamOrPersonBase objects
with their respective titleCache |
java.util.List<UuidAndTitleCache<AgentBase>> |
getUuidAndAbbrevTitleCache(java.lang.Class clazz,
java.lang.Integer limit,
java.lang.String pattern)
Returns a list of
UuidAndTitleCache containing all Institution objects
with their respective NomenclaturalTitleCache |
Pager<AgentBase> |
search(java.lang.Class<? extends AgentBase> clazz,
java.lang.String queryString,
java.lang.Integer pageSize,
java.lang.Integer pageNumber,
java.util.List<OrderHint> orderHints,
java.util.List<java.lang.String> propertyPaths)
Returns a Paged List of AgentBase instances where the default field matches the String queryString (as interpreted by the Lucene QueryParser)
|
java.util.List<Institution> |
searchInstitutionByCode(java.lang.String code) |
countByTitle, countByTitle, countByTitleWithRestrictions, deduplicate, find, findByIdentifier, findByMarker, findByTitle, findByTitle, findByTitleWithRestrictions, findTitleCache, findUuidAndTitleCacheByMarker, getRights, getSourcedObjectByIdInSource, getSources, getTitleCache, getUuidAndTitleCache, getUuidAndTitleCache, listByIdentifier, listByReferenceTitle, listByReferenceTitleWithRestrictions, listByTitle, listByTitleWithRestrictions, replace, updateCaches, updateCaches
countMarkers, getAnnotations, getMarkers, groupMarkers
getNextAuditEvent, getPreviousAuditEvent, isDeletable, pageAuditEvents, pageAuditEvents
clear, count, delete, delete, delete, exists, find, find, find, find, findById, findWithoutFlush, getSession, group, list, list, load, load, load, load, loadByIds, loadByIds, loadWithUpdate, lock, merge, merge, merge, merge, page, page, page, pageByParamWithRestrictions, refresh, refresh, save, save, saveOrUpdate, saveOrUpdate, update
java.util.List<Institution> searchInstitutionByCode(java.lang.String code)
Pager<InstitutionalMembership> getInstitutionalMemberships(Person person, java.lang.Integer pageSize, java.lang.Integer pageNumber)
person
- the personpageSize
- The maximum number of memberships returned (can be null for all memberships)pageNumber
- The offset (in pageSize chunks) from the start of the result set (0 - based)Pager<Person> getMembers(Team team, java.lang.Integer pageSize, java.lang.Integer pageNumber)
team
- the teampageSize
- The maximum number of members returned (can be null for all members)pageNumber
- The offset (in pageSize chunks) from the start of the result set (0 - based)Pager<Address> getAddresses(AgentBase agent, java.lang.Integer pageSize, java.lang.Integer pageNumber)
agent
- the agentpageSize
- The maximum number of addresses returned (can be null for all members)pageNumber
- The offset (in pageSize chunks) from the start of the result set (0 - based)Pager<AgentBase> search(java.lang.Class<? extends AgentBase> clazz, java.lang.String queryString, java.lang.Integer pageSize, java.lang.Integer pageNumber, java.util.List<OrderHint> orderHints, java.util.List<java.lang.String> propertyPaths)
search
in interface IIdentifiableEntityService<AgentBase>
clazz
- filter the results by class (or pass null to return all AgentBase instances)queryString
- pageSize
- The maximum number of agents returned (can be null for all matching agents)pageNumber
- The offset (in pageSize chunks) from the start of the result set (0 - based)orderHints
- Supports path like orderHints.propertyNames
which
include *-to-one properties like createdBy.username or
authorTeam.persistentTitleCachepropertyPaths
- properties to be initializedjava.util.List<UuidAndTitleCache<Person>> getPersonUuidAndTitleCache()
UuidAndTitleCache
containing all Person
sUuidAndTitleCache
instancesjava.util.List<UuidAndTitleCache<Team>> getTeamUuidAndTitleCache()
UuidAndTitleCache
containing all TeamOrPersonBase
objects
with their respective titleCacheUuidAndTitleCache
instancesjava.util.List<UuidAndTitleCache<Team>> getTeamUuidAndNomenclaturalTitle()
UuidAndTitleCache
containing all TeamOrPersonBase
objects
with their respective nomenclaturalTitle instead of regular titleCacheUuidAndTitleCache
instancesjava.util.List<UuidAndTitleCache<AgentBase>> getInstitutionUuidAndTitleCache(java.lang.Integer limit, java.lang.String pattern)
UuidAndTitleCache
containing all Institution
objects
with their respective titleCacheUuidAndTitleCache
instancesjava.util.List<UuidAndTitleCache<AgentBase>> getUuidAndAbbrevTitleCache(java.lang.Class clazz, java.lang.Integer limit, java.lang.String pattern)
UuidAndTitleCache
containing all Institution
objects
with their respective NomenclaturalTitleCacheUuidAndTitleCache
instancesUpdateResult convertTeam2Person(java.util.UUID teamUuid) throws MergeException
teamUuid
- MergeException
UpdateResult convertTeam2Person(Team team) throws MergeException, java.lang.IllegalArgumentException
Team
is a single member team all links to the team are redirected to the
single member and the team itself is deleted.
Team
has no members (protected caches) a new Person
is created
and all links to the team are redirected to the new person and the team itself is deleted.
IllegalArgumentException
is thrown.team
- the team to be convertedjava.lang.IllegalArgumentException
- if team has > 1 membersMergeException
- if anything else goes wrong during mergeUpdateResult convertPerson2Team(java.util.UUID personUuid) throws MergeException, java.lang.IllegalArgumentException
personUuid
- MergeException
java.lang.IllegalArgumentException
UpdateResult convertPerson2Team(Person person) throws MergeException, java.lang.IllegalArgumentException
Team
.
MergeException
is thrown.person
- the Person
to be convertedMergeException
- if anything else goes wrong during mergejava.lang.IllegalArgumentException
java.util.List<AgentBase> findByTitleAndAbbrevTitle(IIdentifiableEntityServiceConfigurator<AgentBase> config)
Copyright © 2007-2020 EDIT. All Rights Reserved.