public interface LinkService
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAvatarAbsImgLink(javax.servlet.http.HttpServletRequest req,
java.lang.String username,
int size,
boolean noCache)
Returns an absolute link to an avatar
|
java.lang.String |
getChangelogAbsLink(javax.servlet.http.HttpServletRequest req,
java.lang.String repositoryName,
java.lang.String branchName)
Returns an absolute link to the Fisheye changelog page for a repository
|
java.lang.String |
getChangesetAbsLink(javax.servlet.http.HttpServletRequest req,
java.lang.String repositoryName,
java.lang.String csid)
Returns an absolute link to a Fisheye changeset page
|
java.lang.String |
getCommiterAbsLink(javax.servlet.http.HttpServletRequest req,
java.lang.String repositoryName,
java.lang.String committerName)
Returns an absolute link to a commiter's page
|
java.lang.String |
getDeletedAvatarAbsImgLink(javax.servlet.http.HttpServletRequest req,
int size)
Returns an absolute link to the placeholder avatar for a deleted user
|
java.lang.String |
getProjectAbsLink(javax.servlet.http.HttpServletRequest req,
java.lang.String projectKey)
Returns an absolute link to a Crucible project
|
java.lang.String |
getReviewAbsLink(javax.servlet.http.HttpServletRequest req,
java.lang.String permaId)
Returns an absolute link to a Crucible review
|
java.lang.String |
getStaticPathAbsLink(javax.servlet.http.HttpServletRequest req)
Returns an absolute link to the path under which Fisheye/Crucible static resources are located
|
java.lang.String |
getUnknownAvatarAbsImgLink(javax.servlet.http.HttpServletRequest req,
int size)
Returns an absolute link to the placeholder avatar for unknown users
|
java.lang.String |
getUserAbsLink(javax.servlet.http.HttpServletRequest req,
java.lang.String userName)
Returns an absolute link to a user's page
|
java.lang.String getChangelogAbsLink(javax.servlet.http.HttpServletRequest req, java.lang.String repositoryName, java.lang.String branchName)
req
- optional request object - If omitted Fisheye/Crucible will generate a site url based on the configuration for this instance.repositoryName
- the repository keyjava.lang.String getChangesetAbsLink(javax.servlet.http.HttpServletRequest req, java.lang.String repositoryName, java.lang.String csid)
req
- optional request object - If omitted Fisheye/Crucible will generate a site url based on the configuration for this instance.repositoryName
- the repository keycsid
- the changeset idjava.lang.String getProjectAbsLink(javax.servlet.http.HttpServletRequest req, java.lang.String projectKey)
req
- optional request object - If omitted Fisheye/Crucible will generate a site url based on the configuration for this instance.projectKey
- the key to the projectjava.lang.String getReviewAbsLink(javax.servlet.http.HttpServletRequest req, java.lang.String permaId)
req
- optional request object - If omitted Fisheye/Crucible will generate a site url based on the configuration for this instance.permaId
- the review perma idjava.lang.String getCommiterAbsLink(javax.servlet.http.HttpServletRequest req, java.lang.String repositoryName, java.lang.String committerName)
req
- optional request object - If omitted Fisheye/Crucible will generate a site url based on the configuration for this instance.repositoryName
- the key of the repositorycommitterName
- the name of the commiterjava.lang.String getUserAbsLink(javax.servlet.http.HttpServletRequest req, java.lang.String userName)
req
- optional request object - If omitted Fisheye/Crucible will generate a site url based on the configuration for this instance.userName
- the name of the userjava.lang.String getAvatarAbsImgLink(javax.servlet.http.HttpServletRequest req, java.lang.String username, int size, boolean noCache)
req
- optional request object - If omitted Fisheye/Crucible will generate a site url based on the configuration for this instance.username
- the name of the usersize
- the size of the required image, in pixelsnoCache
- whether a link to discourage caching should be returnedjava.lang.String getDeletedAvatarAbsImgLink(javax.servlet.http.HttpServletRequest req, int size)
req
- optional request object - If omitted Fisheye/Crucible will generate a site url based on the configuration for this instance.size
- the size of the required image, in pixelsjava.lang.String getUnknownAvatarAbsImgLink(javax.servlet.http.HttpServletRequest req, int size)
req
- optional request object - If omitted Fisheye/Crucible will generate a site url based on the configuration for this instance.size
- the size of the required image, in pixelsjava.lang.String getStaticPathAbsLink(javax.servlet.http.HttpServletRequest req)
req
- optional request object - If omitted Fisheye/Crucible will generate a site url based on the configuration for this instance.