#1604 closed enhancement (fixed)
Support for multiple files of the same type in a FileSet
Reported by: | Nicklas Nordborg | Owned by: | Nicklas Nordborg |
---|---|---|---|
Priority: | critical | Milestone: | BASE 3.0 |
Component: | core | Version: | |
Keywords: | Cc: |
Description
This is a sub-ticket to #1153. We expect that the model we need require that lots of files can be stored and related to an item in an organized way (eg. in a FileSet
). The current restriction that only allows one file for each file type is too limited.
This change is a big change that require backwards-incompatible API changes and database changes that require special handling when updgrading (eg. we must at least remove the unique constraint that restricts us to one file per file type).
Attachments (2)
Change History (15)
by , 14 years ago
Attachment: | datalayer.platforms.png added |
---|
comment:1 by , 14 years ago
comment:2 by , 13 years ago
comment:3 by , 13 years ago
Owner: | changed from | to
---|---|
Status: | new → assigned |
comment:4 by , 13 years ago
(In [5713]) References #1604: Support for multiple files of the same type in a FileSet
Added data and core layer classes. Started with the gui and seems to work when adding single files of a type. There are some remaining things to implement when used with multiple files. File validation is not yet fully functional. Some of the batch importers need to be fixed as well to be able to handle multiple files of the same type.
comment:5 by , 13 years ago
comment:6 by , 13 years ago
comment:7 by , 13 years ago
comment:8 by , 13 years ago
comment:9 by , 13 years ago
comment:10 by , 13 years ago
by , 13 years ago
Attachment: | datalayer.platforms-2.png added |
---|
comment:11 by , 13 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Some minor changes to the UML diagram. The 'allowMultiple' flag was moved to PlatformFileTypeData
since it is related to the 'required' flat already present. It also makes it possible for one platform to use one file and another platform to use multiple files. FileSetMember
is no longer annotatable since it would be difficult to implement this in the gui and difficult to use the current batch importer. If the need arises we can always add it later.
I'll close this ticket now since I don't think any major issues remains. Minor issues will be fixed, other enhancements might be scheduled for BASE 3.1 or later.
comment:12 by , 13 years ago
(In [5762]) References #1604: Support for multiple files of the same type in a FileSet
Fixed a NullPointerException when removing the only file of a given file type from a file set.
The updated database schema is not very different from before. There is a new property (
allowMultiple
) inDataFileTypeData
class that is a flag indicating if more than one file of the given file type is allowed or not. TheFileSetMemberData
class now has support for annotations. The annotations should be accessible for inheriting from the owner item of the file set. Eg. the item that owns the file set should include the file set members as 'annotatable parents'.