IBM WebSphere Multichannel Bank Transformation Toolkit Javadoc

com.ibm.btt.clientserver
Class SecurityServiceGetter

java.lang.Object
  extended by com.ibm.btt.clientserver.SecurityServiceGetter

public class SecurityServiceGetter
extends java.lang.Object

This class is used by the toolkit to get an implentation of the SecurityServiceInterface.
The object returned is an instance of the service specified inside the dse.ini into the tag initialization.accessControlServiceName. To create the instance, the Service.readObject method is called with the value retrieved from the dse.ini file. This class is a singleton, therefore to get an instance the getUnuqueInstance method must be used.

The application could either change or set the value of the serviceId to be used by invoking the setServiceId method before invoking the getAclService.


Field Summary
protected static java.lang.String COMPNM
          class' name.
protected static java.lang.String DEF_SERVICE_ID
          default service ID
protected static java.lang.String EX_MSG
          message for the exception
protected static java.lang.String INI_TAG
          tag where is the service ID
protected  java.lang.String refServiceId
          the serviceId name
protected  java.lang.Object sem
          semaphore used to synchronized the creation of the service
protected  java.lang.Object service
          the ACL service instance
 
Constructor Summary
protected SecurityServiceGetter()
          This constructor creates a SecurityServiceGetter object.
 
Method Summary
protected  java.lang.String getIniValue()
          Returns the serviceId of the Security service to be instantiated from the dse.ini file.
 java.lang.Object getService()
          Returns the instance of the Security service.
 java.lang.String getServiceId()
          Returns the value of the attribute refServiceId.
static SecurityServiceGetter getUniqueInstance()
          Returns the instance to be used to get the instance of the SecurityServiceInterface.
protected  void initializeAclInstance()
          Initializes the instance of the service specified inside the dse.ini file.
static void reset()
          Resets the instance.
 void setService(java.lang.Object srv)
          Sets the value of the attribute acl.
 void setServiceId(java.lang.String aName)
          Sets the value of the attribute refServiceId.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

COMPNM

protected static final java.lang.String COMPNM
class' name.

uses to identify the component that launches the exception *

See Also:
Constant Field Values

EX_MSG

protected static final java.lang.String EX_MSG
message for the exception. *

See Also:
Constant Field Values

INI_TAG

protected static final java.lang.String INI_TAG
tag where is the service ID. *

See Also:
Constant Field Values

DEF_SERVICE_ID

protected static final java.lang.String DEF_SERVICE_ID
default service ID. *

See Also:
Constant Field Values

service

protected java.lang.Object service
the ACL service instance. *


refServiceId

protected java.lang.String refServiceId
the serviceId name. *


sem

protected final java.lang.Object sem
semaphore used to synchronized the creation of the service. *

Constructor Detail

SecurityServiceGetter

protected SecurityServiceGetter()
This constructor creates a SecurityServiceGetter object.

Method Detail

getIniValue

protected java.lang.String getIniValue()
Returns the serviceId of the Security service to be instantiated from the dse.ini file.

Returns the value of the tag: initialization.accessControlServiceName.
If the tag doesn't exits the default value ACLService is returned.

Returns:
java.lang.String

getService

public java.lang.Object getService()
                            throws DSEException
Returns the instance of the Security service.

Returns:
java.lang.Object
Throws:
DSEException

getServiceId

public java.lang.String getServiceId()
Returns the value of the attribute refServiceId.

Returns:
java.lang.String

getUniqueInstance

public static SecurityServiceGetter getUniqueInstance()
                                               throws DSEException
Returns the instance to be used to get the instance of the SecurityServiceInterface.

A new instance of the class is created if doesn't exists one.

Returns:
SecurityServiceGetter
Throws:
DSEException

initializeAclInstance

protected void initializeAclInstance()
                              throws DSEException
Initializes the instance of the service specified inside the dse.ini file.

Throws:
DSEException

reset

public static void reset()
Resets the instance.


setService

public void setService(java.lang.Object srv)
Sets the value of the attribute acl.

Parameters:
srv - java.lang.Object

setServiceId

public void setServiceId(java.lang.String aName)
Sets the value of the attribute refServiceId.

Parameters:
aName - java.lang.String

IBM WebSphere Multichannel Bank Transformation Toolkit Javadoc

(c) Copyright IBM Corporation 1998, 2009