public class SecureSequence extends DelegatingSequence
NodeSequence
implementation which only returns nodes on which an existing query context
has ModeShapePermissions.READ
permissions.NodeSequence.AlternateSizeBatch, NodeSequence.Batch, NodeSequence.LimitBatch, NodeSequence.MultiWidthBatch, NodeSequence.Restartable, NodeSequence.RowAccessor, NodeSequence.RowFilter, NodeSequence.SingleWidthBatch
Modifier and Type | Field and Description |
---|---|
protected JcrQueryContext |
context |
delegate
LOGGER, NO_PASS_ROW_FILTER, PASS_ROW_FILTER
Constructor and Description |
---|
SecureSequence(NodeSequence delegate,
JcrQueryContext context)
Creates a new secure sequence over an existing sequence.
|
Modifier and Type | Method and Description |
---|---|
long |
getRowCount()
Get the number of rows in this sequence.
|
NodeSequence.Batch |
nextBatch()
Get the next batch of
NodeKey instances. |
String |
toString() |
close, isEmpty, width
append, batchFilteredWith, batchOf, batchOf, batchOf, batchOfKeys, batchOfKeys, batchOfKeys, batchOfKeys, batchWithCount, copy, emptyBatch, emptySequence, filter, keyFor, limit, limit, merging, requireBoth, requireEither, skip, slice, slicingBatch, withBatch, withBatches, withBatches, withNode, withNodeKeys, withNodeKeys, withNodeKeys, withNodeKeys, withNodes, withNodes
protected final JcrQueryContext context
public SecureSequence(NodeSequence delegate, JcrQueryContext context)
delegate
- a NodeSequence
which is being wrapped; may not be nullcontext
- the JcrQueryContext
for which the permissions are checked.public NodeSequence.Batch nextBatch()
NodeSequence
NodeKey
instances.nextBatch
in class DelegatingSequence
public long getRowCount()
NodeSequence
getRowCount
in class DelegatingSequence
Copyright © 2008–2016 JBoss, a division of Red Hat. All rights reserved.