public class FileSetMemberLoader extends Object implements DataLoader<FileStoreEnabled>
FileStoreEnabled
items.Modifier and Type | Field and Description |
---|---|
private DataFileType |
fileType |
private ItemQuery<FileSetMember> |
memberQuery |
private Metadata.PropertyPath<FileSetMember,?> |
propertyPath |
Constructor and Description |
---|
FileSetMemberLoader() |
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.
|
Modifier and Type | Method and Description |
---|---|
Object |
getData(DbControl dc,
ExportedProperty exportedProperty,
FileStoreEnabled item)
Get the value for the specified property.
|
private DataFileType fileType
private Metadata.PropertyPath<FileSetMember,?> propertyPath
private ItemQuery<FileSetMember> memberQuery
public FileSetMemberLoader()
public FileSetMemberLoader(DataFileType fileType, Metadata.PropertyPath<FileSetMember,?> propertyPath)
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 a Item.FILESETMEMBER
item.public Object getData(DbControl dc, ExportedProperty exportedProperty, FileStoreEnabled item)
DataLoader
getData
in interface DataLoader<FileStoreEnabled>
exportedProperty
- The property to get the value foritem
- The item that holds the value