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
IfsException
public 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 CommandContext
clear
in class IfsCommandContext
public LibrarySession getLibrarySession() throws IfsException
getLibrarySession
in interface CreateDocumentContext
IfsException
public void setLibrarySession(LibrarySession session) throws IfsException
setLibrarySession
in interface CreateDocumentContext
IfsException
public String getName() throws IfsException
getName
in interface CreateDocumentContext
IfsException
public void setName(String name) throws IfsException
setName
in interface CreateDocumentContext
IfsException
public InputStream getContentStream() throws IfsException
getContentStream
in interface CreateDocumentContext
IfsException
public void setContentStream(InputStream stream) throws IfsException
setContentStream
in interface CreateDocumentContext
IfsException
public Folder getFolder() throws IfsException
getFolder
in interface CreateDocumentContext
IfsException
public void setFolder(Folder folder) throws IfsException
setFolder
in interface CreateDocumentContext
IfsException
public AccessControlList getAcl() throws IfsException
getAcl
in interface CreateDocumentContext
IfsException
public void setAcl(AccessControlList acl) throws IfsException
setAcl
in interface CreateDocumentContext
IfsException
public Document getDocument() throws IfsException
getDocument
in interface CreateDocumentContext
IfsException
public void setDocument(Document doc) throws IfsException
setDocument
in interface CreateDocumentContext
IfsException
Copyright © 2023. All rights reserved.