java.lang.Object |
↳ |
com.atlassian.bitbucket.web.conditions.IsScmCondition |
Class Overview
Checks for a "repository" in the context and displays if that repository has a specified
SCM
. If the context does not contain a "repository" the
associated component will not be displayed.
Usage:
<condition class="com.atlassian.bitbucket.web.conditions.IsScmCondition">
<param name="key">repository</param>
<param name="scm">git</param>
</condition>
The "key" param is optional, and defaults to "repository" if not set. That's appropriate for most
contexts. An example of a place where the "key" might be set is when using this condition for a fragment
on "bitbucket.internal.page.repository.fork", where the context contains "upstream" and "fork" rather than "repository".
Summary
Public Methods |
void
|
init(Map<String, String> params)
|
boolean
|
shouldDisplay(Map<String, Object> context)
|
[Expand]
Inherited Methods |
From class
java.lang.Object
Object
|
clone()
|
boolean
|
equals(Object arg0)
|
void
|
finalize()
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
final
void
|
wait()
|
|
From interface
com.atlassian.plugin.web.Condition
void
|
init(Map<String, String> arg0)
|
boolean
|
shouldDisplay(Map<String, Object> arg0)
|
|
Public Constructors
Public Methods
public
void
init
(Map<String, String> params)
public
boolean
shouldDisplay
(Map<String, Object> context)