Class PageResourceIdentifier
- java.lang.Object
-
- com.atlassian.confluence.content.render.xhtml.model.resource.identifiers.PageResourceIdentifier
-
- All Implemented Interfaces:
AttachmentContainerResourceIdentifier,NamedResourceIdentifier,ResourceIdentifier
public class PageResourceIdentifier extends Object implements AttachmentContainerResourceIdentifier, NamedResourceIdentifier
-
-
Constructor Summary
Constructors Constructor Description PageResourceIdentifier(String title)PageResourceIdentifier(String spaceKey, String title)Create a new identifier for a PageResource.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)StringgetResourceName()StringgetSpaceKey()StringgetTitle()inthashCode()booleanisPopulated()StringtoString()
-
-
-
Constructor Detail
-
PageResourceIdentifier
public PageResourceIdentifier(String title)
-
PageResourceIdentifier
public PageResourceIdentifier(String spaceKey, String title)
Create a new identifier for a PageResource. Space key is optional (as it can be resolved from the context).- Parameters:
spaceKey- (optional) the key of the space the page is in, or null to derive it from context.title- (required) the title of the page
-
-
Method Detail
-
getSpaceKey
public String getSpaceKey()
-
getTitle
public String getTitle()
-
getResourceName
public String getResourceName()
- Specified by:
getResourceNamein interfaceNamedResourceIdentifier
-
isPopulated
public boolean isPopulated()
- Returns:
- true if this resource identifier is populated with data.
-
-