Class TestkitApplicationResource
java.lang.Object
com.atlassian.crowd.plugins.testkit.rest.TestkitApplicationResource
@Named
@Path("/application")
@Produces("application/json")
@Consumes("application/json")
public class TestkitApplicationResource
extends Object
-
Constructor Summary
ConstructorsConstructorDescriptionTestkitApplicationResource(ApplicationManager applicationManager, DirectoryManager directoryManager, DefaultGroupMembershipService defaultGroupMembershipService) -
Method Summary
Modifier and TypeMethodDescriptionjavax.ws.rs.core.ResponseaddDefaultGroup(Long applicationId, DefaultGroupMembershipConfigurationEntry entry) javax.ws.rs.core.ResponsecreateApplication(ApplicationImpl application, List<Long> directoryIds, List<Boolean> allowAll) javax.ws.rs.core.ResponsedeleteApplication(long applicationId) javax.ws.rs.core.ResponsedeleteDefaultGroups(Long applicationId, String directoryId) javax.ws.rs.core.ResponsefindDefaultGroups(Long applicationId, String directoryId) javax.ws.rs.core.ResponsesetApplicationLink(Long applicationId, String applicationLinkId) javax.ws.rs.core.ResponseupdateApplicationAllowedIps(Long applicationId, List<String> allowedIps) javax.ws.rs.core.ResponseupdateApplicationMappings(Long applicationId, Long directoryId, boolean allowAllToLogin) javax.ws.rs.core.ResponseupdateAttributes(Long applicationId, Map<String, String> attributes)
-
Constructor Details
-
TestkitApplicationResource
@Inject public TestkitApplicationResource(ApplicationManager applicationManager, DirectoryManager directoryManager, DefaultGroupMembershipService defaultGroupMembershipService)
-
-
Method Details
-
createApplication
@POST public javax.ws.rs.core.Response createApplication(ApplicationImpl application, @QueryParam("dirId") List<Long> directoryIds, @QueryParam("allowAll") List<Boolean> allowAll) throws Exception - Throws:
Exception
-
updateApplicationMappings
@PUT @Path("/{appId}/mappings/{dirId}") public javax.ws.rs.core.Response updateApplicationMappings(@PathParam("appId") Long applicationId, @PathParam("dirId") Long directoryId, @QueryParam("allowAll") @DefaultValue("true") boolean allowAllToLogin) throws ApplicationNotFoundException, DirectoryNotFoundException, IOException -
updateApplicationAllowedIps
@PUT @Path("/{appId}/remoteAddresses") public javax.ws.rs.core.Response updateApplicationAllowedIps(@PathParam("appId") Long applicationId, List<String> allowedIps) throws ApplicationNotFoundException, IOException, ApplicationManagerException -
deleteApplication
@DELETE @Path("/{id}") public javax.ws.rs.core.Response deleteApplication(@PathParam("id") long applicationId) throws Exception - Throws:
Exception
-
addDefaultGroup
@POST @Path("/{appId}/default-groups") public javax.ws.rs.core.Response addDefaultGroup(@PathParam("appId") Long applicationId, DefaultGroupMembershipConfigurationEntry entry) throws ApplicationNotFoundException, OperationFailedException -
setApplicationLink
@PUT @Path("/{appId}/application-link") public javax.ws.rs.core.Response setApplicationLink(@PathParam("appId") Long applicationId, @QueryParam("applicationLinkId") String applicationLinkId) throws ApplicationNotFoundException, ApplicationManagerException -
findDefaultGroups
@GET @Path("/{appId}/default-groups") public javax.ws.rs.core.Response findDefaultGroups(@PathParam("appId") Long applicationId, @QueryParam("directoryId") String directoryId) throws ApplicationNotFoundException, OperationFailedException -
deleteDefaultGroups
@DELETE @Path("/{appId}/default-groups") public javax.ws.rs.core.Response deleteDefaultGroups(@PathParam("appId") Long applicationId, String directoryId) throws ApplicationNotFoundException, OperationFailedException -
updateAttributes
@PUT @Path("/{appId}/attributes") public javax.ws.rs.core.Response updateAttributes(@PathParam("appId") Long applicationId, Map<String, String> attributes) throws ApplicationNotFoundException, ApplicationManagerException
-