Nuxeo ECM Projects 5.4.3-SNAPSHOT

org.nuxeo.runtime.model.persistence
Class ContributionBuilder

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

public class ContributionBuilder
extends AbstractContribution

Author:
Bogdan Stefanescu

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

Constructor Detail

ContributionBuilder

public ContributionBuilder(String name)
Method Detail

asURL

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

Returns:

setBundle

public void setBundle(String bundle)

getDescription

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

Specified by:
getDescription in interface Contribution
Overrides:
getDescription in class AbstractContribution

isDisabled

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

Specified by:
isDisabled in interface Contribution
Overrides:
isDisabled in class AbstractContribution

setDisabled

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

Specified by:
setDisabled in interface Contribution
Overrides:
setDisabled in class AbstractContribution

addXmlExtension

public void addXmlExtension(String target,
                            String point,
                            String content)
                     throws Exception
Throws:
Exception

addExtension

public void addExtension(String target,
                         String point,
                         Object... contribs)
                  throws Exception
Throws:
Exception

addExtension

public void addExtension(String target,
                         String point,
                         List<Object> contribs)
                  throws Exception
Throws:
Exception

getContent

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


getStream

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

Returns:

Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.