use of org.olat.modules.portfolio.MediaInformations in project OpenOLAT by OpenOLAT.
the class WikiMediaHandler method getInformations.
@Override
public MediaInformations getInformations(Object mediaObject) {
String title = null;
if (mediaObject instanceof WikiPage) {
WikiPage page = (WikiPage) mediaObject;
title = page.getPageName();
}
return new Informations(title, null);
}
use of org.olat.modules.portfolio.MediaInformations in project OpenOLAT by OpenOLAT.
the class FileHandler method getInformations.
@Override
public MediaInformations getInformations(Object mediaObject) {
String title = null;
String description = null;
if (mediaObject instanceof MetaTagged) {
MetaInfo meta = ((MetaTagged) mediaObject).getMetaInfo();
title = meta.getTitle();
description = meta.getComment();
}
return new Informations(title, description);
}
use of org.olat.modules.portfolio.MediaInformations in project OpenOLAT by OpenOLAT.
the class ForumMediaHandler method getInformations.
@Override
public MediaInformations getInformations(Object mediaObject) {
String title = null;
if (mediaObject instanceof MessageLight) {
MessageLight messageLight = (MessageLight) mediaObject;
title = messageLight.getTitle();
}
return new Informations(title, null);
}
use of org.olat.modules.portfolio.MediaInformations in project OpenOLAT by OpenOLAT.
the class ImageHandler method getInformations.
@Override
public MediaInformations getInformations(Object mediaObject) {
String title = null;
String description = null;
if (mediaObject instanceof MetaTagged) {
MetaInfo meta = ((MetaTagged) mediaObject).getMetaInfo();
title = meta.getTitle();
description = meta.getComment();
}
return new Informations(title, description);
}
use of org.olat.modules.portfolio.MediaInformations in project openolat by klemens.
the class VideoHandler method getInformations.
@Override
public MediaInformations getInformations(Object mediaObject) {
String title = null;
String description = null;
if (mediaObject instanceof MetaTagged) {
MetaInfo meta = ((MetaTagged) mediaObject).getMetaInfo();
title = meta.getTitle();
description = meta.getComment();
}
return new Informations(title, description);
}
Aggregations