Class ViewingContentCondition
- java.lang.Object
-
- com.atlassian.confluence.plugin.descriptor.web.conditions.BaseConfluenceCondition
-
- com.atlassian.confluence.plugin.descriptor.web.conditions.ViewingContentCondition
-
- All Implemented Interfaces:
com.atlassian.plugin.web.baseconditions.BaseCondition
,com.atlassian.plugin.web.Condition
public class ViewingContentCondition extends BaseConfluenceCondition
Only display the link if the user is viewing content (pages or blogs) but *only* viewing it - not editing, viewing info, attachments, etc.
-
-
Field Summary
Fields Modifier and Type Field Description static String
CONTEXT_KEY
-
Fields inherited from class com.atlassian.confluence.plugin.descriptor.web.conditions.BaseConfluenceCondition
CONTEXT_KEY_HELPER
-
-
Constructor Summary
Constructors Constructor Description ViewingContentCondition()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
shouldDisplay(WebInterfaceContext context)
-
Methods inherited from class com.atlassian.confluence.plugin.descriptor.web.conditions.BaseConfluenceCondition
init, shouldDisplay
-
-
-
-
Field Detail
-
CONTEXT_KEY
public static final String CONTEXT_KEY
- See Also:
- Constant Field Values
-
-
Method Detail
-
shouldDisplay
public boolean shouldDisplay(WebInterfaceContext context)
- Specified by:
shouldDisplay
in classBaseConfluenceCondition
-
-