Search in sources :

Example 6 with SiteContextEntryControllerCreator

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));
}
Also used : VideoSite(org.olat.modules.video.site.VideoSite) SiteContextEntryControllerCreator(org.olat.core.id.context.SiteContextEntryControllerCreator)

Example 7 with SiteContextEntryControllerCreator

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();
}
Also used : CatalogAdminSite(org.olat.repository.site.CatalogAdminSite) MyCoursesSite(org.olat.repository.site.MyCoursesSite) RepositorySite(org.olat.repository.site.RepositorySite) CourseSiteContextEntryControllerCreator(org.olat.course.site.CourseSiteContextEntryControllerCreator) SiteContextEntryControllerCreator(org.olat.core.id.context.SiteContextEntryControllerCreator) CourseSiteContextEntryControllerCreator(org.olat.course.site.CourseSiteContextEntryControllerCreator) CourseSite(org.olat.course.site.CourseSite)

Example 8 with SiteContextEntryControllerCreator

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));
}
Also used : VideoSite(org.olat.modules.video.site.VideoSite) SiteContextEntryControllerCreator(org.olat.core.id.context.SiteContextEntryControllerCreator)

Example 9 with SiteContextEntryControllerCreator

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();
}
Also used : CatalogAdminSite(org.olat.repository.site.CatalogAdminSite) MyCoursesSite(org.olat.repository.site.MyCoursesSite) RepositorySite(org.olat.repository.site.RepositorySite) CourseSiteContextEntryControllerCreator(org.olat.course.site.CourseSiteContextEntryControllerCreator) SiteContextEntryControllerCreator(org.olat.core.id.context.SiteContextEntryControllerCreator) CourseSiteContextEntryControllerCreator(org.olat.course.site.CourseSiteContextEntryControllerCreator) CourseSite(org.olat.course.site.CourseSite)

Example 10 with SiteContextEntryControllerCreator

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));
}
Also used : User(org.olat.core.id.User) UserAdminContextEntryControllerCreator(org.olat.admin.user.UserAdminContextEntryControllerCreator) AdminSite(org.olat.admin.site.AdminSite) SiteContextEntryControllerCreator(org.olat.core.id.context.SiteContextEntryControllerCreator)

Aggregations

SiteContextEntryControllerCreator (org.olat.core.id.context.SiteContextEntryControllerCreator)10 AdminSite (org.olat.admin.site.AdminSite)2 UserAdminContextEntryControllerCreator (org.olat.admin.user.UserAdminContextEntryControllerCreator)2 User (org.olat.core.id.User)2 CourseSite (org.olat.course.site.CourseSite)2 CourseSiteContextEntryControllerCreator (org.olat.course.site.CourseSiteContextEntryControllerCreator)2 GroupsSite (org.olat.group.site.GroupsSite)2 QuestionPoolSite (org.olat.modules.qpool.site.QuestionPoolSite)2 VideoSite (org.olat.modules.video.site.VideoSite)2 CatalogAdminSite (org.olat.repository.site.CatalogAdminSite)2 MyCoursesSite (org.olat.repository.site.MyCoursesSite)2 RepositorySite (org.olat.repository.site.RepositorySite)2