com.atlassian.crowd.plugin.rest.service.resource
Class AliasResource

java.lang.Object
  extended by com.atlassian.crowd.plugin.rest.service.resource.AliasResource

public class AliasResource
extends Object


Constructor Summary
AliasResource(ApplicationController applicationController)
           
 
Method Summary
 javax.ws.rs.core.Response deleteAlias(long applicationId, String username)
           
 String getAlias(long applicationId, String username)
           
 String getAllAliasesForUserAsJson(String username)
           
 String getUsernameForAlias(long applicationId, String alias)
           
 javax.ws.rs.core.Response setAlias(long applicationId, String username, String alias)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AliasResource

public AliasResource(ApplicationController applicationController)
Method Detail

getAlias

public String getAlias(long applicationId,
                       String username)
                throws ApplicationNotFoundException
Throws:
ApplicationNotFoundException

setAlias

public javax.ws.rs.core.Response setAlias(long applicationId,
                                          String username,
                                          String alias)
                                   throws ApplicationNotFoundException,
                                          AliasAlreadyInUseException
Throws:
ApplicationNotFoundException
AliasAlreadyInUseException

deleteAlias

public javax.ws.rs.core.Response deleteAlias(long applicationId,
                                             String username)
                                      throws ApplicationNotFoundException,
                                             AliasAlreadyInUseException
Throws:
ApplicationNotFoundException
AliasAlreadyInUseException

getUsernameForAlias

public String getUsernameForAlias(long applicationId,
                                  String alias)
                           throws ApplicationNotFoundException
Throws:
ApplicationNotFoundException

getAllAliasesForUserAsJson

public String getAllAliasesForUserAsJson(String username)


Copyright © 2013 Atlassian. All Rights Reserved.