|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.crowd.plugin.rest.service.resource.ApplicationResource
public class ApplicationResource
Represents an Application resource.
| Field Summary | |
|---|---|
static java.lang.String |
APPLICATION_NAME_QUERY_PARAM
|
protected javax.servlet.http.HttpServletRequest |
request
|
protected javax.ws.rs.core.UriInfo |
uriInfo
|
| Constructor Summary | |
|---|---|
ApplicationResource(ApplicationController applicationController)
|
|
| Method Summary | |
|---|---|
javax.ws.rs.core.Response |
addApplication(boolean includeRequestAddress,
ApplicationEntity applicationEntity)
Adds a new application. |
javax.ws.rs.core.Response |
addRemoteAddress(long applicationId,
RemoteAddressEntity remoteAddressEntity)
Adds the remote address to the specified application. |
javax.ws.rs.core.Response |
getApplicationById(long applicationId)
Returns the specified application. |
javax.ws.rs.core.Response |
getApplications(java.lang.String applicationName)
Returns all the applications or a specific application by name |
javax.ws.rs.core.Response |
getRemoteAddresses(long applicationId)
Returns the remote addresses of the specified application. |
javax.ws.rs.core.Response |
removeApplication(long applicationId)
Removes the specified application. |
javax.ws.rs.core.Response |
removeRemoteAddress(long applicationId,
java.lang.String remoteAddress)
Removes the remote address of the specified application. |
javax.ws.rs.core.Response |
updateApplication(long applicationId,
ApplicationEntity applicationEntity)
Updates the specified application. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String APPLICATION_NAME_QUERY_PARAM
@Context protected javax.ws.rs.core.UriInfo uriInfo
@Context protected javax.servlet.http.HttpServletRequest request
| Constructor Detail |
|---|
public ApplicationResource(ApplicationController applicationController)
| Method Detail |
|---|
public javax.ws.rs.core.Response getApplications(java.lang.String applicationName)
throws ApplicationNotFoundException
ApplicationNotFoundException
public javax.ws.rs.core.Response getApplicationById(long applicationId)
throws ApplicationNotFoundException
applicationId - ID of the application
ApplicationNotFoundException
public javax.ws.rs.core.Response addApplication(boolean includeRequestAddress,
ApplicationEntity applicationEntity)
throws DirectoryNotFoundException,
InvalidCredentialException
applicationEntity - new application entity
DirectoryNotFoundException
InvalidCredentialException
public javax.ws.rs.core.Response removeApplication(long applicationId)
throws ApplicationManagerException
applicationId - ID of the application
ApplicationManagerException
public javax.ws.rs.core.Response updateApplication(long applicationId,
ApplicationEntity applicationEntity)
throws ApplicationNotFoundException,
DirectoryNotFoundException,
ApplicationManagerException
applicationId - ID of the application
ApplicationNotFoundException
DirectoryNotFoundException
ApplicationManagerException
public javax.ws.rs.core.Response getRemoteAddresses(long applicationId)
throws ApplicationNotFoundException
applicationId - ID of the application
ApplicationNotFoundException
public javax.ws.rs.core.Response addRemoteAddress(long applicationId,
RemoteAddressEntity remoteAddressEntity)
throws ApplicationNotFoundException,
DirectoryNotFoundException,
ApplicationManagerException
applicationId - ID of the applicationremoteAddressEntity - remote address entity
ApplicationNotFoundException
DirectoryNotFoundException
ApplicationManagerException
public javax.ws.rs.core.Response removeRemoteAddress(long applicationId,
java.lang.String remoteAddress)
throws ApplicationNotFoundException,
DirectoryNotFoundException,
ApplicationManagerException
applicationId - ID of the applicationremoteAddress - remote address to remove
ApplicationNotFoundException
DirectoryNotFoundException
ApplicationManagerException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||