com.opentext.ia.sdk.sip.DateTimeDssIdSupplier Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of infoarchive-sdk-core Show documentation
Show all versions of infoarchive-sdk-core Show documentation
A library that makes it quick and easy to create SIPs in InfoArchive
/*
* Copyright (c) 2016-2017 by OpenText Corporation. All Rights Reserved.
*/
package com.opentext.ia.sdk.sip;
import java.util.Date;
import javax.annotation.Nullable;
import com.opentext.ia.sdk.support.datetime.Dates;
/**
* Generate Data Submission Session (DSS) IDs from a prefix and the current date and time.
*/
public class DateTimeDssIdSupplier extends PrefixDssIdSupplier {
/**
* Create an instance.
* @param prefix The prefix for all generated DSS IDs
*/
public DateTimeDssIdSupplier(String prefix) {
super(prefix);
}
@Nullable
@Override
protected String postfix() {
return Dates.toIso(new Date());
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy