public class FSPublishedDocument extends Object implements PublishedDocument
PublishedDocument.Type
Modifier and Type | Field and Description |
---|---|
static org.dom4j.QName |
isPendingQN |
static org.dom4j.Namespace |
nxfspub |
static org.dom4j.QName |
pubInfoQN |
static org.dom4j.QName |
sourceDocRefQN |
static org.dom4j.QName |
sourceRepositoryNameQN |
static org.dom4j.QName |
sourceServerQN |
static org.dom4j.QName |
sourceVersionQN |
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. |
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
public FSPublishedDocument(File file) throws NotFSPublishedDocumentException
NotFSPublishedDocumentException
public FSPublishedDocument(String server, DocumentModel doc) throws PublishingMarshalingException, org.dom4j.DocumentException
PublishingMarshalingException
org.dom4j.DocumentException
public FSPublishedDocument(String server, DocumentModel doc, boolean isPending) throws PublishingMarshalingException, org.dom4j.DocumentException
PublishingMarshalingException
org.dom4j.DocumentException
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.