private static org.sakaiproject.section.api.CourseManager getInstance() { if(instance == null) { instance = (org.sakaiproject.section.api.CourseManager)ComponentManager.get( org.sakaiproject.section.api.CourseManager.class); } return instance; }
/** * Returns a URL for the tool_base.css suitable for putting in an href= field. * * @return <code>cssToolBase</code> URL for the tool_base.css */ public static String getCssToolBase() { String skinRepo = ServerConfigurationService.getString("skin.repo"); String cssToolBase = skinRepo + "/tool_base.css"; return cssToolBase; }
/** * Get the base URL for tools with no "border" - (i.e. within an iframe) */ public static String getToolBorderlessBaseUrl() { return ServerConfigurationService.getToolUrl(); }
/** * @inheritDoc */ public boolean containsKey(Object arg0) { return org.sakaiproject.component.cover.ComponentManager.contains((String) arg0); }
/** * Returns the CDN Path or empty string (i.e. never null) */ public static String getCDNPath() { return ServerConfigurationService.getString("portal.cdn.path", ""); }
/** * @inheritDoc */ public boolean containsKey(Object arg0) { return org.sakaiproject.component.cover.ComponentManager.contains((String) arg0); }
/** * @param portal */ public PortalSiteHelperImpl(Portal portal, boolean lookForPageAliases) { this.portal = portal; this.lookForPageAliases = lookForPageAliases; aliasService = ComponentManager.get(AliasService.class); }
/** * Access the identifier for the editor currently in use. This value is * supplied by the ServerConfigurationService and uniquely identifies a * particular editor supported by Sakai. * @return The unique identifier for the editor as specified in * "sakai.properties". */ public static String getWysiwigEditor() { return ServerConfigurationService.getString("wysiwyg.editor"); }
protected static ThreadLocalManager getThreadLocalManager() { if (threadLocalManager == null) { synchronized (LOCK) { threadLocalManager = (ThreadLocalManager) ComponentManager.get(ThreadLocalManager.class); } } return threadLocalManager; }
/** * Get the file browser that should be used when picking a file in CKEditor. * @return The file browser, i.e. fckeditor, elfinder */ public static String getCKEditorFileBrowser() { return ServerConfigurationService.getString("wysiwyg.editor.ckeditor.browser", "elfinder"); }
/** * Construct. */ public SiteEmailNotification() { this(ComponentManager.get(AliasService.class)); }
public RequestFilter() { threadLocalManager = ComponentManager.get(ThreadLocalManager.class); sessionManager = ComponentManager.get(SessionManager.class); serverConfigurationService = ComponentManager.get(ServerConfigurationService.class); rebuildBreakdownService = ComponentManager.get(RebuildBreakdownService.class); }
/** * @inheritDoc */ public Object get(Object arg0) { return org.sakaiproject.component.cover.ComponentManager.get((String) arg0); }
private static org.sakaiproject.section.api.SectionAwareness getInstance() { if(instance == null) { instance = (org.sakaiproject.section.api.SectionAwareness)ComponentManager.get( org.sakaiproject.section.api.SectionAwareness.class); } return instance; }
private static org.sakaiproject.util.api.LinkMigrationHelper getLinkMigrationHelper(){ if(thisLinkMigrationHelper==null){ thisLinkMigrationHelper = (org.sakaiproject.util.api.LinkMigrationHelper) ComponentManager.get(org.sakaiproject.util.api.LinkMigrationHelper.class); } return thisLinkMigrationHelper; }
protected SessionManager getSessionManager() { if (sessionManager == null) { synchronized (LOCK) { sessionManager = (SessionManager) ComponentManager.get(SessionManager.class); } } return sessionManager; }
public BasePortalHandler() { urlFragment = "none"; timeService = ComponentManager.get(TimeService.class); }
/** * @inheritDoc */ public Object get(Object arg0) { return org.sakaiproject.component.cover.ComponentManager.get((String) arg0); }