public class PermissionAssignment
extends java.lang.Object
PermissionManagementService service method arguments and return type. Instances of
this class keep permission assignment details: Permission name, Principal to which the permission is (to be) assigned
and the granted/denied flag. When constructing instances of this class, by default the permission is "granted". There
is another constructor that allows to explicitly deny a permission.| Constructor and Description |
|---|
PermissionAssignment(java.lang.String permissionName,
PrincipalModel principal)
Constructor for "granting" a permission.
|
PermissionAssignment(java.lang.String permissionName,
PrincipalModel principal,
boolean denied)
This constructor can be used to create a denying permission assignment.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getPermissionName() |
PrincipalModel |
getPrincipal() |
int |
hashCode() |
boolean |
isDenied() |
boolean |
isGranted() |
java.lang.String |
toString() |
public PermissionAssignment(java.lang.String permissionName,
PrincipalModel principal)
public PermissionAssignment(java.lang.String permissionName,
PrincipalModel principal,
boolean denied)
public java.lang.String getPermissionName()
public PrincipalModel getPrincipal()
public boolean isDenied()
public boolean isGranted()
public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2018 SAP SE. All Rights Reserved.