com.atlassian.confluence.labels
Interface DisplayableLabel

All Known Implementing Classes:
CombinedLabel, Label

public interface DisplayableLabel

Provides getter methods for a Label that can be displayed.


Method Summary
 java.lang.String getName()
          Returns the label's name only.
 java.lang.String getRealTitle()
          Return the title as a combination of the namespace and the label name.
 java.lang.String getUrlPath()
          Generates the url path for a label.
 java.lang.String getUrlPath(java.lang.String spaceKey)
          Generates the url path for a label in the context of a given space i.e.
 boolean isRealTitleSafeForUrl()
          Returns true if the label's title is safe to pass in the URL.
 

Method Detail

isRealTitleSafeForUrl

boolean isRealTitleSafeForUrl()
Returns true if the label's title is safe to pass in the URL.

eg. my:foo is safe, perc% is not safe. chicken+cheese is safe in a "combined" label.

Returns:
true if the label's title is safe to pass in the URL.

getName

java.lang.String getName()
Returns the label's name only.

eg. label name for label my:foo is "foo".


getRealTitle

java.lang.String getRealTitle()
Return the title as a combination of the namespace and the label name.


getUrlPath

java.lang.String getUrlPath()
Generates the url path for a label.


getUrlPath

java.lang.String getUrlPath(java.lang.String spaceKey)
Generates the url path for a label in the context of a given space i.e. the user is taken to a page that contains content for that space only. If no space if provided, getUrlPath() is called.



Copyright © 2003-2013 Atlassian. All Rights Reserved.