public Property deleteProperty(String key, String name, Visibility visibility, Authorizations authorizations) { Property p = getProperty(key, name, visibility, FetchHints.ALL_INCLUDING_HIDDEN, authorizations); if (p != null) { deleteProperty(p); } return p; }
public Property appendMarkPropertyVisibleMutation( String key, String name, Visibility propertyVisibility, Long timestamp, Visibility visibility, Authorizations authorizations ) { Property prop = getProperty(key, name, propertyVisibility, FetchHints.ALL_INCLUDING_HIDDEN, authorizations); if (timestamp == null) { timestamp = IncreasingTime.currentTimeMillis(); } addMutation(new MarkPropertyVisibleMutation(key, name, propertyVisibility, timestamp, visibility)); return prop; }
public Property appendMarkPropertyHiddenMutation( String key, String name, Visibility propertyVisibility, Long timestamp, Visibility visibility, Authorizations authorizations ) { Property prop = getProperty(key, name, propertyVisibility, FetchHints.ALL_INCLUDING_HIDDEN, authorizations); if (timestamp == null) { timestamp = IncreasingTime.currentTimeMillis(); } addMutation(new MarkPropertyHiddenMutation(key, name, propertyVisibility, timestamp, visibility)); return prop; }
protected void deleteProperty( InMemoryElement element, InMemoryTableElement inMemoryTableElement, String key, String name, Visibility visibility, Authorizations authorizations ) { Property property = inMemoryTableElement.getProperty(key, name, visibility, FetchHints.ALL_INCLUDING_HIDDEN, authorizations); inMemoryTableElement.deleteProperty(key, name, visibility, authorizations); getSearchIndex().deleteProperty(this, element, PropertyDescriptor.fromProperty(property), authorizations); if (hasEventListeners()) { fireGraphEvent(new DeletePropertyEvent(this, element, property)); } }
Property property = inMemoryTableElement.getProperty(key, name, visibility, FetchHints.ALL_INCLUDING_HIDDEN, authorizations);
protected void alterElementPropertyMetadata( InMemoryTableElement inMemoryTableElement, List<SetPropertyMetadata> setPropertyMetadatas, Authorizations authorizations ) { for (SetPropertyMetadata spm : setPropertyMetadatas) { Property property = inMemoryTableElement.getProperty( spm.getPropertyKey(), spm.getPropertyName(), spm.getPropertyVisibility(), FetchHints.ALL_INCLUDING_HIDDEN, authorizations ); if (property == null) { throw new VertexiumException("Could not find property " + spm.getPropertyKey() + ":" + spm.getPropertyName()); } Metadata metadata = Metadata.create(property.getMetadata()); metadata.add(spm.getMetadataName(), spm.getNewValue(), spm.getMetadataVisibility()); long newTimestamp = IncreasingTime.currentTimeMillis(); inMemoryTableElement.appendAddPropertyMetadataMutation( property.getKey(), property.getName(), metadata, property.getVisibility(), newTimestamp); } }
) { for (AlterPropertyVisibility apv : alterPropertyVisibilities) { Property property = inMemoryTableElement.getProperty( apv.getKey(), apv.getName(),