com.atlassian.confluence.content.render.xhtml.model.resource.identifiers
Class PageResourceIdentifier

java.lang.Object
  extended by 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
PageResourceIdentifier(String title)
           
PageResourceIdentifier(String spaceKey, String title)
          Create a new identifier for a PageResource.
 
Method Summary
 boolean equals(Object o)
           
 String getResourceName()
           
 String getSpaceKey()
           
 String getTitle()
           
 int hashCode()
           
 boolean isPopulated()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

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:
getResourceName in interface NamedResourceIdentifier

isPopulated

public boolean isPopulated()
Returns:
true if this resource identifier is populated with data.

toString

public String toString()
Overrides:
toString in class Object

equals

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

hashCode

public int hashCode()
Overrides:
hashCode in class Object


Copyright © 2003–2015 Atlassian. All rights reserved.