@ExperimentalApi public class ExperimentalLookAndFeelResource extends Object
Constructor and Description |
---|
ExperimentalLookAndFeelResource(LookAndFeelService lookAndFeelService) |
Modifier and Type | Method and Description |
---|---|
LookAndFeelSettings |
getLookAndFeelSettings(String spaceKey)
Get the current
LookAndFeelSettings of the whole site or space. |
void |
resetGlobalCustom(String spaceKey)
Reset the look and feel to its default value.
|
LookAndFeelType |
selectLookAndFeel(String spaceKey,
LookAndFeelType lookAndFeelType)
Select the current look and feel for space or global
|
LookAndFeel |
updateSpaceCustom(String spaceKey,
LookAndFeel lookAndFeel)
Submit a customised scheme for space
|
public ExperimentalLookAndFeelResource(LookAndFeelService lookAndFeelService)
public LookAndFeelSettings getLookAndFeelSettings(String spaceKey)
LookAndFeelSettings
of the whole site or space. Response has
Cache-Control header set for 10 minutes.spaceKey
- space key identify the space, null if requesting for global site look and feelLookAndFeelSettings
always contain a global LookAndFeel
,
and a custom LookAndFeel
field. When site has a global theme configured, an extra theme field field is returned.
Custom field might contain the identical value as global if it was not customised.public LookAndFeel updateSpaceCustom(String spaceKey, LookAndFeel lookAndFeel)
spaceKey
- space key, null if customising a global look and feel.lookAndFeel
- Scheme should contains the full colors based on existing global values. No colour scheme value
can be missing.LookAndFeel
public void resetGlobalCustom(String spaceKey)
spaceKey
- space key, null if resetting global look and feelpublic LookAndFeelType selectLookAndFeel(String spaceKey, LookAndFeelType lookAndFeelType)
spaceKey
- space key or null for globallookAndFeelType
- LookAndFeelType
Copyright © 2003–2017 Atlassian. All rights reserved.