se.sj.stina.domain.provider
Class SjAbstractStinaInformationProviderDelegate

java.lang.Object
  extended by se.sj.stina.domain.provider.SjAbstractStinaInformationProviderDelegate
All Implemented Interfaces:
TiInformationProviderBRLInterface, TiInformationProviderLispInterface, SjStinaInformationProviderConstants, SjStinaServerCallerInterface
Direct Known Subclasses:
SjStinaInformationProviderDelegate

public abstract class SjAbstractStinaInformationProviderDelegate
extends java.lang.Object
implements SjStinaServerCallerInterface, SjStinaInformationProviderConstants, TiInformationProviderBRLInterface

Version:
$Revision: 27 $, $Date: 08-10-16 10:31 $
Author:
Per Lindberger

Nested Class Summary
(package private) static class SjAbstractStinaInformationProviderDelegate.PublicKey
           
 
Field Summary
protected  TiBRLProviderManagerInterface _brlProviderManager
           
protected  TiBuiltinModelFactoryInterface _builtinModelFactory
           
protected  SjClientSessionData _clientSessionData
           
protected static java.lang.String _errorTextInfo
           
protected static java.util.HashMap _exceptionNames
           
protected  TiGeneralModelFactoryInterface _generalModelFactory
           
protected  java.lang.String _hashAlgorithm
           
protected  java.lang.String _hostName
           
protected  java.lang.String _lastInitialCloneName
           
protected  TiInformationProviderLoggerInterface _loggerInterface
           
protected  boolean _logTimeInformationSeparately
           
protected  boolean _logVerboseMessages
           
protected  boolean _mapperNoReuse
           
protected  int _messageReceivedLogLevel
           
protected  int _messageSentLogLevel
           
protected  java.lang.String _modelConstantsClassName
           
protected  boolean _preferCompressedData
           
protected  java.util.Properties _properties
           
protected  SjStinaProviderMediumInterface _providerMedium
           
protected  java.lang.String _resourceDirectory
           
protected static java.util.HashMap _serverErrorMessage
           
protected  java.lang.String _shortClassName
           
protected  org.stina.framework.support.statistics.TiStatisticsHandlerInterface _statisticsHandler
           
protected  SjStinaModelFactoryInterface _stinaModelFactory
           
protected  java.lang.String _stringEncoding
           
protected  boolean _useControlDataCache
           
protected  boolean _writeAnswerToFile
           
protected  boolean _writeQueryToFile
           
protected static java.util.HashMap A_CPETRA_KEYS
           
protected static java.util.HashMap A_P2I_KEYS
           
protected static java.util.HashMap A_STINA_KEYS
           
protected static java.util.HashMap B_CPETRA_KEYS
           
protected static java.util.HashMap B_P2I_KEYS
           
protected static java.util.HashMap B_STINA_KEYS
           
protected static java.util.HashMap ENCRYPTION_VERSIONS_A
           
protected static java.util.HashMap ENCRYPTION_VERSIONS_B
           
protected static java.util.HashMap ENCRYPTION_VERSIONS_N
           
protected static java.util.HashMap ENCRYPTION_VERSIONS_O
           
protected static java.util.HashMap ENCRYPTION_VERSIONS_PER_ENVIRONMENT
           
protected static java.util.HashMap ENCRYPTION_VERSIONS_Q
           
protected static java.util.HashMap ENCRYPTION_VERSIONS_R
           
(package private) static int INBOUND
           
protected static java.util.HashMap N_CPETRA_KEYS
           
protected static java.util.HashMap N_P2I_KEYS
           
protected static java.util.HashMap N_STINA_KEYS
           
static java.lang.String NO_ENCRYPTION_VERSION
           
protected static java.util.HashMap O_CPETRA_KEYS
           
protected static java.util.HashMap O_P2I_KEYS
           
protected static java.util.HashMap O_STINA_KEYS
           
(package private) static int OUTBOUND
           
protected static java.util.HashMap PUBKEYS_A
           
protected static java.util.HashMap PUBKEYS_B
           
protected static java.util.HashMap PUBKEYS_N
           
protected static java.util.HashMap PUBKEYS_O
           
protected static java.util.HashMap PUBKEYS_PER_ENVIRONMENT
           
protected static java.util.HashMap PUBKEYS_Q
           
protected static java.util.HashMap PUBKEYS_R
           
protected static java.util.HashMap Q_CPETRA_KEYS
           
protected static java.util.HashMap Q_P2I_KEYS
           
protected static java.util.HashMap Q_STINA_KEYS
           
protected static java.util.HashMap R_CPETRA_KEYS
           
protected static java.util.HashMap R_P2I_KEYS
           
protected static java.util.HashMap R_STINA_KEYS
           
protected static int SERVER_ERR_NUM_NO_SUCH_OBJECT
           
(package private) static int SERVER_TIMEOUT_ERROR_CODE
           
static java.lang.String VERSION_0
           
static java.lang.String VERSION_1
           
static java.lang.String VERSION_2
           
static java.lang.String VERSION_3
           
static java.lang.String VERSION_4
           
