|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectit.eng.spagobi.bo.dao.hibernate.AbstractHibernateDAO
it.eng.spagobi.bo.dao.hibernate.LowFunctionalityDAOHibImpl
public class LowFunctionalityDAOHibImpl
Defines the Hibernate implementations for all DAO methods, for a functionality.
Constructor Summary | |
---|---|
LowFunctionalityDAOHibImpl()
|
Method Summary | |
---|---|
void |
deleteInconsistentRoles(java.util.Set rolesSet)
Deletes a set of inconsistent roles reference from the database, in order to keep functionalities tree permissions consistence. |
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 |
boolean |
hasChild(java.lang.Integer id)
Control if the functionality with the given id has childs |
void |
insertLowFunctionality(LowFunctionality aLowFunctionality,
it.eng.spago.security.IEngUserProfile profile)
Implements the query to insert a low functionality. |
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,
boolean recoverBIObjects)
Loads all information for a low functionality identified by its functionalityID . |
LowFunctionality |
loadLowFunctionalityByPath(java.lang.String functionalityPath,
boolean recoverBIObjects)
Loads all information for a low functionality identified by its functionalityPath . |
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. |
private java.util.Set |
saveRolesFunctionality(org.hibernate.Session aSession,
SbiFunctions hibFunct,
LowFunctionality aLowFunctionality,
java.lang.String state)
Saves all roles for a functionality, using session and state information. |
LowFunctionality |
toLowFunctionality(SbiFunctions hibFunct,
boolean recoverBIObjects)
From the Hibernate Low Functionality object at input, gives the corrispondent LowFunctionality object. |
Methods inherited from class it.eng.spagobi.bo.dao.hibernate.AbstractHibernateDAO |
---|
getSession, logException |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LowFunctionalityDAOHibImpl()
Method Detail |
---|
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 occurredit.eng.spagobi.bo.dao.ILowFunctionalityDAO#loadLowFunctionalityByID(java.lang.Integer)
public 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 occurredit.eng.spagobi.bo.dao.ILowFunctionalityDAO#loadLowFunctionalityByPath(java.lang.String)
public 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 java.util.Set saveRolesFunctionality(org.hibernate.Session aSession, SbiFunctions hibFunct, LowFunctionality aLowFunctionality, java.lang.String state) throws EMFUserError
aSession
- The current session objecthibFunct
- The functionality hibernate objectaLowFunctionality
- The Low Functionality objectstate
- The string defining the state
EMFUserError
public 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 occurredILowFunctionalityDAO.insertLowFunctionality(it.eng.spagobi.bo.LowFunctionality, it.eng.spago.security.IEngUserProfile)
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 LowFunctionality toLowFunctionality(SbiFunctions hibFunct, boolean recoverBIObjects)
LowFunctionality
object.
hibFunct
- The Hibernate Low Functionality objectrecoverBIObjects
- If true the LowFunctionality
at output will have the
list of contained BIObject
objects
LowFunctionality
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 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
ILowFunctionalityDAO.loadAllLowFunctionalities(boolean)
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
ILowFunctionalityDAO.loadSubLowFunctionalities(java.lang.String, boolean)
public boolean hasChild(java.lang.Integer id) throws EMFUserError
ILowFunctionalityDAO
hasChild
in interface ILowFunctionalityDAO
id
- Integer id of the functionality
EMFUserError
it.eng.spagobi.bo.dao.ILowFunctionalityDAO#hasChild(java.lang.String)
public void deleteInconsistentRoles(java.util.Set rolesSet) throws EMFUserError
deleteInconsistentRoles
in interface ILowFunctionalityDAO
rolesSet
- the set containing the roles to erase
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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |