Nuxeo Enterprise Platform 5.4

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(java.lang.String name)
           
 
Method Summary
 void addExtension(java.lang.String target, java.lang.String point, java.util.List<java.lang.Object> contribs)
           
 void addExtension(java.lang.String target, java.lang.String point, java.lang.Object... contribs)
           
 void addXmlExtension(java.lang.String target, java.lang.String point, java.lang.String content)
           
 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 setBundle(java.lang.String bundle)
           
 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

ContributionBuilder

public ContributionBuilder(java.lang.String name)
Method Detail

getName

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


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:

setBundle

public void setBundle(java.lang.String bundle)

setDescription

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


getDescription

public java.lang.String getDescription()
Description copied from interface: Contribution
Gets 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.


addXmlExtension

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

addExtension

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

addExtension

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

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.