public class Grant extends Object
Modifier and Type | Field and Description |
---|---|
static com.google.common.base.Predicate<Grant> |
IS_PUBLIC
A predicate that can be used for determining if a grant is to make a dataset public.
|
static Grant |
PUBLIC_GRANT
A singleton that can be used to represent a public grant
|
Constructor and Description |
---|
Grant(boolean inherited,
String type,
String userId,
List<String> flags) |
Modifier and Type | Method and Description |
---|---|
List<String> |
getFlags()
Gets the flags associated with this grant.
|
String |
getType()
Returns the type of grant, such as viewer, etc.
|
String |
getUserId()
Returns the userid this grant is for.
|
boolean |
isInherited()
Whether this grant is inherited from a parent dataset or not.
|
public static final Grant PUBLIC_GRANT
public static final com.google.common.base.Predicate<Grant> IS_PUBLIC
public boolean isInherited()
public String getType()
public String getUserId()
Copyright © 2013. All Rights Reserved.