本文整理了Java中org.sakaiproject.tool.api.Placement.getPlacementConfig()
方法的一些代码示例,展示了Placement.getPlacementConfig()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Placement.getPlacementConfig()
方法的具体详情如下:
包路径:org.sakaiproject.tool.api.Placement
类名称:Placement
方法名:getPlacementConfig
[英]Access the configuration properties for this tool placement - not including those from the tool registration.
[中]访问此刀具放置的配置属性,不包括刀具注册中的配置属性。
代码示例来源:origin: org.sakaiproject.portal/sakai-portal-render-impl
public SakaiPortletConfig(Placement placement)
{
if (placement == null)
{
return;
}
Properties toolProperties = placement.getPlacementConfig();
if (toolProperties != null)
{
contextPath = toolProperties
.getProperty(PortalService.TOOL_PORTLET_CONTEXT_PATH);
portletName = toolProperties.getProperty(PortalService.TOOL_PORTLET_NAME);
}
Properties configProperties = placement.getConfig();
if (configProperties != null)
{
if (isEmpty(contextPath))
{
contextPath = configProperties
.getProperty(PortalService.TOOL_PORTLET_CONTEXT_PATH);
}
if (isEmpty(portletName))
{
portletName = configProperties
.getProperty(PortalService.TOOL_PORTLET_NAME);
}
}
portlet = !(isEmpty(contextPath) || isEmpty(portletName));
}
代码示例来源:origin: org.sakaiproject.portal/sakai-portal-render-impl
public PortletDD getPortletDD(Placement placement)
Properties toolProperties = placement.getPlacementConfig();
String portletName = null;
String appName = null;
代码示例来源:origin: sakaiproject/sakai
/**
* Respond to a request by dispatching to a portlet like "do" method based on the portlet mode and tool mode
*/
protected void doGet(HttpServletRequest req, HttpServletResponse res) throws ServletException
{
// set in VmServlet
ParameterParser params = (ParameterParser) req.getAttribute(ATTR_PARAMS);
// we will need some covers... Note: parameters are parsed (i.e. files are read) here
Context context = new Context(this, req);
Placement placement = ToolManager.getCurrentPlacement();
PortletConfig config = new PortletConfig(getServletConfig(), placement.getPlacementConfig(), placement.getTool()
.getRegisteredConfig(), placement);
VelocityPortlet portlet = new VelocityPortlet(getPid(req), config);
JetspeedRunData rundata = new JetspeedRunData(req, getState(req), getPid(req), params);
req.setAttribute(ATTR_CONTEXT, context);
req.setAttribute(ATTR_CONFIG, config);
req.setAttribute(ATTR_PORTLET, portlet);
req.setAttribute(ATTR_RUNDATA, rundata);
super.doGet(req, res);
}
代码示例来源:origin: org.sakaiproject.velocity/sakai-velocity-tool
/**
* Respond to a request by dispatching to a portlet like "do" method based on the portlet mode and tool mode
*/
protected void doGet(HttpServletRequest req, HttpServletResponse res) throws ServletException
{
// set in VmServlet
ParameterParser params = (ParameterParser) req.getAttribute(ATTR_PARAMS);
// we will need some covers... Note: parameters are parsed (i.e. files are read) here
Context context = new Context(this, req);
Placement placement = ToolManager.getCurrentPlacement();
PortletConfig config = new PortletConfig(getServletConfig(), placement.getPlacementConfig(), placement.getTool()
.getRegisteredConfig(), placement);
VelocityPortlet portlet = new VelocityPortlet(getPid(req), config);
JetspeedRunData rundata = new JetspeedRunData(req, getState(req), getPid(req), params);
req.setAttribute(ATTR_CONTEXT, context);
req.setAttribute(ATTR_CONFIG, config);
req.setAttribute(ATTR_PORTLET, portlet);
req.setAttribute(ATTR_RUNDATA, rundata);
super.doGet(req, res);
}
内容来源于网络,如有侵权,请联系作者删除!