static java.lang.String XML_VERSION
           
 
Fields inherited from interface se.sj.stina.domain.provider.SjStinaInformationProviderConstants
AMBIGUOUS_DATA_EXCEPTION, BAD_OPERATION, BAD_TRANSFER_DATA_EXCEPTION, CACHE_FACTORIES, CANNOT_PERFORM_ROLE_SELECTION, CENTRAL_PETRA_VECTOR, COMMUNICATION_FAILURE, CONTEXT_FACTORY, CREATE_EXCEPTION, DATA_CONVERSION, DEFAULT_STRING_ENCODING, DICTIONARY, ENTRY_RULE_EXCEPTION, ERROR_TEXT_INFO_ADDITIONAL, ERROR_TEXT_INFO_CODE, ERROR_TEXT_INFO_DEFAULT, ERROR_TEXT_INFO_FULL, EXIT_RULE_EXCEPTION, FATAL_EXCEPTION, FATAL_EXCEPTION_CLASS_NAME, HOST_NAME, INDATA_NOT_ACCORDING_TO_SPEC, INDATA_NOT_ACCORDING_TO_SPEC_MSG, INFORMATION_EXCEPTION, INFORMATION_EXCEPTION_CLASS_NAME, NAMING_EXCEPTION, NO_CONTEXT, NO_RESPONSE, NO_SUCH_OBJECT_EXCEPTION, OUTDATA_NOT_ACCORDING_TO_SPEC, OUTDATA_NOT_ACCORDING_TO_SPEC_MSG, PERMISSION_DENIED, PERMUTE_HOST_NAMES, PETRA2_CATEGORY_TO_SML_ORDER_ITEM_PERSON_CLASSIFICATION_LIST, PETRA2_COMFORT_TO_SML_ORDER_ACTIVITY_UNIT_CHARACTERISTIC_LIST, PETRA2_COMPARTMENT_CODE_TO_SML_ORDER_ACTIVITY_UNIT_CHARACTERISTIC_COMPARTMENT_CHARACTERISTIC_LIST, PETRA2_COMPARTMENT_SIZE_TO_SML_ORDER_ACTIVITY_UNIT_CHARACTERISTIC_COMPARTMENT_NO_OF_SEATS_LIST, PETRA2_ERROR_CODE_TO_SML_ERROR_CODE_LIST, PETRA2_INTEGRATOR_VECTOR, PETRA2_PLACEMENT_CHARACTERISTICS_TO_SML_ORDER_ACTIVITY_UNIT_CHARACTERISTIC_COMPARTMENT_SEAT_CHARACTERISTIC_LIST, PETRA2_PLACEMENT_ORIENTATION_TO_SML_ORDER_ACTIVITY_UNIT_CHARACTERISTIC_COMPARTMENT_SEAT_POSITION_LIST, PETRA2_PLACEMENT_TYPE_TO_SML_ORDER_ACTIVITY_UNIT_CHARACTERISTIC_COMPARTMENT_TYPE_LIST, PETRA2_PRICE_GROUP_TO_SML_ORDER_ACTIVITY_CLASSIFICATION_LIST, PETRA2_PRICE_LEVEL_TO_SML_ORDER_ACTIVITY_CLASSIFICATION_LIST, PETRA2_PRODUCT_CODE_TO_SML_ORDER_ACTIVITY_CATEGORY_LIST, PETRA2_SALES_UNIT_ID_TO_SML_ORDER_ORGANISATION_ID_ID_VALUE_LIST, PETRA2_TRAVEL_METHOD_CODE_TO_SML_ORDER_ACTIVITY_FUNCTION_LIST, PLAINTEXT_PART, REMOTE_EXCEPTION, SALESCONTROL, SEVERE_EXCEPTION, SEVERE_EXCEPTION_CLASS_NAME, SML_ORDER_ACTIVITY_CATEGORY_TO_PETRA2_PRODUCT_CODE_LIST, SML_ORDER_ACTIVITY_CLASSIFICATION_TO_PETRA2_PRICE_GROUP_LIST, SML_ORDER_ACTIVITY_FUNCTION_TO_PETRA2_TRAVEL_METHOD_CODE_LIST, SML_ORDER_ACTIVITY_UNIT_CHARACTERISTIC_COMPARTMENT_CHARACTERISTIC_TO_PETRA2_COMPARTMENT_CODE_LIST, SML_ORDER_ACTIVITY_UNIT_CHARACTERISTIC_COMPARTMENT_NO_OF_SEATS_TO_PETRA2_COMPARTMENT_SIZE_LIST, SML_ORDER_ACTIVITY_UNIT_CHARACTERISTIC_COMPARTMENT_SEAT_CHARACTERISTIC_TO_PETRA2_PLACEMENT_CHARACTERISTICS_LIST, SML_ORDER_ACTIVITY_UNIT_CHARACTERISTIC_COMPARTMENT_SEAT_POSITION_TO_PETRA2_PLACEMENT_ORIENTATION_LIST, SML_ORDER_ACTIVITY_UNIT_CHARACTERISTIC_COMPARTMENT_TYPE_TO_PETRA2_PLACEMENT_TYPE_LIST, SML_ORDER_ACTIVITY_UNIT_CHARACTERISTIC_TO_PETRA2_COMFORT_LIST, SML_ORDER_ITEM_PERSON_CLASSIFICATION_TO_PETRA2_CATEGORY_LIST, SML_ORDER_ORGANISATION_ID_ID_VALUE_TO_PETRA2_SALES_UNIT_ID_LIST, STINA_SERVER_VECTOR, TIMEOUT, TIMEOUT_EXCEPTION, TIMEOUT_EXCEPTION_CLASS_NAME, TRANSACTION_ROLLEDBACK, UNINITIALIZED_LANGUAGE_CODE, UNINITIALIZED_SESSION_ID, UNINITIALIZED_USER_NAME, UNKNOWN_ERROR, UNKNOWN_SALES_CHANNEL_TYPE
 
Constructor Summary
SjAbstractStinaInformationProviderDelegate()
           
 
Method Summary
protected  void clearCachedMediumReferences()
           
protected abstract  void clearServerObjectHolderCaches()
           
 void completeFullMeasurement(java.lang.String label)
           
protected  void completeFullMeasurement(java.lang.String label, int logLevel)
           
static java.lang.String composeErrorText(se.sj.stina.exception.StinaPublicException spe, java.lang.String errorTextInfo)
           
protected  TiModelInterface concludeServerCall(java.lang.String methodName, byte[] transferData, TiModelInterface model)
           
protected  TiModelInterface concludeServerCall(java.lang.String methodName, byte[] transferData, TiModelInterface model, boolean logTransferData, boolean storeClientSessionData)
           
protected  TiModelInterface concludeServerCall(java.lang.String methodName, byte[] transferData, TiModelInterface model, boolean logTransferData, boolean storeClientSessionData, boolean runExitRule)
           
protected  TiModelInterface concludeServerCall(java.lang.String methodName, byte[] transferData, TiModelInterface model, boolean logTransferData, boolean storeClientSessionData, boolean runExitRule, java.lang.String knownServerClone)
           
protected  SjClientCacheInfo createClientCacheInfo(byte[] data)
           
 TiModelInterface createModel(java.lang.String modelName)
           
protected  TiModelFactoryInterface createModelFactory(java.lang.String mfcn)
           
 void errorHandling(java.lang.Throwable t, java.lang.String methodName)
           
(package private)  int getBeanAccessLogLevel()
           
 TiBRLProviderManagerInterface getBRLProviderManager()
          Method used by concrete implementations to be able to register rules Framework method to get the manager for busines rules A business rules manager handles all rule registration and deregistration.
 TiBuiltinModelFactoryInterface getBuiltinModelFactory()
           
protected  byte[] getBytes(java.lang.String string)
           
protected static java.lang.String getCachedTransferDataSuffix()
           
(package private)  SjClientInformation getClientInformation(SjClientSessionData sessionData, boolean preferCompressedData)
           
protected  SjClientSessionData getClientSessionData()
           
 TiCrossReference getCrossReference()
           
(package private)  java.lang.String getEncryptionVersion(java.lang.String environment, java.lang.String routineId)
           
protected  TiModelInterface[] getEntryRuleArgs(java.lang.String methodName, java.lang.Object[] methodArgs)
           
static java.lang.String getErrorTextInfo()
           
protected  TiModelInterface[] getExitRuleArgs(java.lang.String methodName, TiModelInterface methodResult)
           
(package private)  java.lang.String getFullXmlFilePath(java.lang.String fileName)
           
 TiGeneralModelFactoryInterface getGeneralModelFactory()
           
protected  TiModelInterface getGeneralModelFromXMLFile(java.lang.String fileName, TiModelInterface model, java.lang.String transferName)
           
 java.lang.String getHostName()
           
 SjItineraryResult getItineraryResult(byte[] id)
           
