Class FileSetMemberLoader
java.lang.Object
net.sf.basedb.clients.web.plugins.FileSetMemberLoader
- All Implemented Interfaces:
DataLoader<FileStoreEnabled>
Data loader implementation that load the files in a file set
in
FileStoreEnabled
items.- Version:
- 2.16
- Author:
- Nicklas
- Last modified
- $Date: 2015-04-21 08:26:57 +0200 (ti, 21 apr 2015) $
-
Field Summary
Modifier and TypeFieldDescriptionprivate DataFileType
private ItemQuery<FileSetMember>
private Metadata.PropertyPath<FileSetMember,
?> -
Constructor Summary
ConstructorDescriptionFileSetMemberLoader
(DataFileType fileType, Metadata.PropertyPath<FileSetMember, ?> propertyPath) Load only members of the given file type and then use the given property path to load a specific property of the member. -
Method Summary
Modifier and TypeMethodDescriptiongetData
(DbControl dc, ExportedProperty exportedProperty, FileStoreEnabled item) Get the value for the specified property.
-
Field Details
-
fileType
-
propertyPath
-
memberQuery
-
-
Constructor Details
-
FileSetMemberLoader
public FileSetMemberLoader() -
FileSetMemberLoader
public FileSetMemberLoader(DataFileType fileType, Metadata.PropertyPath<FileSetMember, ?> propertyPath) Load only members of the given file type and then use the given property path to load a specific property of the member.- Parameters:
fileType
- The file type to load or null to load all memberspropertyPath
- The property to load or null to load the file item of the member. The property path must start on aItem.FILESETMEMBER
item.- Since:
- 3.5
-
-
Method Details
-
getData
Description copied from interface:DataLoader
Get the value for the specified property.- Specified by:
getData
in interfaceDataLoader<FileStoreEnabled>
exportedProperty
- The property to get the value foritem
- The item that holds the value
-