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
NotFSPublishedDocumentException
public FSPublishedDocument(String server, DocumentModel doc) throws org.dom4j.DocumentException
org.dom4j.DocumentException
public FSPublishedDocument(String server, DocumentModel doc, boolean isPending) throws org.dom4j.DocumentException
org.dom4j.DocumentException
protected void parseXML(File file) throws NotFSPublishedDocumentException
NotFSPublishedDocumentException
public void persist(String containerPath) throws IOException
IOException
public DocumentRef getSourceDocumentRef()
getSourceDocumentRef
in interface PublishedDocument
public String getSourceRepositoryName()
getSourceRepositoryName
in interface PublishedDocument
public String getSourceServer()
getSourceServer
in interface PublishedDocument
public String getSourceVersionLabel()
getSourceVersionLabel
in interface PublishedDocument
public String getPersistPath()
public String getPath()
getPath
in interface PublishedDocument
public String getParentPath()
getParentPath
in interface PublishedDocument
public boolean isPending()
PublishedDocument
true
if this document is waiting approval, false
otherwise.isPending
in interface PublishedDocument
public PublishedDocument.Type getType()
PublishedDocument
Type
of this PublishedDocument.getType
in interface PublishedDocument
Copyright © 2015 Nuxeo SA. All rights reserved.