Search in sources :

Example 1 with MediaInformations

use of org.olat.modules.portfolio.MediaInformations in project OpenOLAT by OpenOLAT.

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)

Example 2 with MediaInformations

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

the class BlogEntryMediaHandler method getInformations.

@Override
public MediaInformations getInformations(Object mediaObject) {
    BlogEntryMedia entry = (BlogEntryMedia) mediaObject;
    Item item = entry.getItem();
    return new Informations(item.getTitle(), item.getDescription());
}
Also used : Item(org.olat.modules.webFeed.Item) MediaInformations(org.olat.modules.portfolio.MediaInformations)

Example 3 with MediaInformations

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

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 4 with MediaInformations

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

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 5 with MediaInformations

use of org.olat.modules.portfolio.MediaInformations in project OpenOLAT by OpenOLAT.

the class BlogEntryMediaHandler method getInformations.

@Override
public MediaInformations getInformations(Object mediaObject) {
    BlogEntryMedia entry = (BlogEntryMedia) mediaObject;
    Item item = entry.getItem();
    return new Informations(item.getTitle(), item.getDescription());
}
Also used : Item(org.olat.modules.webFeed.Item) MediaInformations(org.olat.modules.portfolio.MediaInformations)

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