use of org.olat.imsmd.xml.manifest.VersionType in project openolat by klemens.
the class ManifestMetadataBuilder method setLifecycleVersion.
public void setLifecycleVersion(String version) {
LifecycleType lifecycle = getLifecycle(true);
VersionType type = getFromAny(VersionType.class, lifecycle.getContent());
if (type == null) {
type = mdObjectFactory.createVersionType();
lifecycle.getContent().add(mdObjectFactory.createVersion(type));
}
createOrUpdateFirstLangstring(type.getLangstring(), version, "en");
}
use of org.olat.imsmd.xml.manifest.VersionType in project OpenOLAT by OpenOLAT.
the class ManifestMetadataBuilder method setLifecycleVersion.
public void setLifecycleVersion(String version) {
LifecycleType lifecycle = getLifecycle(true);
VersionType type = getFromAny(VersionType.class, lifecycle.getContent());
if (type == null) {
type = mdObjectFactory.createVersionType();
lifecycle.getContent().add(mdObjectFactory.createVersion(type));
}
createOrUpdateFirstLangstring(type.getLangstring(), version, "en");
}
Aggregations