protected  java.lang.String getLastInitialCloneName()
           
 TiInformationProviderLoggerInterface getLoggerInterface()
          Method used by concrete implementations to be able to log with log4j
protected  TiMapperAbstractMedium getLogMapperMedium()
           
 TiMapper getMapper()
          Get mapper, used to convert model to and from external objects.
(package private)  TiMapperAbstractMedium getMapperMedium()
          Get mapper medium, strategy to convert to a certain type of external objects.
(package private)  int getMeasurementLogLevel()
           
 int getMessageReceivedLogLevel()
           
 int getMessageSentLogLevel()
           
(package private)  int getMethodEntryLogLevel()
           
(package private)  int getMethodExitLogLevel()
           
protected  java.util.Properties getProperties()
           
protected  java.lang.String getProperty(java.lang.String name)
           
protected  java.lang.String getProperty(java.lang.String name, java.lang.String defaultValue)
           
protected  SjStinaProviderMediumInterface getProviderMedium()
           
protected  SjStinaProviderMediumInterface getProviderMedium(boolean create)
           
(package private)  java.lang.String getResourceDir()
           
(package private)  SjAbstractStinaInformationProviderDelegate.PublicKey getRSAKey(java.lang.String environment, java.lang.String routineId, java.lang.String version)
           
protected abstract  java.lang.String getSalesChannelType()
           
 java.lang.String getServerErrorMessage(int errInt)
          Gets the error message from the server.
protected  java.lang.String getShortClassName()
           
 org.stina.framework.support.statistics.TiStatisticsHandlerInterface getStatisticsHandler()
          Method used by concrete implementations to be able to save statistics
 SjStinaModelFactoryInterface getStinaModelFactory()
           
protected  java.lang.String getString(byte[] bytes)
           
protected  java.lang.String getTimeInformationString(SjTimeInformation timeInformation)
           
 TiLogger getTimingLogger()
           
protected  byte[] getTransferDataFromCache(java.lang.String cacheName)
           
protected static java.lang.Class[] getTypes(java.lang.Object[] objects)
           
(package private)  TiMapperAbstractMedium getVerboseMapperMedium()
           
protected static java.lang.String getXmlDeclaration(java.lang.String encoding)
           
protected  java.lang.String handleClientInformation(se.sj.stina.exception.StinaPublicException spe)
           
 byte[] handleCompressedResult(byte[] compressedResult)
           
protected  void handleExitRuleResult(java.lang.Object result, java.lang.String methodName, java.lang.String ruleName, java.lang.String reason, java.lang.String exceptionKey)
           
protected  void handleInvocationRuleResult(java.lang.Object result, java.lang.String methodName, java.lang.String ruleName, java.lang.String reason, java.lang.String exceptionKey)
           
protected  void initFullMeasurement(java.lang.String label)
           
protected  void initFullMeasurement(java.lang.String label, int logLevel)
           
protected  void initialise()
           
protected  void initialiseMapperMedium()
           
protected  boolean initialiseProviderMedium(boolean failOnError)
           
protected  void invokeExitRule(java.lang.String methodName, TiModelInterface methodResult)
          Invoke any exit rule registered for method methodName by appealing to BRL manager to run rule IP__exit if registered.
protected  boolean isLogTimeInformationSeparately()
           
 boolean isLogVerboseMessages()
           
(package private)  boolean isMapperNoReuse()
           
(package private)  boolean isWriteAnswerToFile()
           
(package private)  boolean isWriteQueryToFile()
           
protected  void logInternal(TiInformationProviderException ipe, java.lang.String methodName, int logLevel)
           
protected  void logInternal(TiInformationProviderException ipe, java.lang.String methodName, java.lang.String serverClone, int logLevel)
           
protected  void logTimeInformationSequence(SjTimeInformationSequence timeInformationSequence, java.lang.String methodName)
           
protected  java.util.Properties makeProperties(java.lang.String inPropertyList)
           
protected  boolean mediumWantsServerPinger()
           
 void onEntry(java.lang.String methodName)
           
 void onExit(java.lang.String methodName)
           
protected  void onExit(java.lang.String methodName, java.lang.String serverClone)
           
protected  void performBeanAccessLog(java.lang.Object facade, java.lang.String methodName)
           
protected  TiModelInterface performCacheComparingServerCall(java.lang.String methodName, java.lang.Object facade, java.lang.Object[] args, TiModelInterface model, byte[] localData, java.lang.String cacheName)
           
protected  TiModelInterface performCacheComparingServerCall(java.lang.String methodName, java.lang.Object facade, java.lang.Object[] args, TiModelInterface model, byte[] localData, java.lang.String cacheName, boolean useCompression)
           
 void performServerCall(java.lang.String methodName, java.lang.Object facade, java.lang.Object[] args, boolean compressArgs)
           
 TiModelInterface performServerCall(java.lang.String methodName, java.lang.Object facade, java.lang.Object[] args, TiModelInterface model)
           
 TiModelInterface performServerCall(java.lang.String methodName, java.lang.Object facade, java.lang.Object[] args, TiModelInterface model, boolean useCompression)
           
 TiModelInterface performServerCall(java.lang.String methodName, java.lang.Object facade, java.lang.Object[] args, TiModelInterface model, boolean useCompression, boolean verifyPermission)
           
protected  boolean prefersCompressedData()
           
 java.lang.Object[] prepareServerCall(java.lang.String methodName, java.lang.Object[] args, boolean compressArgs)
           
protected  java.lang.Object[] prepareServerCall(java.lang.String methodName, java.lang.Object[] args, boolean includeClientInfo, boolean compressArgs)
           
protected  java.lang.Object[] prepareServerCall(java.lang.String methodName, java.lang.Object[] args, boolean includeClientInfo, boolean compressArgs, boolean verifyPermission)
           
(package private)  void processModel(TiModelInterface model, java.lang.String methodName)
           
protected  void processModel(TiModelInterface model, java.lang.String transferName, java.lang.String methodName)
           
(package private)  void processModel(TiModelInterface model, java.lang.String transferName, java.lang.String methodName, java.lang.String fileName)
           
 void putItineraryResult(byte[] id, SjItineraryResult itinerary)
           
 void removeItineraryResult(byte[] id)
           
 void setBeanAccessLogLevel(int level)
           
 void setBRLProviderManager(TiBRLProviderManagerInterface brlProviderManager)
          Method used by concrete implementations to be able to register rules Framework method to get the manager for busines rules A business rules manager handles all rule registration and deregistartion.
protected  void setClientSessionData(SjClientSessionData clientSessionData)
           
 void setLoggerInterface(TiInformationProviderLoggerInterface loggerInterface)
          Implementation of where to log
protected  void setLogTimeInformationSeparately(boolean log)
           
protected  void setMapper(TiMapper mapper)
           
