@Named @Path(value="/application") @Produces(value="application/json") @Consumes(value="application/json") public class TestkitApplicationResource extends Object
| Constructor and Description |
|---|
TestkitApplicationResource(ApplicationManager applicationManager,
DirectoryManager directoryManager,
DefaultGroupMembershipService defaultGroupMembershipService) |
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
addDefaultGroup(Long applicationId,
DefaultGroupMembershipConfigurationEntry entry) |
javax.ws.rs.core.Response |
createApplication(ApplicationImpl application,
List<Long> directoryIds,
List<Boolean> allowAll) |
javax.ws.rs.core.Response |
deleteApplication(long applicationId) |
javax.ws.rs.core.Response |
deleteDefaultGroups(Long applicationId,
String directoryId) |
javax.ws.rs.core.Response |
findDefaultGroups(Long applicationId,
String directoryId) |
javax.ws.rs.core.Response |
setApplicationLink(Long applicationId,
String applicationLinkId) |
javax.ws.rs.core.Response |
updateApplicationAllowedIps(Long applicationId,
List<String> allowedIps) |
javax.ws.rs.core.Response |
updateApplicationMappings(Long applicationId,
Long directoryId,
boolean allowAllToLogin) |
javax.ws.rs.core.Response |
updateAttributes(Long applicationId,
Map<String,String> attributes) |
@Inject public TestkitApplicationResource(ApplicationManager applicationManager, DirectoryManager directoryManager, DefaultGroupMembershipService defaultGroupMembershipService)
@POST public javax.ws.rs.core.Response createApplication(ApplicationImpl application, @QueryParam(value="dirId") List<Long> directoryIds, @QueryParam(value="allowAll") List<Boolean> allowAll) throws Exception
Exception@PUT
@Path(value="/{appId}/mappings/{dirId}")
public javax.ws.rs.core.Response updateApplicationMappings(@PathParam(value="appId")
Long applicationId,
@PathParam(value="dirId")
Long directoryId,
@QueryParam(value="allowAll") @DefaultValue(value="true")
boolean allowAllToLogin)
throws ApplicationNotFoundException,
DirectoryNotFoundException,
IOException
@PUT
@Path(value="/{appId}/remoteAddresses")
public javax.ws.rs.core.Response updateApplicationAllowedIps(@PathParam(value="appId")
Long applicationId,
List<String> allowedIps)
throws ApplicationNotFoundException,
IOException,
ApplicationManagerException
@DELETE
@Path(value="/{id}")
public javax.ws.rs.core.Response deleteApplication(@PathParam(value="id")
long applicationId)
throws Exception
Exception@POST
@Path(value="/{appId}/default-groups")
public javax.ws.rs.core.Response addDefaultGroup(@PathParam(value="appId")
Long applicationId,
DefaultGroupMembershipConfigurationEntry entry)
throws ApplicationNotFoundException,
OperationFailedException
@PUT
@Path(value="/{appId}/application-link")
public javax.ws.rs.core.Response setApplicationLink(@PathParam(value="appId")
Long applicationId,
@QueryParam(value="applicationLinkId")
String applicationLinkId)
throws ApplicationNotFoundException,
ApplicationManagerException
@GET
@Path(value="/{appId}/default-groups")
public javax.ws.rs.core.Response findDefaultGroups(@PathParam(value="appId")
Long applicationId,
@QueryParam(value="directoryId")
String directoryId)
throws ApplicationNotFoundException,
OperationFailedException
@DELETE
@Path(value="/{appId}/default-groups")
public javax.ws.rs.core.Response deleteDefaultGroups(@PathParam(value="appId")
Long applicationId,
String directoryId)
throws ApplicationNotFoundException,
OperationFailedException
@PUT
@Path(value="/{appId}/attributes")
public javax.ws.rs.core.Response updateAttributes(@PathParam(value="appId")
Long applicationId,
Map<String,String> attributes)
throws ApplicationNotFoundException,
ApplicationManagerException
Copyright © 2023 Atlassian. All rights reserved.