Class ApplicationLicensingResource
java.lang.Object
com.atlassian.crowd.plugin.rest.service.resource.licensing.ApplicationLicensingResource
@Path("licensing")
@Consumes("application/json")
@Produces("application/json")
public class ApplicationLicensingResource
extends Object
Resource for application licensing
- Since:
- 3.5.0
-
Constructor Summary
ConstructorDescriptionApplicationLicensingResource
(ApplicationLicensingController controller, com.atlassian.event.api.EventPublisher eventPublisher) -
Method Summary
Modifier and TypeMethodDescriptionjavax.ws.rs.core.Response
exportLicensedUsers
(Long applicationId, String search, String directoryId, String jiraType, Long lastLoginBefore, Long searchVersion, javax.servlet.http.HttpServletResponse response) javax.ws.rs.core.Response
getLicensingSummary
(Long applicationId, Long version, String jiraType) javax.ws.rs.core.Response
listDirectories
(RestPageRequest restPageRequest, Long applicationId, Long version, String jiraType) javax.ws.rs.core.Response
listJiraTypes
(Long applicationId, Long version) javax.ws.rs.core.Response
searchLicensedUsers
(RestPageRequest restPageRequest, Long applicationId, LicensedUserSearchParameters searchParameters)
-
Constructor Details
-
ApplicationLicensingResource
@Inject public ApplicationLicensingResource(ApplicationLicensingController controller, com.atlassian.event.api.EventPublisher eventPublisher)
-
-
Method Details
-
searchLicensedUsers
@POST @Path("{applicationId}/licensed-users/search") public javax.ws.rs.core.Response searchLicensedUsers(@BeanParam RestPageRequest restPageRequest, @PathParam("applicationId") Long applicationId, LicensedUserSearchParameters searchParameters) throws ObjectNotFoundException - Throws:
ObjectNotFoundException
-
exportLicensedUsers
@GET @Produces("text/csv") @Path("{applicationId}/licensed-users/download") public javax.ws.rs.core.Response exportLicensedUsers(@PathParam("applicationId") Long applicationId, @QueryParam("search") String search, @QueryParam("directoryId") String directoryId, @QueryParam("jiraType") String jiraType, @QueryParam("lastLoginBefore") Long lastLoginBefore, @QueryParam("searchVersion") Long searchVersion, @Context javax.servlet.http.HttpServletResponse response) throws ObjectNotFoundException, IOException - Throws:
ObjectNotFoundException
IOException
-
listDirectories
@GET @Path("{applicationId}/directories") public javax.ws.rs.core.Response listDirectories(@BeanParam RestPageRequest restPageRequest, @PathParam("applicationId") Long applicationId, @QueryParam("version") Long version, @QueryParam("jiraType") String jiraType) throws ApplicationNotFoundException - Throws:
ApplicationNotFoundException
-
listJiraTypes
@GET @Path("{applicationId}/jira-types") public javax.ws.rs.core.Response listJiraTypes(@PathParam("applicationId") Long applicationId, @QueryParam("version") Long version) throws ApplicationNotFoundException - Throws:
ApplicationNotFoundException
-
getLicensingSummary
@GET @Path("{applicationId}/summary") public javax.ws.rs.core.Response getLicensingSummary(@PathParam("applicationId") Long applicationId, @QueryParam("version") Long version, @QueryParam("jiraType") String jiraType) throws ApplicationNotFoundException - Throws:
ApplicationNotFoundException
-