Class SimpleCorePublishedDocument
- java.lang.Object
-
- org.nuxeo.ecm.platform.publisher.impl.core.SimpleCorePublishedDocument
-
- All Implemented Interfaces:
Serializable
,PublishedDocument
public class SimpleCorePublishedDocument extends Object implements PublishedDocument
Implementations of thePublishedDocument
on top of the Core, using simple proxies.- Author:
- tiry
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected boolean
isPending
protected DocumentModel
proxy
protected String
versionLabel
-
Constructor Summary
Constructors Constructor Description SimpleCorePublishedDocument(DocumentModel doc)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getParentPath()
String
getPath()
DocumentModel
getProxy()
DocumentRef
getSourceDocumentRef()
String
getSourceRepositoryName()
String
getSourceVersionLabel()
boolean
isPending()
Returnstrue
if this document is waiting approval,false
otherwise.void
setPending(boolean isPending)
-
-
-
Field Detail
-
proxy
protected DocumentModel proxy
-
versionLabel
protected String versionLabel
-
isPending
protected boolean isPending
-
-
Constructor Detail
-
SimpleCorePublishedDocument
public SimpleCorePublishedDocument(DocumentModel doc)
-
-
Method Detail
-
getSourceDocumentRef
public DocumentRef getSourceDocumentRef()
- Specified by:
getSourceDocumentRef
in interfacePublishedDocument
-
getSourceRepositoryName
public String getSourceRepositoryName()
- Specified by:
getSourceRepositoryName
in interfacePublishedDocument
-
getSourceVersionLabel
public String getSourceVersionLabel()
- Specified by:
getSourceVersionLabel
in interfacePublishedDocument
-
getProxy
public DocumentModel getProxy()
-
getPath
public String getPath()
- Specified by:
getPath
in interfacePublishedDocument
-
getParentPath
public String getParentPath()
- Specified by:
getParentPath
in interfacePublishedDocument
-
setPending
public void setPending(boolean isPending)
-
isPending
public boolean isPending()
Description copied from interface:PublishedDocument
Returnstrue
if this document is waiting approval,false
otherwise.- Specified by:
isPending
in interfacePublishedDocument
-
-