java.lang.Object
com.flexstor.ejb.EjbBean
com.flexstor.ejb.PersistSessionBean
com.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
| 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 |
IDENTIFIER
public static final java.lang.String IDENTIFIER
- MKS identifier
- See Also:
- Constant Field Values
SettingsBean
public SettingsBean()
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