org.pentaho.platform.engine.services.solution
Class SolutionRepoSaveContentGenerator

java.lang.Object
  extended by org.pentaho.platform.engine.core.system.PentahoBase
      extended by org.pentaho.platform.engine.services.solution.BaseContentGenerator
          extended by org.pentaho.platform.engine.services.solution.SimpleContentGenerator
              extended by org.pentaho.platform.engine.services.solution.SolutionRepoSaveContentGenerator
All Implemented Interfaces:
Serializable, IContentGenerator, ILogger

public class SolutionRepoSaveContentGenerator
extends SimpleContentGenerator

Saves state to the solution repository. This content generator requires the following parameters: filepath - the path within the solution repository to save to state - the state (text) type - the content type being saved replace - (true/false) whether to replace an existing file. Defaults to false. title - optional title description - optional description

Author:
jamesdixon
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.pentaho.platform.engine.core.system.PentahoBase
EMPTYLOGID, LOGID_MASK1, LOGID_MASK2, LOGID_SEPARATOR
 
Fields inherited from interface org.pentaho.platform.api.engine.ILogger
ACTIVITY_LOG, DEBUG, ERROR, FATAL, INFO, INSTANCE_LOG, SESSION_LOG, SOLUTION_LOG, TRACE, UNKNOWN, WARN
 
Constructor Summary
SolutionRepoSaveContentGenerator()
           
 
Method Summary
 void createContent(OutputStream out)
          Saves state into the solution repository
 org.apache.commons.logging.Log getLogger()
           
 String getMimeType()
          Returns the MIME type of the output stream contents - text/text
 
Methods inherited from class org.pentaho.platform.engine.services.solution.SimpleContentGenerator
createContent
 
Methods inherited from class org.pentaho.platform.engine.services.solution.BaseContentGenerator
getItemName, setCallbacks, setInstanceId, setItemName, setMessagesList, setOutputHandler, setParameterProviders, setSession, setUrlFactory
 
Methods inherited from class org.pentaho.platform.engine.core.system.PentahoBase
debug, debug, error, error, fatal, fatal, genLogIdFromInfo, genLogIdFromInfo, genLogIdFromSession, getLoggingLevel, getLogId, getObjectName, info, info, setLoggingLevel, setLogId, trace, trace, warn, warn
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.pentaho.platform.api.engine.ILogger
debug, debug, error, error, fatal, fatal, getLoggingLevel, info, info, setLoggingLevel, trace, trace, warn, warn
 

Constructor Detail

SolutionRepoSaveContentGenerator

public SolutionRepoSaveContentGenerator()
Method Detail

createContent

public void createContent(OutputStream out)
                   throws Exception
Saves state into the solution repository

Specified by:
createContent in class SimpleContentGenerator
Throws:
Exception

getLogger

public org.apache.commons.logging.Log getLogger()
Specified by:
getLogger in class BaseContentGenerator

getMimeType

public String getMimeType()
Returns the MIME type of the output stream contents - text/text

Specified by:
getMimeType in class SimpleContentGenerator