Tabnine Logo
Authorizer.listAllRoles
Code IndexAdd Tabnine to your IDE (free)

How to use
listAllRoles
method
in
co.cask.cdap.security.spi.authorization.Authorizer

Best Java code snippets using co.cask.cdap.security.spi.authorization.Authorizer.listAllRoles (Showing top 3 results out of 315)

origin: cdapio/cdap

@Path("/roles")
@GET
public void listAllRoles(HttpRequest httpRequest, HttpResponder httpResponder) throws Exception {
 ensureSecurityEnabled();
 httpResponder.sendJson(HttpResponseStatus.OK, GSON.toJson(authorizer.listAllRoles()));
 createLogEntry(httpRequest, HttpResponseStatus.OK);
}
origin: co.cask.cdap/cdap-app-fabric

@Path("/roles")
@GET
public void listAllRoles(HttpRequest httpRequest, HttpResponder httpResponder) throws Exception {
 ensureSecurityEnabled();
 httpResponder.sendJson(HttpResponseStatus.OK, GSON.toJson(authorizer.listAllRoles()));
 createLogEntry(httpRequest, HttpResponseStatus.OK);
}
origin: cdapio/cdap

Set<Role> roles = authorizer.listAllRoles();
Set<Role> expectedRoles = new HashSet<>();
expectedRoles.add(admins);
roles = authorizer.listAllRoles();
Assert.assertEquals(Collections.singleton(engineers), roles);
co.cask.cdap.security.spi.authorizationAuthorizerlistAllRoles

Javadoc

Returns all available Role. Only a super user can perform this operation.

Popular methods of Authorizer

  • grant
  • listPrivileges
  • revoke
  • enforce
  • addRoleToPrincipal
    Add a role to the specified Principal.
  • createRole
    Create a role.
  • dropRole
    Drop a role.
  • isVisible
  • listRoles
    Returns a set of all Role for the specified Principal.
  • removeRoleFromPrincipal
    Delete a role from the specified Principal.
  • destroy
    Destroys an Authorizer. Authorization extensions can use this method to write any cleanup code.
  • initialize
    Initialize the Authorizer. Authorization extensions can use this method to access an AuthorizationCo
  • destroy,
  • initialize

Popular in Java

  • Parsing JSON documents to java classes using gson
  • setRequestProperty (URLConnection)
  • setScale (BigDecimal)
  • getContentResolver (Context)
  • FlowLayout (java.awt)
    A flow layout arranges components in a left-to-right flow, much like lines of text in a paragraph. F
  • GregorianCalendar (java.util)
    GregorianCalendar is a concrete subclass of Calendarand provides the standard calendar used by most
  • TreeMap (java.util)
    Walk the nodes of the tree left-to-right or right-to-left. Note that in descending iterations, next
  • AtomicInteger (java.util.concurrent.atomic)
    An int value that may be updated atomically. See the java.util.concurrent.atomic package specificati
  • Modifier (javassist)
    The Modifier class provides static methods and constants to decode class and member access modifiers
  • Servlet (javax.servlet)
    Defines methods that all servlets must implement. A servlet is a small Java program that runs within
  • Github Copilot alternatives
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