public class DefaultPermalinkGenerator extends Object implements PermalinkGenerator
PERMA_ID_NOTES, PERMA_ID_TAGS, PERMA_ID_TOPICS, PERMA_ID_USERS| Constructor and Description |
|---|
DefaultPermalinkGenerator() |
| Modifier and Type | Method and Description |
|---|---|
String |
extractPermaLinkIdentifier(String[] uriFragments)
Get the type of perma link (one of the constants
PermalinkGenerator.PERMA_ID_TOPICS etc) |
String |
getBlogLink(String blogAlias)
Calls
PermalinkGenerator.getBlogLink(String, boolean) with secure parameter set to false. |
String |
getBlogLink(String blogAlias,
boolean secure) |
String |
getDiscussionLink(String blogAlias,
Long discussionId,
boolean secure)
throws UnsupportedOperationException
|
String |
getNoteLink(String blogAlias,
Long noteId)
Calls
PermalinkGenerator.getNoteLink(String, Long, boolean) with secure parameter set to
false. |
String |
getNoteLink(String blogAlias,
Long noteId,
boolean secure)
.
|
String |
getTagLink(long tagId)
Calls
PermalinkGenerator.getTagLink(String, boolean) with secure parameter set to false. |
String |
getTagLink(long tagId,
boolean secure) |
String |
getTagLink(String tag)
Calls
PermalinkGenerator.getTagLink(String, boolean) with secure parameter set to false. |
String |
getTagLink(String tag,
boolean secure)
.
|
String |
getUserLink(String userAlias)
Calls
PermalinkGenerator.getUserLink(String,boolean) with secure parameter set to false. |
String |
getUserLink(String userAlias,
boolean secure)
.
|
public String extractPermaLinkIdentifier(String[] uriFragments)
PermalinkGenerator.PERMA_ID_TOPICS etc).extractPermaLinkIdentifier in interface PermalinkGeneratoruriFragments - the splitted uri fragmentspublic final String getBlogLink(String blogAlias)
PermalinkGeneratorPermalinkGenerator.getBlogLink(String, boolean) with secure parameter set to false.getBlogLink in interface PermalinkGeneratorblogAlias - the alias of the blog to get the link forpublic String getBlogLink(String blogAlias, boolean secure)
getBlogLink in interface PermalinkGeneratorblogAlias - the alias of the blog to get the link forsecure - If true https will be used.public String getDiscussionLink(String blogAlias, Long discussionId, boolean secure)
public final String getNoteLink(String blogAlias, Long noteId)
PermalinkGeneratorPermalinkGenerator.getNoteLink(String, Long, boolean) with secure parameter set to
false.getNoteLink in interface PermalinkGeneratorblogAlias - the blog alias of the note to get the link fornoteId - the id of the note to get the link forpublic String getNoteLink(String blogAlias, Long noteId, boolean secure)
getNoteLink in interface PermalinkGeneratorblogAlias - the blog alias of the note to get the link fornoteId - the id of the note to get the link forsecure - If true, https will be used.public String getTagLink(long tagId)
PermalinkGenerator.getTagLink(String, boolean) with secure parameter set to false.getTagLink in interface PermalinkGeneratortagId - The tag to get the link forpublic String getTagLink(long tagId, boolean secure)
getTagLink in interface PermalinkGeneratortagId - the tag to get the link forsecure - If true, https will be used.public String getTagLink(String tag)
PermalinkGeneratorPermalinkGenerator.getTagLink(String, boolean) with secure parameter set to false.getTagLink in interface PermalinkGeneratortag - The tag to get the link forpublic String getTagLink(String tag, boolean secure)
getTagLink in interface PermalinkGeneratortag - the tag to get the link forsecure - If true, https will be used.public final String getUserLink(String userAlias)
PermalinkGeneratorPermalinkGenerator.getUserLink(String,boolean) with secure parameter set to false.getUserLink in interface PermalinkGeneratoruserAlias - the alias of the user to get the link forpublic String getUserLink(String userAlias, boolean secure)
getUserLink in interface PermalinkGeneratoruserAlias - the alias of the user to get the link forsecure - If true, https will be used.Copyright © 2019 Communote team. All rights reserved.