public class DSpaceWorkspaceItemOutputGenerator extends Object implements gr.ekt.bte.core.OutputGenerator
| Modifier and Type | Field and Description |
|---|---|
protected Collection |
collection |
protected Context |
context |
protected ItemSubmissionLookupDTO |
dto |
protected List<String> |
extraMetadataToKeep |
protected String |
formName |
protected ItemService |
itemService |
protected MetadataFieldService |
metadataFieldService |
protected MetadataSchemaService |
metadataSchemaService |
protected List<WorkspaceItem> |
witems |
protected WorkspaceItemService |
workspaceItemService |
| Constructor and Description |
|---|
DSpaceWorkspaceItemOutputGenerator() |
| Modifier and Type | Method and Description |
|---|---|
List<String> |
generateOutput(gr.ekt.bte.core.RecordSet recordSet) |
List<String> |
generateOutput(gr.ekt.bte.core.RecordSet records,
gr.ekt.bte.core.DataOutputSpec spec) |
protected DCInput |
getDCInput(String formName,
String schema,
String element,
String qualifier) |
protected String |
getMetadata(String formName,
gr.ekt.bte.core.Record itemLookup,
String name) |
List<WorkspaceItem> |
getWitems() |
protected boolean |
isRepeatableMetadata(String formName,
String[] md) |
protected boolean |
isValidMetadata(String formName,
String[] md) |
protected void |
makeSureMetadataExist(Context context,
String schema,
String element,
String qualifier) |
void |
merge(String formName,
Item item,
gr.ekt.bte.core.Record record) |
void |
setCollection(Collection collection) |
void |
setContext(Context context) |
void |
setDto(ItemSubmissionLookupDTO dto) |
void |
setExtraMetadataToKeep(List<String> extraMetadataToKeep) |
void |
setFormName(String formName) |
void |
setOutputMap(Map<String,String> outputMap) |
protected String[] |
splitMetadata(String metadata) |
protected String[] |
splitValue(String value) |
protected Context context
protected String formName
protected List<WorkspaceItem> witems
protected ItemSubmissionLookupDTO dto
protected Collection collection
@Autowired(required=true) protected ItemService itemService
@Autowired(required=true) protected MetadataFieldService metadataFieldService
@Autowired(required=true) protected MetadataSchemaService metadataSchemaService
@Autowired(required=true) protected WorkspaceItemService workspaceItemService
public List<String> generateOutput(gr.ekt.bte.core.RecordSet recordSet)
generateOutput in interface gr.ekt.bte.core.OutputGeneratorpublic List<String> generateOutput(gr.ekt.bte.core.RecordSet records, gr.ekt.bte.core.DataOutputSpec spec)
generateOutput in interface gr.ekt.bte.core.OutputGeneratorpublic List<WorkspaceItem> getWitems()
public void setContext(Context context)
public void setFormName(String formName)
public void setDto(ItemSubmissionLookupDTO dto)
public void setCollection(Collection collection)
protected String getMetadata(String formName, gr.ekt.bte.core.Record itemLookup, String name)
protected DCInput getDCInput(String formName, String schema, String element, String qualifier) throws DCInputsReaderException
DCInputsReaderExceptionCopyright © 2016 DuraSpace. All Rights Reserved.