public class ClassSelectionParser extends Object implements Parser
Modifier and Type | Field and Description |
---|---|
protected FolderPathResolver |
m_fpr
Deprecated.
for path verification
|
protected LibrarySession |
m_session
Deprecated.
the session
|
static String |
PROPERTY_BUNDLE_NAME
Deprecated.
|
CURRENT_NAME_OPTION, CURRENT_PATH_OPTION, DOCUMENT_CHARSET_OPTION, DOCUMENT_LANGUAGE_OPTION, LITERAL_DOCUMENT_OPTION, UPDATE_OBJECT_OPTION, VALIDATE_DOCUMENT_OPTION
Constructor and Description |
---|
ClassSelectionParser(LibrarySession session)
Deprecated.
Constructs a ClassSelectionParser
|
Modifier and Type | Method and Description |
---|---|
protected Document |
createDocument(Folder parent,
DocumentDefinition def,
String name,
String classname,
ParserCallback callback)
Deprecated.
Encapsulates document creation given a parent folder, a name, Document subclass classname,
and an stream/reader;
will not update a prior existing object in parent,
will throw an IfsException simply because an object already exists in parent with name
|
protected String |
getClassname(String filename)
Deprecated.
Deternmines the classname of the Document based on the filename extension.
|
protected DocumentDefinition |
getDocDef(Folder parent,
InputStream in,
String name)
Deprecated.
Defines what it means to be a plain non versioned doc
|
protected DocumentDefinition |
getDocDef(Folder parent,
Reader reader,
String name)
Deprecated.
Defines what it means to be a plain non versioned doc
|
LibraryObject |
parse(InputStream stream,
ParserCallback callback,
Hashtable options)
Deprecated.
Use the stream as the content of a Document subclass based on the
Parser.CURRENT_NAME_OPTION.
|
LibraryObject |
parse(Reader reader,
ParserCallback callback,
Hashtable options)
Deprecated.
Use the reader as the content of a Document subclass based on the
Parser.CURRENT_NAME_OPTION.
|
protected PublicObject |
putPublicObjectWithVersioning(Folder parent,
DocumentDefinition def,
String name,
String classname,
ParserCallback callback)
Deprecated.
Encapsulates the ftpish notion of a put given a parent folder, a name, and an stream/reader;
will create or update existing PO depending prior existence of an object in parent,
if creating an object of class classname is created.
|
protected Document |
updateFolderedPublicObjectWithVersioning(Folder parent,
DocumentDefinition def,
String name,
String classname,
ParserCallback callback)
Deprecated.
encapsulates the item update given a parent folder, a name, and an stream/reader;
will update a prior existing object in parent,
will throw an IfsException simply because an object doesn't exist in parent
|
public static final String PROPERTY_BUNDLE_NAME
protected LibrarySession m_session
protected FolderPathResolver m_fpr
public ClassSelectionParser(LibrarySession session) throws IfsException
IfsException
protected String getClassname(String filename)
public LibraryObject parse(InputStream stream, ParserCallback callback, Hashtable options) throws IfsException
parse
in interface Parser
stream
- the contentcallback
- the callbackoptions
- the optionsIfsException
- (IFS-12601) if the operation failspublic LibraryObject parse(Reader reader, ParserCallback callback, Hashtable options) throws IfsException
parse
in interface Parser
reader
- the contentcallback
- the callbackoptions
- the optionsIfsException
- (IFS-12602) if the operation failsprotected PublicObject putPublicObjectWithVersioning(Folder parent, DocumentDefinition def, String name, String classname, ParserCallback callback) throws IOException, IfsException
parent
- the folder where the item goesdef
- the DocumentDefinitionname
- the name of the itemclassname
- the classname of the new object, must be Document.CLASS_NAME or a subclass of Documentcallback
- the callbackIOException
IfsException
protected Document updateFolderedPublicObjectWithVersioning(Folder parent, DocumentDefinition def, String name, String classname, ParserCallback callback) throws IfsException, IOException
parent
- the folder where the item goesdef
- the DocumentDefinitionname
- the name of the itemcallback
- the callbackIfsException
IOException
protected Document createDocument(Folder parent, DocumentDefinition def, String name, String classname, ParserCallback callback) throws IfsException, IOException
parent
- the folder where the item goesdef
- the DocumentDefinitionname
- the name of the documentclassname
- the Document subclass classnamecallback
- the callbackIfsException
IOException
protected DocumentDefinition getDocDef(Folder parent, InputStream in, String name) throws IfsException
IfsException
protected DocumentDefinition getDocDef(Folder parent, Reader reader, String name) throws IfsException
IfsException
Copyright © 2023. All rights reserved.