Package org.dspace.app.itemupdate
Class ContentsEntry
java.lang.Object
org.dspace.app.itemupdate.ContentsEntry
Holds the elements of a line in the Contents Entry file
Based on private methods in ItemImport
Lacking a spec or full documentation for the file format,
it looks from the source code that the ordering or elements is not fixed
e.g.:
48217870-MIT.pdf\tbundle: bundlename\tpermissions: -r 'MIT Users'\tdescription: Full printable version (MIT only)
permissions: -[r|w] ['group name']
description: <the description of the file>
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedContentsEntry(String filename, String bundlename, int permissionsActionId, String permissionsGroupName, String description) -
Method Summary
Modifier and TypeMethodDescriptionstatic ContentsEntryFactory method parses a line from the Contents Entry filetoString()
-
Field Details
-
HDR_BUNDLE
- See Also:
-
HDR_PERMISSIONS
- See Also:
-
HDR_DESCRIPTION
- See Also:
-
permissionsPattern
-
-
Constructor Details
-
ContentsEntry
-
-
Method Details
-
parse
Factory method parses a line from the Contents Entry file- Parameters:
line- line as string- Returns:
- the parsed ContentsEntry object
- Throws:
ParseException- if parse error
-
toString
-