use of org.olat.imscp.xml.manifest.MetadataType in project OpenOLAT by OpenOLAT.
the class ManifestBuilder method getResourceBuilderByHref.
public ManifestMetadataBuilder getResourceBuilderByHref(String href) {
ResourceType resourceType = getResourceTypeByHref(href);
MetadataType metadata = getMetadata(resourceType);
return metadata == null ? null : new ManifestMetadataBuilder(metadata);
}
use of org.olat.imscp.xml.manifest.MetadataType in project openolat by klemens.
the class ManifestBuilder method getMetadata.
public MetadataType getMetadata(ResourceType resourceType) {
if (resourceType == null)
return null;
MetadataType metadata = resourceType.getMetadata();
if (metadata == null) {
metadata = cpObjectFactory.createMetadataType();
resourceType.setMetadata(metadata);
}
return metadata;
}
use of org.olat.imscp.xml.manifest.MetadataType in project OpenOLAT by OpenOLAT.
the class ManifestBuilder method getResourceBuilderByIdentifier.
public ManifestMetadataBuilder getResourceBuilderByIdentifier(String resourceId) {
ResourceType resourceType = getResourceTypeByIdentifier(resourceId);
MetadataType metadata = getMetadata(resourceType);
return metadata == null ? null : new ManifestMetadataBuilder(metadata);
}
use of org.olat.imscp.xml.manifest.MetadataType in project OpenOLAT by OpenOLAT.
the class ManifestBuilder method getMetadata.
public MetadataType getMetadata(ResourceType resourceType) {
if (resourceType == null)
return null;
MetadataType metadata = resourceType.getMetadata();
if (metadata == null) {
metadata = cpObjectFactory.createMetadataType();
resourceType.setMetadata(metadata);
}
return metadata;
}
use of org.olat.imscp.xml.manifest.MetadataType in project OpenOLAT by OpenOLAT.
the class ManifestBuilder method getMetadataType.
public MetadataType getMetadataType(ResourceType resource, boolean create) {
if (resource == null)
return null;
MetadataType metadata = resource.getMetadata();
if (metadata == null && create) {
metadata = cpObjectFactory.createMetadataType();
resource.setMetadata(metadata);
}
return metadata;
}
Aggregations