Tabnine Logo
CredentialService.query
Code IndexAdd Tabnine to your IDE (free)

How to use
query
method
in
org.eclipse.kapua.service.authentication.credential.CredentialService

Best Java code snippets using org.eclipse.kapua.service.authentication.credential.CredentialService.query (Showing top 1 results out of 315)

origin: eclipse/kapua

/**
 * Queries the results with the given {@link CredentialQuery} parameter.
 *
 * @param scopeId
 *            The {@link ScopeId} in which to search results.
 * @param query
 *            The {@link CredentialQuery} to use to filter results.
 * @return The {@link CredentialListResult} of all the result matching the given {@link CredentialQuery} parameter.
 * @throws Exception
 *             Whenever something bad happens. See specific {@link KapuaService} exceptions.
 * @since 1.0.0
 */
@ApiOperation(nickname = "credentialQuery", value = "Queries the Credentials", notes = "Queries the Credentials with the given CredentialQuery parameter returning all matching Credentials", response = CredentialListResult.class)
@POST
@Path("_query")
@Consumes({ MediaType.APPLICATION_XML, MediaType.APPLICATION_JSON })
@Produces({ MediaType.APPLICATION_XML, MediaType.APPLICATION_JSON })
public CredentialListResult query(
    @ApiParam(value = "The ScopeId in which to search results.", required = true, defaultValue = DEFAULT_SCOPE_ID) @PathParam("scopeId") ScopeId scopeId,
    @ApiParam(value = "The CredentialQuery to use to filter results.", required = true) CredentialQuery query) throws Exception {
  query.setScopeId(scopeId);
  return credentialService.query(query);
}
org.eclipse.kapua.service.authentication.credentialCredentialServicequery

Popular methods of CredentialService

  • create
  • update
  • count
  • delete
  • find
  • findByApiKey
    Returns the Credential of type CredentialType#API_KEY matching the given parameters
  • findByUserId
    Return the credential list result looking by user identifier (and also scope identifier)
  • getConfigValues
  • setConfigValues
  • unlock
    Unlocks a Credential

Popular in Java

  • Parsing JSON documents to java classes using gson
  • putExtra (Intent)
  • setScale (BigDecimal)
  • setRequestProperty (URLConnection)
  • Window (java.awt)
    A Window object is a top-level window with no borders and no menubar. The default layout for a windo
  • BigDecimal (java.math)
    An immutable arbitrary-precision signed decimal.A value is represented by an arbitrary-precision "un
  • Socket (java.net)
    Provides a client-side TCP socket.
  • Format (java.text)
    The base class for all formats. This is an abstract base class which specifies the protocol for clas
  • ExecutorService (java.util.concurrent)
    An Executor that provides methods to manage termination and methods that can produce a Future for tr
  • DataSource (javax.sql)
    An interface for the creation of Connection objects which represent a connection to a database. This
  • Top 12 Jupyter Notebook extensions
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now