(package private)  void setMapperMedium(TiMapperAbstractMedium mapperMedium)
           
 void setMapperNoReuse(boolean mnr)
           
 void setMeasurementLogLevel(int level)
           
 void setMessageReceivedLogLevel(int level)
           
 void setMessageSentLogLevel(int level)
           
 void setMethodEntryLogLevel(int level)
           
 void setMethodExitLogLevel(int level)
           
protected  void setProperties(java.util.Properties p)
           
protected  void setProviderMedium(SjStinaProviderMediumInterface providerMedium)
           
 void setStatisticsHandler(org.stina.framework.support.statistics.TiStatisticsHandlerInterface statisticsHandler)
          Implementation of where to save statistics
 void setWriteAnswerToFile(boolean atf)
           
 void setWriteQueryToFile(boolean qtf)
           
protected  boolean shouldUseControlDataCache()
           
abstract  java.lang.String specifyBuiltinModelFactoryClassName()
           
protected abstract  TiModelInterface[] specifyEntryRuleArguments(java.lang.String methodName)
           
protected abstract  TiModelInterface[] specifyExitRuleArguments(java.lang.String methodName)
           
abstract  java.lang.String specifyGeneralModelFactoryClassName()
           
protected abstract  TiMapperAbstractMedium specifyLogMapperMedium()
           
protected abstract  TiMapper specifyMapper()
          Method implemented by concrete implementations to specify the mapper converting to and from external structures Example: Generate a mapper with sdl compiler.
protected abstract  TiMapperAbstractMedium specifyMapperMedium()
          Method implemented by concrete implementations to specify the mapper medium used by mapper to conver to and from objects.
abstract  java.lang.String specifyModelFactoryClassName()
           
protected abstract  java.lang.String specifyProviderMediumClassName()
          Method implemented by concrete implementations to specify the class name of the provider medium to use.
protected abstract  java.lang.String specifyProviderMediumPropertyList()
          Method implemented by concrete implementations to specify the properties used by provider medium class.
protected  java.lang.String specifyStringEncoding()
           
protected abstract  TiMapperAbstractMedium specifyVerboseMapperMedium()
           
protected  java.lang.String storeClientSessionData(TiModelInterface result)
           
protected  void throwException(java.lang.String exceptionKey, java.lang.String msg, int code)
          For simulation purposes
protected  java.lang.Object toExternalFromModel(java.lang.String key, TiModelInterface model)
          Convert model to external format.
 java.lang.String toLogExternalFromModel(java.lang.String key, TiModelInterface model)
           
protected  void toModelFromExternal(java.lang.String key, java.lang.Object external, TiModelInterface model)
          Convert external object to model.
protected  void toModelFromXmlExternal(java.lang.String key, java.lang.String xmlString, TiModelInterface model)
           
protected  java.lang.String toXmlExternalFromModel(java.lang.String key, TiModelInterface model, boolean terse)
           
protected  void updateControlDataCache(java.lang.String cacheName, byte[] td)
           
protected  void verifyInvocationPermission(java.lang.String methodName, java.lang.Object[] methodArgs)
          Determine whether client has permission to call method methodName with methodArgs by appealing to BRL manager to run rules INVOCATION_ARBITER_RULE and IP__entry if registered.
protected  void writeGeneralModelToXMLFile(java.lang.String fileName, TiModelInterface model, java.lang.String transferName)
           
protected  void writeModelToXMLFile(TiModelInterface model, java.lang.String fileName)
           
protected  void writeModelToXMLFile(TiModelInterface model, java.lang.String transferName, java.lang.String fileName)
           
