@Test public void testVerbIdentify() throws Exception { final OaiPmhRepository repo = repo(null, Granularity.DAY); runChecks(OaiPmhConstants.VERB_IDENTIFY, repo.selectVerb(params("Identify", null, null, null, null, null)), some(IsValid), list(hasXPath(" }
public XmlGen selectVerb(Params p) { if (p.isVerbListIdentifiers()) { return handleListIdentifiers(p); } else if (p.isVerbListRecords()) { return handleListRecords(p); } else if (p.isVerbGetRecord()) { return handleGetRecord(p); } else if (p.isVerbIdentify()) { return handleIdentify(p); } else if (p.isVerbListMetadataFormats()) { return handleListMetadataFormats(p); } else if (p.isVerbListSets()) { return handleListSets(p); } else { return createErrorResponse( "badVerb", Option.<String>none(), p.getRepositoryUrl(), "Illegal OAI verb or verb is missing."); } }
OaiPmhRepository { public XmlGen selectVerb(Params p) { if (p.isVerbListIdentifiers()) { return handleListIdentifiers(p); } else if (p.isVerbListRecords()) { return handleListRecords(p); } else if (p.isVerbGetRecord()) { return handleGetRecord(p); } else if (p.isVerbIdentify()) { return handleIdentify(p); } else if (p.isVerbListMetadataFormats()) { return handleListMetadataFormats(p); } else if (p.isVerbListSets()) { return handleListSets(p); } else { return createErrorResponse( "badVerb", Option.<String>none(), p.getRepositoryUrl(), "Illegal OAI verb or verb is missing."); } } }
OaiPmhRepository { public XmlGen selectVerb(Params p) { if (p.isVerbListIdentifiers()) { return handleListIdentifiers(p); } else if (p.isVerbListRecords()) { return handleListRecords(p); } else if (p.isVerbGetRecord()) { return handleGetRecord(p); } else if (p.isVerbIdentify()) { return handleIdentify(p); } else if (p.isVerbListMetadataFormats()) { return handleListMetadataFormats(p); } else if (p.isVerbListSets()) { return handleListSets(p); } else { return createErrorResponse( "badVerb", Option.<String>none(), p.getRepositoryUrl(), "Illegal OAI verb or verb is missing."); } }  }
OaiPmhRepository { public XmlGen selectVerb(Params p) { if (p.isVerbListIdentifiers()) { return handleListIdentifiers(p); } else if (p.isVerbListRecords()) { return handleListRecords(p); } else if (p.isVerbGetRecord()) { return handleGetRecord(p); } else if (p.isVerbIdentify()) { return handleIdentify(p); } else if (p.isVerbListMetadataFormats()) { return handleListMetadataFormats(p); } else if (p.isVerbListSets()) { return handleListSets(p); } else { return createErrorResponse( "badVerb", Option.<String>none(), p.getRepositoryUrl(), "Illegal OAI verb or verb is missing."); } }  abstract Granularity getRepositoryTimeGranularity(); abstract String getRepositoryName(); abstract String getRepositoryId(); abstract OaiPmhDatabase getPersistence(); abstract String getAdminEmail(); abstract String saveQuery(ResumableQuery query); abstract Option<ResumableQuery> getSavedQuery(String resumptionToken); abstract int getResultLimit(); abstract List<MetadataProvider> getRepositoryMetadataProviders(); Date currentDate(); final List<MetadataProvider> getMetadataProviders(); void addItem(MediaPackage mp); XmlGen selectVerb(Params p); Option<MetadataProvider> getMetadataProvider(final String metadataPrefix); static Date granulate(Granularity g, Date d); }
OaiPmhRepository { public XmlGen selectVerb(Params p) { if (p.isVerbListIdentifiers()) { return handleListIdentifiers(p); } else if (p.isVerbListRecords()) { return handleListRecords(p); } else if (p.isVerbGetRecord()) { return handleGetRecord(p); } else if (p.isVerbIdentify()) { return handleIdentify(p); } else if (p.isVerbListMetadataFormats()) { return handleListMetadataFormats(p); } else if (p.isVerbListSets()) { return handleListSets(p); } else { return createErrorResponse( "badVerb", Option.<String>none(), p.getRepositoryUrl(), "Illegal OAI verb or verb is missing."); } }  abstract Granularity getRepositoryTimeGranularity(); abstract String getRepositoryName(); abstract String getRepositoryId(); abstract OaiPmhDatabase getPersistence(); abstract String getAdminEmail(); abstract String saveQuery(ResumableQuery query); abstract Option<ResumableQuery> getSavedQuery(String resumptionToken); abstract int getResultLimit(); abstract List<MetadataProvider> getRepositoryMetadataProviders(); Date currentDate(); final List<MetadataProvider> getMetadataProviders(); void addItem(MediaPackage mp); XmlGen selectVerb(Params p); Option<MetadataProvider> getMetadataProvider(final String metadataPrefix); static Date granulate(Granularity g, Date d);  }