public class IfsCreateDocumentContext extends IfsCommandContext implements CreateDocumentContext
| Constructor and Description | 
|---|
| IfsCreateDocumentContext()Deafult Constructor. | 
| IfsCreateDocumentContext(LibrarySession session,
                        String name,
                        InputStream stream,
                        Folder folder,
                        AccessControlList acl)Constructor which sets up all the required parameters. | 
| Modifier and Type | Method and Description | 
|---|---|
| void | clear()Clears the Context. | 
| AccessControlList | getAcl()Gets the ACL. | 
| InputStream | getContentStream()Gets the content stream. | 
| Document | getDocument()Gets the returning document. | 
| Folder | getFolder()Gets the folder. | 
| LibrarySession | getLibrarySession()Gets the session. | 
| String | getName()Gets the document name. | 
| void | setAcl(AccessControlList acl)Sets the ACL. | 
| void | setContentStream(InputStream stream)Sets the content stream. | 
| void | setDocument(Document doc)Sets the returning document. | 
| void | setFolder(Folder folder)Sets the folder. | 
| void | setLibrarySession(LibrarySession session)Sets the session. | 
| void | setName(String name)Sets the document name. | 
public IfsCreateDocumentContext()
                         throws IfsException
IfsExceptionpublic IfsCreateDocumentContext(LibrarySession session, String name, InputStream stream, Folder folder, AccessControlList acl) throws IfsException
session - LibrarySession.name - Document name.stream - Content stream.folder - Parent folder into which to create the document.acl - ACL to be applied to the new document.IfsException - - If operation fails.public void clear()
clear in interface CommandContextclear in class IfsCommandContextpublic LibrarySession getLibrarySession() throws IfsException
getLibrarySession in interface CreateDocumentContextIfsExceptionpublic void setLibrarySession(LibrarySession session) throws IfsException
setLibrarySession in interface CreateDocumentContextIfsExceptionpublic String getName() throws IfsException
getName in interface CreateDocumentContextIfsExceptionpublic void setName(String name) throws IfsException
setName in interface CreateDocumentContextIfsExceptionpublic InputStream getContentStream() throws IfsException
getContentStream in interface CreateDocumentContextIfsExceptionpublic void setContentStream(InputStream stream) throws IfsException
setContentStream in interface CreateDocumentContextIfsExceptionpublic Folder getFolder() throws IfsException
getFolder in interface CreateDocumentContextIfsExceptionpublic void setFolder(Folder folder) throws IfsException
setFolder in interface CreateDocumentContextIfsExceptionpublic AccessControlList getAcl() throws IfsException
getAcl in interface CreateDocumentContextIfsExceptionpublic void setAcl(AccessControlList acl) throws IfsException
setAcl in interface CreateDocumentContextIfsExceptionpublic Document getDocument() throws IfsException
getDocument in interface CreateDocumentContextIfsExceptionpublic void setDocument(Document doc) throws IfsException
setDocument in interface CreateDocumentContextIfsExceptionCopyright © 2025. All rights reserved.