use of org.olat.core.id.context.SiteContextEntryControllerCreator in project OpenOLAT by OpenOLAT.
the class VideoModule method init.
@Override
public void init() {
String enabledObj = getStringPropertyValue(VIDEO_ENABLED, true);
if (StringHelper.containsNonWhitespace(enabledObj)) {
enabled = "true".equals(enabledObj);
}
String enabledCoursenodeObj = getStringPropertyValue(VIDEOCOURSENODE_ENABLED, true);
if (StringHelper.containsNonWhitespace(enabledCoursenodeObj)) {
coursenodeEnabled = "true".equals(enabledCoursenodeObj);
}
String enabledTranscodingObj = getStringPropertyValue(VIDEOTRANSCODING_ENABLED, true);
if (StringHelper.containsNonWhitespace(enabledTranscodingObj)) {
transcodingEnabled = "true".equals(enabledTranscodingObj);
}
String localTranscodingObj = getStringPropertyValue(VIDEOTRANSCODING_LOCAL, true);
if (StringHelper.containsNonWhitespace(localTranscodingObj)) {
transcodingLocal = "true".equals(localTranscodingObj);
}
String localPreferredResolutionObj = getStringPropertyValue(PREFERRED_RESOLUTION, true);
if (StringHelper.containsNonWhitespace(localPreferredResolutionObj)) {
preferredDefaultResolution = getIntPropertyValue(PREFERRED_RESOLUTION);
}
// clean setting of injected config
setVideoTranscodingProfile(this.transcodingProfile);
log.info("video.enabled=" + isEnabled());
log.info("video.coursenode.enabled=" + isCoursenodeEnabled());
log.info("video.transcoding.enabled=" + isTranscodingEnabled());
log.info("video.transcoding.resolutions=" + Arrays.toString(getTranscodingResolutions()));
log.info("video.transcoding.resolution.preferred=" + getPreferredDefaultResolution());
log.info("video.transcoding.taskset.cpuconfig=" + getTranscodingTasksetConfig());
log.info("video.transcoding.local=" + isTranscodingLocal());
log.info("video.transcoding.profile=" + getVideoTranscodingProfile());
// Register video site for activation in top navigation
NewControllerFactory.getInstance().addContextEntryControllerCreator(VideoSite.class.getSimpleName(), new SiteContextEntryControllerCreator(VideoSite.class));
}
use of org.olat.core.id.context.SiteContextEntryControllerCreator in project OpenOLAT by OpenOLAT.
the class RepositoryModule method init.
/**
* @see org.olat.core.configuration.AbstractOLATModule#init()
*/
@Override
public void init() {
// Add controller factory extension point to launch groups
NewControllerFactory.getInstance().addContextEntryControllerCreator(RepositoryEntry.class.getSimpleName(), new CourseSiteContextEntryControllerCreator());
NewControllerFactory.getInstance().addContextEntryControllerCreator(CourseSite.class.getSimpleName(), new CourseSiteContextEntryControllerCreator());
NewControllerFactory.getInstance().addContextEntryControllerCreator(CatalogEntry.class.getSimpleName(), new CatalogContextEntryControllerCreator(this));
NewControllerFactory.getInstance().addContextEntryControllerCreator("Catalog", new CatalogContextEntryControllerCreator(this));
NewControllerFactory.getInstance().addContextEntryControllerCreator("CatalogAdmin", new SiteContextEntryControllerCreator(CatalogAdminSite.class));
NewControllerFactory.getInstance().addContextEntryControllerCreator(RepositorySite.class.getSimpleName(), new SiteContextEntryControllerCreator(RepositorySite.class));
NewControllerFactory.getInstance().addContextEntryControllerCreator(MyCoursesSite.class.getSimpleName(), new SiteContextEntryControllerCreator(MyCoursesSite.class));
updateProperties();
}
use of org.olat.core.id.context.SiteContextEntryControllerCreator in project openolat by klemens.
the class VideoModule method init.
@Override
public void init() {
String enabledObj = getStringPropertyValue(VIDEO_ENABLED, true);
if (StringHelper.containsNonWhitespace(enabledObj)) {
enabled = "true".equals(enabledObj);
}
String enabledCoursenodeObj = getStringPropertyValue(VIDEOCOURSENODE_ENABLED, true);
if (StringHelper.containsNonWhitespace(enabledCoursenodeObj)) {
coursenodeEnabled = "true".equals(enabledCoursenodeObj);
}
String enabledTranscodingObj = getStringPropertyValue(VIDEOTRANSCODING_ENABLED, true);
if (StringHelper.containsNonWhitespace(enabledTranscodingObj)) {
transcodingEnabled = "true".equals(enabledTranscodingObj);
}
String localTranscodingObj = getStringPropertyValue(VIDEOTRANSCODING_LOCAL, true);
if (StringHelper.containsNonWhitespace(localTranscodingObj)) {
transcodingLocal = "true".equals(localTranscodingObj);
}
String localPreferredResolutionObj = getStringPropertyValue(PREFERRED_RESOLUTION, true);
if (StringHelper.containsNonWhitespace(localPreferredResolutionObj)) {
preferredDefaultResolution = getIntPropertyValue(PREFERRED_RESOLUTION);
}
// clean setting of injected config
setVideoTranscodingProfile(this.transcodingProfile);
log.info("video.enabled=" + isEnabled());
log.info("video.coursenode.enabled=" + isCoursenodeEnabled());
log.info("video.transcoding.enabled=" + isTranscodingEnabled());
log.info("video.transcoding.resolutions=" + Arrays.toString(getTranscodingResolutions()));
log.info("video.transcoding.resolution.preferred=" + getPreferredDefaultResolution());
log.info("video.transcoding.taskset.cpuconfig=" + getTranscodingTasksetConfig());
log.info("video.transcoding.local=" + isTranscodingLocal());
log.info("video.transcoding.profile=" + getVideoTranscodingProfile());
// Register video site for activation in top navigation
NewControllerFactory.getInstance().addContextEntryControllerCreator(VideoSite.class.getSimpleName(), new SiteContextEntryControllerCreator(VideoSite.class));
}
use of org.olat.core.id.context.SiteContextEntryControllerCreator in project openolat by klemens.
the class RepositoryModule method init.
/**
* @see org.olat.core.configuration.AbstractOLATModule#init()
*/
@Override
public void init() {
// Add controller factory extension point to launch groups
NewControllerFactory.getInstance().addContextEntryControllerCreator(RepositoryEntry.class.getSimpleName(), new CourseSiteContextEntryControllerCreator());
NewControllerFactory.getInstance().addContextEntryControllerCreator(CourseSite.class.getSimpleName(), new CourseSiteContextEntryControllerCreator());
NewControllerFactory.getInstance().addContextEntryControllerCreator(CatalogEntry.class.getSimpleName(), new CatalogContextEntryControllerCreator(this));
NewControllerFactory.getInstance().addContextEntryControllerCreator("Catalog", new CatalogContextEntryControllerCreator(this));
NewControllerFactory.getInstance().addContextEntryControllerCreator("CatalogAdmin", new SiteContextEntryControllerCreator(CatalogAdminSite.class));
NewControllerFactory.getInstance().addContextEntryControllerCreator(RepositorySite.class.getSimpleName(), new SiteContextEntryControllerCreator(RepositorySite.class));
NewControllerFactory.getInstance().addContextEntryControllerCreator(MyCoursesSite.class.getSimpleName(), new SiteContextEntryControllerCreator(MyCoursesSite.class));
updateProperties();
}
use of org.olat.core.id.context.SiteContextEntryControllerCreator in project openolat by klemens.
the class AdminModule method init.
@Override
public void init() {
initializeSystemTokenProperty(PROPERTY_MAINTENANCE_MESSAGE);
initializeSystemTokenProperty(PROPERTY_SESSION_ADMINISTRATION);
boolean loginBlocked = getBooleanPropertyValue(CONFIG_LOGIN_BLOCKED);
if (loginBlocked) {
AuthHelper.setLoginBlocked(loginBlocked);
}
// Add controller factory extension point to launch groups
NewControllerFactory.getInstance().addContextEntryControllerCreator(User.class.getSimpleName(), new UserAdminContextEntryControllerCreator());
NewControllerFactory.getInstance().addContextEntryControllerCreator("NewIdentityCreated", new UserAdminContextEntryControllerCreator());
NewControllerFactory.getInstance().addContextEntryControllerCreator(AdminSite.class.getSimpleName(), new SiteContextEntryControllerCreator(AdminSite.class));
}
Aggregations