|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.crowd.plugin.rest.service.controller.ApplicationController
public class ApplicationController
Controller for the Application resource.
| Constructor Summary | |
|---|---|
ApplicationController(ApplicationManager applicationManager,
DirectoryManager directoryManager,
TrustedProxyManager trustedProxyManager)
|
|
| Method Summary | |
|---|---|
com.atlassian.plugins.rest.common.Link |
addApplication(ApplicationEntity applicationEntity,
java.net.URI baseUri)
Adds a new application. |
com.atlassian.plugins.rest.common.Link |
addApplicationWithRequestAddress(ApplicationEntity applicationEntity,
javax.servlet.http.HttpServletRequest request,
java.net.URI baseUri)
Adds a new application with the request address. |
void |
addRemoteAddress(long applicationId,
RemoteAddressEntity remoteAddressEntity)
Adds a remote address to the list of allowed addresses for the application. |
ApplicationEntityList |
getAllApplications(java.net.URI baseUri)
Finds all applications. |
ApplicationEntity |
getApplicationById(long id,
java.net.URI baseUri)
Finds an application by ID. |
ApplicationEntity |
getApplicationByName(java.lang.String name,
java.net.URI baseUri)
Finds an application by name. |
java.util.Set<java.lang.String> |
getRequestAddresses(javax.servlet.http.HttpServletRequest request)
Retrieves the list of request addresses. |
void |
removeApplication(long applicationId)
Removes an application. |
void |
removeRemoteAddress(long applicationId,
java.lang.String remoteAddress)
Removes a remote address from the list of allowed addresses for the application. |
void |
updateApplication(ApplicationEntity applicationEntity)
Updates an existing application. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ApplicationController(ApplicationManager applicationManager,
DirectoryManager directoryManager,
TrustedProxyManager trustedProxyManager)
| Method Detail |
|---|
public ApplicationEntity getApplicationByName(java.lang.String name,
java.net.URI baseUri)
throws ApplicationNotFoundException
name - name of the applicationbaseUri - base URI of the REST service
ApplicationNotFoundException - if the application could not be found
public ApplicationEntity getApplicationById(long id,
java.net.URI baseUri)
throws ApplicationNotFoundException
id - ID of the applicationbaseUri - baseURI of the applications resource
ApplicationNotFoundException - if the application could not be found
public ApplicationEntityList getAllApplications(java.net.URI baseUri)
throws ApplicationNotFoundException
baseUri - base URI of the REST service
ApplicationNotFoundException - if the application could not be found
public com.atlassian.plugins.rest.common.Link addApplicationWithRequestAddress(ApplicationEntity applicationEntity,
javax.servlet.http.HttpServletRequest request,
java.net.URI baseUri)
throws InvalidCredentialException,
DirectoryNotFoundException
applicationEntity - new application to addrequest - HTTP requestbaseUri - base URI of the REST service
InvalidCredentialException - if the given credentials are not valid
DirectoryNotFoundException - if the directory being mapped could not be found
public com.atlassian.plugins.rest.common.Link addApplication(ApplicationEntity applicationEntity,
java.net.URI baseUri)
throws InvalidCredentialException,
DirectoryNotFoundException
applicationEntity - new application to addbaseUri - base URI of the REST service
InvalidCredentialException - if the given credentials are not valid
DirectoryNotFoundException - if the directory being mapped could not be found
public void removeApplication(long applicationId)
throws ApplicationManagerException
applicationId - ID of the application
ApplicationManagerException - if the remove operation is not permitted on the given application
public void updateApplication(ApplicationEntity applicationEntity)
throws ApplicationNotFoundException,
ApplicationManagerException,
DirectoryNotFoundException
applicationEntity - application entity with the new details
ApplicationNotFoundException - if the application could not be found
ApplicationManagerException - if there was an error updating the application
DirectoryNotFoundException - if a directory referenced by a directory mapping could not be found
public void addRemoteAddress(long applicationId,
RemoteAddressEntity remoteAddressEntity)
throws ApplicationNotFoundException
applicationId - ID of the applicationremoteAddressEntity - remote address entity to add
ApplicationNotFoundException - if the application could not be found
public void removeRemoteAddress(long applicationId,
java.lang.String remoteAddress)
throws ApplicationNotFoundException
applicationId - ID of the applicationremoteAddress - remote address to remove
ApplicationNotFoundException - if the application could not be foundpublic java.util.Set<java.lang.String> getRequestAddresses(javax.servlet.http.HttpServletRequest request)
request - HTTP request
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||