\r
package eu.etaxonomy.cdm.api.service;\r
\r
-import java.util.Collection;\r
import java.util.List;\r
-import java.util.Map;\r
-import java.util.UUID;\r
\r
import eu.etaxonomy.cdm.api.service.pager.Pager;\r
import eu.etaxonomy.cdm.model.agent.Address;\r
import eu.etaxonomy.cdm.model.agent.InstitutionalMembership;\r
import eu.etaxonomy.cdm.model.agent.Person;\r
import eu.etaxonomy.cdm.model.agent.Team;\r
-import eu.etaxonomy.cdm.model.agent.TeamOrPersonBase;\r
import eu.etaxonomy.cdm.model.common.UuidAndTitleCache;\r
import eu.etaxonomy.cdm.persistence.query.OrderHint;\r
\r
public interface IAgentService extends IIdentifiableEntityService<AgentBase> {\r
- \r
- // FIXME Candidate for harmonization\r
- public abstract AgentBase getAgentByUuid(UUID uuid);\r
-\r
- // FIXME Candidate for harmonization\r
- public abstract UUID saveAgent(AgentBase agent);\r
- \r
- // FIXME Candidate for harmonization\r
- public abstract Map<UUID, AgentBase> saveAgentAll(Collection<? extends AgentBase> agentCollection);\r
- \r
- // FIXME Candidate for harmonization\r
- public abstract List<AgentBase> findAgentsByTitle(String title);\r
-\r
- // FIXME Candidate for harmonization\r
- public abstract List<AgentBase> getAllAgents(int limit, int start);\r
- \r
- public abstract List<Institution> searchInstitutionByCode(String code);\r
+ \r
+ public List<Institution> searchInstitutionByCode(String code);\r
\r
/**\r
* Return a paged list of the institutional memberships held by a person\r
* \r
* @return a list of <code>UuidAndTitleCache</code> instances\r
*/\r
- public List<UuidAndTitleCache<Person>> getPersonUuidAndNomenclaturalTitle();\r
+ public List<UuidAndTitleCache<Person>> getPersonUuidAndTitleCache();\r
\r
/**\r
- * Returns a list of <code>UuidAndTitleCache</code> containing all <code>TeamOrPersonBase</code> obejcts\r
+ * Returns a list of <code>UuidAndTitleCache</code> containing all <code>TeamOrPersonBase</code> objects\r
+ * with their respective titleCache\r
+ * \r
+ * @return a list of <code>UuidAndTitleCache</code> instances\r
+ */\r
+ public List<UuidAndTitleCache<Team>> getTeamUuidAndTitleCache();\r
+ \r
+ /**\r
+ * Returns a list of <code>UuidAndTitleCache</code> containing all <code>TeamOrPersonBase</code> objects\r
* with their respective nomenclaturalTitle instead of regular titleCache\r
* \r
* @return a list of <code>UuidAndTitleCache</code> instances\r
*/\r
- public List<UuidAndTitleCache<TeamOrPersonBase>> getTeamOrPersonBaseUuidAndNomenclaturalTitle();\r
+ public List<UuidAndTitleCache<Team>> getTeamUuidAndNomenclaturalTitle();\r
+ \r
+ /**\r
+ * Returns a list of <code>UuidAndTitleCache</code> containing all {@link Institution} objects\r
+ * with their respective titleCache\r
+ * \r
+ * @return a list of <code>UuidAndTitleCache</code> instances\r
+ */\r
+ public List<UuidAndTitleCache<Institution>> getInstitutionUuidAndTitleCache();\r
+ \r
}\r