public static class GadgetRequestContext.Builder extends Object
GadgetRequestContext objects. The final GadgetRequestContext
is created by calling the build() method| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
GadgetRequestContext |
build()
Returns the final constructed
GadgetRequestContext. |
GadgetRequestContext.Builder |
debug(boolean debug)
Sets whether debugging should be enabled when rendering the gadget.
|
static GadgetRequestContext.Builder |
gadgetRequestContext()
Get a new GadgetRequestContext Builder.
|
GadgetRequestContext.Builder |
ignoreCache(boolean ignoreCache)
Set the cache setting of the
GadgetRequestContext under construction and return this Builder
to allow further construction to be done. |
GadgetRequestContext.Builder |
locale(Locale locale)
Set the
Locale of the GadgetRequestContext under construction and return this Builder
to allow further construction to be done. |
GadgetRequestContext.Builder |
user(GadgetRequestContext.User user)
Sets the current user.
|
GadgetRequestContext.Builder |
view(View view)
Set the current view of the
GadgetRequestContext under construction and return this Builder
to allow further construction to be done. |
public static GadgetRequestContext.Builder gadgetRequestContext()
public GadgetRequestContext build()
GadgetRequestContext.GadgetRequestContextpublic GadgetRequestContext.Builder locale(Locale locale)
Locale of the GadgetRequestContext under construction and return this Builder
to allow further construction to be done.locale - the Locale to use for the GadgetRequestContextpublic GadgetRequestContext.Builder ignoreCache(boolean ignoreCache)
GadgetRequestContext under construction and return this Builder
to allow further construction to be done.ignoreCache - the cache setting of this GadgetRequestContextpublic GadgetRequestContext.Builder view(View view)
GadgetRequestContext under construction and return this Builder
to allow further construction to be done.view - view in which the dashboard item is renderingpublic GadgetRequestContext.Builder user(@Nullable GadgetRequestContext.User user)
user - the current user.public GadgetRequestContext.Builder debug(boolean debug)
debug - enable or disable debuggingCopyright © 2024 Atlassian. All rights reserved.