public class UserEntryImpl extends Object implements UserEntry
Constructor and Description |
---|
UserEntryImpl(String username) |
Modifier and Type | Method and Description |
---|---|
void |
addPrivilege(String permission)
Adds a granted permission for this username.
|
void |
addPrivilege(String permission,
boolean isGranted)
Adds a permission for this username.
|
void |
addPrivilege(String permission,
boolean granted,
boolean readOnly)
Deprecated.
|
Set<String> |
getDeniedPermissions() |
Set<String> |
getGrantedPermissions() |
String |
getUserName() |
public UserEntryImpl(String username)
public void addPrivilege(String permission)
UserEntry
addPrivilege
in interface UserEntry
permission
- the permissionpublic void addPrivilege(String permission, boolean isGranted)
UserEntry
addPrivilege
in interface UserEntry
permission
- the permissionisGranted
- whether the permission is granted or denied@Deprecated public void addPrivilege(String permission, boolean granted, boolean readOnly)
UserEntry
addPrivilege
in interface UserEntry
public String getUserName()
getUserName
in interface UserEntry
public Set<String> getGrantedPermissions()
getGrantedPermissions
in interface UserEntry
public Set<String> getDeniedPermissions()
getDeniedPermissions
in interface UserEntry
Copyright © 2015 Nuxeo SA. All rights reserved.