public class DocumentImpl extends Object implements Document, org.kie.internal.utils.LazyLoaded<DocumentStorageService>
DOCUMENT_DATE_PATTERN, PROPERTIES_SEPARATOR, UPDATED_ATTRIBUTE| Constructor and Description |
|---|
DocumentImpl() |
DocumentImpl(String name,
long size,
Date lastModified) |
DocumentImpl(String identifier,
String name,
long size,
Date lastModified) |
DocumentImpl(String identifier,
String name,
long size,
Date lastModified,
String link) |
| Modifier and Type | Method and Description |
|---|---|
void |
addAttribute(String attributeName,
String attributeValue) |
String |
getAttribute(String attributeName) |
Map<String,String> |
getAttributes() |
byte[] |
getContent() |
String |
getIdentifier() |
Date |
getLastModified() |
String |
getLink() |
String |
getName() |
long |
getSize() |
void |
load() |
void |
setAttributes(Map<String,String> attributes) |
void |
setContent(byte[] content) |
void |
setIdentifier(String identifier) |
void |
setLastModified(Date lastModified) |
void |
setLink(String link) |
void |
setLoadService(DocumentStorageService service) |
void |
setName(String name) |
void |
setSize(long size) |
File |
toFile() |
String |
toString() |
public void setIdentifier(String identifier)
setIdentifier in interface Documentpublic String getIdentifier()
getIdentifier in interface Documentpublic void setLastModified(Date lastModified)
setLastModified in interface Documentpublic Date getLastModified()
getLastModified in interface Documentpublic String getAttribute(String attributeName)
getAttribute in interface Documentpublic void addAttribute(String attributeName, String attributeValue)
addAttribute in interface Documentpublic void setAttributes(Map<String,String> attributes)
setAttributes in interface Documentpublic Map<String,String> getAttributes()
getAttributes in interface Documentpublic void setContent(byte[] content)
setContent in interface Documentpublic byte[] getContent()
getContent in interface Documentpublic File toFile() throws IOException
toFile in interface DocumentIOExceptionpublic void setLoadService(DocumentStorageService service)
setLoadService in interface org.kie.internal.utils.LazyLoaded<DocumentStorageService>public void load()
load in interface org.kie.internal.utils.LazyLoaded<DocumentStorageService>Copyright © 2001–2021 JBoss by Red Hat. All rights reserved.