Methods
Modifier and Type |
Method and Description |
protected void |
addFederatedSegment(EditableDocument document,
String externalNodeKey,
String name) |
void |
addPropertyValues(EditableDocument document,
Name propertyName,
boolean isMultiple,
Collection<?> values,
Set<BinaryKey> unusedBinaryKeys) |
void |
changeChildren(EditableDocument document,
SessionNode.ChangedChildren changedChildren,
ChildReferences appended) |
void |
changeReferrers(EditableDocument document,
SessionNode.ReferrerChanges changes) |
protected ChildReference |
childReferenceFrom(Object value) |
int |
countProperties(Document document) |
protected void |
decrementBinaryReferenceCount(Object fieldValue,
Set<BinaryKey> unusedBinaryKeys)
Decrement the reference count for the binary value.
|
EditableDocument |
fromChildReference(ChildReference ref) |
Set<NodeKey> |
getAdditionalParentKeys(Document document) |
protected Integer |
getCacheTtlSeconds(Document document)
|
ChildReferences |
getChildReferences(WorkspaceCache cache,
Document document) |
ChildReferences |
getChildReferencesFromBlock(Document block)
Reads the children of the given block and returns a ChildReferences instance.
|
DocumentTranslator.ChildReferencesInfo |
getChildReferencesInfo(Document document) |
String |
getKey(Document document) |
Set<String> |
getMixinTypeNames(Document document) |
Set<Name> |
getMixinTypes(Document document) |
NameFactory |
getNameFactory() |
NodeKey |
getParentKey(Document document,
String primaryWorkspaceKey,
String secondaryWorkspaceKey)
Obtain the preferred key for the parent of this node.
|
Name |
getPrimaryType(Document document) |
String |
getPrimaryTypeName(Document document) |
void |
getProperties(Document document,
Map<Name,Property> result) |
Property |
getProperty(Document document,
Name propertyName) |
Property |
getProperty(Document document,
String propertyName) |
PropertyFactory |
getPropertyFactory() |
ReferenceFactory |
getReferenceFactory() |
Set<NodeKey> |
getReferrers(Document document,
CachedNode.ReferenceType type) |
ValueFactory<String> |
getStringFactory() |
ReferenceFactory |
getWeakReferenceFactory() |
boolean |
hasProperties(Document document) |
boolean |
hasProperty(Document document,
Name propertyName) |
protected void |
incrementBinaryReferenceCount(BinaryKey binaryKey,
Set<BinaryKey> unusedBinaryKeys)
Increment the reference count for the stored binary value with the supplied SHA-1 hash.
|
protected long |
insertChildren(EditableDocument document,
Map<NodeKey,SessionNode.Insertions> insertionsByBeforeKey,
Set<NodeKey> removals,
Map<NodeKey,Name> newNames) |
protected boolean |
isFederatedDocument(Document document) |
boolean |
isLocked(EditableDocument doc)
Checks if the given document is already locked
|
protected boolean |
isQueryable(Document document) |
protected String |
keyForBinaryReferenceDocument(String sha1) |
protected Property |
propertyFor(Name propertyName,
Object fieldValue) |
protected void |
removeFederatedSegments(EditableDocument federatedDocument,
Set<String> externalNodeKeys) |
Property |
removeProperty(EditableDocument document,
Name propertyName,
Set<BinaryKey> unusedBinaryKeys) |
void |
removePropertyValues(EditableDocument document,
Name propertyName,
Collection<?> values,
Set<BinaryKey> unusedBinaryKeys) |
protected Object |
resolveLargeValue(String sha1) |
protected List<Path.Segment> |
segmentsFrom(List<?> segmentValues) |
void |
setKey(EditableDocument document,
NodeKey key) |
void |
setKey(EditableDocument document,
String key) |
void |
setParents(EditableDocument document,
NodeKey parent,
NodeKey oldParent,
SessionNode.ChangedAdditionalParents additionalParents) |
void |
setProperty(EditableDocument document,
Property property,
Set<BinaryKey> unusedBinaryKeys) |
void |
setQueryable(EditableDocument document,
boolean queryable)
Marks the given document as queryable, by setting a flag.
|
Object |
valueFromDocument(Object value) |
protected Object |
valueToDocument(Object value,
Set<BinaryKey> unusedBinaryKeys) |
DocumentTranslator |
withLargeStringSize(long largeStringSize) |