Package com.ibm.di.eclipse.http.commands
Class PropertiesCommand
- java.lang.Object
-
- com.ibm.di.eclipse.http.commands.RestCommand
-
- com.ibm.di.eclipse.http.commands.PropertiesCommand
-
public class PropertiesCommand extends RestCommand
This command is used to manipulate the standard shared property stores as well as configuration specific property stores.- properties/[instance:]storename/propname[/value] - Get or set value in specific store
- properties/[instance:]storename - Get all values in store (HTTP GET)
- properties/[instance:]storename - Put all posted values to store (HTTP POST)
- properties/☆/propname[/value] - Get or set value in default store
- properties - List all property stores
-
-
Field Summary
-
Fields inherited from class com.ibm.di.eclipse.http.commands.RestCommand
HTTP_BODY, HTTP_CONTENT_TYPE, HTTP_QS, RES_ASSEMBLY_LINE, RES_ASSEMBLY_LINE_LOG, RES_CONFIG_AL, RES_CONFIG_INSTANCE, RES_CONFIG_RUNAL, RES_CONFIGURATION, RES_CONNECTOR_CLOSE, RES_CONNECTOR_GETNEXT, RES_CONNECTOR_LOAD, RES_CONNECTOR_QUERYSCHEMA, sRes
-
-
Constructor Summary
Constructors Constructor Description PropertiesCommand()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcommitStore(java.lang.Object store)voidexecute()java.lang.ObjectgetPropertyValue(java.lang.Object store, java.lang.String key)java.lang.ObjectsetPropertyValue(java.lang.Object store, java.lang.String key, java.lang.String value)Returns the value for key and sets the new value.voidsetPropertyValue(java.lang.Object store, java.lang.String key, java.lang.String value, boolean protect)Sets a new value for the key in the store.-
Methods inherited from class com.ibm.di.eclipse.http.commands.RestCommand
addPendingCommand, appendBody, appendResult, dispose, getApi, getCommand, getConnector, getPath, getPath, getPendingCommand, getRequest, getRequestBody, getRequestParam, getResponse, getSession, isParamTrue, isReusable, readFile, setApi, setBody, setBody, setPath, setResponse
-
-
-
-
Method Detail
-
execute
public void execute() throws java.lang.Exception- Specified by:
executein classRestCommand- Throws:
java.lang.Exception
-
setPropertyValue
public java.lang.Object setPropertyValue(java.lang.Object store, java.lang.String key, java.lang.String value) throws java.lang.ExceptionReturns the value for key and sets the new value.- Parameters:
store- TDIProperties or TDIPropertyStorekey-value- if null the property is removed (if applicable)- Returns:
- the value before setting the new one
- Throws:
java.lang.Exception
-
setPropertyValue
public void setPropertyValue(java.lang.Object store, java.lang.String key, java.lang.String value, boolean protect) throws java.lang.ExceptionSets a new value for the key in the store.- Parameters:
store- TDIProperties or TDIPropertyStorekey-value- if null the property is removed (if applicable)protect- if true, the property should be encrypted- Throws:
java.lang.Exception
-
getPropertyValue
public java.lang.Object getPropertyValue(java.lang.Object store, java.lang.String key) throws java.lang.Exception- Throws:
java.lang.Exception
-
commitStore
public void commitStore(java.lang.Object store) throws java.lang.Exception- Throws:
java.lang.Exception
-
-