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 |
delegateLOGGER, 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, widthappend, 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, withNodesprotected 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()
NodeSequenceNodeKey instances.nextBatch in class DelegatingSequencepublic long getRowCount()
NodeSequencegetRowCount in class DelegatingSequenceCopyright © 2008-2014 JBoss, a division of Red Hat. All Rights Reserved.