Search in sources :

Example 1 with VersionType

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");
}
Also used : LifecycleType(org.olat.imsmd.xml.manifest.LifecycleType) VersionType(org.olat.imsmd.xml.manifest.VersionType)

Example 2 with VersionType

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");
}
Also used : LifecycleType(org.olat.imsmd.xml.manifest.LifecycleType) VersionType(org.olat.imsmd.xml.manifest.VersionType)

Aggregations

LifecycleType (org.olat.imsmd.xml.manifest.LifecycleType)2 VersionType (org.olat.imsmd.xml.manifest.VersionType)2