| Modifier and Type | Class and Description |
|---|---|
class |
PluginResourceContainer
If the Resource belongs to Plugin - represents that Plugin, mostly needed as a stub.
|
| Modifier and Type | Method and Description |
|---|---|
Bundle |
WebResourceSubBatchUrl.getBundle() |
| Modifier and Type | Method and Description |
|---|---|
List<Bundle> |
ContextSubBatchResourceUrl.getBatchedBundles() |
| Modifier and Type | Field and Description |
|---|---|
protected Map<Bundle,LinkedHashMap<String,Resource>> |
RequestCache.cachedResources |
| Modifier and Type | Method and Description |
|---|---|
Map<Bundle,LinkedHashMap<String,Resource>> |
RequestCache.getCachedResources()
Needed by WebResource as a storage for Cache.
|
| Modifier and Type | Method and Description |
|---|---|
protected Resource |
Config.buildResource(Bundle bundle,
com.atlassian.plugin.elements.ResourceLocation resourceLocation)
Helper to hide bunch of integration code and simplify resource creation.
|
LinkedHashMap<String,Resource> |
Config.getResourcesWithoutCache(Bundle bundle)
Queries the plugin system and return list of Resources for Web Resource.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
Config.parseModules(Snapshot snapshot,
Map<String,Bundle> cachedBundles,
ConditionInstanceCache conditionInstanceCache,
Map<WebResource,CachedCondition> webResourcesCondition,
Map<WebResource,CachedTransformers> webResourcesTransformations,
Map<String,Config.IntermediaryContextData> intermediaryContexts) |
| Modifier and Type | Field and Description |
|---|---|
List<Bundle> |
UrlGenerationHelpers.SubBatch.bundles |
| Modifier and Type | Method and Description |
|---|---|
static com.google.common.base.Predicate<Bundle> |
BaseHelpers.hasConditions()
Filter that leaves only resources that have legacy conditions.
|
static com.google.common.base.Predicate<Bundle> |
BaseHelpers.hasLegacyCondition()
Filter that leaves only resources that have legacy conditions.
|
static com.google.common.base.Predicate<Bundle> |
BaseHelpers.isConditionsSatisfied(RequestCache requestCache,
Map<String,String> params)
Filter by web resource conditions evaluated against params.
|
static com.google.common.base.Predicate<Bundle> |
BaseHelpers.isConditionsSatisfied(RequestCache requestCache,
UrlBuildingStrategy urlBuilderStrategy)
Filter by web resource conditions evaluated immediately.
|
| Modifier and Type | Method and Description |
|---|---|
protected static com.atlassian.plugin.webresource.impl.helpers.StateEncodedUrlResult |
UrlGenerationHelpers.encodeStateInUrlIfSupported(RequestCache requestCache,
UrlBuildingStrategy urlBuilderStrategy,
String type,
Map<String,String> params,
Bundle bundle,
List<Bundle> skipped,
List<Bundle> excludedWithoutApplyingConditions)
Collect and encode URL state for given Resources, it collects resource params, condition params and
transformer params.
|
| Modifier and Type | Method and Description |
|---|---|
BaseHelpers.BundleFinder |
BaseHelpers.BundleFinder.deep(com.google.common.base.Predicate<Bundle> deep)
If it should resolve full tree of dependencies recursively for the given Bundle,
it's `Predicates.<Bundle>alwaysTrue()` by default.
|
BaseHelpers.BundleFinder |
BaseHelpers.BundleFinder.deepFilter(com.google.common.base.Predicate<Bundle> filter)
Remove element and all its dependencies if filter fail.
|
protected static com.atlassian.plugin.webresource.impl.helpers.StateEncodedUrlResult |
UrlGenerationHelpers.encodeStateInUrlIfSupported(RequestCache requestCache,
UrlBuildingStrategy urlBuilderStrategy,
String type,
Map<String,String> params,
Bundle bundle,
List<Bundle> skipped,
List<Bundle> excludedWithoutApplyingConditions)
Collect and encode URL state for given Resources, it collects resource params, condition params and
transformer params.
|
protected static com.atlassian.plugin.webresource.impl.helpers.StateEncodedUrlResult |
UrlGenerationHelpers.encodeStateInUrlIfSupported(RequestCache requestCache,
UrlBuildingStrategy urlBuilderStrategy,
String type,
Map<String,String> params,
Bundle bundle,
List<Bundle> skipped,
List<Bundle> excludedWithoutApplyingConditions)
Collect and encode URL state for given Resources, it collects resource params, condition params and
transformer params.
|
protected static com.atlassian.plugin.webresource.impl.helpers.StateEncodedUrlResult |
UrlGenerationHelpers.encodeStateInUrlIfSupported(RequestCache requestCache,
UrlBuildingStrategy urlBuilderStrategy,
String type,
Map<String,String> params,
List<Bundle> bundles,
List<Bundle> skipped,
List<Bundle> excludedWithoutApplyingConditions)
Collect and encode URL state for given Resources, it collects resource params, condition params and
transformer params.
|
protected static com.atlassian.plugin.webresource.impl.helpers.StateEncodedUrlResult |
UrlGenerationHelpers.encodeStateInUrlIfSupported(RequestCache requestCache,
UrlBuildingStrategy urlBuilderStrategy,
String type,
Map<String,String> params,
List<Bundle> bundles,
List<Bundle> skipped,
List<Bundle> excludedWithoutApplyingConditions)
Collect and encode URL state for given Resources, it collects resource params, condition params and
transformer params.
|
protected static com.atlassian.plugin.webresource.impl.helpers.StateEncodedUrlResult |
UrlGenerationHelpers.encodeStateInUrlIfSupported(RequestCache requestCache,
UrlBuildingStrategy urlBuilderStrategy,
String type,
Map<String,String> params,
List<Bundle> bundles,
List<Bundle> skipped,
List<Bundle> excludedWithoutApplyingConditions)
Collect and encode URL state for given Resources, it collects resource params, condition params and
transformer params.
|
BaseHelpers.BundleFinder |
BaseHelpers.BundleFinder.excluded(LinkedHashSet<String> excluded,
com.google.common.base.Predicate<Bundle> conditionsForExcluded) |
protected static BaseHelpers.Found |
BaseHelpers.find(Snapshot snapshot,
Collection<String> included,
Set<String> excluded,
com.google.common.base.Predicate<Bundle> conditionsForExcluded,
boolean resolveExcluded,
com.google.common.base.Predicate<Bundle> deep,
com.google.common.base.Predicate<Bundle> deepFilter,
com.google.common.base.Predicate<Bundle> shallowFilter)
Resolve dependencies with filtering predicates for lists of included and excluded Web Resources.
|
protected static BaseHelpers.Found |
BaseHelpers.find(Snapshot snapshot,
Collection<String> included,
Set<String> excluded,
com.google.common.base.Predicate<Bundle> conditionsForExcluded,
boolean resolveExcluded,
com.google.common.base.Predicate<Bundle> deep,
com.google.common.base.Predicate<Bundle> deepFilter,
com.google.common.base.Predicate<Bundle> shallowFilter)
Resolve dependencies with filtering predicates for lists of included and excluded Web Resources.
|
protected static BaseHelpers.Found |
BaseHelpers.find(Snapshot snapshot,
Collection<String> included,
Set<String> excluded,
com.google.common.base.Predicate<Bundle> conditionsForExcluded,
boolean resolveExcluded,
com.google.common.base.Predicate<Bundle> deep,
com.google.common.base.Predicate<Bundle> deepFilter,
com.google.common.base.Predicate<Bundle> shallowFilter)
Resolve dependencies with filtering predicates for lists of included and excluded Web Resources.
|
protected static BaseHelpers.Found |
BaseHelpers.find(Snapshot snapshot,
Collection<String> included,
Set<String> excluded,
com.google.common.base.Predicate<Bundle> conditionsForExcluded,
boolean resolveExcluded,
com.google.common.base.Predicate<Bundle> deep,
com.google.common.base.Predicate<Bundle> deepFilter,
com.google.common.base.Predicate<Bundle> shallowFilter)
Resolve dependencies with filtering predicates for lists of included and excluded Web Resources.
|
protected static void |
BaseHelpers.findItChangesArguments(Snapshot snapshot,
String key,
Set<String> excluded,
LinkedHashSet<String> stack,
com.google.common.base.Predicate<Bundle> deep,
com.google.common.base.Predicate<Bundle> deepFilter,
com.google.common.base.Predicate<Bundle> shallowFilter,
LinkedHashSet<String> resolved,
List<String> skipped)
Resolve dependencies for Web Resource.
|
protected static void |
BaseHelpers.findItChangesArguments(Snapshot snapshot,
String key,
Set<String> excluded,
LinkedHashSet<String> stack,
com.google.common.base.Predicate<Bundle> deep,
com.google.common.base.Predicate<Bundle> deepFilter,
com.google.common.base.Predicate<Bundle> shallowFilter,
LinkedHashSet<String> resolved,
List<String> skipped)
Resolve dependencies for Web Resource.
|
protected static void |
BaseHelpers.findItChangesArguments(Snapshot snapshot,
String key,
Set<String> excluded,
LinkedHashSet<String> stack,
com.google.common.base.Predicate<Bundle> deep,
com.google.common.base.Predicate<Bundle> deepFilter,
com.google.common.base.Predicate<Bundle> shallowFilter,
LinkedHashSet<String> resolved,
List<String> skipped)
Resolve dependencies for Web Resource.
|
BaseHelpers.BundleFinder |
BaseHelpers.BundleFinder.shallowFilter(com.google.common.base.Predicate<Bundle> filter)
Remove element but leave its dependencies if filter fail.
|
| Constructor and Description |
|---|
SubBatch(Map<String,String> resourcesParams,
Bundle bundle,
List<Resource> resources) |
| Constructor and Description |
|---|
SubBatch(Map<String,String> resourcesParams,
List<Bundle> bundles,
List<Resource> resources) |
| Modifier and Type | Class and Description |
|---|---|
class |
Context
Context.
|
class |
WebModule
AMD Module.
|
class |
WebResource
Web Resource.
|
| Modifier and Type | Method and Description |
|---|---|
Bundle |
Snapshot.get(String key) |
Bundle |
Resource.getParent()
Get Parent - Web Resource or Plugin.
|
| Modifier and Type | Method and Description |
|---|---|
List<Bundle> |
Snapshot.toBundles(Iterable<String> keys) |
| Modifier and Type | Method and Description |
|---|---|
void |
Snapshot.forEachBundle(Consumer<Bundle> consumer)
|
| Constructor and Description |
|---|
Resource(Bundle parent,
com.atlassian.plugin.elements.ResourceLocation resourceLocation,
String nameType,
String locationType) |
| Constructor and Description |
|---|
Snapshot(Config config,
Map<String,Bundle> cachedBundles,
Map<String,RootPage> rootPages,
Map<WebResource,CachedTransformers> webResourcesTransformations,
Map<WebResource,CachedCondition> webResourcesCondition,
Set<WebResource> webResourcesWithLegacyConditions,
Set<WebResource> webResourcesWithLegacyTransformers,
Set<WebResource> webResourcesWithDisabledMinification) |
| Modifier and Type | Method and Description |
|---|---|
static com.google.common.base.Predicate<Bundle> |
Support.efficientAndPredicate(List<com.google.common.base.Predicate<Bundle>> predicates)
Join list of predicates with AND operand.
|
| Modifier and Type | Method and Description |
|---|---|
static com.google.common.base.Predicate<Bundle> |
Support.efficientAndPredicate(List<com.google.common.base.Predicate<Bundle>> predicates)
Join list of predicates with AND operand.
|
Copyright © 2017 Atlassian. All rights reserved.