use of org.olat.imsmd.xml.manifest.CopyrightandotherrestrictionsType in project OpenOLAT by OpenOLAT.
the class ManifestMetadataBuilder method setLicense.
public void setLicense(String license) {
RightsType rights = getRights(true);
CopyrightandotherrestrictionsType type = getFromAny(CopyrightandotherrestrictionsType.class, rights.getContent());
if (type == null) {
type = mdObjectFactory.createCopyrightandotherrestrictionsType();
rights.getContent().add(mdObjectFactory.createCopyrightandotherrestrictions(type));
}
SourceType sourceType = mdObjectFactory.createSourceType();
sourceType.setLangstring(createString("https://www.openolat.org", "en"));
ValueType valueType = mdObjectFactory.createValueType();
valueType.setLangstring(createString(license, "en"));
type.setSource(sourceType);
type.setValue(valueType);
}
use of org.olat.imsmd.xml.manifest.CopyrightandotherrestrictionsType in project openolat by klemens.
the class ManifestMetadataBuilder method setLicense.
public void setLicense(String license) {
RightsType rights = getRights(true);
CopyrightandotherrestrictionsType type = getFromAny(CopyrightandotherrestrictionsType.class, rights.getContent());
if (type == null) {
type = mdObjectFactory.createCopyrightandotherrestrictionsType();
rights.getContent().add(mdObjectFactory.createCopyrightandotherrestrictions(type));
}
SourceType sourceType = mdObjectFactory.createSourceType();
sourceType.setLangstring(createString("https://www.openolat.org", "en"));
ValueType valueType = mdObjectFactory.createValueType();
valueType.setLangstring(createString(license, "en"));
type.setSource(sourceType);
type.setValue(valueType);
}
Aggregations