Package com.gooddata.project
Class Role
- java.lang.Object
-
- com.gooddata.project.Role
-
public class Role extends Object
Project Role
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)Set<String>getGrantedPermissions()Returns names of granted permissions.StringgetIdentifier()Set<String>getPermissions()Returns set of permission names this role can have granted.StringgetTitle()StringgetUri()inthashCode()booleanhasPermissionGranted(String permission)Returnstrueif provided permission is granted.StringtoString()
-
-
-
Field Detail
-
URI
public static final String URI
- See Also:
- Constant Field Values
-
TEMPLATE
public static final org.springframework.web.util.UriTemplate TEMPLATE
-
-
Method Detail
-
getPermissions
public Set<String> getPermissions()
Returns set of permission names this role can have granted.- Returns:
- set of permission names
-
getGrantedPermissions
public Set<String> getGrantedPermissions()
Returns names of granted permissions.- Returns:
- set of granted permissions
-
hasPermissionGranted
public boolean hasPermissionGranted(String permission)
Returnstrueif provided permission is granted.- Parameters:
permission- permission name to test- Returns:
- whether the permission is granted
-
getTitle
public String getTitle()
-
getIdentifier
public String getIdentifier()
-
getUri
public String getUri()
-
-