public interface PermalinkGenerator
| Modifier and Type | Field and Description |
|---|---|
static String |
PERMA_ID_NOTES
The permalink identifier for notes
|
static String |
PERMA_ID_TAGS
The permalink identifier for tags
|
static String |
PERMA_ID_TOPICS
The permalink identifier for topics.
|
static String |
PERMA_ID_USERS
The permalink identifier for users
|
| Modifier and Type | Method and Description |
|---|---|
String |
extractPermaLinkIdentifier(String[] uriFragments)
Get the type of perma link (one of the constants
PERMA_ID_TOPICS etc) |
String |
getBlogLink(String blogAlias)
Calls
getBlogLink(String, boolean) with secure parameter set to false. |
String |
getBlogLink(String blogAlias,
boolean secure) |
String |
getNoteLink(String blogAlias,
Long noteId)
Calls
getNoteLink(String, Long, boolean) with secure parameter set to
false. |
String |
getNoteLink(String blogAlias,
Long noteId,
boolean secure) |
String |
getTagLink(long tagId)
Calls
getTagLink(String, boolean) with secure parameter set to false. |
String |
getTagLink(long tagId,
boolean secure) |
String |
getTagLink(String tag)
Deprecated.
Use
getTagLink(long) instead. |
String |
getTagLink(String tag,
boolean secure)
Deprecated.
Use
getTagLink(long, boolean) instead. |
String |
getUserLink(String userAlias)
Calls
getUserLink(String,boolean) with secure parameter set to false. |
String |
getUserLink(String userAlias,
boolean secure) |
static final String PERMA_ID_TOPICS
static final String PERMA_ID_USERS
static final String PERMA_ID_TAGS
static final String PERMA_ID_NOTES
String extractPermaLinkIdentifier(String[] uriFragments)
PERMA_ID_TOPICS etc)uriFragments - the splitted uri fragmentsString getBlogLink(String blogAlias)
getBlogLink(String, boolean) with secure parameter set to false.blogAlias - the alias of the blog to get the link forString getBlogLink(String blogAlias, boolean secure)
blogAlias - the alias of the blog to get the link forsecure - If true https will be used.String getNoteLink(String blogAlias, Long noteId)
getNoteLink(String, Long, boolean) with secure parameter set to
false.blogAlias - the blog alias of the note to get the link fornoteId - the id of the note to get the link forString getNoteLink(String blogAlias, Long noteId, boolean secure)
blogAlias - 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.String getTagLink(long tagId)
getTagLink(String, boolean) with secure parameter set to false.tagId - The tag to get the link forString getTagLink(long tagId, boolean secure)
tagId - the tag to get the link forsecure - If true, https will be used.@Deprecated String getTagLink(String tag)
getTagLink(long) instead.getTagLink(String, boolean) with secure parameter set to false.tag - The tag to get the link for@Deprecated String getTagLink(String tag, boolean secure)
getTagLink(long, boolean) instead.tag - the tag to get the link forsecure - If true, https will be used.String getUserLink(String userAlias)
getUserLink(String,boolean) with secure parameter set to false.userAlias - the alias of the user to get the link forCopyright © 2019 Communote team. All rights reserved.