Class ContributionFile
- java.lang.Object
-
- org.nuxeo.runtime.model.persistence.AbstractContribution
-
- org.nuxeo.runtime.model.persistence.fs.ContributionFile
-
- All Implemented Interfaces:
Contribution,StreamRef
public class ContributionFile extends AbstractContribution
- Author:
- Bogdan Stefanescu
-
-
Field Summary
Fields Modifier and Type Field Description protected Filefile-
Fields inherited from class org.nuxeo.runtime.model.persistence.AbstractContribution
description, disabled, id, loaded, name
-
-
Constructor Summary
Constructors Constructor Description ContributionFile(String name, File file)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description URLasURL()Get an URL to that stream.StringgetContent()Gets the contribution XML content.InputStreamgetStream()Gets the contribution XML content.-
Methods inherited from class org.nuxeo.runtime.model.persistence.AbstractContribution
getDescription, getId, getName, isDisabled, load, setDescription, setDisabled
-
-
-
-
Field Detail
-
file
protected final File file
-
-
Method Detail
-
asURL
public URL asURL()
Description copied from interface:StreamRefGet an URL to that stream. May return null if no URL is available.
-
getContent
public String getContent()
Description copied from interface:ContributionGets the contribution XML content. The content should be in Nuxeo XML component format.
-
getStream
public InputStream getStream()
Description copied from interface:ContributionGets the contribution XML content. The content should be in Nuxeo XML component format.
-
-