Package org.dspace.app.itemupdate
Class ContentsEntry
- java.lang.Object
-
- org.dspace.app.itemupdate.ContentsEntry
-
public class ContentsEntry extends Object
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 Modifier and Type Field Description static StringHDR_BUNDLEstatic StringHDR_DESCRIPTIONstatic StringHDR_PERMISSIONSstatic PatternpermissionsPattern
-
Constructor Summary
Constructors Modifier Constructor Description protectedContentsEntry(String filename, String bundlename, int permissionsActionId, String permissionsGroupName, String description)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ContentsEntryparse(String line)Factory method parses a line from the Contents Entry fileStringtoString()
-
-
-
Field Detail
-
HDR_BUNDLE
public static final String HDR_BUNDLE
- See Also:
- Constant Field Values
-
HDR_PERMISSIONS
public static final String HDR_PERMISSIONS
- See Also:
- Constant Field Values
-
HDR_DESCRIPTION
public static final String HDR_DESCRIPTION
- See Also:
- Constant Field Values
-
permissionsPattern
public static final Pattern permissionsPattern
-
-
Method Detail
-
parse
public static ContentsEntry parse(String line) throws ParseException
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
-
-