org.modeshape.sequencer.teiid
Class VdbDataRole
java.lang.Object
org.modeshape.sequencer.teiid.VdbDataRole
- All Implemented Interfaces:
- Comparable<VdbDataRole>
public class VdbDataRole
- extends Object
- implements Comparable<VdbDataRole>
A simple POJO that is used to represent the information for a data role read in from a VDB manifest ("vdb.xml").
Nested Class Summary |
class |
VdbDataRole.Permission
A simple POJO that is used to represent one data role permission found in the VDB manifest ("vdb.xml"). |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
VdbDataRole
public VdbDataRole(String name)
- Parameters:
name
- the data role name (cannot be null
or empty)
compareTo
public int compareTo(VdbDataRole that)
- Specified by:
compareTo
in interface Comparable<VdbDataRole>
- See Also:
Comparable.compareTo(java.lang.Object)
getDescription
public String getDescription()
- Returns:
- the description (never
null
but can be empty)
getMappedRoleNames
public List<String> getMappedRoleNames()
- Returns:
- the mapped data role names
getName
public String getName()
- Returns:
- the data role name (never
null
or empty)
getPermissions
public List<VdbDataRole.Permission> getPermissions()
- Returns:
- the data role permissions (never
null
but can be empty)
isAllowCreateTempTables
public boolean isAllowCreateTempTables()
- Returns:
true
if data role can create temp tables
isAnyAuthenticated
public boolean isAnyAuthenticated()
- Returns:
true
if data role has any authenticated
setAllowCreateTempTables
public void setAllowCreateTempTables(boolean newValue)
- Parameters:
newValue
- the new value for allowCreateTempTables
setAnyAuthenticated
public void setAnyAuthenticated(boolean newValue)
- Parameters:
newValue
- the new value for anyAuthenticated
setDescription
public void setDescription(String newValue)
- Parameters:
newValue
- the new description value (can be null
or empty)
Copyright © 2008-2012 JBoss, a division of Red Hat. All Rights Reserved.