Nuxeo Enterprise Platform 5.4

org.nuxeo.runtime.model.persistence.fs
Class ContributionFile

java.lang.Object
  extended by org.nuxeo.runtime.model.persistence.AbstractContribution
      extended by org.nuxeo.runtime.model.persistence.fs.ContributionFile
All Implemented Interfaces:
Contribution, StreamRef

public class ContributionFile
extends AbstractContribution

Author:
Bogdan Stefanescu

Constructor Summary
ContributionFile(java.lang.String name, java.io.File file)
           
 
Method Summary
 java.net.URL asURL()
          Get an URL to that stream.
 java.lang.String getContent()
          Gets the contribution XML content.
 java.lang.String getDescription()
          Gets the contribution description.
 java.lang.String getName()
          Gets the contribution name.
 java.io.InputStream getStream()
          Gets the contribution XML content.
 boolean isDisabled()
          Whether this contribution should be automatically installed at startup.
 void setDescription(java.lang.String description)
          Sets the contribution description.
 void setDisabled(boolean isDisabled)
          Sets the auto install flag for this contribution.
 
Methods inherited from class org.nuxeo.runtime.model.persistence.AbstractContribution
getId
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ContributionFile

public ContributionFile(java.lang.String name,
                        java.io.File file)
Method Detail

getName

public java.lang.String getName()
Description copied from interface: Contribution
Gets the contribution name.


getDescription

public java.lang.String getDescription()
Description copied from interface: Contribution
Gets the contribution description.


setDescription

public void setDescription(java.lang.String description)
Description copied from interface: Contribution
Sets the contribution description.


isDisabled

public boolean isDisabled()
Description copied from interface: Contribution
Whether this contribution should be automatically installed at startup.


setDisabled

public void setDisabled(boolean isDisabled)
Description copied from interface: Contribution
Sets the auto install flag for this contribution.


asURL

public java.net.URL asURL()
Description copied from interface: StreamRef
Get an URL to that stream. May return null if no URL is available.

Returns:

getContent

public java.lang.String getContent()
Description copied from interface: Contribution
Gets the contribution XML content. The content should be in Nuxeo XML component format.


getStream

public java.io.InputStream getStream()
Description copied from interface: Contribution
Gets the contribution XML content. The content should be in Nuxeo XML component format.

Returns:

Nuxeo Enterprise Platform 5.4

Copyright © 2010 Nuxeo SAS. All Rights Reserved.