public class PluginCacheMgr extends Object
Modifier and Type | Field and Description |
---|---|
static String |
ACE_RESPONSE |
static String |
AUTH_INFO |
static String |
AVAILABILITY_RESPONSE |
static String |
BYTARGET_RESULTS |
static String |
HELLO_INFO |
static String |
PAZPAR2_SETTINGS |
static String |
PREFIX |
static String |
PZ2_ACE_CLIENT |
static String |
SHOW_RESULTS |
Constructor and Description |
---|
PluginCacheMgr() |
Modifier and Type | Method and Description |
---|---|
static boolean |
canPull(String objectName,
Plugin plugin)
Method for checking if a plug-in can retrieve a given attribute - before
actually attempting to do it.
|
static boolean |
canPush(String objectName,
Plugin plugin,
Object object)
Method for checking if a plug-in can set a given attribute - before
actually attempting to do it.
|
static void |
clear(String objectName,
Plugin plugin,
ServiceRequest request)
Removes an attribute from the session, if permitted by the configuration
(based on the PUSH configuration)
|
static String |
dumpCache(javax.servlet.http.HttpSession session) |
static Object |
pull(String objectName,
Plugin plugin,
ServiceRequest request)
Retrieves an attribute from the session, if permitted by the configuration
|
static Document |
pullDocument(String objectName,
Plugin plugin,
ServiceRequest request)
Convenience method for retrieving a DOM document from the session
|
static String |
pullText(String objectName,
Plugin plugin,
ServiceRequest request)
Convenience method for retrieving a String object from the session
|
static void |
push(String objectName,
Object object,
Plugin plugin,
ServiceRequest request)
Sets an attribute on the session, if permitted by the configuration
|
static boolean |
validateConfig(com.indexdata.masterkey.config.MasterkeyConfiguration mkConfig)
Performs overall validation of the consistency of the plug-in data exchange
configuration
|
public static final String PREFIX
public static final String AUTH_INFO
public static final String HELLO_INFO
public static final String PZ2_ACE_CLIENT
public static final String ACE_RESPONSE
public static final String AVAILABILITY_RESPONSE
public static final String PAZPAR2_SETTINGS
public static final String BYTARGET_RESULTS
public static final String SHOW_RESULTS
public static boolean validateConfig(com.indexdata.masterkey.config.MasterkeyConfiguration mkConfig)
mkConfig
- public static void push(String objectName, Object object, Plugin plugin, ServiceRequest request)
objectName
- attribute keyobject
- attribute valueplugin
- the plug-in that wants to set the attributesession
- public static Object pull(String objectName, Plugin plugin, ServiceRequest request)
objectName
- attribute keyplugin
- the plug-in that wants to retrieve the objectsession
- public static void clear(String objectName, Plugin plugin, ServiceRequest request)
objectName
- attribute keyplugin
- the plug-in that wants to remove the object from the sessionsession
- public static String pullText(String objectName, Plugin plugin, ServiceRequest request)
objectName
- plugin
- session
- public static Document pullDocument(String objectName, Plugin plugin, ServiceRequest request)
objectName
- plugin
- session
- public static boolean canPush(String objectName, Plugin plugin, Object object)
objectName
- plugin
- object
- public static boolean canPull(String objectName, Plugin plugin)
objectName
- plugin
- public static String dumpCache(javax.servlet.http.HttpSession session)
Copyright © 2008-2015 Index Data. All Rights Reserved.