• 如果您觉得本站非常有看点,那么赶紧使用Ctrl+D 收藏吧

Java SettingsManager类的典型用法和代码示例

java 3次浏览

本文整理汇总了Java中com.atlassian.confluence.setup.settings.SettingsManager的典型用法代码示例。如果您正苦于以下问题:Java SettingsManager类的具体用法?Java SettingsManager怎么用?Java SettingsManager使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。

SettingsManager类属于com.atlassian.confluence.setup.settings包,在下文中一共展示了SettingsManager类的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: doGet

点赞 3

import com.atlassian.confluence.setup.settings.SettingsManager; //导入依赖的package包/类
@Override
public void doGet(HttpServletRequest request, HttpServletResponse response)
		throws ServletException, IOException
{
	String username = userManager.getRemoteUsername(request);
	if (username == null || !userManager.isSystemAdmin(username))
	{
		SettingsManager settingsManager = (SettingsManager) ContainerManager.getComponent("settingsManager");
		String baseUrl = settingsManager.getGlobalSettings().getBaseUrl();
		response.sendRedirect(baseUrl);
		return;
	}

	PluginSettings pluginSettings = pluginSettingsFactory.createGlobalSettings();
	String apiUrl = (String) pluginSettings.get("onlyoffice.apiUrl");
	if (apiUrl == null || apiUrl.isEmpty())
	{
		apiUrl = "";
	}

	response.setContentType("text/html;charset=UTF-8");
	PrintWriter writer = response.getWriter();

	writer.write(getTemplate(apiUrl));
}
 

开发者ID:ONLYOFFICE,
项目名称:onlyoffice-confluence,
代码行数:26,
代码来源:OnlyOfficeConfServlet.java

示例2: GetUri

点赞 2

import com.atlassian.confluence.setup.settings.SettingsManager; //导入依赖的package包/类
public static String GetUri(Long attachmentId) throws Exception
{
	SettingsManager settingsManager = (SettingsManager) ContainerManager.getComponent("settingsManager");
	String baseUrl = settingsManager.getGlobalSettings().getBaseUrl();

	String hash = CreateHash(Long.toString(attachmentId));

	String callbackUrl = baseUrl + callbackServler + "?vkey=" + GeneralUtil.urlEncode(hash);
	log.info("callbackUrl " + callbackUrl);

	return callbackUrl;
}
 

开发者ID:ONLYOFFICE,
项目名称:onlyoffice-confluence,
代码行数:13,
代码来源:DocumentManager.java

示例3: getCallbackUrl

点赞 2

import com.atlassian.confluence.setup.settings.SettingsManager; //导入依赖的package包/类
public static String getCallbackUrl(Long attachmentId)
{
	SettingsManager settingsManager = (SettingsManager) ContainerManager.getComponent("settingsManager");
	String baseUrl = settingsManager.getGlobalSettings().getBaseUrl();

	String hash = CreateHash(Long.toString(attachmentId));

	String callbackUrl = baseUrl + callbackServler + "?vkey=" + GeneralUtil.urlEncode(hash);
	log.info("callbackUrl " + callbackUrl);

	return callbackUrl;
}
 

开发者ID:ONLYOFFICE,
项目名称:onlyoffice-confluence,
代码行数:13,
代码来源:DocumentManager.java

示例4: DefaultStyleSheetExtractorImpl

点赞 2

import com.atlassian.confluence.setup.settings.SettingsManager; //导入依赖的package包/类
/**
 * Constructor for IoC
 */
public DefaultStyleSheetExtractorImpl(BootstrapManager bootstrapManager, SettingsManager settingsManager,
    ConfluenceWebResourceManager webResourceManager) {
    this.settingsManager = settingsManager;
    this.bootstrapManager = bootstrapManager;
    this.webResourceManager = webResourceManager;
}
 

开发者ID:testIT-LivingDoc,
项目名称:livingdoc-confluence,
代码行数:10,
代码来源:DefaultStyleSheetExtractorImpl.java

示例5: LivingDocConfluenceManager

点赞 2

