public class VdbDataRole extends Object implements Comparable<VdbDataRole>
Modifier and Type | Class and Description |
---|---|
class |
VdbDataRole.Permission
A simple POJO that is used to represent one data role permission found in the VDB manifest ("vdb.xml").
|
Constructor and Description |
---|
VdbDataRole(String name) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(VdbDataRole that) |
String |
getDescription() |
List<String> |
getMappedRoleNames() |
String |
getName() |
List<VdbDataRole.Permission> |
getPermissions() |
boolean |
isAllowCreateTempTables() |
boolean |
isAnyAuthenticated() |
void |
setAllowCreateTempTables(boolean newValue) |
void |
setAnyAuthenticated(boolean newValue) |
void |
setDescription(String newValue) |
public VdbDataRole(String name)
name
- the data role name (cannot be null
or empty)public int compareTo(VdbDataRole that)
compareTo
in interface Comparable<VdbDataRole>
Comparable.compareTo(java.lang.Object)
public String getDescription()
null
but can be empty)public String getName()
null
or empty)public List<VdbDataRole.Permission> getPermissions()
null
but can be empty)public boolean isAllowCreateTempTables()
true
if data role can create temp tablespublic boolean isAnyAuthenticated()
true
if data role has any authenticatedpublic void setAllowCreateTempTables(boolean newValue)
newValue
- the new value for allowCreateTempTablespublic void setAnyAuthenticated(boolean newValue)
newValue
- the new value for anyAuthenticatedpublic void setDescription(String newValue)
newValue
- the new description value (can be null
or empty)Copyright © 2008-2013 JBoss, a division of Red Hat. All Rights Reserved.