Class UserEntryImpl

java.lang.Object
org.nuxeo.ecm.core.api.security.impl.UserEntryImpl
All Implemented Interfaces:
Serializable, UserEntry

public class UserEntryImpl extends Object implements UserEntry
See Also:
  • Constructor Details

    • UserEntryImpl

      public UserEntryImpl(String username)
  • Method Details

    • addPrivilege

      public void addPrivilege(String permission)
      Description copied from interface: UserEntry
      Adds a granted permission for this username.
      Specified by:
      addPrivilege in interface UserEntry
      Parameters:
      permission - the permission
    • addPrivilege

      public void addPrivilege(String permission, boolean isGranted)
      Description copied from interface: UserEntry
      Adds a permission for this username.
      Specified by:
      addPrivilege in interface UserEntry
      Parameters:
      permission - the permission
      isGranted - whether the permission is granted or denied
    • getUserName

      public String getUserName()
      Specified by:
      getUserName in interface UserEntry
    • getGrantedPermissions

      public Set<String> getGrantedPermissions()
      Specified by:
      getGrantedPermissions in interface UserEntry
    • getDeniedPermissions

      public Set<String> getDeniedPermissions()
      Specified by:
      getDeniedPermissions in interface UserEntry