java.lang.Object
com.atlassian.plugin.webresource.impl.snapshot.Bundle
Direct Known Subclasses:
Context, PluginResourceContainer, WebResource

public class Bundle extends Object
Web Resource.
Since:
3.3
  • Field Details

    • snapshot

      protected Snapshot snapshot
  • Constructor Details

  • Method Details

    • getKey

      public String getKey()
    • getDependencies

      public List<String> getDependencies()
      List of dependencies.
      Returns:
      list of Web Resources keys.
    • getUpdatedAt

      public Date getUpdatedAt()
      Get last update time.
    • getVersion

      public String getVersion()
    • isTransformable

      public boolean isTransformable()
    • getSnapshot

      public Snapshot getSnapshot()
    • getResources

      public LinkedHashMap<String,Resource> getResources(RequestCache cache)
      Get Resources of this Web Resource.
    • getData

      public LinkedHashMap<String,com.atlassian.json.marshal.Jsonable> getData()
      Get data resources.
    • getCondition

      public CachedCondition getCondition()
      Returns condition if bundle has any.
    • getTransformers

      public CachedTransformers getTransformers()
      Return transformers if bundle has any.
    • getTransformerParameters

      public TransformerParameters getTransformerParameters()
      Transformer parameters needed for transformations.
    • getLocationResourceTypesFor

      public Set<String> getLocationResourceTypesFor(String nameType)
      Resources can have different name and location types. This mapping returns location types for given resource name type.
    • isMinificationEnabled

      @Deprecated public boolean isMinificationEnabled()
      Deprecated.
      Returns if minification is enabled. Deprecated Snapshot#webResourcesWithDisabledMinification is always created with an empty Set and it will always return false.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object