IdmIdentityService.addUserPrivilegeMapping
Code IndexAdd Codota to your IDE (free)

Best Java code snippets using org.flowable.idm.api.IdmIdentityService.addUserPrivilegeMapping (Showing top 2 results out of 315)

origin: org.flowable/flowable-ui-idm-logic

@Override
public void addUserPrivilege(String privilegeId, String userId) {
  if (!isUserPrivilege(privilegeId, userId)) {
    identityService.addUserPrivilegeMapping(privilegeId, userId);
  }
}
origin: org.flowable/flowable-idm-rest

@ApiOperation(value = "Adds a privilege for a user", nickname = "addUserPrivilege", tags = { "Privileges" })
@ApiResponses(value = {
    @ApiResponse(code = 200, message = "Indicates the user privilege has been added")
})
@RequestMapping(value = "privileges/{privilegeId}/users", method = RequestMethod.POST)
public void addUserPrivilege(@PathVariable String privilegeId, @RequestBody AddUserPrivilegeRequest request) {
  Privilege privilege = getPrivilegeById(privilegeId);
  
  if (restApiInterceptor != null) {
    restApiInterceptor.addUserPrivilege(privilege, request.getUserId());
  }
  
  identityService.addUserPrivilegeMapping(privilegeId, request.getUserId());
}

org.flowable.idm.apiIdmIdentityServiceaddUserPrivilegeMapping

Javadoc

Assigns a privilege to a user.

Popular methods of IdmIdentityService

  • createGroupQuery
    Creates a GroupQuery that allows to programmatically query the groups.
  • createUserQuery
    Creates a UserQuery that allows to programmatically query the users.
  • deleteGroup
    Deletes the group. When no group exists with the given id, this operation is ignored.
  • deleteMembership
    Delete the membership of the user in the group. When the group or user don't exist or when the user
  • deleteUser
  • newGroup
    Creates a new group. The group is transient and must be saved using #saveGroup(Group).
  • saveGroup
    Saves the group. If the group already existed, the group is updated.
  • createMembership
  • newUser
    Creates a new user. The user is transient and must be saved using #saveUser(User).
  • saveUser
    Saves the user. If the user already existed, the user is updated except user password. Use #updateUs
  • updateUserPassword
    Update user password. Use #saveUser(User) for new user.
  • checkPassword
    Checks if the password is valid for the given user. Arguments userId and password are nullsafe.
  • updateUserPassword,
  • checkPassword,
  • createPrivilegeQuery,
  • getUserPicture,
  • setUserPicture,
  • addGroupPrivilegeMapping,
  • createNativeGroupQuery,
  • createNativeUserQuery,
  • deleteUserInfo

Popular in Java

  • Running tasks concurrently on multiple threads
  • requestLocationUpdates (LocationManager)
  • notifyDataSetChanged (ArrayAdapter)
  • setScale (BigDecimal)
    Returns a BigDecimal whose scale is the specified value, and whose value is numerically equal to thi
  • Socket (java.net)
    Provides a client-side TCP socket.
  • SocketTimeoutException (java.net)
    This exception is thrown when a timeout expired on a socket read or accept operation.
  • Dictionary (java.util)
    Note: Do not use this class since it is obsolete. Please use the Map interface for new implementatio
  • ExecutorService (java.util.concurrent)
    An Executor that provides methods to manage termination and methods that can produce a Future for tr
  • Executors (java.util.concurrent)
    Factory and utility methods for Executor, ExecutorService, ScheduledExecutorService, ThreadFactory,
  • Logger (org.slf4j)
    The org.slf4j.Logger interface is the main user entry point of SLF4J API. It is expected that loggin

For IntelliJ IDEA,
Android Studio or Eclipse

  • Search for JavaScript code betaCodota IntelliJ IDEA pluginCodota Android Studio pluginCode IndexSign in
  • EnterpriseFAQAboutBlogContact Us
  • Plugin user guideTerms of usePrivacy policyCodeboxFind Usages
Add Codota to your IDE (free)