public class FSPublishedDocument extends Object implements PublishedDocument
PublishedDocument.Type| Modifier and Type | Field and Description |
|---|---|
protected boolean |
isPending |
static org.dom4j.QName |
isPendingQN |
static org.dom4j.Namespace |
nxfspub |
protected String |
parentPath |
protected String |
persistPath |
static org.dom4j.QName |
pubInfoQN |
static org.dom4j.QName |
sourceDocRefQN |
protected DocumentRef |
sourceDocumentRef |
protected String |
sourceRepositoryName |
static org.dom4j.QName |
sourceRepositoryNameQN |
protected String |
sourceServer |
static org.dom4j.QName |
sourceServerQN |
protected String |
sourceVersion |
static org.dom4j.QName |
sourceVersionQN |
protected String |
xmlRepresentation |
| Constructor and Description |
|---|
FSPublishedDocument(File file) |
FSPublishedDocument(String server,
DocumentModel doc) |
FSPublishedDocument(String server,
DocumentModel doc,
boolean isPending) |
| Modifier and Type | Method and Description |
|---|---|
String |
getParentPath() |
String |
getPath() |
String |
getPersistPath() |
DocumentRef |
getSourceDocumentRef() |
String |
getSourceRepositoryName() |
String |
getSourceServer() |
String |
getSourceVersionLabel() |
PublishedDocument.Type |
getType()
Returns the
Type of this PublishedDocument. |
boolean |
isPending()
Returns
true if this document is waiting approval, false otherwise. |
protected void |
parseXML(File file) |
void |
persist(String containerPath) |
public static final org.dom4j.Namespace nxfspub
public static final org.dom4j.QName pubInfoQN
public static final org.dom4j.QName sourceDocRefQN
public static final org.dom4j.QName sourceRepositoryNameQN
public static final org.dom4j.QName sourceServerQN
public static final org.dom4j.QName sourceVersionQN
public static final org.dom4j.QName isPendingQN
protected DocumentRef sourceDocumentRef
protected String sourceRepositoryName
protected String sourceServer
protected String sourceVersion
protected String persistPath
protected String parentPath
protected boolean isPending
protected String xmlRepresentation
public FSPublishedDocument(File file) throws NotFSPublishedDocumentException
NotFSPublishedDocumentExceptionpublic FSPublishedDocument(String server, DocumentModel doc) throws org.dom4j.DocumentException
org.dom4j.DocumentExceptionpublic FSPublishedDocument(String server, DocumentModel doc, boolean isPending) throws org.dom4j.DocumentException
org.dom4j.DocumentExceptionprotected void parseXML(File file) throws NotFSPublishedDocumentException
NotFSPublishedDocumentExceptionpublic void persist(String containerPath) throws IOException
IOExceptionpublic DocumentRef getSourceDocumentRef()
getSourceDocumentRef in interface PublishedDocumentpublic String getSourceRepositoryName()
getSourceRepositoryName in interface PublishedDocumentpublic String getSourceServer()
getSourceServer in interface PublishedDocumentpublic String getSourceVersionLabel()
getSourceVersionLabel in interface PublishedDocumentpublic String getPersistPath()
public String getPath()
getPath in interface PublishedDocumentpublic String getParentPath()
getParentPath in interface PublishedDocumentpublic boolean isPending()
PublishedDocumenttrue if this document is waiting approval, false otherwise.isPending in interface PublishedDocumentpublic PublishedDocument.Type getType()
PublishedDocumentType of this PublishedDocument.getType in interface PublishedDocumentCopyright © 2016 Nuxeo SA. All rights reserved.