|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.crowd.plugin.rest.util.LinkUriHelper
public class LinkUriHelper
Helper for creating URI links to resources.
Method Summary | |
---|---|
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. |
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. |
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. |
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(URI baseUri, String username)
baseUri
- base URI of the REST serviceusername
- Username
public static URI buildUserUri(URI baseUri, String username)
baseUri
- base URI of the REST serviceusername
- Username
public static URI buildDirectUserGroupUri(URI baseURI, String groupName, 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, String username)
userLink
- current user Linkusername
- new username
public static URI updateUserUri(URI userUri, String username)
userUri
- current user URIusername
- new username
public static com.atlassian.plugins.rest.common.Link buildGroupLink(URI baseUri, String groupName)
baseUri
- base URI of the REST servicegroupName
- group name
public static URI buildGroupUri(URI baseURI, String groupName)
baseURI
- base URI of the REST servicegroupName
- Group name
public static URI buildDirectChildGroupUri(URI baseURI, String groupName, String childGroupName)
baseURI
- base URI of the REST servicegroupName
- group namechildGroupName
- child group name
public static URI buildDirectParentGroupUri(URI baseURI, String groupName, String parentGroupName)
baseURI
- base URI of the REST servicegroupName
- group nameparentGroupName
- parent group name
public static URI buildDirectParentGroupOfUserUri(URI baseURI, String userName, 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, String groupName)
groupLink
- current group LinkgroupName
- new group name
public static URI updateGroupUri(URI groupUri, String groupName)
groupUri
- current group URIgroupName
- new group name
public 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 attribute
public static URI buildUserPasswordUri(URI userUri)
userUri
- URI to the user.
public static URI buildSessionUri(URI baseUri, String token)
baseUri
- base URI of the REST service
public static com.atlassian.plugins.rest.common.Link buildSessionLink(URI baseUri, 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 |