(package private)  void writeTransferDataToFile(byte[] transferData, java.lang.String fileName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface se.sj.stina.domain.provider.SjStinaServerCallerInterface
getEncryptedDataInfo, hasServerLocally, logMessageReceived, logMessageSent, shouldCacheCustomers, shouldCacheOrders, unCache, unCache
 
Methods inherited from interface org.stina.framework.corex.provider.TiInformationProviderLispInterface
lookupData, specifyModelConstantsName
 

Field Detail

XML_VERSION

public static final java.lang.String XML_VERSION
See Also:
Constant Field Values

INBOUND

static final int INBOUND
See Also:
Constant Field Values

OUTBOUND

static final int OUTBOUND
See Also:
Constant Field Values

SERVER_TIMEOUT_ERROR_CODE

static final int SERVER_TIMEOUT_ERROR_CODE
See Also:
Constant Field Values

_providerMedium

protected volatile SjStinaProviderMediumInterface _providerMedium

_stinaModelFactory

protected SjStinaModelFactoryInterface _stinaModelFactory

_generalModelFactory

protected TiGeneralModelFactoryInterface _generalModelFactory

_builtinModelFactory

protected TiBuiltinModelFactoryInterface _builtinModelFactory

_modelConstantsClassName

protected java.lang.String _modelConstantsClassName

_properties

protected java.util.Properties _properties

_hostName

protected java.lang.String _hostName

_brlProviderManager

protected TiBRLProviderManagerInterface _brlProviderManager

_loggerInterface

protected TiInformationProviderLoggerInterface _loggerInterface

_statisticsHandler

protected org.stina.framework.support.statistics.TiStatisticsHandlerInterface _statisticsHandler

_messageReceivedLogLevel

protected int _messageReceivedLogLevel

_messageSentLogLevel

protected int _messageSentLogLevel

_logVerboseMessages

protected boolean _logVerboseMessages

_logTimeInformationSeparately

protected boolean _logTimeInformationSeparately

_writeQueryToFile

protected boolean _writeQueryToFile

_writeAnswerToFile

protected boolean _writeAnswerToFile

_mapperNoReuse

protected boolean _mapperNoReuse

_useControlDataCache

protected boolean _useControlDataCache

_hashAlgorithm

protected java.lang.String _hashAlgorithm

_preferCompressedData

protected boolean _preferCompressedData

_stringEncoding

protected java.lang.String _stringEncoding

_resourceDirectory

protected java.lang.String _resourceDirectory

_shortClassName

protected java.lang.String _shortClassName

_clientSessionData

protected SjClientSessionData _clientSessionData

_lastInitialCloneName

protected java.lang.String _lastInitialCloneName

_errorTextInfo

protected static java.lang.String _errorTextInfo

_exceptionNames

protected static java.util.HashMap _exceptionNames

_serverErrorMessage

protected static java.util.HashMap _serverErrorMessage

SERVER_ERR_NUM_NO_SUCH_OBJECT

protected static final int SERVER_ERR_NUM_NO_SUCH_OBJECT
See Also:
Constant Field Values

VERSION_0

public static final java.lang.String VERSION_0
See Also:
Constant Field Values

VERSION_1

public static final java.lang.String VERSION_1
See Also:
Constant Field Values

VERSION_2

public static final java.lang.String VERSION_2
See Also:
Constant Field Values

VERSION_3

public static final java.lang.String VERSION_3
See Also:
Constant Field Values

VERSION_4

public static final java.lang.String VERSION_4
See Also:
Constant Field Values

NO_ENCRYPTION_VERSION

public static final java.lang.String NO_ENCRYPTION_VERSION
See Also:
Constant Field Values

PUBKEYS_PER_ENVIRONMENT

protected static final java.util.HashMap PUBKEYS_PER_ENVIRONMENT

ENCRYPTION_VERSIONS_PER_ENVIRONMENT

protected static final java.util.HashMap ENCRYPTION_VERSIONS_PER_ENVIRONMENT

PUBKEYS_B

protected static final java.util.HashMap PUBKEYS_B

PUBKEYS_Q

protected static final java.util.HashMap PUBKEYS_Q

PUBKEYS_R

protected static final java.util.HashMap PUBKEYS_R

PUBKEYS_A

protected static final java.util.HashMap PUBKEYS_A

PUBKEYS_N

protected static final java.util.HashMap PUBKEYS_N

PUBKEYS_O

protected static final java.util.HashMap PUBKEYS_O

B_STINA_KEYS

protected static final java.util.HashMap B_STINA_KEYS

Q_STINA_KEYS

protected static final java.util.HashMap Q_STINA_KEYS

R_STINA_KEYS

protected static final java.util.HashMap R_STINA_KEYS

A_STINA_KEYS

protected static final java.util.HashMap A_STINA_KEYS

N_STINA_KEYS

protected static final java.util.HashMap N_STINA_KEYS

O_STINA_KEYS

protected static final java.util.HashMap O_STINA_KEYS

B_CPETRA_KEYS

protected static final java.util.HashMap B_CPETRA_KEYS

Q_CPETRA_KEYS

protected static final java.util.HashMap Q_CPETRA_KEYS

R_CPETRA_KEYS

protected static final java.util.HashMap R_CPETRA_KEYS

A_CPETRA_KEYS

protected static final java.util.HashMap A_CPETRA_KEYS

N_CPETRA_KEYS

protected static final java.util.HashMap N_CPETRA_KEYS

O_CPETRA_KEYS

protected static final java.util.HashMap O_CPETRA_KEYS

B_P2I_KEYS

protected static final java.util.HashMap B_P2I_KEYS

Q_P2I_KEYS

protected static final java.util.HashMap Q_P2I_KEYS

R_P2I_KEYS

protected static final java.util.HashMap R_P2I_KEYS

A_P2I_KEYS

protected static final java.util.HashMap A_P2I_KEYS

N_P2I_KEYS

protected static final java.util.HashMap N_P2I_KEYS

O_P2I_KEYS

protected static final java.util.HashMap O_P2I_KEYS

ENCRYPTION_VERSIONS_B

protected static final java.util.HashMap ENCRYPTION_VERSIONS_B

ENCRYPTION_VERSIONS_Q

protected static final java.util.HashMap ENCRYPTION_VERSIONS_Q

ENCRYPTION_VERSIONS_R

protected static final java.util.HashMap ENCRYPTION_VERSIONS_R

ENCRYPTION_VERSIONS_A

protected static final java.util.HashMap ENCRYPTION_VERSIONS_A

ENCRYPTION_VERSIONS_N

protected static final java.util.HashMap ENCRYPTION_VERSIONS_N

ENCRYPTION_VERSIONS_O

protected static final java.util.HashMap ENCRYPTION_VERSIONS_O
Constructor Detail

SjAbstractStinaInformationProviderDelegate

public SjAbstractStinaInformationProviderDelegate()
Method Detail

initialise

protected void initialise()

initialiseMapperMedium

protected void initialiseMapperMedium()

initialiseProviderMedium

protected boolean initialiseProviderMedium(boolean failOnError)

getShortClassName

protected java.lang.String getShortClassName()

getMeasurementLogLevel

int getMeasurementLogLevel()

setMeasurementLogLevel

public void setMeasurementLogLevel(int level)

getBeanAccessLogLevel

int getBeanAccessLogLevel()

setBeanAccessLogLevel

public void setBeanAccessLogLevel(int level)

isWriteAnswerToFile

boolean isWriteAnswerToFile()

setWriteAnswerToFile

public void setWriteAnswerToFile(boolean atf)

isWriteQueryToFile

boolean isWriteQueryToFile()

setWriteQueryToFile

public void setWriteQueryToFile(boolean qtf)

isMapperNoReuse

boolean isMapperNoReuse()

setMapperNoReuse

public void setMapperNoReuse(boolean mnr)

getSalesChannelType

protected abstract java.lang.String getSalesChannelType()

getClientSessionData

protected SjClientSessionData getClientSessionData()

setClientSessionData

protected void setClientSessionData(SjClientSessionData clientSessionData)

getProviderMedium

protected SjStinaProviderMediumInterface getProviderMedium(boolean create)
Returns:
the provider medium associated with this provider. May return null, if create is false.

getProviderMedium

protected SjStinaProviderMediumInterface getProviderMedium()
Returns:
the provider medium associated with this provider.

setProviderMedium

protected void setProviderMedium(SjStinaProviderMediumInterface providerMedium)

mediumWantsServerPinger

protected boolean mediumWantsServerPinger()

clearCachedMediumReferences

protected void clearCachedMediumReferences()

clearServerObjectHolderCaches

protected abstract void clearServerObjectHolderCaches()

getBRLProviderManager

public TiBRLProviderManagerInterface getBRLProviderManager()
Method used by concrete implementations to be able to register rules Framework method to get the manager for busines rules A business rules manager handles all rule registration and deregistration.

Specified by:
getBRLProviderManager in interface TiInformationProviderBRLInterface
See Also:
TiBRLProviderManagerInterface

setBRLProviderManager

public void setBRLProviderManager(TiBRLProviderManagerInterface brlProviderManager)
Method used by concrete implementations to be able to register rules Framework method to get the manager for busines rules A business rules manager handles all rule registration and deregistartion.

See Also:
TiBRLProviderManagerInterface

getLoggerInterface

public TiInformationProviderLoggerInterface getLoggerInterface()
Method used by concrete implementations to be able to log with log4j


setLoggerInterface

public void setLoggerInterface(TiInformationProviderLoggerInterface loggerInterface)
Implementation of where to log

Parameters:
loggerInterface - where to log messages

getStatisticsHandler

public org.stina.framework.support.statistics.TiStatisticsHandlerInterface getStatisticsHandler()
Method used by concrete implementations to be able to save statistics


setStatisticsHandler

public void setStatisticsHandler(org.stina.framework.support.statistics.TiStatisticsHandlerInterface statisticsHandler)
Implementation of where to save statistics

Parameters:
loggerInterface - where to log messages

toModelFromXmlExternal

protected void toModelFromXmlExternal(java.lang.String key,
                                      java.lang.String xmlString,
                                      TiModelInterface model)

toModelFromExternal

protected void toModelFromExternal(java.lang.String key,
                                   java.lang.Object external,
                                   TiModelInterface model)
Convert external object to model.

Parameters:
key - the name of the external object to convert.
external - external object to convert to model.
model - model to which the external object will be converted.

toLogExternalFromModel

public java.lang.String toLogExternalFromModel(java.lang.String key,
                                               TiModelInterface model)
Specified by:
toLogExternalFromModel in interface SjStinaServerCallerInterface

toXmlExternalFromModel

protected java.lang.String toXmlExternalFromModel(java.lang.String key,
                                                  TiModelInterface model,
                                                  boolean terse)

toExternalFromModel

protected java.lang.Object toExternalFromModel(java.lang.String key,
                                               TiModelInterface model)
Convert model to external format.

Parameters:
key - the domain name of the object to convert
model - model to convert to external object.
Returns:
the external object converted from model.

getMapper

public TiMapper getMapper()
Get mapper, used to convert model to and from external objects.

Returns:
the mapper associated with this delegate.

setMapper

protected void setMapper(TiMapper mapper)

getMapperMedium

TiMapperAbstractMedium getMapperMedium()
Get mapper medium, strategy to convert to a certain type of external objects.

Returns:
the mapper medium associated with this delegate.

setMapperMedium

void setMapperMedium(TiMapperAbstractMedium mapperMedium)

getVerboseMapperMedium

TiMapperAbstractMedium getVerboseMapperMedium()

getLogMapperMedium

protected TiMapperAbstractMedium getLogMapperMedium()

getHostName

public java.lang.String getHostName()

specifyModelFactoryClassName

public abstract java.lang.String specifyModelFactoryClassName()
Returns:
the qualified name of the class to act as a model factory for the provider. The named class should at least implement TiModelFactoryInterface. It should also either have a static getInstance() method or a public default constructor.
See Also:
TiModelFactoryInterface

specifyGeneralModelFactoryClassName

public abstract java.lang.String specifyGeneralModelFactoryClassName()

specifyBuiltinModelFactoryClassName

public abstract java.lang.String specifyBuiltinModelFactoryClassName()

createModel

public TiModelInterface createModel(java.lang.String modelName)
                             throws java.lang.ClassNotFoundException,
                                    java.lang.InstantiationException,
                                    java.lang.IllegalAccessException
Specified by:
createModel in interface TiInformationProviderLispInterface
Throws:
TiFactoryUnavailableException
java.lang.ClassNotFoundException
java.lang.InstantiationException
java.lang.IllegalAccessException

getStinaModelFactory

public SjStinaModelFactoryInterface getStinaModelFactory()
Throws:
TiFactoryUnavailableException

getGeneralModelFactory

public TiGeneralModelFactoryInterface getGeneralModelFactory()
Throws:
TiFactoryUnavailableException

getBuiltinModelFactory

public TiBuiltinModelFactoryInterface getBuiltinModelFactory()
Throws:
TiFactoryUnavailableException

createModelFactory

protected TiModelFactoryInterface createModelFactory(java.lang.String mfcn)

specifyMapper

protected abstract TiMapper specifyMapper()
Method implemented by concrete implementations to specify the mapper converting to and from external structures Example: Generate a mapper with sdl compiler. Sdl defines the data to and from a server implementation.

 protected TiMapper specifyMapper()
 {
     return new MyMapper();
 }
 

Returns:
the concrete mapper for this information provider.

specifyMapperMedium

protected abstract TiMapperAbstractMedium specifyMapperMedium()
Method implemented by concrete implementations to specify the mapper medium used by mapper to conver to and from objects. Example: Use the mapper medium needed to communicate with server.

 protected TiMapperAbstractMedium specifyMapperMedium()
 {
     return new TiToFromTransferMiniData();
 }
 

Returns:
the concrete mapper medium to use.

specifyVerboseMapperMedium

protected abstract TiMapperAbstractMedium specifyVerboseMapperMedium()

specifyLogMapperMedium

protected abstract TiMapperAbstractMedium specifyLogMapperMedium()

specifyProviderMediumClassName

protected abstract java.lang.String specifyProviderMediumClassName()
Method implemented by concrete implementations to specify the class name of the provider medium to use. Strongly related to the type of server used, e.g. CORBA, RPC, EJB, Streams ...
 protected String
 specifyProviderMediumClassName()
 {
     return "se.sj.stina.domain.provider.LknStinaProviderMedium";
 }
 

Returns:
the class name of the concrete provider medium to use.

specifyProviderMediumPropertyList

protected abstract java.lang.String specifyProviderMediumPropertyList()
Method implemented by concrete implementations to specify the properties used by provider medium class. This property list is used when constructing the provider medium class. See the provider medium class for more information. Example: Use the provder medium needed to communicate with server. Must be implemented if not already exist.

 protected String specifyProviderMediumPropertyList()
 {
     return "HOST_NAME=//server.company.se:2736";
 }
 

Returns:
the property list for the provider medium.

getProperty

protected java.lang.String getProperty(java.lang.String name)

getProperty

protected java.lang.String getProperty(java.lang.String name,
                                       java.lang.String defaultValue)

getProperties

protected java.util.Properties getProperties()

setProperties

protected void setProperties(java.util.Properties p)

makeProperties

protected java.util.Properties makeProperties(java.lang.String inPropertyList)

getCrossReference

public TiCrossReference getCrossReference()

initFullMeasurement

protected void initFullMeasurement(java.lang.String label)

initFullMeasurement

protected void initFullMeasurement(java.lang.String label,
                                   int logLevel)

completeFullMeasurement

public void completeFullMeasurement(java.lang.String label)
Specified by:
completeFullMeasurement in interface SjStinaServerCallerInterface

completeFullMeasurement

protected void completeFullMeasurement(java.lang.String label,
                                       int logLevel)

onEntry

public void onEntry(java.lang.String methodName)
Specified by:
onEntry in interface SjStinaServerCallerInterface

onExit

public void onExit(java.lang.String methodName)
Specified by:
onExit in interface SjStinaServerCallerInterface

onExit

protected void onExit(java.lang.String methodName,
                      java.lang.String serverClone)

getRSAKey

SjAbstractStinaInformationProviderDelegate.PublicKey getRSAKey(java.lang.String environment,
                                                               java.lang.String routineId,
                                                               java.lang.String version)

getEncryptionVersion

java.lang.String getEncryptionVersion(java.lang.String environment,
                                      java.lang.String routineId)

handleCompressedResult

public byte[] handleCompressedResult(byte[] compressedResult)

getMethodEntryLogLevel

int getMethodEntryLogLevel()

setMethodEntryLogLevel

public void setMethodEntryLogLevel(int level)

getMethodExitLogLevel

int getMethodExitLogLevel()

setMethodExitLogLevel

public void setMethodExitLogLevel(int level)

getMessageSentLogLevel

public int getMessageSentLogLevel()
Specified by:
getMessageSentLogLevel in interface SjStinaServerCallerInterface

setMessageSentLogLevel

public void setMessageSentLogLevel(int level)

getMessageReceivedLogLevel

public int getMessageReceivedLogLevel()
Specified by:
getMessageReceivedLogLevel in interface SjStinaServerCallerInterface

setMessageReceivedLogLevel

public void setMessageReceivedLogLevel(int level)

isLogVerboseMessages

public boolean isLogVerboseMessages()

processModel

void processModel(TiModelInterface model,
                  java.lang.String transferName,
                  java.lang.String methodName,
                  java.lang.String fileName)

processModel

protected void processModel(TiModelInterface model,
                            java.lang.String transferName,
                            java.lang.String methodName)

processModel

void processModel(TiModelInterface model,
                  java.lang.String methodName)

logTimeInformationSequence

protected void logTimeInformationSequence(SjTimeInformationSequence timeInformationSequence,
                                          java.lang.String methodName)

getTimeInformationString

protected java.lang.String getTimeInformationString(SjTimeInformation timeInformation)

isLogTimeInformationSeparately

protected boolean isLogTimeInformationSeparately()

setLogTimeInformationSeparately

protected void setLogTimeInformationSeparately(boolean log)

getTypes

protected static java.lang.Class[] getTypes(java.lang.Object[] objects)

getLastInitialCloneName

protected java.lang.String getLastInitialCloneName()

storeClientSessionData

protected java.lang.String storeClientSessionData(TiModelInterface result)

getClientInformation

SjClientInformation getClientInformation(SjClientSessionData sessionData,
                                         boolean preferCompressedData)

updateControlDataCache

protected void updateControlDataCache(java.lang.String cacheName,
                                      byte[] td)

shouldUseControlDataCache

protected boolean shouldUseControlDataCache()

prefersCompressedData

protected boolean prefersCompressedData()

writeModelToXMLFile

protected void writeModelToXMLFile(TiModelInterface model,
                                   java.lang.String fileName)

writeModelToXMLFile

protected void writeModelToXMLFile(TiModelInterface model,
                                   java.lang.String transferName,
                                   java.lang.String fileName)

getGeneralModelFromXMLFile

protected TiModelInterface getGeneralModelFromXMLFile(java.lang.String fileName,
                                                      TiModelInterface model,
                                                      java.lang.String transferName)

writeGeneralModelToXMLFile

protected void writeGeneralModelToXMLFile(java.lang.String fileName,
                                          TiModelInterface model,
                                          java.lang.String transferName)

getFullXmlFilePath

java.lang.String getFullXmlFilePath(java.lang.String fileName)

createClientCacheInfo

protected SjClientCacheInfo createClientCacheInfo(byte[] data)

getTransferDataFromCache

protected byte[] getTransferDataFromCache(java.lang.String cacheName)

writeTransferDataToFile

void writeTransferDataToFile(byte[] transferData,
                             java.lang.String fileName)

getCachedTransferDataSuffix

protected static java.lang.String getCachedTransferDataSuffix()

getResourceDir

java.lang.String getResourceDir()

prepareServerCall

public java.lang.Object[] prepareServerCall(java.lang.String methodName,
                                            java.lang.Object[] args,
                                            boolean compressArgs)
                                     throws TiInformationException,
                                            TiSevereException,
                                            TiFatalException
Specified by:
prepareServerCall in interface SjStinaServerCallerInterface
Throws:
TiInformationException
TiSevereException
TiFatalException

prepareServerCall

protected java.lang.Object[] prepareServerCall(java.lang.String methodName,
                                               java.lang.Object[] args,
                                               boolean includeClientInfo,
                                               boolean compressArgs)
                                        throws TiInformationException,
                                               TiSevereException,
                                               TiFatalException
Throws:
TiInformationException
TiSevereException
TiFatalException

prepareServerCall

protected java.lang.Object[] prepareServerCall(java.lang.String methodName,
                                               java.lang.Object[] args,
                                               boolean includeClientInfo,
                                               boolean compressArgs,
                                               boolean verifyPermission)
                                        throws TiInformationException,
                                               TiSevereException,
                                               TiFatalException
Throws:
TiInformationException
TiSevereException
TiFatalException

performServerCall

public TiModelInterface performServerCall(java.lang.String methodName,
                                          java.lang.Object facade,
                                          java.lang.Object[] args,
                                          TiModelInterface model)
                                   throws TiAmbiguousDataException,
                                          TiBadTransferDataException,
                                          TiInformationException,
                                          TiSevereException,
                                          TiFatalException
Specified by:
performServerCall in interface SjStinaServerCallerInterface
Throws:
TiAmbiguousDataException
TiBadTransferDataException
TiInformationException
TiSevereException
TiFatalException

performServerCall

public TiModelInterface performServerCall(java.lang.String methodName,
                                          java.lang.Object facade,
                                          java.lang.Object[] args,
                                          TiModelInterface model,
                                          boolean useCompression)
                                   throws TiAmbiguousDataException,
                                          TiBadTransferDataException,
                                          TiInformationException,
                                          TiSevereException,
                                          TiFatalException
Specified by:
performServerCall in interface SjStinaServerCallerInterface
Throws:
TiAmbiguousDataException
TiBadTransferDataException
TiInformationException
TiSevereException
TiFatalException

performServerCall

public TiModelInterface performServerCall(java.lang.String methodName,
                                          java.lang.Object facade,
                                          java.lang.Object[] args,
                                          TiModelInterface model,
                                          boolean useCompression,
                                          boolean verifyPermission)
                                   throws TiAmbiguousDataException,
                                          TiBadTransferDataException,
                                          TiInformationException,
                                          TiSevereException,
                                          TiFatalException
Specified by:
performServerCall in interface SjStinaServerCallerInterface
Throws:
TiAmbiguousDataException
TiBadTransferDataException
TiInformationException
TiSevereException
TiFatalException

performServerCall

public void performServerCall(java.lang.String methodName,
                              java.lang.Object facade,
                              java.lang.Object[] args,
                              boolean compressArgs)
                       throws TiAmbiguousDataException,
                              TiBadTransferDataException,
                              TiInformationException,
                              TiSevereException,
                              TiFatalException
Specified by:
performServerCall in interface SjStinaServerCallerInterface
Throws:
TiAmbiguousDataException
TiBadTransferDataException
TiInformationException
TiSevereException
TiFatalException

performCacheComparingServerCall

protected TiModelInterface performCacheComparingServerCall(java.lang.String methodName,
                                                           java.lang.Object facade,
                                                           java.lang.Object[] args,
                                                           TiModelInterface model,
                                                           byte[] localData,
                                                           java.lang.String cacheName)
                                                    throws TiAmbiguousDataException,
                                                           TiBadTransferDataException,
                                                           TiInformationException,
                                                           TiSevereException,
                                                           TiFatalException
Throws:
TiAmbiguousDataException
TiBadTransferDataException
TiInformationException
TiSevereException
TiFatalException

performCacheComparingServerCall

protected TiModelInterface performCacheComparingServerCall(java.lang.String methodName,
                                                           java.lang.Object facade,
                                                           java.lang.Object[] args,
                                                           TiModelInterface model,
                                                           byte[] localData,
                                                           java.lang.String cacheName,
                                                           boolean useCompression)
                                                    throws TiAmbiguousDataException,
                                                           TiBadTransferDataException,
                                                           TiInformationException,
                                                           TiSevereException,
                                                           TiFatalException
Throws:
TiAmbiguousDataException
TiBadTransferDataException
TiInformationException
TiSevereException
TiFatalException

concludeServerCall

protected TiModelInterface concludeServerCall(java.lang.String methodName,
                                              byte[] transferData,
                                              TiModelInterface model)
                                       throws TiInformationException,
                                              TiSevereException,
                                              TiFatalException
Throws:
TiInformationException
TiSevereException
TiFatalException

concludeServerCall

protected TiModelInterface concludeServerCall(java.lang.String methodName,
                                              byte[] transferData,
                                              TiModelInterface model,
                                              boolean logTransferData,
                                              boolean storeClientSessionData)
                                       throws TiInformationException,
                                              TiSevereException,
                                              TiFatalException
Throws:
TiInformationException
TiSevereException
TiFatalException

concludeServerCall

protected TiModelInterface concludeServerCall(java.lang.String methodName,
                                              byte[] transferData,
                                              TiModelInterface model,
                                              boolean logTransferData,
                                              boolean storeClientSessionData,
                                              boolean runExitRule)
                                       throws TiInformationException,
                                              TiSevereException,
                                              TiFatalException
Throws:
TiInformationException
TiSevereException
TiFatalException

concludeServerCall

protected TiModelInterface concludeServerCall(java.lang.String methodName,
                                              byte[] transferData,
                                              TiModelInterface model,
                                              boolean logTransferData,
                                              boolean storeClientSessionData,
                                              boolean runExitRule,
                                              java.lang.String knownServerClone)
                                       throws TiInformationException,
                                              TiSevereException,
                                              TiFatalException
Throws:
TiInformationException
TiSevereException
TiFatalException

specifyEntryRuleArguments

protected abstract TiModelInterface[] specifyEntryRuleArguments(java.lang.String methodName)
Parameters:
methodName - The name of the method for which entry rule arguments are sought.
Returns:
The array of models that serve as arguments for the rule governing invocations of method methodName.

specifyExitRuleArguments

protected abstract TiModelInterface[] specifyExitRuleArguments(java.lang.String methodName)
Parameters:
methodName - The name of the method for which exit rule arguments are sought.
Returns:
The array of models that serve as arguments for the rule to be run on completion of method methodName.

verifyInvocationPermission

protected void verifyInvocationPermission(java.lang.String methodName,
                                          java.lang.Object[] methodArgs)
                                   throws TiInformationException,
                                          TiSevereException,
                                          TiFatalException
Determine whether client has permission to call method methodName with methodArgs by appealing to BRL manager to run rules INVOCATION_ARBITER_RULE and IP__entry if registered.

Throws:
TiSevereException - if permission is denied by either rule.
TiInformationException
TiFatalException

invokeExitRule

protected void invokeExitRule(java.lang.String methodName,
                              TiModelInterface methodResult)
                       throws TiInformationException,
                              TiSevereException,
                              TiFatalException
Invoke any exit rule registered for method methodName by appealing to BRL manager to run rule IP__exit if registered.

Throws:
TiInformationException - if rule so dictates.
TiSevereException - if rule so dictates.
TiFatalException - if rule so dictates.

getEntryRuleArgs

protected TiModelInterface[] getEntryRuleArgs(java.lang.String methodName,
                                              java.lang.Object[] methodArgs)

handleInvocationRuleResult

protected void handleInvocationRuleResult(java.lang.Object result,
                                          java.lang.String methodName,
                                          java.lang.String ruleName,
                                          java.lang.String reason,
                                          java.lang.String exceptionKey)
                                   throws TiInformationException,
                                          TiSevereException,
                                          TiFatalException
Throws:
TiInformationException
TiSevereException
TiFatalException

getExitRuleArgs

protected TiModelInterface[] getExitRuleArgs(java.lang.String methodName,
                                             TiModelInterface methodResult)

handleExitRuleResult

protected void handleExitRuleResult(java.lang.Object result,
                                    java.lang.String methodName,
                                    java.lang.String ruleName,
                                    java.lang.String reason,
                                    java.lang.String exceptionKey)
                             throws TiInformationException,
                                    TiSevereException,
                                    TiFatalException
Throws:
TiInformationException
TiSevereException
TiFatalException

getBytes

protected byte[] getBytes(java.lang.String string)

getString

protected java.lang.String getString(byte[] bytes)

specifyStringEncoding

protected java.lang.String specifyStringEncoding()

getXmlDeclaration

protected static java.lang.String getXmlDeclaration(java.lang.String encoding)

logInternal

protected void logInternal(TiInformationProviderException ipe,
                           java.lang.String methodName,
                           int logLevel)

logInternal

protected void logInternal(TiInformationProviderException ipe,
                           java.lang.String methodName,
                           java.lang.String serverClone,
                           int logLevel)

handleClientInformation

protected java.lang.String handleClientInformation(se.sj.stina.exception.StinaPublicException spe)

errorHandling

public void errorHandling(java.lang.Throwable t,
                          java.lang.String methodName)
                   throws TiAmbiguousDataException,
                          TiBadTransferDataException,
                          TiInformationException,
                          TiSevereException,
                          TiFatalException
Specified by:
errorHandling in interface SjStinaServerCallerInterface
Throws:
TiAmbiguousDataException
TiBadTransferDataException
TiInformationException
TiSevereException
TiFatalException

getErrorTextInfo

public static java.lang.String getErrorTextInfo()

composeErrorText

public static java.lang.String composeErrorText(se.sj.stina.exception.StinaPublicException spe,
                                                java.lang.String errorTextInfo)

throwException

protected void throwException(java.lang.String exceptionKey,
                              java.lang.String msg,
                              int code)
                       throws TiInformationException,
                              TiSevereException,
                              TiFatalException
For simulation purposes

Parameters:
exceptionKey - a String by which an exception class name can be looked up.
msg - A text the exception should carry.
code - An error code for the exception. are sought.
Throws:
TiInformationException
TiSevereException
TiFatalException

getTimingLogger

public TiLogger getTimingLogger()

getServerErrorMessage

public java.lang.String getServerErrorMessage(int errInt)
Gets the error message from the server. Error messages are cahced during the session.

Parameters:
errInt - The number of the error message
Returns:
The error message

getItineraryResult

public SjItineraryResult getItineraryResult(byte[] id)
Specified by:
getItineraryResult in interface SjStinaServerCallerInterface

putItineraryResult

public void putItineraryResult(byte[] id,
                               SjItineraryResult itinerary)
Specified by:
putItineraryResult in interface SjStinaServerCallerInterface

removeItineraryResult

public void removeItineraryResult(byte[] id)
Specified by:
removeItineraryResult in interface SjStinaServerCallerInterface

performBeanAccessLog

protected void performBeanAccessLog(java.lang.Object facade,
                                    java.lang.String methodName)


Copyright © 2012. All Rights Reserved.