import com.atlassian.confluence.setup.settings.SettingsManager; //导入依赖的package包/类
/**
 * Constructor for IoC
 * 
 * Note: The qualifier for {@link PageManager} is needed because
 * there are multiple implementations.
 */
public LivingDocConfluenceManager(LivingDocPersistenceService livingDocServerService, LoginManager loginManager,
                                  ConfluenceUserManager confluenceUserManager, TransactionTemplate transactionTemplate,
                                  SettingsManager settingsManager, AtlassianBootstrapManager bootstrapManager,
                                  ContentPropertyManager contentPropertyManager, ContentPermissionManager contentPermissionManager,
                                  WikiStyleRenderer wikiStyleRenderer, PageManager pageManager,
                                  SpaceManager spaceManager, SpacePermissionManager spacePermissionManager, LabelManager labelManager,
                                  UserAccessor userAccessor, FormatSettingsManager formatSettingsManager, LocaleManager localeManager,
                                  Renderer viewRenderer) {
    this.livingDocPersistenceService = livingDocServerService;
    this.loginManager = loginManager;
    this.confluenceUserManager = confluenceUserManager;
    this.transactionTemplate = transactionTemplate;
    this.settingsManager = settingsManager;
    this.bootstrapManager = bootstrapManager;
    this.contentPropertyManager = contentPropertyManager;
    this.contentPermissionManager = contentPermissionManager;
    this.wikiStyleRenderer = wikiStyleRenderer;
    this.pageManager = pageManager;
    this.spaceManager = spaceManager;
    this.spacePermissionManager = spacePermissionManager;
    this.labelManager = labelManager;
    this.userAccessor = userAccessor;
    this.formatSettingsManager = formatSettingsManager;
    this.localeManager = localeManager;
    this.viewRenderer = viewRenderer;
}
 

开发者ID:testIT-LivingDoc,
项目名称:livingdoc-confluence,
代码行数:33,
代码来源:LivingDocConfluenceManager.java

示例6: ElementRenderer

点赞 2

import com.atlassian.confluence.setup.settings.SettingsManager; //导入依赖的package包/类
@Autowired
public ElementRenderer(@Nonnull WikiStyleRenderer wikiStyleRenderer, @Nonnull SettingsManager settingsManager, @Nonnull UserAccessor userAccessor) {
    _wikiStyleRenderer = wikiStyleRenderer;
    _settingsManager = settingsManager;
    _userAccessor = userAccessor;
    c_instance = this;
}
 

开发者ID:echocat,
项目名称:adam,
代码行数:8,
代码来源:ElementRenderer.java

示例7: getSettingsManager

点赞 2

import com.atlassian.confluence.setup.settings.SettingsManager; //导入依赖的package包/类
public SettingsManager getSettingsManager() {
    return settingsManager;
}
 

开发者ID:testIT-LivingDoc,
项目名称:livingdoc-confluence,
代码行数:4,
代码来源:LivingDocConfluenceManager.java

示例8: ConfluenceUserRestService

点赞 2

import com.atlassian.confluence.setup.settings.SettingsManager; //导入依赖的package包/类
public ConfluenceUserRestService(UserAccessor userAccessor, RightsManagement rightsManagement, SettingsManager settingsManager) {
    this.userAccessor = userAccessor;
    this.rightsManagement = rightsManagement;
    this.settingsManager = settingsManager;
}
 

开发者ID:confluence-fourum,
项目名称:Fourum-Plugin,
代码行数:6,
代码来源:ConfluenceUserRestService.java

示例9: setSettingsManager

点赞 1

import com.atlassian.confluence.setup.settings.SettingsManager; //导入依赖的package包/类
/**
 * <p>Setter for the field <code>settingsManager</code>.</p>
 *
 * @param settingsManager a {@link com.atlassian.confluence.setup.settings.SettingsManager} object.
 */
public void setSettingsManager(SettingsManager settingsManager) {
    this.settingsManager = settingsManager;
}
 

开发者ID:strator-dev,
项目名称:greenpepper,
代码行数:9,
代码来源:GreenPepperServerConfigurationActivator.java


版权声明:本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系管理员进行删除。
喜欢 (0)