|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectit.eng.spagobi.bo.dao.jdbc.AbstractJdbcDAO
it.eng.spagobi.bo.dao.jdbc.LowFunctionalityDAOImpl
public class LowFunctionalityDAOImpl
Defines the JDBC implementations for all DAO methods, for a low functionality.
Constructor Summary | |
---|---|
LowFunctionalityDAOImpl()
|
Method Summary | |
---|---|
void |
deleteInconsistentRoles(java.util.Set set)
|
void |
eraseLowFunctionality(LowFunctionality aLowFunctionality,
it.eng.spago.security.IEngUserProfile profile)
Implements the query to erase a low functionality. |
java.lang.Integer |
existByCode(java.lang.String code)
Control if exist a functionality with the given code |
void |
fillRoles(LowFunctionality aLowFunctionality)
Sets the roles for a given low functionality. |
boolean |
hasChild(java.lang.Integer id)
Control if the functionality with the given id has childs |
boolean |
hasChild(java.lang.String path)
|
void |
insertLowFunctionality(LowFunctionality aLowFunctionality,
it.eng.spago.security.IEngUserProfile profile)
Implements the query to insert a low functionality. |
private void |
insertRolesFunctionality(it.eng.spago.dbaccess.sql.DataConnection dataConnection,
LowFunctionality aLowFunctionality,
java.lang.String strSql,
Role[] roles,
java.lang.String state)
It is the implementation code for a DB insertion. |
java.util.List |
loadAllLowFunctionalities()
|
java.util.List |
loadAllLowFunctionalities(boolean recoverBIObjects)
Loads all the functionalities |
java.util.List |
loadChildFunctionalities(java.lang.Integer parentId,
boolean recoverBIObjects)
Loads all the child functionalities of the given parent functionality |
LowFunctionality |
loadLowFunctionalityByID(java.lang.Integer functionalityID)
|
LowFunctionality |
loadLowFunctionalityByID(java.lang.Integer functionalityID,
boolean recoverBIObjects)
Loads all information for a low functionality identified by its functionalityID . |
LowFunctionality |
loadLowFunctionalityByPath(java.lang.String functionalityPath)
|
LowFunctionality |
loadLowFunctionalityByPath(java.lang.String functionalityPath,
boolean recoverBIObjects)
Loads all information for a low functionality identified by its functionalityPath . |
LowFunctionality |
loadRootFunctionality()
|
java.util.List |
loadSubLowFunctionalities(java.lang.String initialPath)
|
java.util.List |
loadSubLowFunctionalities(java.lang.String initialPath,
boolean recoverBIObjects)
Loads all the sub functionalities of the given initial path |
void |
modifyLowFunctionality(LowFunctionality aLowFunctionality)
Implements the query to modify a low functionality. |
Methods inherited from class it.eng.spagobi.bo.dao.jdbc.AbstractJdbcDAO |
---|
getConnection |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LowFunctionalityDAOImpl()
Method Detail |
---|
public LowFunctionality loadLowFunctionalityByID(java.lang.Integer functionalityID) throws EMFUserError
EMFUserError
it.eng.spagobi.bo.dao.ILowFunctionalityDAO#loadLowFunctionalityByID(java.lang.Integer)
public LowFunctionality loadLowFunctionalityByPath(java.lang.String functionalityPath) throws EMFUserError
EMFUserError
it.eng.spagobi.bo.dao.ILowFunctionalityDAO#loadLowFunctionalityByPath(java.lang.String)
public void fillRoles(LowFunctionality aLowFunctionality) throws EMFUserError
aLowFunctionality
- The input Low Functionality
EMFUserError
- If any exception occurredpublic void modifyLowFunctionality(LowFunctionality aLowFunctionality) throws EMFUserError
ILowFunctionalityDAO
LowFunctionality
object.
modifyLowFunctionality
in interface ILowFunctionalityDAO
aLowFunctionality
- The object containing all modify information
EMFUserError
- If an Exception occurredILowFunctionalityDAO.modifyLowFunctionality(it.eng.spagobi.bo.LowFunctionality)
private void insertRolesFunctionality(it.eng.spago.dbaccess.sql.DataConnection dataConnection, LowFunctionality aLowFunctionality, java.lang.String strSql, Role[] roles, java.lang.String state) throws java.lang.Exception
dataConnection
- The Data Connection objectaLowFunctionality
- The low functionality objectstrSql
- The SQL code stringroles
- The list of all roles associatedstate
- The String defining the state
java.lang.Exception
- If any exception occurredpublic void insertLowFunctionality(LowFunctionality aLowFunctionality, it.eng.spago.security.IEngUserProfile profile) throws EMFUserError
ILowFunctionalityDAO
LowFunctionality
object.
insertLowFunctionality
in interface ILowFunctionalityDAO
aLowFunctionality
- The object containing all insert information
EMFUserError
- If an Exception occurred)
public void eraseLowFunctionality(LowFunctionality aLowFunctionality, it.eng.spago.security.IEngUserProfile profile) throws EMFUserError
ILowFunctionalityDAO
LowFunctionality
object.
eraseLowFunctionality
in interface ILowFunctionalityDAO
aLowFunctionality
- The object containing all erase information
EMFUserError
- If an Exception occurredILowFunctionalityDAO.eraseLowFunctionality(it.eng.spagobi.bo.LowFunctionality, it.eng.spago.security.IEngUserProfile)
public java.lang.Integer existByCode(java.lang.String code) throws EMFUserError
ILowFunctionalityDAO
existByCode
in interface ILowFunctionalityDAO
code
- The code of the functionality
EMFUserError
ILowFunctionalityDAO.existByCode(java.lang.String)
public boolean hasChild(java.lang.String path) throws EMFUserError
EMFUserError
it.eng.spagobi.bo.dao.ILowFunctionalityDAO#hasChild(java.lang.String)
public void deleteInconsistentRoles(java.util.Set set) throws EMFUserError
deleteInconsistentRoles
in interface ILowFunctionalityDAO
EMFUserError
public boolean hasChild(java.lang.Integer id) throws EMFUserError
ILowFunctionalityDAO
hasChild
in interface ILowFunctionalityDAO
id
- Integer id of the functionality
EMFUserError
public java.util.List loadAllLowFunctionalities() throws EMFUserError
EMFUserError
public java.util.List loadSubLowFunctionalities(java.lang.String initialPath) throws EMFUserError
EMFUserError
public java.util.List loadAllLowFunctionalities(boolean recoverBIObjects) throws EMFUserError
ILowFunctionalityDAO
loadAllLowFunctionalities
in interface ILowFunctionalityDAO
recoverBIObjects
- If true each LowFunctionality
at output will have the
list of contained BIObject
objects
EMFUserError
public java.util.List loadSubLowFunctionalities(java.lang.String initialPath, boolean recoverBIObjects) throws EMFUserError
ILowFunctionalityDAO
loadSubLowFunctionalities
in interface ILowFunctionalityDAO
initialPath
- The String representing the initial pathrecoverBIObjects
- If true each LowFunctionality
at output will have the
list of contained BIObject
objects
EMFUserError
public java.util.List loadChildFunctionalities(java.lang.Integer parentId, boolean recoverBIObjects) throws EMFUserError
ILowFunctionalityDAO
loadChildFunctionalities
in interface ILowFunctionalityDAO
parentId
- The Integer representing the parent idrecoverBIObjects
- If true each LowFunctionality
at output will have the
list of contained BIObject
objects
EMFUserError
public LowFunctionality loadLowFunctionalityByID(java.lang.Integer functionalityID, boolean recoverBIObjects) throws EMFUserError
ILowFunctionalityDAO
functionalityID
. All these information, are stored into a
LowFunctionality
object, which is
returned.
loadLowFunctionalityByID
in interface ILowFunctionalityDAO
functionalityID
- The id for the low functionality to loadrecoverBIObjects
- If true the LowFunctionality
at output will have the
list of contained BIObject
objects
LowFunctionality
object containing all loaded information
EMFUserError
- If an Exception occurredpublic LowFunctionality loadLowFunctionalityByPath(java.lang.String functionalityPath, boolean recoverBIObjects) throws EMFUserError
ILowFunctionalityDAO
functionalityPath
. All these information, are stored into a
LowFunctionality
object, which is
returned.
loadLowFunctionalityByPath
in interface ILowFunctionalityDAO
functionalityPath
- The path for the low functionality to loadrecoverBIObjects
- If true the LowFunctionality
at output will have the
list of contained BIObject
objects
LowFunctionality
object containing all loaded information
EMFUserError
- If an Exception occurredpublic LowFunctionality loadRootFunctionality() throws EMFUserError
EMFUserError
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |