use of org.olat.modules.portfolio.BinderDeliveryOptions in project OpenOLAT by OpenOLAT.
the class PortfolioServiceImpl method getDeliveryOptions.
@Override
public BinderDeliveryOptions getDeliveryOptions(OLATResource resource) {
FileResourceManager frm = FileResourceManager.getInstance();
File reFolder = frm.getFileResourceRoot(resource);
File configXml = new File(reFolder, PACKAGE_CONFIG_FILE_NAME);
BinderDeliveryOptions config;
if (configXml.exists()) {
config = (BinderDeliveryOptions) configXstream.fromXML(configXml);
} else {
// set default config
config = BinderDeliveryOptions.defaultOptions();
setDeliveryOptions(resource, config);
}
return config;
}
use of org.olat.modules.portfolio.BinderDeliveryOptions in project openolat by klemens.
the class PortfolioServiceImpl method getDeliveryOptions.
@Override
public BinderDeliveryOptions getDeliveryOptions(OLATResource resource) {
FileResourceManager frm = FileResourceManager.getInstance();
File reFolder = frm.getFileResourceRoot(resource);
File configXml = new File(reFolder, PACKAGE_CONFIG_FILE_NAME);
BinderDeliveryOptions config;
if (configXml.exists()) {
config = (BinderDeliveryOptions) configXstream.fromXML(configXml);
} else {
// set default config
config = BinderDeliveryOptions.defaultOptions();
setDeliveryOptions(resource, config);
}
return config;
}
Aggregations