public final class QueryPermissionException extends RuntimeException
Attention: The permission check does not take into account the access rules set on fields which are
record-dependent. In other words, AccessRule.getPermission(Adaptation, Session, SchemaNode)
is only called with the dataset for the aDataSetOrRecord
parameter.
Modifier and Type | Method and Description |
---|---|
static QueryPermissionException |
create(Session aSession,
Map<SchemaNode,Adaptation> forbiddenNodes)
Creates a QueryPermissionException.
|
static QueryPermissionException |
create(Session aSession,
Map<SchemaNode,Adaptation> forbiddenNodes,
String message) |
Map<SchemaNode,Adaptation> |
getForbiddenNodes()
Returns the forbidden nodes used in the query and the dataset in which these are forbidden.
|
Session |
getSession()
Returns the session specified in the query.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public static QueryPermissionException create(Session aSession, Map<SchemaNode,Adaptation> forbiddenNodes)
public static QueryPermissionException create(Session aSession, Map<SchemaNode,Adaptation> forbiddenNodes, String message)
public Map<SchemaNode,Adaptation> getForbiddenNodes()
public Session getSession()