Hi!
I am making a web-section for a board. It should be available depending on the board type.
added own class for condition
<web-section>
<condition class="xxx.xxx.xxx.conditions.IsAgileBoard" >
<param name="boardType">board.type</param>
</condition>
</web-section>
For now just trying to get the board type in the log
public class IsAgileBoard implements Condition {
private String boardType;
@Override
public void init(Map<String, String> params) throws PluginParseException
{
boardType = params.get("boardType");
}
@Override
public boolean shouldDisplay(Map<String, Object> map)
{
log.warn("boardType :", boardType);
return false;
}
}
in the log
0 WARN admin 54x130274x1 3en875 0:0:0:0:0:0:0:1 /rest/greenhopper/1.0/xboard/toolSections [xxx.xxx.xxx.conditions.IsAgileBoard] boardType
Please tell me what am I doing wrong?