use of org.olat.modules.webFeed.ui.FeedItemDisplayConfig in project openolat by klemens.
the class LiveBlogArtefactHandler method getSpecialMapViewController.
/**
* @see org.olat.portfolio.EPAbstractHandler#getSpecialMapViewController(org.olat.core.gui.UserRequest, org.olat.core.gui.control.WindowControl)
*/
@Override
public Controller getSpecialMapViewController(UserRequest ureq, WindowControl wControl, AbstractArtefact artefact) {
boolean isOwner = ureq.getIdentity().equalsByPersistableKey(artefact.getAuthor());
FeedSecurityCallback callback = new FeedResourceSecurityCallback(ureq.getUserSession().getRoles().isOLATAdmin(), isOwner);
String businessPath = artefact.getBusinessPath();
Long resid = Long.parseLong(businessPath.substring(10, businessPath.length() - 1));
OLATResource ores = OLATResourceManager.getInstance().findResourceable(resid, BlogFileResource.TYPE_NAME);
FeedItemDisplayConfig displayConfig = new FeedItemDisplayConfig(false, true, true);
return BlogUIFactory.getInstance(ureq.getLocale()).createMainController(ores, ureq, wControl, callback, displayConfig);
}
use of org.olat.modules.webFeed.ui.FeedItemDisplayConfig in project OpenOLAT by OpenOLAT.
the class LiveBlogArtefactHandler method getSpecialMapViewController.
/**
* @see org.olat.portfolio.EPAbstractHandler#getSpecialMapViewController(org.olat.core.gui.UserRequest, org.olat.core.gui.control.WindowControl)
*/
@Override
public Controller getSpecialMapViewController(UserRequest ureq, WindowControl wControl, AbstractArtefact artefact) {
boolean isOwner = ureq.getIdentity().equalsByPersistableKey(artefact.getAuthor());
FeedSecurityCallback callback = new FeedResourceSecurityCallback(ureq.getUserSession().getRoles().isOLATAdmin(), isOwner);
String businessPath = artefact.getBusinessPath();
Long resid = Long.parseLong(businessPath.substring(10, businessPath.length() - 1));
OLATResource ores = OLATResourceManager.getInstance().findResourceable(resid, BlogFileResource.TYPE_NAME);
FeedItemDisplayConfig displayConfig = new FeedItemDisplayConfig(false, true, true);
return BlogUIFactory.getInstance(ureq.getLocale()).createMainController(ores, ureq, wControl, callback, displayConfig);
}
use of org.olat.modules.webFeed.ui.FeedItemDisplayConfig in project OpenOLAT by OpenOLAT.
the class LiveBlogArtefactHandler method createDetailsController.
@Override
public Controller createDetailsController(UserRequest ureq, WindowControl wControl, AbstractArtefact artefact, boolean readOnlyMode) {
FeedSecurityCallback callback = new FeedResourceSecurityCallback(false, false);
String businessPath = artefact.getBusinessPath();
Long resid = Long.parseLong(businessPath.substring(10, businessPath.length() - 1));
OLATResource ores = OLATResourceManager.getInstance().findResourceable(resid, BlogFileResource.TYPE_NAME);
FeedItemDisplayConfig displayConfig = new FeedItemDisplayConfig(false, false, readOnlyMode);
FeedMainController detailsController = BlogUIFactory.getInstance(ureq.getLocale()).createMainController(ores, ureq, wControl, callback, displayConfig);
return detailsController;
}
use of org.olat.modules.webFeed.ui.FeedItemDisplayConfig in project openolat by klemens.
the class LiveBlogArtefactHandler method createDetailsController.
@Override
public Controller createDetailsController(UserRequest ureq, WindowControl wControl, AbstractArtefact artefact, boolean readOnlyMode) {
FeedSecurityCallback callback = new FeedResourceSecurityCallback(false, false);
String businessPath = artefact.getBusinessPath();
Long resid = Long.parseLong(businessPath.substring(10, businessPath.length() - 1));
OLATResource ores = OLATResourceManager.getInstance().findResourceable(resid, BlogFileResource.TYPE_NAME);
FeedItemDisplayConfig displayConfig = new FeedItemDisplayConfig(false, false, readOnlyMode);
FeedMainController detailsController = BlogUIFactory.getInstance(ureq.getLocale()).createMainController(ores, ureq, wControl, callback, displayConfig);
return detailsController;
}
Aggregations