org.exoplatform.frameworks.jcr.cli
Class CliAppContext

java.lang.Object
  extended by java.util.AbstractMap<K,V>
      extended by java.util.HashMap
          extended by org.apache.commons.chain.impl.ContextBase
              extended by org.exoplatform.frameworks.jcr.command.BasicAppContext
                  extended by org.exoplatform.frameworks.jcr.cli.CliAppContext
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, java.util.Map, org.apache.commons.chain.Context, JCRAppContext

public class CliAppContext
extends BasicAppContext

Created by The eXo Platform SAS .

Version:
$Id: CliAppContext.java 35179 2009-08-07 13:58:20Z pnedonosko $
Author:
Gennady Azarenkov
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from interface java.util.Map
java.util.Map.Entry<K,V>
 
Field Summary
protected  java.lang.String currentItemKey
           
protected  java.lang.String outputKey
           
protected  java.lang.String parametersKey
           
 
Fields inherited from class org.exoplatform.frameworks.jcr.command.BasicAppContext
currentWorkspace, log, repository, sessionProvider
 
Constructor Summary
CliAppContext(ManageableRepository rep, java.lang.String parametersKey)
           
CliAppContext(ManageableRepository rep, java.lang.String parametersKey, javax.jcr.Credentials cred)
          Deprecated. 
 
Method Summary
 void clearOutput()
           
 javax.jcr.Item getCurrentItem()
           
 java.lang.String getCurrentWorkspace()
           
 java.lang.String getOutput()
           
 java.lang.String getParameter(int index)
           
 java.util.List<java.lang.String> getParameters()
           
 java.lang.String getUserName()
           
 void setCurrentItem(javax.jcr.Item item)
           
 void setOutput(java.lang.String output)
           
 
Methods inherited from class org.exoplatform.frameworks.jcr.command.BasicAppContext
getSession, setCurrentWorkspace
 
Methods inherited from class org.apache.commons.chain.impl.ContextBase
clear, containsValue, entrySet, get, isEmpty, keySet, put, putAll, remove, values
 
Methods inherited from class java.util.HashMap
clone, containsKey, size
 
Methods inherited from class java.util.AbstractMap
equals, hashCode, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Map
clear, containsKey, containsValue, entrySet, equals, get, hashCode, isEmpty, keySet, put, putAll, remove, size, values
 

Field Detail

currentItemKey

protected final java.lang.String currentItemKey
See Also:
Constant Field Values

parametersKey

protected final java.lang.String parametersKey

outputKey

protected final java.lang.String outputKey
See Also:
Constant Field Values
Constructor Detail

CliAppContext

public CliAppContext(ManageableRepository rep,
                     java.lang.String parametersKey)
              throws javax.naming.NamingException
Throws:
javax.naming.NamingException

CliAppContext

@Deprecated
public CliAppContext(ManageableRepository rep,
                                java.lang.String parametersKey,
                                javax.jcr.Credentials cred)
              throws javax.naming.NamingException
Deprecated. 

Throws:
javax.naming.NamingException
Method Detail

getUserName

public java.lang.String getUserName()

getCurrentWorkspace

public java.lang.String getCurrentWorkspace()

getParameters

public java.util.List<java.lang.String> getParameters()

getParameter

public java.lang.String getParameter(int index)
                              throws ParameterNotFoundException
Throws:
ParameterNotFoundException

setCurrentItem

public void setCurrentItem(javax.jcr.Item item)

getCurrentItem

public javax.jcr.Item getCurrentItem()

getOutput

public java.lang.String getOutput()

setOutput

public void setOutput(java.lang.String output)

clearOutput

public void clearOutput()


Copyright © 2012 eXo Platform SAS. All Rights Reserved.