Class RoleAndOrigins

java.lang.Object
com.couchbase.client.java.manager.user.RoleAndOrigins

@Volatile public class RoleAndOrigins extends Object
Associates a Role with information about why a user has the role.
  • Constructor Details

    • RoleAndOrigins

      public RoleAndOrigins(com.couchbase.client.core.deps.com.fasterxml.jackson.databind.node.ObjectNode node)
    • RoleAndOrigins

      public RoleAndOrigins(Role role, List<RoleAndOrigins.Origin> origins)
  • Method Details

    • innate

      public boolean innate()
      Returns true if this role is assigned specifically to the user (has origin "user" as opposed to being inherited from a group).
    • role

      public Role role()
    • origins

      public List<RoleAndOrigins.Origin> origins()
    • toString

      public String toString()
      Overrides:
      toString in class Object