Tabnine Logo
Role.setName
Code IndexAdd Tabnine to your IDE (free)

How to use
setName
method
in
com.netflix.spinnaker.fiat.model.resources.Role

Best Java code snippets using com.netflix.spinnaker.fiat.model.resources.Role.setName (Showing top 6 results out of 315)

origin: com.netflix.spinnaker.fiat/fiat-core

public Role(String name) {
 this.setName(name);
}
origin: spinnaker/fiat

public Role(String name) {
 this.setName(name);
}
origin: spinnaker/fiat

private static Role toRole(String name) {
 return new Role().setName(name.toLowerCase()).setSource(Role.Source.GITHUB_TEAMS);
}
origin: spinnaker/fiat

private static Role toRole(Group g) {
 return new Role().setName(g.getName().toLowerCase()).setSource(Role.Source.GOOGLE_GROUPS);
}
origin: com.netflix.spinnaker.fiat/fiat-google-groups

private static Role toRole(Group g) {
 return new Role().setName(g.getName().toLowerCase()).setSource(Role.Source.GOOGLE_GROUPS);
}
origin: spinnaker/fiat

@RequestMapping(value = "/{userId:.+}", method = RequestMethod.PUT)
public void putUserPermission(@PathVariable String userId,
               @RequestBody @NonNull List<String> externalRoles) {
 List<Role> convertedRoles = externalRoles
   .stream()
   .map(extRole -> new Role().setSource(Role.Source.EXTERNAL).setName(extRole))
   .collect(Collectors.toList());
 ExternalUser extUser = new ExternalUser().setId(ControllerSupport.convert(userId))
                      .setExternalRoles(convertedRoles);
 try {
  UserPermission userPermission = permissionsResolver.resolveAndMerge(extUser);
  log.debug(
    "Updated user permissions (userId: {}, roles: {}, suppliedExternalRoles: {})",
    userId,
    userPermission.getRoles().stream().map(Role::getName).collect(Collectors.toList()),
    externalRoles
  );
  permissionsRepository.put(userPermission);
 } catch (PermissionResolutionException pre) {
  throw new UserPermissionModificationException(pre);
 }
}
com.netflix.spinnaker.fiat.model.resourcesRolesetName

Popular methods of Role

  • <init>
  • setSource
  • getName
  • getSource

Popular in Java

  • Reading from database using SQL prepared statement
  • getExternalFilesDir (Context)
  • addToBackStack (FragmentTransaction)
  • compareTo (BigDecimal)
  • Menu (java.awt)
  • Rectangle (java.awt)
    A Rectangle specifies an area in a coordinate space that is enclosed by the Rectangle object's top-
  • BufferedWriter (java.io)
    Wraps an existing Writer and buffers the output. Expensive interaction with the underlying reader is
  • HashSet (java.util)
    HashSet is an implementation of a Set. All optional operations (adding and removing) are supported.
  • TreeSet (java.util)
    TreeSet is an implementation of SortedSet. All optional operations (adding and removing) are support
  • ImageIO (javax.imageio)
  • Best plugins for Eclipse
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