Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.flexstor.ejb.setting
Class SettingsBean  view SettingsBean download SettingsBean.java

java.lang.Object
  extended bycom.flexstor.ejb.EjbBean
      extended bycom.flexstor.ejb.PersistSessionBean
          extended bycom.flexstor.ejb.setting.SettingsBean
All Implemented Interfaces:
javax.ejb.EnterpriseBean, java.io.Serializable, javax.ejb.SessionBean

public class SettingsBean
extends com.flexstor.ejb.PersistSessionBean

Settings

This interface defines all the operations for settings such as Send Setting, Import Settings,
Email Settings and Ftp Settings
The bean implementation should use a factory object to instantiate a persist bean
corresponding to the setting type and delegate calls to this bean.

Uses cache: no State Management Type: Stateless

Configurable properties in flexdm.properties:

NONE


Field Summary
static java.lang.String IDENTIFIER
          MKS identifier
 
Fields inherited from class com.flexstor.ejb.PersistSessionBean
C_DUPLICATE_RECORD
 
Fields inherited from class com.flexstor.ejb.EjbBean
beanName, sCacheDirectory, sEJBVendor
 
Constructor Summary
SettingsBean()
           
 
Method Summary
 com.flexstor.common.data.ejb.SettingData add(com.flexstor.common.data.ejb.SettingData aDataObject)
          Add a setting to database.
 com.flexstor.common.data.ejb.SettingData add(com.flexstor.common.data.ejb.SettingData aDataObject, com.flexstor.common.keys.ejb.RoleKey aRoleKey)
          Add a setting to database and assigns it to the given role in one transaction.
 void assignToRole(com.flexstor.common.keys.ejb.SettingKey aKey, com.flexstor.common.keys.ejb.RoleKey aRoleKey)
          Assign an existing setting to a role.
 void delete(com.flexstor.common.data.ejb.SettingData aData)
          Remove a setting from the database.
 void delete(com.flexstor.common.keys.ejb.SettingKey aKey)
          Remove a setting from the database.
 void ejbCreate()
          EJB container calls ejbCreate in order to create an instance of the object.
 java.util.Vector get(int nType)
          Retrieve all settings of the given type.
 com.flexstor.common.data.ejb.SettingData get(com.flexstor.common.keys.ejb.SettingKey aKey)
          Retrieves one setting for the given setting key.
 java.util.Vector get(java.util.Vector keyCollections)
          Retrieves settings for the given collection of settings keys.
private  com.flexstor.ejb.EjbObject getBeanInterface(java.lang.String bean)
          Obtain a reference to a bean
 void removeFromRole(com.flexstor.common.keys.ejb.SettingKey aKey, com.flexstor.common.keys.ejb.RoleKey aRoleKey)
          Removes a setting from a role.
 com.flexstor.common.data.ejb.SettingData update(com.flexstor.common.data.ejb.SettingData aDataObject)
          Update a setting.
 
Methods inherited from class com.flexstor.ejb.PersistSessionBean
cacheExists, closeConnection, closePhysicalConnection, dateFormat, ejbRemove, fromCache, getConnection, getDisguiseStructure, getPhysicalConnection, getSequenceFromBean, getSequenceFromBean, getSequenceFromBean, toCache, xCache
 
Methods inherited from class com.flexstor.ejb.EjbBean
assertBoolean, assertEmptyString, assertNull, buildInitialContext, cacheEnabled, ejbActivate, ejbPassivate, getBeanHome, getBooleanProperty, getCacheDirectory, getEJBObject, getInitialContext, getIntegerProperty, getIntegerProperty, getProperty, getProperty, getSessionContext, keepAlive, setSessionContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

IDENTIFIER

public static final java.lang.String IDENTIFIER
MKS identifier

See Also:
Constant Field Values
Constructor Detail

SettingsBean

public SettingsBean()
Method Detail

ejbCreate

