public class IfsUploadFileContext extends IfsCommandContext implements UploadFileContext
Constructor and Description |
---|
IfsUploadFileContext()
Deafult Constructor.
|
IfsUploadFileContext(LibrarySession session,
boolean parseFlag,
String name,
InputStream stream,
String folderPath,
AccessControlList acl,
boolean aclFromParent,
ParserCallback callback,
String language,
String charSet)
Constructor which sets up all the required parameters.
|
Modifier and Type | Method and Description |
---|---|
void |
clear()
Clears the Context.
|
AccessControlList |
getAcl()
Gets the ACL.
|
boolean |
getAclFromParent()
Gets the ACL from parent folder.
|
String |
getCharacterSet()
Gets the character set.
|
InputStream |
getContentStream()
Gets the content stream.
|
String |
getFolderPath()
Gets the parent folder path.
|
String |
getLanguage()
Gets the language.
|
LibraryObject |
getLibraryObject()
Gets the returning LibraryObject.
|
LibrarySession |
getLibrarySession()
Gets the session.
|
String |
getName()
Gets the document name.
|
boolean |
getParseFlag()
Gets the if we are parsing or not.
|
ParserCallback |
getParserCallback()
Gets the parser callback.
|
void |
setAcl(AccessControlList acl)
Sets the ACL.
|
void |
setAclFromParent(boolean aclFromParent)
Sets the ACL from parent folder.
|
void |
setCharacterSet(String charSet)
Sets the character set.
|
void |
setContentStream(InputStream stream)
Sets the content stream.
|
void |
setFolderPath(String folderPath)
Sets the parent folder path.
|
void |
setLanguage(String language)
Sets the language.
|
void |
setLibraryObject(LibraryObject lo)
Sets the returning LibraryObject.
|
void |
setLibrarySession(LibrarySession session)
Sets the session.
|
void |
setName(String name)
Sets the document name.
|
void |
setParseFlag(boolean parse)
Sets if we are parsing or not.
|
void |
setParserCallback(ParserCallback callback)
Sets the parser callback.
|
public IfsUploadFileContext() throws IfsException
IfsException
public IfsUploadFileContext(LibrarySession session, boolean parseFlag, String name, InputStream stream, String folderPath, AccessControlList acl, boolean aclFromParent, ParserCallback callback, String language, String charSet) throws IfsException
session
- LibrarySession.parseFlag
- Parse flag indicating whether we parse or not.name
- Document name.stream
- Content stream.folderPath
- Parent folder path.acl
- ACL to be applied to the new document.callback
- Parser callback.language
- Language.charSet
- Character set.IfsException
- - If operation fails.public void clear()
clear
in interface CommandContext
clear
in class IfsCommandContext
public LibrarySession getLibrarySession() throws IfsException
getLibrarySession
in interface UploadFileContext
IfsException
public void setLibrarySession(LibrarySession session) throws IfsException
setLibrarySession
in interface UploadFileContext
IfsException
public boolean getParseFlag() throws IfsException
getParseFlag
in interface UploadFileContext
IfsException
public void setParseFlag(boolean parse) throws IfsException
setParseFlag
in interface UploadFileContext
IfsException
public String getName() throws IfsException
getName
in interface UploadFileContext
IfsException
public void setName(String name) throws IfsException
setName
in interface UploadFileContext
IfsException
public InputStream getContentStream() throws IfsException
getContentStream
in interface UploadFileContext
IfsException
public void setContentStream(InputStream stream) throws IfsException
setContentStream
in interface UploadFileContext
IfsException
public String getFolderPath() throws IfsException
getFolderPath
in interface UploadFileContext
IfsException
public void setFolderPath(String folderPath) throws IfsException
setFolderPath
in interface UploadFileContext
IfsException
public AccessControlList getAcl() throws IfsException
getAcl
in interface UploadFileContext
IfsException
public void setAcl(AccessControlList acl) throws IfsException
setAcl
in interface UploadFileContext
IfsException
public boolean getAclFromParent() throws IfsException
getAclFromParent
in interface UploadFileContext
IfsException
public void setAclFromParent(boolean aclFromParent) throws IfsException
setAclFromParent
in interface UploadFileContext
IfsException
public ParserCallback getParserCallback() throws IfsException
getParserCallback
in interface UploadFileContext
IfsException
public void setParserCallback(ParserCallback callback) throws IfsException
setParserCallback
in interface UploadFileContext
IfsException
public String getLanguage() throws IfsException
getLanguage
in interface UploadFileContext
IfsException
public void setLanguage(String language) throws IfsException
setLanguage
in interface UploadFileContext
IfsException
public String getCharacterSet() throws IfsException
getCharacterSet
in interface UploadFileContext
IfsException
public void setCharacterSet(String charSet) throws IfsException
setCharacterSet
in interface UploadFileContext
IfsException
public LibraryObject getLibraryObject() throws IfsException
getLibraryObject
in interface UploadFileContext
IfsException
public void setLibraryObject(LibraryObject lo) throws IfsException
setLibraryObject
in interface UploadFileContext
IfsException
Copyright © 2023. All rights reserved.