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

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

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

origin: com.lyncode/xoai-data-provider

public boolean exists(Context context, String setSpec) {
  List<Set> statics = context.getSets();
  for (Set set : statics)
    if (set.getSpec().equals(set))
      return true;
  return setRepository.exists(setSpec);
}
origin: com.lyncode/xoai-data-provider

  public List<Set> getSets(Context context, FilterResolver resolver) {
    List<Set> result = new ArrayList<Set>();
    for (Set set : context.getSets())
      if (set.getCondition().getFilter(resolver).isItemShown(item))
        result.add(set);

    result.addAll(item.getSets());

    return result;
  }
}
origin: com.lyncode/xoai-data-provider

public ListSetsResult getSets(Context context, int offset, int length) {
  List<Set> results = new ArrayList<Set>();
  List<Set> statics = context.getSets();
  if (offset < statics.size()) {
    log.debug("Offset less than static sets size");
origin: com.lyncode/xoai-data-provider

private Header createHeader(OAICompiledRequest parameters,
                ItemIdentifier itemIdentifier) throws BadArgumentException,
    OAIException,
    NoMetadataFormatsException {
  MetadataFormat format = getContext().formatForPrefix(parameters
      .getMetadataPrefix());
  if (!itemIdentifier.isDeleted() && !canDisseminate(itemIdentifier, format))
    throw new InternalOAIException("The item repository is currently providing items which cannot be disseminated with format "+format.getPrefix());
  Header header = new Header();
  header.withDatestamp(itemIdentifier.getDatestamp());
  header.withIdentifier(itemIdentifier.getIdentifier());
  if (itemIdentifier.isDeleted())
    header.withStatus(Header.Status.DELETED);
  for (Set set : getContext().getSets())
    if (set.getCondition().getFilter(getRepository().getFilterResolver()).isItemShown(itemIdentifier))
      header.withSetSpec(set.getSpec());
  for (Set set : itemIdentifier.getSets())
    header.withSetSpec(set.getSpec());
  return header;
}
origin: com.lyncode/xoai-data-provider

header.withDatestamp(item.getDatestamp());
for (Set set : getContext().getSets())
  if (set.getCondition().getFilter(getRepository().getFilterResolver()).isItemShown(item))
    header.withSetSpec(set.getSpec());
com.lyncode.xoai.dataprovider.modelContextgetSets

Popular methods of Context

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

Popular in Java

  • Finding current android device location
  • getExternalFilesDir (Context)
  • putExtra (Intent)
  • getApplicationContext (Context)
  • ServerSocket (java.net)
    This class represents a server-side socket that waits for incoming client connections. A ServerSocke
  • Arrays (java.util)
    This class contains various methods for manipulating arrays (such as sorting and searching). This cl
  • ConcurrentHashMap (java.util.concurrent)
    A plug-in replacement for JDK1.5 java.util.concurrent.ConcurrentHashMap. This version is based on or
  • SSLHandshakeException (javax.net.ssl)
    The exception that is thrown when a handshake could not be completed successfully.
  • HttpServlet (javax.servlet.http)
    Provides an abstract class to be subclassed to create an HTTP servlet suitable for a Web site. A sub
  • Options (org.apache.commons.cli)
    Main entry-point into the library. Options represents a collection of Option objects, which describ
  • Best IntelliJ plugins
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