public void ejbCreate()
               throws javax.ejb.CreateException,
                      java.rmi.RemoteException
EJB container calls ejbCreate in order to create an instance of the object. ejbCreate initalizes the state of
the EJB object. This method corresponds to the create method in the home interface PingHome.


getBeanInterface

private com.flexstor.ejb.EjbObject getBeanInterface(java.lang.String bean)
                                             throws java.rmi.RemoteException
Obtain a reference to a bean


add

public com.flexstor.common.data.ejb.SettingData add(com.flexstor.common.data.ejb.SettingData aDataObject)
                                             throws com.flexstor.common.exceptions.ejb.DuplicateRecordException,
                                                    com.flexstor.common.exceptions.ejb.EjbException,
                                                    java.rmi.RemoteException
Add a setting to database. Transaction Attribute: Required


add

public com.flexstor.common.data.ejb.SettingData add(com.flexstor.common.data.ejb.SettingData aDataObject,
                                                    com.flexstor.common.keys.ejb.RoleKey aRoleKey)
                                             throws com.flexstor.common.exceptions.ejb.DuplicateRecordException,
                                                    com.flexstor.common.exceptions.ejb.EjbException,
                                                    java.rmi.RemoteException
Add a setting to database and assigns it to the given role in one transaction. Transaction Attribute: Required


assignToRole

public void assignToRole(com.flexstor.common.keys.ejb.SettingKey aKey,
                         com.flexstor.common.keys.ejb.RoleKey aRoleKey)
                  throws com.flexstor.common.exceptions.ejb.EjbException,
                         java.rmi.RemoteException
Assign an existing setting to a role. Transaction Attribute: Required


removeFromRole

public void removeFromRole(com.flexstor.common.keys.ejb.SettingKey aKey,
                           com.flexstor.common.keys.ejb.RoleKey aRoleKey)
                    throws com.flexstor.common.exceptions.ejb.EjbException,
                           java.rmi.RemoteException
Removes a setting from a role. Transaction Attribute: Required


delete

public void delete(com.flexstor.common.keys.ejb.SettingKey aKey)
            throws com.flexstor.common.exceptions.ejb.EjbException,
                   java.rmi.RemoteException
Remove a setting from the database. Implicitly removes it from all roles. Transaction Attribute: Required


delete

public void delete(com.flexstor.common.data.ejb.SettingData aData)
            throws com.flexstor.common.exceptions.ejb.EjbException,
                   java.rmi.RemoteException,
                   com.flexstor.common.exceptions.ejb.NotFoundException
Remove a setting from the database. Implicitly removes it from all roles. Transaction Attribute: Required


get

public com.flexstor.common.data.ejb.SettingData get(com.flexstor.common.keys.ejb.SettingKey aKey)
                                             throws com.flexstor.common.exceptions.ejb.EjbException,
                                                    java.rmi.RemoteException,
                                                    com.flexstor.common.exceptions.ejb.NotFoundException
Retrieves one setting for the given setting key. Transaction Attribute: Not Supported


get

public java.util.Vector get(java.util.Vector keyCollections)
                     throws com.flexstor.common.exceptions.ejb.EjbException,
                            java.rmi.RemoteException
Retrieves settings for the given collection of settings keys. Transaction Attribute: Not Supported


get

public java.util.Vector get(int nType)
                     throws com.flexstor.common.exceptions.ejb.EjbException,
                            java.rmi.RemoteException
Retrieve all settings of the given type. Transaction Attribute: Not Supported


update

public com.flexstor.common.data.ejb.SettingData update(com.flexstor.common.data.ejb.SettingData aDataObject)
                                                throws com.flexstor.common.exceptions.ejb.EjbException,
                                                       java.rmi.RemoteException,
                                                       com.flexstor.common.exceptions.ejb.DuplicateRecordException,
                                                       com.flexstor.common.exceptions.ejb.RecordUpdatedException
Update a setting. Returned data object contains new timestamp. Transaction Attribute: Required