Example #1
0
 public FileMetadata UpdateMetadata(string username, FileMetadata aFileMetadata, FileBlobdata aFileBlobdata)
 {
     //if NO conflict, save the Metadata in local database & save Blobdata in Blob Server, then update FileMetadata and return
     //if conflict, reject this update and return error reason in FileMetadata. Then let client to rename the file and upate again
     //Future Plan: Maybe the Blobdata can be saved to avoid upload again, but need a mechanism to collect garbage if client does not update again.
     return null;
 }
Example #2
0
 public static SHA256 GetSHA(FileMetadata metadata, FileBlobdata blobdata)
 {
     //The SHA will be used to be the blobKey
     //Only some parts of metadata should be used in calculating SHA: filename, parent, globalCounter, timestamp, fileData.
     //The other fileds of the metadata maybe updated in future.
     //Reference http://msdn.microsoft.com/en-us/library/system.security.cryptography.sha256%28v=vs.110%29.aspx
     return null;
 }
Example #3
0
 public static SHA256 GetSHA(FileMetadata metadata, FileBlobdata blobdata)
 {
     //The SHA will be used to be the blobKey
     //Only some parts of metadata should be used in calculating SHA: filename, parent, globalCounter, timestamp, fileData.
     //The other fileds of the metadata maybe updated in future.
     //Reference http://msdn.microsoft.com/en-us/library/system.security.cryptography.sha256%28v=vs.110%29.aspx
     return(null);
 }
Example #4
0
 public FileMetadata UploadFile(FileMetadata aFileMetadata, FileBlobdata aFileBlobdata)
 {
     return null;
 }