Class VaultOrient

  • All Implemented Interfaces:
    com.orientechnologies.orient.core.db.record.ODetachable, com.orientechnologies.orient.core.db.record.OIdentifiable, com.orientechnologies.orient.core.db.record.ORecordElement, com.orientechnologies.orient.core.record.OElement, com.orientechnologies.orient.core.record.ORecord, com.orientechnologies.orient.core.record.ORecordSchemaAware, com.orientechnologies.orient.core.serialization.OSerializableStream, Externalizable, Serializable, Comparable<com.orientechnologies.orient.core.db.record.OIdentifiable>, Iterable<Map.Entry<String,​Object>>, Comparator<com.orientechnologies.orient.core.db.record.OIdentifiable>, org.gcube.informationsystem.base.reference.Element, org.gcube.informationsystem.base.reference.properties.PropertyElement, org.gcube.informationsystem.base.reference.SchemaMixedElement, org.gcube.informationsystem.model.reference.properties.Property, org.gcube.informationsystem.model.reference.properties.Vault

    public class VaultOrient
    extends com.orientechnologies.orient.core.record.impl.ODocument
    implements org.gcube.informationsystem.model.reference.properties.Vault
    Author:
    Luca Frosini (ISTI - CNR)
    See Also:
    Serialized Form
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface com.orientechnologies.orient.core.db.record.ORecordElement

        com.orientechnologies.orient.core.db.record.ORecordElement.STATUS
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected String contextEncryptedValue  
      protected String dbEncryptedValue  
      protected String decryptedValue  
      • Fields inherited from class com.orientechnologies.orient.core.record.impl.ODocument

        _allowChainedAccess, _fields, _fieldSize, _lazyLoad, _ordered, _owners, _schema, _trackingChanges, EMPTY_STRINGS, RECORD_TYPE
      • Fields inherited from class com.orientechnologies.orient.core.record.ORecordAbstract

        _contentChanged, _dirty, _dirtyManager, _listeners, _recordFormat, _recordId, _recordVersion, _size, _source, _status
      • Fields inherited from interface org.gcube.informationsystem.base.reference.Element

        CLASS_PROPERTY, DATETIME_PATTERN, SUPERCLASSES_PROPERTY
      • Fields inherited from interface org.gcube.informationsystem.model.reference.properties.Vault

        NAME, VALUE
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Map<String,​Object> getAdditionalProperties()  
      Object getAdditionalProperty​(String key)  
      String getContextEncryptedValue()  
      String getDbEncryptedValue()  
      String getDecryptedValue()  
      String getValue()  
      void setAdditionalProperties​(Map<String,​Object> additionalProperties)  
      void setAdditionalProperty​(String key, Object value)  
      void setDecryptedValue​(String decryptedValue, boolean setEncryptedForContext)  
      void setValue​(String value)  
      String toJSON​(String iFormat)  
      • Methods inherited from class com.orientechnologies.orient.core.record.impl.ODocument

        addOwner, asEdge, asVertex, autoConvertFieldsToClass, autoConvertValues, checkClass, checkFieldName, checkForFields, clear, clearSource, clearTrackData, containsField, convertAllMultiValuesToTrackedVersions, copy, copyTo, deserializeFields, detach, equals, eval, eval, field, field, field, field, field, fieldNames, fields, fields, fields, fieldType, fieldValues, fill, fill, fillClassIfNeed, fromJSON, fromJSON, fromJSON, fromJSON, fromMap, fromStream, fromString, getClassName, getCollectionTimeLine, getDirtyFields, getGlobalPropertyById, getImmutableSchemaClass, getImmutableSchemaClass, getOrCreate, getOriginalValue, getOwner, getOwners, getProperty, getPropertyNames, getRawEntries, getRawProperty, getRecordType, getSchemaClass, getSchemaType, hashCode, hasOwners, hasSameContentOf, internalReset, isAllowChainedAccess, isEdge, isEmbedded, isEmpty, isLazyLoad, isOrdered, isTrackingChanges, isVertex, iterator, load, load, load, merge, merge, mergeMap, placeholder, rawContainsField, rawField, rawField, readExternal, reload, removeField, removeOwner, removeProperty, reset, save, save, save, setAllowChainedAccess, setClass, setClassName, setClassNameIfExists, setDirty, setDirtyNoChanged, setFieldType, setLazyLoad, setOrdered, setProperty, setProperty, setTrackingChanges, setup, toMap, toStream, toStream, toString, toString, track, undo, undo, unload, unTrack, validate, validateEmbedded, validateField, validateLink, validateLinkCollection, validateType, writeExternal
      • Methods inherited from class com.orientechnologies.orient.core.record.ORecordAbstract

        addIdentityChangeListener, addListener, checkForLoading, compare, compareTo, delete, flatCopy, getDatabase, getDatabaseIfDefined, getDatabaseIfDefinedInternal, getDatabaseInternal, getDirtyManager, getIdentity, getInternalStatus, getRecord, getSize, getVersion, invokeListenerEvent, isContentChanged, isDirty, isLocked, load, lock, lockingStrategy, onAfterIdentityChanged, onBeforeIdentityChanged, reload, reload, reload, removeIdentityChangeListener, removeListener, save, setContentChanged, setDirtyManager, setIdentity, setIdentity, setInternalStatus, setVersion, toJSON, toJSON, toJSON, unlock, unsetDirty
      • Methods inherited from interface com.orientechnologies.orient.core.db.record.OIdentifiable

        getRecord, isLocked, lock, lockingStrategy, unlock
      • Methods inherited from interface com.orientechnologies.orient.core.record.ORecord

        delete, getDatabase, getIdentity, getSize, getVersion, isDirty, load, reload, reload, save, toJSON
      • Methods inherited from interface com.orientechnologies.orient.core.db.record.ORecordElement

        getInternalStatus, setInternalStatus
    • Field Detail

      • decryptedValue

        protected String decryptedValue
      • dbEncryptedValue

        protected String dbEncryptedValue
      • contextEncryptedValue

        protected String contextEncryptedValue
    • Constructor Detail

      • VaultOrient

        public VaultOrient()
      • VaultOrient

        protected VaultOrient​(String iClassName)
    • Method Detail

      • getValue

        public String getValue()
        Specified by:
        getValue in interface org.gcube.informationsystem.model.reference.properties.Vault
      • setValue

        public void setValue​(String value)
        Specified by:
        setValue in interface org.gcube.informationsystem.model.reference.properties.Vault
      • toJSON

        public String toJSON​(String iFormat)
        Specified by:
        toJSON in interface com.orientechnologies.orient.core.record.ORecord
        Overrides:
        toJSON in class com.orientechnologies.orient.core.record.ORecordAbstract
      • getDecryptedValue

        public String getDecryptedValue()
      • getDbEncryptedValue

        public String getDbEncryptedValue()
      • getContextEncryptedValue

        public String getContextEncryptedValue()
      • setDecryptedValue

        public void setDecryptedValue​(String decryptedValue,
                                      boolean setEncryptedForContext)
                               throws Exception
        Throws:
        Exception
      • getAdditionalProperties

        public Map<String,​Object> getAdditionalProperties()
        Specified by:
        getAdditionalProperties in interface org.gcube.informationsystem.model.reference.properties.Property
        Specified by:
        getAdditionalProperties in interface org.gcube.informationsystem.base.reference.SchemaMixedElement
      • setAdditionalProperties

        public void setAdditionalProperties​(Map<String,​Object> additionalProperties)
        Specified by:
        setAdditionalProperties in interface org.gcube.informationsystem.model.reference.properties.Property
        Specified by:
        setAdditionalProperties in interface org.gcube.informationsystem.base.reference.SchemaMixedElement
      • getAdditionalProperty

        public Object getAdditionalProperty​(String key)
        Specified by:
        getAdditionalProperty in interface org.gcube.informationsystem.model.reference.properties.Property
        Specified by:
        getAdditionalProperty in interface org.gcube.informationsystem.base.reference.SchemaMixedElement
      • setAdditionalProperty

        public void setAdditionalProperty​(String key,
                                          Object value)
        Specified by:
        setAdditionalProperty in interface org.gcube.informationsystem.model.reference.properties.Property
        Specified by:
        setAdditionalProperty in interface org.gcube.informationsystem.base.reference.SchemaMixedElement