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

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

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

origin: eclipse/kapua

/**
 * Counts 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 count 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 = "credentialCount", value = "Counts the Credentials", notes = "Counts the Credentials with the given CredentialQuery parameter returning the number of matching Credentials", response = CountResult.class)
@POST
@Path("_count")
@Consumes({ MediaType.APPLICATION_XML, MediaType.APPLICATION_JSON })
@Produces({ MediaType.APPLICATION_XML, MediaType.APPLICATION_JSON })
public CountResult count(
    @ApiParam(value = "The ScopeId in which to count results", required = true, defaultValue = DEFAULT_SCOPE_ID) @PathParam("scopeId") ScopeId scopeId,
    @ApiParam(value = "The CredentialQuery to use to filter count results", required = true) CredentialQuery query) throws Exception {
  query.setScopeId(scopeId);
  return new CountResult(credentialService.count(query));
}
org.eclipse.kapua.service.authentication.credentialCredentialServicecount

Popular methods of CredentialService

  • create
  • update
  • 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
  • query
  • setConfigValues
  • unlock
    Unlocks a Credential

Popular in Java

  • Reactive rest calls using spring rest template
  • setScale (BigDecimal)
  • onCreateOptionsMenu (Activity)
  • getApplicationContext (Context)
  • Kernel (java.awt.image)
  • MessageFormat (java.text)
    Produces concatenated messages in language-neutral way. New code should probably use java.util.Forma
  • Callable (java.util.concurrent)
    A task that returns a result and may throw an exception. Implementors define a single method with no
  • Collectors (java.util.stream)
  • JPanel (javax.swing)
  • Options (org.apache.commons.cli)
    Main entry-point into the library. Options represents a collection of Option objects, which describ
  • Top Sublime Text plugins
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