-
Notifications
You must be signed in to change notification settings - Fork 74
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow creating/linking file with tag
- Loading branch information
Showing
16 changed files
with
298 additions
and
88 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 27 additions & 0 deletions
27
delta/plugins/storage/src/test/resources/files/database/file-created-tagged.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
{ | ||
"id" : "https://bluebrain.github.io/nexus/vocabulary/file", | ||
"project" : "myorg/myproj", | ||
"storage" : "https://bluebrain.github.io/nexus/vocabulary/disk-storage?rev=1", | ||
"storageType" : "DiskStorage", | ||
"tag" : "mytag", | ||
"attributes" : { | ||
"origin" : "Client", | ||
"uuid" : "8049ba90-7cc6-4de5-93a1-802c04200dcc", | ||
"location" : "http://localhost/file.txt", | ||
"path" : "file.txt", | ||
"filename" : "file.txt", | ||
"mediaType" : "text/plain; charset=UTF-8", | ||
"bytes" : 12, | ||
"digest" : { | ||
"@type" : "NotComputedDigest" | ||
} | ||
}, | ||
"rev" : 1, | ||
"instant" : "1970-01-01T00:00:00Z", | ||
"subject" : { | ||
"subject" : "username", | ||
"realm" : "myrealm", | ||
"@type" : "User" | ||
}, | ||
"@type" : "FileCreated" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 30 additions & 0 deletions
30
delta/plugins/storage/src/test/resources/files/sse/file-created-tagged.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
{ | ||
"@context": [ | ||
"https://bluebrain.github.io/nexus/contexts/metadata.json", | ||
"https://bluebrain.github.io/nexus/contexts/files.json" | ||
], | ||
"@type": "FileCreated", | ||
"tag": "mytag", | ||
"_attributes": { | ||
"_bytes": 12, | ||
"_digest": { | ||
"_value": "" | ||
}, | ||
"_filename": "file.txt", | ||
"_mediaType": "text/plain; charset=UTF-8", | ||
"_origin": "Client", | ||
"_uuid": "8049ba90-7cc6-4de5-93a1-802c04200dcc" | ||
}, | ||
"_fileId": "https://bluebrain.github.io/nexus/vocabulary/file", | ||
"_instant": "1970-01-01T00:00:00Z", | ||
"_project": "http://localhost/v1/projects/myorg/myproj", | ||
"_resourceId": "https://bluebrain.github.io/nexus/vocabulary/file", | ||
"_rev": 1, | ||
"_storage": { | ||
"@id": "https://bluebrain.github.io/nexus/vocabulary/disk-storage", | ||
"@type": "DiskStorage", | ||
"_resourceId": "https://bluebrain.github.io/nexus/vocabulary/disk-storage", | ||
"_rev": 1 | ||
}, | ||
"_subject": "http://localhost/v1/realms/myrealm/users/username" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.