public class Grant extends Object
构造器和说明 |
---|
Grant(Grantee grantee,
HashSet<Permission> permissions) |
Grant(Grantee grantee,
Permission... permissions) |
Grant(Grantee grantee,
Permission permission)
Constructs a new
Grant object using the specified grantee and permission
objects. |
限定符和类型 | 方法和说明 |
---|---|
boolean |
equals(Object obj) |
Grantee |
getGrantee()
Gets the grantee being granted a permission by this grant.
|
HashSet<Permission> |
getPermissions()
Gets the permission being granted to the grantee by this grant.
|
String[] |
getPermissionsForJsonArray() |
int |
hashCode() |
String |
toString() |
public Grant(Grantee grantee, Permission permission)
Grant
object using the specified grantee and permission
objects.grantee
- The grantee being granted a permission by this grant.permission
- The permission being granted to the grantee by this grant.public Grant(Grantee grantee, Permission... permissions)
public Grant(Grantee grantee, HashSet<Permission> permissions)
public Grantee getGrantee()
Grant#getPermission()
public HashSet<Permission> getPermissions()
getGrantee()
public String[] getPermissionsForJsonArray()
Copyright © 2016. All rights reserved.