public class LinkUriHelper extends Object
| Modifier and Type | Method and Description |
|---|---|
static URI |
buildDirectChildGroupUri(URI baseURI,
String groupName,
String childGroupName)
Returns the URI to the group direct child group resource.
|
static URI |
buildDirectParentGroupOfUserUri(URI baseURI,
String userName,
String parentGroupName)
Returns the URI to the direct group parent of a user resource.
|
static URI |
buildDirectParentGroupUri(URI baseURI,
String groupName,
String parentGroupName)
Returns the URI to the group direct parent group resource.
|
static URI |
buildDirectUserGroupUri(URI baseURI,
String groupName,
String username)
Returns the URI to the group direct user group resource.
|
static URI |
buildEntityAttributeListUri(URI entityUri)
Returns the URI to the entity attribute list resource.
|
static URI |
buildEntityAttributeUri(URI attributesUri,
String attributeName)
Returns the URI to the entity attribute resource.
|
static com.atlassian.plugins.rest.common.Link |
buildGroupLink(URI baseUri,
String groupName)
Returns the Link to the Group resource.
|
static URI |
buildGroupUri(URI baseURI,
String groupName)
Returns the URI to the Group resource.
|
static com.atlassian.plugins.rest.common.Link |
buildSessionLink(URI baseUri,
String token)
Returns the link to the session resource.
|
static URI |
buildSessionUri(URI baseUri,
String token)
Returns the URI to the session resource.
|
static com.atlassian.plugins.rest.common.Link |
buildUserLink(URI baseUri,
String username)
Returns the Link to the User resource looking up by username.
|
static URI |
buildUserPasswordUri(URI userUri)
Returns the URI to the user password resource.
|
static URI |
buildUserUri(URI baseUri,
String username)
Returns the URI to the User resource looking up by username.
|
static com.atlassian.plugins.rest.common.Link |
updateGroupLink(com.atlassian.plugins.rest.common.Link groupLink,
String groupName)
Returns an updated group Link with the specified group name.
|
static URI |
updateGroupUri(URI groupUri,
String groupName)
Returns an updated group URI with the specified group name.
|
static com.atlassian.plugins.rest.common.Link |
updateUserLink(com.atlassian.plugins.rest.common.Link userLink,
String username)
Returns an updated user Link with the specified username.
|
static URI |
updateUserUri(URI userUri,
String username)
Returns an updated user URI with the specified username.
|
public static com.atlassian.plugins.rest.common.Link buildUserLink(URI baseUri, String username)
baseUri - base URI of the REST serviceusername - Usernamepublic static URI buildUserUri(URI baseUri, String username)
baseUri - base URI of the REST serviceusername - Usernamepublic static URI buildDirectUserGroupUri(URI baseURI, String groupName, String username)
baseURI - base URI of the REST servicegroupName - Group nameusername - usernamepublic static com.atlassian.plugins.rest.common.Link updateUserLink(com.atlassian.plugins.rest.common.Link userLink,
String username)
userLink - current user Linkusername - new usernamepublic static URI updateUserUri(URI userUri, String username)
userUri - current user URIusername - new usernamepublic static com.atlassian.plugins.rest.common.Link buildGroupLink(URI baseUri, String groupName)
baseUri - base URI of the REST servicegroupName - group namepublic static URI buildGroupUri(URI baseURI, String groupName)
baseURI - base URI of the REST servicegroupName - Group namepublic static URI buildDirectChildGroupUri(URI baseURI, String groupName, String childGroupName)
baseURI - base URI of the REST servicegroupName - group namechildGroupName - child group namepublic static URI buildDirectParentGroupUri(URI baseURI, String groupName, String parentGroupName)
baseURI - base URI of the REST servicegroupName - group nameparentGroupName - parent group namepublic static URI buildDirectParentGroupOfUserUri(URI baseURI, String userName, String parentGroupName)
baseURI - base URI of the REST serviceuserName - user nameparentGroupName - parent group namepublic static com.atlassian.plugins.rest.common.Link updateGroupLink(com.atlassian.plugins.rest.common.Link groupLink,
String groupName)
groupLink - current group LinkgroupName - new group namepublic static URI updateGroupUri(URI groupUri, String groupName)
groupUri - current group URIgroupName - new group namepublic static URI buildEntityAttributeListUri(URI entityUri)
entityUri - URI to the entity.public static URI buildEntityAttributeUri(URI attributesUri, String attributeName)
attributesUri - URI to the entity attributes.attributeName - name of the attributepublic static URI buildUserPasswordUri(URI userUri)
userUri - URI to the user.public static URI buildSessionUri(URI baseUri, String token)
baseUri - base URI of the REST serviceCopyright © 2017 Atlassian. All rights reserved.