|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.instantbank.component.parameter.ejb.ParameterEJB
Session Stateful EJB for for servicing ear : managamente of parameters
Field Summary | |
(package private) java.lang.String |
companyId
current company |
private javax.ejb.SessionContext |
context
session context |
private Debug |
debug
|
private ParameterDAO |
parameterDao
ParameterDAO object for interacting with the database |
(package private) java.lang.Long |
userId
current user |
Constructor Summary | |
ParameterEJB()
Constructor |
Method Summary | |
java.util.ArrayList |
applyItemsParamLevel1Points(java.util.ArrayList items)
Applies a set of changes in the values of parameter level 1 of the current company. |
java.util.ArrayList |
applyItemsParamLevel2Points(java.util.ArrayList items)
Applies a set of changes in the values of parameter level 2 of the current company. |
void |
ejbActivate()
Actions after swapping |
void |
ejbCreate(java.lang.String companyId,
java.lang.Long userId)
Get attribute values: companyId, userId and ParameterDAO object (parameterDao attribute) |
void |
ejbPassivate()
Actions before swapping |
void |
ejbRemove()
Action before removing EJB instance |
private ParameterDAO |
getDao()
Obtains a DAO instance assigning to parameterDao attribute |
CodeDescription[] |
listParamLevel1Points()
Loads all [code, value] of the values of parameter level 1 of the current company. |
CodeDescription[] |
listParamLevel2Points()
Loads all [code, value] of the values of parameter level 2 of the current company. |
java.util.ArrayList |
listParamRestrictions()
Loads the set parameters restrictions of the current company for each group parameter. |
ParameterModel |
listParamValues(java.lang.String codeParamater)
Loads the set parameters values of the current company for the parameter without warning colors. |
java.util.Hashtable |
loadLevel1Code()
Loads the value an code of level 1 point |
java.util.Hashtable |
loadLevel2Code()
Loads the value an code of level 2 point |
java.util.ArrayList |
loadParamLevelsName()
Loads parameters levels names of the current company. |
java.util.ArrayList |
loadParamSearchValues()
Loads parameters search order of the current company. |
void |
setSessionContext(javax.ejb.SessionContext sc)
Set session context |
java.util.ArrayList |
updateParamLevelsName(java.util.ArrayList items)
Applies a set of updates in the parameters levels names of the current company. |
java.util.ArrayList |
updateParamRestrictions(java.util.Hashtable items)
Applies a set of updates in the parameters restrictions in the current company. |
java.util.ArrayList |
updateParamSearchValues(java.util.ArrayList items)
Applies a set of updates in the parameters search order of the current company. |
java.lang.String |
updateParamValues(ParameterValue items,
java.util.Hashtable level1Code,
java.util.Hashtable level2Code)
Applies a set of updates in the parameters values in the current company. |
ParameterModel |
verifyParamValues(ParameterValue items)
Check the parameters values and set warning colors to ParameterModel object of the current company for the parameter. |
Methods inherited from class java.lang.Object |
|
Field Detail |
java.lang.String companyId
java.lang.Long userId
private javax.ejb.SessionContext context
private ParameterDAO parameterDao
private Debug debug
Constructor Detail |
public ParameterEJB()
Method Detail |
public void setSessionContext(javax.ejb.SessionContext sc)
setSessionContext
in interface javax.ejb.SessionBean
sc
- The new sessionContext valuepublic void ejbActivate()
ejbActivate
in interface javax.ejb.SessionBean
public void ejbPassivate()
ejbPassivate
in interface javax.ejb.SessionBean
public void ejbCreate(java.lang.String companyId, java.lang.Long userId)
companyId
- current companyuserId
- current userpublic void ejbRemove()
ejbRemove
in interface javax.ejb.SessionBean
public java.util.ArrayList loadParamLevelsName() throws DAOException
DAOException
- Description of the Exceptionpublic java.util.ArrayList updateParamLevelsName(java.util.ArrayList items) throws DAOException
items
- ArrayList with 2 elements of type String
representing the attributes of items to apply param name of
level 1 and level 2.DAOException
- Description of the Exceptionpublic CodeDescription[] listParamLevel1Points() throws DAOException
DAOException
- Description of the Exceptionpublic java.util.ArrayList applyItemsParamLevel1Points(java.util.ArrayList items) throws DAOException
items
- ArrayList with 3 elements of
type String[] representing the attributes of items to apply code,
value and status. Status indicates if the item is for inserting,
deleting or updating (ServicingGlobals.INSERT,
ServicingGlobals.DELETE, ServicingGlobals.UPDATE)DAOException
- Description of the Exceptionpublic CodeDescription[] listParamLevel2Points() throws DAOException
DAOException
- Description of the Exceptionpublic java.util.ArrayList applyItemsParamLevel2Points(java.util.ArrayList items) throws DAOException
items
- ArrayList with 3 elements of
type String[] representing the attributes of items to apply code,
value and status. Status indicates if the item is for inserting,
deleting or updating (ServicingGlobals.INSERT,
ServicingGlobals.DELETE, ServicingGlobals.UPDATE)DAOException
- Description of the Exceptionpublic java.util.ArrayList loadParamSearchValues() throws DAOException
DAOException
- Description of the Exceptionpublic java.util.ArrayList updateParamSearchValues(java.util.ArrayList items) throws DAOException
items
- ArrayList with 2 elements of type String
representing the attributes of items to apply
parameters search order.DAOException
- Description of the Exceptionpublic java.util.ArrayList listParamRestrictions() throws DAOException
DAOException
- Description of the Exceptionpublic java.util.ArrayList updateParamRestrictions(java.util.Hashtable items) throws DAOException
items
- Hashtable with (n) elements of type ParmRestrictionUpdate.
When each element is representing the attributes of parameter
restrictions.DAOException
- Description of the Exceptionpublic ParameterModel listParamValues(java.lang.String codeParamater) throws DAOException
codeParamater
- Description of the ParameterDAOException
- Description of the Exceptionpublic java.util.Hashtable loadLevel1Code() throws DAOException
DAOException
- Description of the Exceptionpublic java.util.Hashtable loadLevel2Code() throws DAOException
DAOException
- Description of the Exceptionpublic java.lang.String updateParamValues(ParameterValue items, java.util.Hashtable level1Code, java.util.Hashtable level2Code) throws DAOException
items
- ParameterValue object with the value of code parameter,
type of parameter and a Hashtable with the point1+"|"+point2 as
the Key and the value of parameter as the Value.level1Code
- The Hashtable object with value of level 1 point as
the key and the code of point 1 as value.level2Code
- The Hashtable object with value of level 2 point as
the key and the code of point 2 as value.DAOException
- Description of the Exceptionpublic ParameterModel verifyParamValues(ParameterValue items) throws DAOException
items
- ParameterValue object with the value of code parameter,
type of parameter and a Hashtable with the point1+"|"+point2 as
the Key and the value of parameter as the Value.DAOException
- Description of the Exceptionprivate ParameterDAO getDao() throws DAOException
DAOException
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |