Class CliAppContext
- java.lang.Object
-
- java.util.AbstractMap<K,V>
-
- java.util.HashMap
-
- org.apache.commons.chain.impl.ContextBase
-
- org.exoplatform.frameworks.jcr.command.BasicAppContext
-
- org.exoplatform.frameworks.jcr.cli.CliAppContext
-
- All Implemented Interfaces:
Serializable,Cloneable,Map,org.apache.commons.chain.Context,JCRAppContext
public class CliAppContext extends BasicAppContext
Created by The eXo Platform SAS .- Version:
- $Id: $
- Author:
- Gennady Azarenkov
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K extends Object,V extends Object>, AbstractMap.SimpleImmutableEntry<K extends Object,V extends Object>
-
-
Field Summary
Fields Modifier and Type Field Description protected StringcurrentItemKeyprotected StringoutputKeyprotected StringparametersKey-
Fields inherited from class org.exoplatform.frameworks.jcr.command.BasicAppContext
currentWorkspace, LOG, repository, sessionProvider
-
-
Constructor Summary
Constructors Constructor Description CliAppContext(org.exoplatform.services.jcr.core.ManageableRepository rep, String parametersKey)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclearOutput()javax.jcr.ItemgetCurrentItem()StringgetCurrentWorkspace()StringgetOutput()StringgetParameter(int index)List<String>getParameters()StringgetUserName()voidsetCurrentItem(javax.jcr.Item item)voidsetOutput(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, compute, computeIfAbsent, computeIfPresent, containsKey, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll, 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, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, equals, forEach, get, getOrDefault, hashCode, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
-
-
-
-
Field Detail
-
currentItemKey
protected final String currentItemKey
- See Also:
- Constant Field Values
-
parametersKey
protected final String parametersKey
-
outputKey
protected final String outputKey
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
CliAppContext
public CliAppContext(org.exoplatform.services.jcr.core.ManageableRepository rep, String parametersKey) throws NamingException- Throws:
NamingException
-
-
Method Detail
-
getUserName
public String getUserName()
-
getCurrentWorkspace
public String getCurrentWorkspace()
-
getParameter
public String getParameter(int index) throws ParameterNotFoundException
- Throws:
ParameterNotFoundException
-
setCurrentItem
public void setCurrentItem(javax.jcr.Item item)
-
getCurrentItem
public javax.jcr.Item getCurrentItem()
-
getOutput
public String getOutput()
-
setOutput
public void setOutput(String output)
-
clearOutput
public void clearOutput()
-
-