java.lang.Object | |
↳ | com.atlassian.confluence.content.render.xhtml.model.resource.identifiers.DefaultResourceIdentifierContextUtility |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Create and return a fully populated version of the supplied ResourceIdentifier with
any missing attributes derived from the supplied context ContentEntityObject.
| |||||||||||
Make the provided ResourceIdentifier as relative as possible to the provided ContentEntityObject.
| |||||||||||
Create a fully populated (absolute) ResourceIdentifier from the supplied ContentEntityObject.
| |||||||||||
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
com.atlassian.confluence.content.render.xhtml.model.resource.identifiers.ResourceIdentifierContextUtility
|
Create and return a fully populated version of the supplied ResourceIdentifier with any missing attributes derived from the supplied context ContentEntityObject.
ri | the ResourceIdentifier to be expanded. If it is null then a new resource identifier will be returned based on the type of the supplied ContentEntityObject. |
---|---|
ceo | the ContentEntityObject to be used as context. If this is null then the ResourceIdentifier will be returned unchanged. |
Make the provided ResourceIdentifier as relative as possible to the provided ContentEntityObject.
For instance if the RI and the CEO share the same space key then the space key will be dropped from the RI. If the RI and the CEO share all attributes then a null RI will be returned indicating that it is unnecessary. This is a centralisation of the logic required for CONF-23328 which is to make links as relative as possible in storage.ri | The ResourceIdentifier to make relative |
---|---|
ceo | the ContentEntityObject to be used as context. If this is null then the ResourceIdentifier will be returned unchanged. |
Create a fully populated (absolute) ResourceIdentifier from the supplied ContentEntityObject.
This differs fromResourceIdentifierFactory
in that it is intended for use in the
context of a conversion and therefore understandings relevant details such as that when
converting a Comment
the relevant ResourceIdentifier is that of the Comment's owner.ceo | The ContentEntityObject to get a conversion suitable ResourceIdentifier for. |
---|