congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
SecurityProcessor.renderRoles
Code IndexAdd Tabnine to your IDE (free)

How to use
renderRoles
method
in
org.eclipse.dirigible.runtime.security.processor.SecurityProcessor

Best Java code snippets using org.eclipse.dirigible.runtime.security.processor.SecurityProcessor.renderRoles (Showing top 2 results out of 315)

origin: org.eclipse.dirigible/dirigible-runtime-security

/**
 * List roles.
 *
 * @return the response
 * @throws AccessException
 *             the access exception
 */
@GET
@Path("/roles")
public Response listRoles() throws AccessException {
  String user = UserFacade.getName();
  if (user == null) {
    sendErrorForbidden(response, NO_LOGGED_IN_USER);
    return Response.status(Status.FORBIDDEN).build();
  }
  return Response.ok().entity(processor.renderRoles()).type(ContentTypeHelper.APPLICATION_JSON).build();
}
origin: org.eclipse.dirigible/dirigible-service-security

/**
 * List roles.
 *
 * @return the response
 * @throws AccessException
 *             the access exception
 */
@GET
@Path("/roles")
public Response listSecurityRoles() throws AccessException {
  String user = UserFacade.getName();
  if (user == null) {
    sendErrorForbidden(response, NO_LOGGED_IN_USER);
    return Response.status(Status.FORBIDDEN).build();
  }
  return Response.ok().entity(processor.renderRoles()).type(ContentTypeHelper.APPLICATION_JSON).build();
}
org.eclipse.dirigible.runtime.security.processorSecurityProcessorrenderRoles

Javadoc

Render roles.

Popular methods of SecurityProcessor

  • renderAccess
    Render access.

Popular in Java

  • Creating JSON documents from java classes using gson
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • onCreateOptionsMenu (Activity)
  • getApplicationContext (Context)
  • Table (com.google.common.collect)
    A collection that associates an ordered pair of keys, called a row key and a column key, with a sing
  • Path (java.nio.file)
  • SecureRandom (java.security)
    This class generates cryptographically secure pseudo-random numbers. It is best to invoke SecureRand
  • LinkedHashMap (java.util)
    LinkedHashMap is an implementation of Map that guarantees iteration order. All optional operations a
  • ZipFile (java.util.zip)
    This class provides random read access to a zip file. You pay more to read the zip file's central di
  • Logger (org.apache.log4j)
    This is the central class in the log4j package. Most logging operations, except configuration, are d
  • Top Vim 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