@Path(value="licensing") @Consumes(value="application/json") @Produces(value="application/json") public class ApplicationLicensingResource extends Object
Constructor and Description |
---|
ApplicationLicensingResource(ApplicationLicensingController controller,
com.atlassian.event.api.EventPublisher eventPublisher) |
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Response |
exportLicensedUsers(Long applicationId,
String search,
String directoryId,
String jiraType,
Long lastLoginBefore,
Long searchVersion,
javax.servlet.http.HttpServletResponse response)
Returns license consuming users for given application, matching provided restrictions
|
javax.ws.rs.core.Response |
getLicensingSummary(Long applicationId,
Long version,
String jiraType)
Return the licensing summary if available
|
javax.ws.rs.core.Response |
listDirectories(Long applicationId,
Long version,
String jiraType,
RestPageRequest restPageRequest)
Returns list of directories linked to the users who are consuming licenses in the given application,
matching provided version of data and subtype of the application, if it's Jira
|
javax.ws.rs.core.Response |
listJiraTypes(Long applicationId,
Long version)
Returns list of application sub-types available for the given Jira application.
|
javax.ws.rs.core.Response |
searchLicensedUsers(Long applicationId,
LicensedUserSearchParameters searchParameters,
RestPageRequest restPageRequest)
Searches license consuming users along with the total count of users for given application, matching provided restrictions
|
public ApplicationLicensingResource(ApplicationLicensingController controller, com.atlassian.event.api.EventPublisher eventPublisher)
@POST @Path(value="{applicationId}/licensed-users/search") @ExperimentalApi public javax.ws.rs.core.Response searchLicensedUsers(@PathParam(value="applicationId") Long applicationId, LicensedUserSearchParameters searchParameters, @Context RestPageRequest restPageRequest) throws ObjectNotFoundException
applicationId
- the application's identifiersearchParameters
- search restrictionrestPageRequest
- paging detailsObjectNotFoundException
@GET @Produces(value="text/csv") @Path(value="{applicationId}/licensed-users/download") @ExperimentalApi public javax.ws.rs.core.Response exportLicensedUsers(@PathParam(value="applicationId") Long applicationId, @QueryParam(value="search") String search, @QueryParam(value="directoryId") String directoryId, @QueryParam(value="jiraType") String jiraType, @QueryParam(value="lastLoginBefore") Long lastLoginBefore, @QueryParam(value="searchVersion") Long searchVersion, @Context javax.servlet.http.HttpServletResponse response) throws ObjectNotFoundException, IOException
applicationId
- the application's identifiersearch
- search textdirectoryId
- the directory's identifierjiraType
- subtype, required only for Jira applicationlastLoginBefore
- last logged in date on or beforesearchVersion
- licensing data versionObjectNotFoundException
IOException
@GET @Path(value="{applicationId}/directories") @ExperimentalApi public javax.ws.rs.core.Response listDirectories(@PathParam(value="applicationId") Long applicationId, @QueryParam(value="version") Long version, @QueryParam(value="jiraType") String jiraType, @Context RestPageRequest restPageRequest) throws ApplicationNotFoundException
applicationId
- the application's identifierversion
- licensing data versionjiraType
- subtype of Jira, only if the application type is JirarestPageRequest
- Paginated request parametersApplicationNotFoundException
@GET @Path(value="{applicationId}/jira-types") @ExperimentalApi public javax.ws.rs.core.Response listJiraTypes(@PathParam(value="applicationId") Long applicationId, @QueryParam(value="version") Long version) throws ApplicationNotFoundException
applicationId
- the application's identifierversion
- licensing data versionApplicationNotFoundException
@GET @Path(value="{applicationId}/summary") @ExperimentalApi public javax.ws.rs.core.Response getLicensingSummary(@PathParam(value="applicationId") Long applicationId, @QueryParam(value="version") Long version, @QueryParam(value="jiraType") String jiraType) throws ApplicationNotFoundException
applicationId
- the application's identifierversion
- licensing data versionjiraType
- subtype, required only for Jira applicationApplicationNotFoundException
Copyright © 2021 Atlassian. All rights reserved.