Class OakFileDataStore

    • Field Detail

      • LOG

        public static final Logger LOG
    • Constructor Detail

      • OakFileDataStore

        public OakFileDataStore()
    • Method Detail

      • setReferenceKeyEncoded

        public void setReferenceKeyEncoded​(java.lang.String encodedKey)
        Set Base64 encoded signing key
      • setReferenceKeyPlainText

        public void setReferenceKeyPlainText​(java.lang.String textKey)
        Set the referenceKey from plain text. Key content would be UTF-8 encoding of the string.

        This is useful when setting key via generic bean property manipulation from string properties. User can specify the key in plain text and that would be passed on this object via PropertiesUtil.populate(Object, java.util.Map, boolean)

        Parameters:
        textKey - base64 encoded key
        See Also:
        PropertiesUtil.populate(Object, java.util.Map, boolean)
      • setReferenceKey

        public void setReferenceKey​(byte[] referenceKey)
      • getMetadataRecord

        public DataRecord getMetadataRecord​(java.lang.String name)
        Description copied from interface: SharedDataStore
        Retrieves the metadata record with the given name
        Specified by:
        getMetadataRecord in interface SharedDataStore
        Parameters:
        name - the name of the record
        Returns:
      • metadataRecordExists

        public boolean metadataRecordExists​(java.lang.String name)
        Description copied from interface: SharedDataStore
        Checks if the metadata record with the name exists
        Specified by:
        metadataRecordExists in interface SharedDataStore
        Returns:
      • deleteMetadataRecord

        public boolean deleteMetadataRecord​(java.lang.String name)
        Description copied from interface: SharedDataStore
        Deletes the root record represented by the given parameters.
        Specified by:
        deleteMetadataRecord in interface SharedDataStore
        Parameters:
        name - the name of the root record
        Returns:
        success/failure
      • deleteAllMetadataRecords

        public void deleteAllMetadataRecords​(java.lang.String prefix)
        Description copied from interface: SharedDataStore
        Deletes all records matching the given prefix.
        Specified by:
        deleteAllMetadataRecords in interface SharedDataStore
        Parameters:
        prefix - metadata type identifier