gpt4 book ai didi

com.xpn.xwiki.api.XWiki.()方法的使用及代码示例

转载 作者:知者 更新时间:2024-03-27 09:31:05 30 4
gpt4 key购买 nike

本文整理了Java中com.xpn.xwiki.api.XWiki.<init>()方法的一些代码示例,展示了XWiki.<init>()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。XWiki.<init>()方法的具体详情如下:
包路径:com.xpn.xwiki.api.XWiki
类名称:XWiki
方法名:<init>

XWiki.<init>介绍

[英]XWiki API Constructor
[中]XWiki API构造函数

代码示例

代码示例来源:origin: com.xpn.xwiki.platform/xwiki-core

public XWikiXmlRpcApiImpl()
{
  this.xwikiContext = getContext();
  this.xwiki = this.xwikiContext.getWiki();
  this.xwikiApi = new com.xpn.xwiki.api.XWiki(this.xwiki, this.xwikiContext);
}

代码示例来源:origin: com.xpn.xwiki.platform/xwiki-rest-server

/**
 * <p>
 * Retrieve the XWiki public API object
 * </p>
 * 
 * @param componentManager The component manager to be used to retrieve the execution context.
 * @return The XWiki public API object.
 * @throws RuntimeException If there was an error while initializing the XWiki public API object.
 */
public static com.xpn.xwiki.api.XWiki getXWikiApi(ComponentManager componentManager)
{
  return new com.xpn.xwiki.api.XWiki(getXWiki(componentManager), getXWikiContext(componentManager));
}

代码示例来源:origin: org.xwiki.platform/xwiki-platform-mailsender

/**
 * Send a Collection of Mails (multiple emails)
 * 
 * @param emails Mail Collection
 * @return True in any case (TODO ?)
 */
public boolean sendMails(Collection<Mail> emails, XWikiContext context) throws MessagingException,
  UnsupportedEncodingException
{
  // TODO: Fix the need to instantiate a new XWiki API object
  com.xpn.xwiki.api.XWiki xwikiApi = new com.xpn.xwiki.api.XWiki(context.getWiki(), context);
  return sendMails(emails, new MailConfiguration(xwikiApi), context);
}

代码示例来源:origin: org.xwiki.platform/xwiki-platform-mailsender

/**
 * Send a single Mail
 * 
 * @param mailItem The Mail to send
 * @return True if the the email has been sent
 */
public boolean sendMail(Mail mailItem, XWikiContext context) throws MessagingException,
  UnsupportedEncodingException
{
  // TODO: Fix the need to instantiate a new XWiki API object
  com.xpn.xwiki.api.XWiki xwikiApi = new com.xpn.xwiki.api.XWiki(context.getWiki(), context);
  return sendMail(mailItem, new MailConfiguration(xwikiApi), context);
}

代码示例来源:origin: com.xpn.xwiki.platform.plugins/xwiki-plugin-mailsender

/**
 * Send a single Mail
 * 
 * @param mailItem The Mail to send
 * @return True if the the email has been sent
 */
public boolean sendMail(Mail mailItem, XWikiContext context) throws MessagingException,
  UnsupportedEncodingException
{
  // TODO: Fix the need to instantiate a new XWiki API object
  com.xpn.xwiki.api.XWiki xwikiApi = new com.xpn.xwiki.api.XWiki(context.getWiki(), context);
  return sendMail(mailItem, new MailConfiguration(xwikiApi), context);
}

代码示例来源:origin: com.xpn.xwiki.platform.plugins/xwiki-plugin-mailsender

/**
 * Send a Collection of Mails (multiple emails)
 * 
 * @param emails Mail Collection
 * @return True in any case (TODO ?)
 */
public boolean sendMails(Collection<Mail> emails, XWikiContext context) throws MessagingException,
  UnsupportedEncodingException
{
  // TODO: Fix the need to instantiate a new XWiki API object
  com.xpn.xwiki.api.XWiki xwikiApi = new com.xpn.xwiki.api.XWiki(context.getWiki(), context);
  return sendMails(emails, new MailConfiguration(xwikiApi), context);
}

代码示例来源:origin: org.xwiki.platform/xwiki-platform-search-lucene-api

return new SearchResults(results, searcher, new com.xpn.xwiki.api.XWiki(context.getWiki(), context), context);

代码示例来源:origin: com.xpn.xwiki.platform/xwiki-core

public Map<String, Object> prepareContext(XWikiContext context)
{
  prepareCache(context);
  Map<String, Object> gcontext = (Map<String, Object>) context.get("gcontext");
  if (gcontext == null) {
    gcontext = new HashMap<String, Object>();
    gcontext.put("xwiki", new XWiki(context.getWiki(), context));
    gcontext.put("request", context.getRequest());
    gcontext.put("response", context.getResponse());
    // We put the com.xpn.xwiki.api.Context object into the context and not the com.xpn.xwiki.XWikiContext one
    // which is for internal use only. In this manner we control what the user can access.
    // "context" binding is deprecated since 1.9.1
    Context apiContext = new Context(context);
    gcontext.put("context", apiContext);
    gcontext.put("xcontext", apiContext);
    gcontext.put("util", new Util(context.getWiki(), context));
    // Put the Groovy Context in the context
    // so that includes can use it..
    context.put("gcontext", gcontext);
    // add XWikiMessageTool to the context
    if (context.get("msg") != null) {
      gcontext.put("msg", context.get("msg"));
    } else {
      context.getWiki().prepareResources(context);
    }
  }
  return gcontext;
}

代码示例来源:origin: com.xpn.xwiki.platform/xwiki-core

vcontext.put("xwiki", new XWiki(xcontext.getWiki(), xcontext));

代码示例来源:origin: com.avane.xwiki.products/xwiki-plugin-chronopolys

vcontext.put("xwiki", new com.xpn.xwiki.api.XWiki(context.getWiki(), context));
vcontext.put("project", project);
vcontext.put("projecturl", project.getURL());

代码示例来源:origin: org.xwiki.platform/xwiki-platform-scheduler-api

data.put("context", stubContext);
data.put("xcontext", stubContext);
data.put("xwiki", new com.xpn.xwiki.api.XWiki(context.getWiki(), stubContext));
data.put("xjob", object);
data.put("services", Utils.getComponent(ScriptServiceManager.class));

代码示例来源:origin: org.xwiki.platform/xwiki-platform-scheduler-api

data.put("xwiki", new com.xpn.xwiki.api.XWiki(getXWikiContext().getWiki(), getXWikiContext()));

代码示例来源:origin: com.xpn.xwiki.platform.plugins/xwiki-plugin-scheduler

data.put("xwiki", new com.xpn.xwiki.api.XWiki(context.getWiki(), stubContext));
data.put("xjob", object);
data.put("services", Utils.getComponent(ScriptServiceManager.class));

代码示例来源:origin: org.xwiki.platform/xwiki-platform-search-lucene-api

XWiki xwikiApi = new XWiki(xwikiContext.getWiki(), xwikiContext);

代码示例来源:origin: com.xpn.xwiki.platform/xwiki-core

scriptContext.setAttribute("xwiki", new XWiki(xcontext.getWiki(), xcontext), ScriptContext.ENGINE_SCOPE);

30 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com