public interface SecurityStoreFeature extends Feature
Modifier and Type | Interface and Description |
---|---|
static interface |
SecurityStoreFeature.UpdateStoreCallback
The callback interface for use with
updateStore . |
static interface |
SecurityStoreFeature.UpdateStoreContextCallback<C>
The contextual callback interface for use with
updateStore . |
Modifier and Type | Method and Description |
---|---|
<C> void |
updateStore(String commandScript,
C context,
SecurityStoreFeature.UpdateStoreContextCallback<C> callback)
Send a command script to the server to update the security store, with a
contextual callback.
|
void |
updateStore(String commandScript,
SecurityStoreFeature.UpdateStoreCallback callback)
Send a command script to the server to update the security store.
|
getSession
void updateStore(String commandScript, SecurityStoreFeature.UpdateStoreCallback callback) throws IllegalArgumentException, SessionClosedException
The script may be generated using a ScriptBuilder
obtained from
the feature.
Each line of script
is a command to update the store.
The server attempts to execute each command in order against a copy of the store. If any command fails, none of the changes will be applied. If all commands succeed, the changes will be applied.
commandScript
- the scriptcallback
- the result of applying the scriptIllegalArgumentException
- if any parameter is nullSessionClosedException
- if the session is closed<C> void updateStore(String commandScript, C context, SecurityStoreFeature.UpdateStoreContextCallback<C> callback) throws IllegalArgumentException, SessionClosedException
The script may be generated using a ScriptBuilder
obtained from
the feature.
Each line of script
is a command to update the store.
The server attempts to execute each command in order against a copy of the store. If any command fails, none of the changes will be applied. If all commands succeed, the changes will be applied.
C
- the context typecommandScript
- the scriptcontext
- the context to pass to the callback. May be null.callback
- the result of applying the scriptIllegalArgumentException
- if script or callback is nullSessionClosedException
- if the session is closedCopyright © 2016 Push Technology Ltd. All Rights Reserved.