Search in sources :

Example 6 with MediaInformations

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

Example 7 with MediaInformations

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);
}
Also used : MediaInformations(org.olat.modules.portfolio.MediaInformations) MetaTagged(org.olat.core.commons.modules.bc.meta.tagged.MetaTagged) MetaInfo(org.olat.core.commons.modules.bc.meta.MetaInfo)

Example 8 with MediaInformations

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

Example 9 with MediaInformations

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);
}
Also used : MediaInformations(org.olat.modules.portfolio.MediaInformations) MetaTagged(org.olat.core.commons.modules.bc.meta.tagged.MetaTagged) MetaInfo(org.olat.core.commons.modules.bc.meta.MetaInfo)

Example 10 with MediaInformations

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);
}
Also used : MediaInformations(org.olat.modules.portfolio.MediaInformations) MetaTagged(org.olat.core.commons.modules.bc.meta.tagged.MetaTagged) MetaInfo(org.olat.core.commons.modules.bc.meta.MetaInfo)

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