public class UserAuthenticationSourceService extends BaseService
DATA_TYPE_INT, DATA_TYPE_STRING, DEFAULT_FROM, DEFAULT_PAGE_SIZE, FIELDS_SEPARATOR, MEDIA_TYPE_TEXT_CSV_TYPE, MSG_CLUSTER_NOT_FOUND, MSG_CLUSTER_OR_HOST_NOT_FOUND, MSG_INVALID_ARGUMENTS, MSG_INVALID_REQUEST, MSG_NOT_AUTHENTICATED, MSG_PERMISSION_DENIED, MSG_REQUEST_ACCEPTED, MSG_RESOURCE_ALREADY_EXISTS, MSG_RESOURCE_NOT_FOUND, MSG_SERVER_ERROR, MSG_SUCCESSFUL_OPERATION, MSG_VIEW_NOT_FOUND, PARAM_TYPE_BODY, PARAM_TYPE_QUERY, QUERY_FIELDS, QUERY_FILTER_DESCRIPTION, QUERY_FROM, QUERY_FROM_DESCRIPTION, QUERY_FROM_VALUES, QUERY_PAGE_SIZE, QUERY_PAGE_SIZE_DESCRIPTION, QUERY_PREDICATE, QUERY_PREDICATE_DESCRIPTION, QUERY_SORT, QUERY_SORT_DESCRIPTION, QUERY_TO, QUERY_TO_DESCRIPTION, QUERY_TO_TYPE, QUERY_TO_VALUES, requestAuditLogger, RESPONSE_CONTAINER_LIST
Constructor and Description |
---|
UserAuthenticationSourceService() |
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Response |
createAuthenticationSources(String body,
javax.ws.rs.core.HttpHeaders headers,
javax.ws.rs.core.UriInfo ui,
String userName)
Creates an authentication source.
|
protected ResourceInstance |
createResource(String userName,
String sourceId) |
javax.ws.rs.core.Response |
deleteAuthenticationSource(String body,
javax.ws.rs.core.HttpHeaders headers,
javax.ws.rs.core.UriInfo ui,
String userName,
String sourceId)
Delete an authentication source.
|
javax.ws.rs.core.Response |
getAuthenticationSource(javax.ws.rs.core.HttpHeaders headers,
javax.ws.rs.core.UriInfo ui,
String userName,
String sourceId)
Handles: GET /users/{userName}/sources/{sourceID}
Get a specific authentication source.
|
javax.ws.rs.core.Response |
getAuthenticationSources(javax.ws.rs.core.HttpHeaders headers,
javax.ws.rs.core.UriInfo ui,
String userName)
Handles: GET /users/{userName}/sources
Get all authentication sources for the user.
|
javax.ws.rs.core.Response |
updateAuthenticationSource(String body,
javax.ws.rs.core.HttpHeaders headers,
javax.ws.rs.core.UriInfo ui,
String userName,
String sourceId)
Creates an authentication source.
|
createResource, getBodyParser, getResultSerializer, getResultSerializer, handleRequest, handleRequest, init
public javax.ws.rs.core.Response getAuthenticationSources(@Context javax.ws.rs.core.HttpHeaders headers, @Context javax.ws.rs.core.UriInfo ui, String userName)
headers
- http headersui
- uri infouserName
- user namepublic javax.ws.rs.core.Response getAuthenticationSource(@Context javax.ws.rs.core.HttpHeaders headers, @Context javax.ws.rs.core.UriInfo ui, String userName, String sourceId)
headers
- http headersui
- uri infouserName
- user namesourceId
- authentication source idpublic javax.ws.rs.core.Response createAuthenticationSources(String body, @Context javax.ws.rs.core.HttpHeaders headers, @Context javax.ws.rs.core.UriInfo ui, String userName)
headers
- http headersui
- uri infouserName
- user namepublic javax.ws.rs.core.Response updateAuthenticationSource(String body, @Context javax.ws.rs.core.HttpHeaders headers, @Context javax.ws.rs.core.UriInfo ui, String userName, String sourceId)
headers
- http headersui
- uri infouserName
- user namesourceId
- authentication source idpublic javax.ws.rs.core.Response deleteAuthenticationSource(String body, @Context javax.ws.rs.core.HttpHeaders headers, @Context javax.ws.rs.core.UriInfo ui, String userName, String sourceId)
headers
- http headersui
- uri infouserName
- user namesourceId
- authentication source idprotected ResourceInstance createResource(String userName, String sourceId)
Copyright © 2022 Apache Software Foundation. All rights reserved.