org.sakaiproject.tool.api.Placement.getConfig()方法的使用及代码示例

x33g5p2x  于2022-01-26 转载在 其他  
字(2.9k)|赞(0)|评价(0)|浏览(107)

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

Placement.getConfig介绍

[英]Access the configuration properties, combined from placement and registration, for the tool placement. Placement values override registration. Access is read only.
[中]访问工具放置的配置属性(结合放置和注册)。放置值覆盖注册。访问是只读的。

代码示例

代码示例来源:origin: org.sakaiproject.kernel/sakai-kernel-impl

/**
   * Check if the placement is hidden.
   * @param placement
   * @return <code>true</code> if the current placement is hidden.
   */
  public boolean isHidden(Placement placement)
  {
    if (placement == null) return true;
    String visibility = placement.getConfig().getProperty(PORTAL_VISIBLE);
    if ( "false".equals(visibility) ) return true;
    String requiredPermissionsString = StringUtils.trimToNull(placement.getConfig().getProperty(TOOLCONFIG_REQUIRED_PERMISSIONS));
    if (requiredPermissionsString == null)
      return false;
    return requiredPermissionsString.contains("site.upd");
  }
}

代码示例来源: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.kernel/sakai-kernel-impl

String requiredPermissionsString = placement.getConfig().getProperty(TOOLCONFIG_REQUIRED_PERMISSIONS);
if (log.isDebugEnabled()) log.debug("requiredPermissionsString=" + requiredPermissionsString + " for " + placement.getToolId());
if (requiredPermissionsString == null)

代码示例来源:origin: org.sakaiproject.portal/sakai-portal-render-impl

Properties configProperties = placement.getConfig();
if (configProperties != null)

代码示例来源:origin: sakaiproject/sakai

public static boolean loadFromPlacement(Properties info, Properties launch, Placement placement) {
  Properties config = placement.getConfig();
  log.debug("Sakai properties={}", config);
  String launch_url = toNull(getCorrectProperty(config, LTIService.LTI_LAUNCH, placement));

代码示例来源:origin: org.sakaiproject.basiclti/basiclti-common

public static boolean loadFromPlacement(Properties info, Properties launch, Placement placement)
  Properties config = placement.getConfig();
  log.debug("Sakai properties={}", config);
  String launch_url = toNull(getCorrectProperty(config,LTIService.LTI_LAUNCH, placement));

相关文章