All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.greenpepper.confluence.macros.GreenPepperGroup Maven / Gradle / Ivy

There is a newer version: 4.2.4
Show newest version
package com.greenpepper.confluence.macros;

import java.util.Map;

import com.atlassian.confluence.renderer.radeox.macros.MacroUtils;
import com.atlassian.confluence.util.velocity.VelocityUtils;
import com.atlassian.renderer.RenderContext;

/**
 * 

GreenPepperGroup class.

* * @author oaouattara * @version $Id: $Id */ public class GreenPepperGroup extends AbstractGreenPepperMacro { /** *

isInline.

* * @return a boolean. */ public boolean isInline() { return true; } /** {@inheritDoc} */ @SuppressWarnings("unchecked") public String execute(Map parameters, String body, RenderContext renderContext) { try { Map contextMap = MacroUtils.defaultVelocityContext(); contextMap.put("title", (String)parameters.get("title")); contextMap.put("bulkUID", getBulkUID(parameters)); return VelocityUtils.getRenderedTemplate("/templates/greenpepper/confluence/macros/greenPepperGroup.vm", contextMap); } catch (Exception e) { return getErrorView("greenpepper.group.macroid", e.getMessage()); } } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy