All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.opentext.ia.sdk.sip.PrefixDssIdSupplier Maven / Gradle / Ivy

There is a newer version: 12.8.4
Show newest version
/*
 * Copyright (c) 2016-2017 by OpenText Corporation. All Rights Reserved.
 */
package com.opentext.ia.sdk.sip;

import java.util.Objects;
import java.util.function.Supplier;


/**
 * Generate Data Submission Session (DSS) IDs from a fixed prefix and a variable part.
 */
public abstract class PrefixDssIdSupplier implements Supplier {

  private final String prefix;

  /**
   * Create an instance.
   * @param prefix The prefix for all generated DSS IDs
   */
  public PrefixDssIdSupplier(String prefix) {
    this.prefix = Objects.requireNonNull(prefix);
  }

  @Override
  public final String get() {
    return prefix + postfix();
  }

  protected abstract String postfix();

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy