Tabnine Logo
Context.isStaticSet
Code IndexAdd Tabnine to your IDE (free)

How to use
isStaticSet
method
in
com.lyncode.xoai.dataprovider.model.Context

Best Java code snippets using com.lyncode.xoai.dataprovider.model.Context.isStaticSet (Showing top 9 results out of 315)

origin: com.lyncode/xoai-data-provider

public boolean hasSet(String set) {
  return isStaticSet(set);
}
origin: com.lyncode/xoai-data-provider

public ListItemIdentifiersResult getItemIdentifiers(Context context,
                          int offset, int length, String metadataPrefix, String setSpec)
    throws CannotDisseminateFormatException, OAIException {
  List<ScopedFilter> filters = getScopedFilters(context, metadataPrefix);
  if (context.isStaticSet(setSpec)) {
    filters.add(new ScopedFilter(context.getSet(setSpec).getCondition(), Scope.Set));
    return itemRepository.getItemIdentifiers(filters, offset, length);
  } else
    return itemRepository.getItemIdentifiers(filters, offset, length, setSpec);
}
origin: com.lyncode/xoai-data-provider

public ListItemIdentifiersResult getItemIdentifiers(Context context,
                          int offset, int length, String metadataPrefix, String setSpec,
                          Date from, Date until) throws CannotDisseminateFormatException, OAIException {
  List<ScopedFilter> filters = getScopedFilters(context, metadataPrefix);
  if (context.isStaticSet(setSpec)) {
    filters.add(new ScopedFilter(context.getSet(setSpec).getCondition(), Scope.Set));
    return itemRepository
        .getItemIdentifiers(filters, offset, length, from, until);
  } else
    return itemRepository.getItemIdentifiers(filters, offset, length, setSpec,
        from, until);
}
origin: com.lyncode/xoai-data-provider

public ListItemsResults getItemsUntil(Context context, int offset,
                   int length, String metadataPrefix, String setSpec, Date until)
    throws CannotDisseminateFormatException, OAIException {
  List<ScopedFilter> filters = getScopedFilters(context, metadataPrefix);
  if (context.isStaticSet(setSpec)) {
    filters.add(new ScopedFilter(context.getSet(setSpec).getCondition(), Scope.Set));
    return itemRepository.getItemsUntil(filters, offset, length, until);
  } else
    return itemRepository.getItemsUntil(filters, offset, length, setSpec, until);
}
origin: com.lyncode/xoai-data-provider

public ListItemsResults getItems(Context context, int offset,
                 int length, String metadataPrefix, String setSpec, Date from,
                 Date until) throws CannotDisseminateFormatException, OAIException {
  List<ScopedFilter> filters = getScopedFilters(context, metadataPrefix);
  if (context.isStaticSet(setSpec)) {
    filters.add(new ScopedFilter(context.getSet(setSpec).getCondition(), Scope.Set));
    return itemRepository.getItems(filters, offset, length, from, until);
  } else
    return itemRepository.getItems(filters, offset, length, setSpec, from, until);
}
origin: com.lyncode/xoai-data-provider

public ListItemIdentifiersResult getItemIdentifiersUntil(
    Context context, int offset, int length, String metadataPrefix,
    String setSpec, Date until) throws CannotDisseminateFormatException, OAIException {
  List<ScopedFilter> filters = getScopedFilters(context, metadataPrefix);
  if (context.isStaticSet(setSpec)) {
    filters.add(new ScopedFilter(context.getSet(setSpec).getCondition(), Scope.Set));
    return itemRepository.getItemIdentifiersUntil(filters, offset, length, until);
  } else
    return itemRepository.getItemIdentifiersUntil(filters, offset, length,
        setSpec, until);
}
origin: com.lyncode/xoai-data-provider

public ListItemsResults getItems(Context context, int offset,
                 int length, String metadataPrefix, String setSpec)
    throws CannotDisseminateFormatException, OAIException {
  List<ScopedFilter> filters = getScopedFilters(context, metadataPrefix);
  if (context.isStaticSet(setSpec)) {
    filters.add(new ScopedFilter(context.getSet(setSpec).getCondition(), Scope.Set));
    return itemRepository.getItems(filters, offset, length);
  } else
    return itemRepository.getItems(filters, offset, length, setSpec);
}
origin: com.lyncode/xoai-data-provider

public ListItemIdentifiersResult getItemIdentifiers(Context context,
                          int offset, int length, String metadataPrefix, String setSpec,
                          Date from) throws CannotDisseminateFormatException, OAIException {
  List<ScopedFilter> filters = getScopedFilters(context, metadataPrefix);
  if (context.isStaticSet(setSpec)) {
    filters.add(new ScopedFilter(context.getSet(setSpec).getCondition(), Scope.Set));
    return itemRepository.getItemIdentifiers(filters, offset, length, from);
  } else
    return itemRepository.getItemIdentifiers(filters, offset, length, setSpec,
        from);
}
origin: com.lyncode/xoai-data-provider

public ListItemsResults getItems(Context context, int offset,
                 int length, String metadataPrefix, String setSpec, Date from)
    throws CannotDisseminateFormatException, OAIException {
  List<ScopedFilter> filters = getScopedFilters(context, metadataPrefix);
  if (context.isStaticSet(setSpec)) {
    filters.add(new ScopedFilter(context.getSet(setSpec).getCondition(), Scope.Set));
    return itemRepository.getItems(filters, offset, length, from);
  } else
    return itemRepository.getItems(filters, offset, length, setSpec, from);
}
com.lyncode.xoai.dataprovider.modelContextisStaticSet

Popular methods of Context

  • <init>
  • formatForPrefix
  • getCondition
  • hasCondition
  • withMetadataFormat
  • formatFor
  • getMetadataFormats
  • getSet
  • getSets
  • getTransformer
  • hasSet
  • hasTransformer
  • hasSet,
  • hasTransformer

Popular in Java

  • Start an intent from android
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • onCreateOptionsMenu (Activity)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • BitSet (java.util)
    The BitSet class implements abit array [http://en.wikipedia.org/wiki/Bit_array]. Each element is eit
  • Comparator (java.util)
    A Comparator is used to compare two objects to determine their ordering with respect to each other.
  • NoSuchElementException (java.util)
    Thrown when trying to retrieve an element past the end of an Enumeration or Iterator.
  • DataSource (javax.sql)
    An interface for the creation of Connection objects which represent a connection to a database. This
  • XPath (javax.xml.xpath)
    XPath provides access to the XPath evaluation environment and expressions. Evaluation of XPath Expr
  • FileUtils (org.apache.commons.io)
    General file manipulation utilities. Facilities are provided in the following areas: * writing to a
  • Top 12 Jupyter Notebook extensions
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now