Search in sources :

Example 11 with MediaInformations

use of org.olat.modules.portfolio.MediaInformations in project openolat by klemens.

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);
}
Also used : MediaInformations(org.olat.modules.portfolio.MediaInformations) WikiPage(org.olat.modules.wiki.WikiPage)

Example 12 with MediaInformations

use of org.olat.modules.portfolio.MediaInformations in project openolat by klemens.

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);
}
Also used : MediaInformations(org.olat.modules.portfolio.MediaInformations) MessageLight(org.olat.modules.fo.MessageLight)

Aggregations

MediaInformations (org.olat.modules.portfolio.MediaInformations)12 MetaInfo (org.olat.core.commons.modules.bc.meta.MetaInfo)6 MetaTagged (org.olat.core.commons.modules.bc.meta.tagged.MetaTagged)6 MessageLight (org.olat.modules.fo.MessageLight)2 Item (org.olat.modules.webFeed.Item)2 WikiPage (org.olat.modules.wiki.WikiPage)2