|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.crowd.plugin.rest.util.LinkUriHelper
public class LinkUriHelper
Helper for creating URI links to resources.
| Method Summary | |
|---|---|
static java.net.URI |
buildDirectChildGroupUri(java.net.URI baseURI,
java.lang.String groupName,
java.lang.String childGroupName)
Returns the URI to the group direct child group resource. |
static java.net.URI |
buildDirectParentGroupOfUserUri(java.net.URI baseURI,
java.lang.String userName,
java.lang.String parentGroupName)
Returns the URI to the direct group parent of a user resource. |
static java.net.URI |
buildDirectParentGroupUri(java.net.URI baseURI,
java.lang.String groupName,
java.lang.String parentGroupName)
Returns the URI to the group direct parent group resource. |
static java.net.URI |
buildDirectUserGroupUri(java.net.URI baseURI,
java.lang.String groupName,
java.lang.String username)
Returns the URI to the group direct user group resource. |
static java.net.URI |
buildEntityAttributeListUri(java.net.URI entityUri)
Returns the URI to the entity attribute list resource. |
static java.net.URI |
buildEntityAttributeUri(java.net.URI attributesUri,
java.lang.String attributeName)
Returns the URI to the entity attribute resource. |
static com.atlassian.plugins.rest.common.Link |
buildGroupLink(java.net.URI baseUri,
java.lang.String groupName)
Returns the Link to the Group resource. |
static java.net.URI |
buildGroupUri(java.net.URI baseURI,
java.lang.String groupName)
Returns the URI to the Group resource. |
static com.atlassian.plugins.rest.common.Link |
buildSessionLink(java.net.URI baseUri,
java.lang.String token)
Returns the link to the session resource. |
static java.net.URI |
buildSessionUri(java.net.URI baseUri,
java.lang.String token)
Returns the URI to the session resource. |
static com.atlassian.plugins.rest.common.Link |
buildUserLink(java.net.URI baseUri,
java.lang.String username)
Returns the Link to the User resource. |
static java.net.URI |
buildUserPasswordUri(java.net.URI userUri)
Returns the URI to the user password resource. |
static java.net.URI |
buildUserUri(java.net.URI baseUri,
java.lang.String username)
Returns the URI to the User resource. |
static com.atlassian.plugins.rest.common.Link |
updateGroupLink(com.atlassian.plugins.rest.common.Link groupLink,
java.lang.String groupName)
Returns an updated group Link with the specified group name. |
static java.net.URI |
updateGroupUri(java.net.URI groupUri,
java.lang.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,
java.lang.String username)
Returns an updated user Link with the specified username. |
static java.net.URI |
updateUserUri(java.net.URI userUri,
java.lang.String username)
Returns an updated user URI with the specified username. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static com.atlassian.plugins.rest.common.Link buildUserLink(java.net.URI baseUri,
java.lang.String username)
baseUri - base URI of the REST serviceusername - Username
public static java.net.URI buildUserUri(java.net.URI baseUri,
java.lang.String username)
baseUri - base URI of the REST serviceusername - Username
public static java.net.URI buildDirectUserGroupUri(java.net.URI baseURI,
java.lang.String groupName,
java.lang.String username)
baseURI - base URI of the REST servicegroupName - Group nameusername - username
public static com.atlassian.plugins.rest.common.Link updateUserLink(com.atlassian.plugins.rest.common.Link userLink,
java.lang.String username)
userLink - current user Linkusername - new username
public static java.net.URI updateUserUri(java.net.URI userUri,
java.lang.String username)
userUri - current user URIusername - new username
public static com.atlassian.plugins.rest.common.Link buildGroupLink(java.net.URI baseUri,
java.lang.String groupName)
baseUri - base URI of the REST servicegroupName - group name
public static java.net.URI buildGroupUri(java.net.URI baseURI,
java.lang.String groupName)
baseURI - base URI of the REST servicegroupName - Group name
public static java.net.URI buildDirectChildGroupUri(java.net.URI baseURI,
java.lang.String groupName,
java.lang.String childGroupName)
baseURI - base URI of the REST servicegroupName - group namechildGroupName - child group name
public static java.net.URI buildDirectParentGroupUri(java.net.URI baseURI,
java.lang.String groupName,
java.lang.String parentGroupName)
baseURI - base URI of the REST servicegroupName - group nameparentGroupName - parent group name
public static java.net.URI buildDirectParentGroupOfUserUri(java.net.URI baseURI,
java.lang.String userName,
java.lang.String parentGroupName)
baseURI - base URI of the REST serviceuserName - user nameparentGroupName - parent group name
public static com.atlassian.plugins.rest.common.Link updateGroupLink(com.atlassian.plugins.rest.common.Link groupLink,
java.lang.String groupName)
groupLink - current group LinkgroupName - new group name
public static java.net.URI updateGroupUri(java.net.URI groupUri,
java.lang.String groupName)
groupUri - current group URIgroupName - new group name
public static java.net.URI buildEntityAttributeListUri(java.net.URI entityUri)
entityUri - URI to the entity.
public static java.net.URI buildEntityAttributeUri(java.net.URI attributesUri,
java.lang.String attributeName)
attributesUri - URI to the entity attributes.attributeName - name of the attribute
public static java.net.URI buildUserPasswordUri(java.net.URI userUri)
userUri - URI to the user.
public static java.net.URI buildSessionUri(java.net.URI baseUri,
java.lang.String token)
baseUri - base URI of the REST service
public static com.atlassian.plugins.rest.common.Link buildSessionLink(java.net.URI baseUri,
java.lang.String token)
baseUri - base URI of the REST service
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||