|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectit.eng.spagobi.commons.dao.AbstractHibernateDAO
it.eng.spagobi.analiticalmodel.functionalitytree.dao.LowFunctionalityDAOHibImpl
public class LowFunctionalityDAOHibImpl
Defines the Hibernate implementations for all DAO methods, for a functionality.
Constructor Summary | |
---|---|
LowFunctionalityDAOHibImpl()
|
Method Summary | |
---|---|
boolean |
checkUserRootExists(java.lang.String userId)
Check user root exists. |
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)
Erase low functionality. |
java.lang.Integer |
existByCode(java.lang.String code)
Exist by code. |
boolean |
hasChild(java.lang.Integer id)
Checks for child. |
void |
insertLowFunctionality(LowFunctionality aLowFunctionality,
it.eng.spago.security.IEngUserProfile profile)
Insert low functionality. |
void |
insertUserFunctionality(UserFunctionality userfunct)
Insert user functionality. |
java.util.List |
loadAllLowFunctionalities(boolean recoverBIObjects)
Load all low functionalities. |
java.util.List |
loadChildFunctionalities(java.lang.Integer parentId,
boolean recoverBIObjects)
Loads all the child functionalities of the given parent functionality. |
LowFunctionality |
loadLowFunctionalityByCode(java.lang.String code,
boolean recoverBIObjects)
Load low functionality by code. |
LowFunctionality |
loadLowFunctionalityByID(java.lang.Integer functionalityID,
boolean recoverBIObjects)
Load low functionality by id. |
LowFunctionality |
loadLowFunctionalityByPath(java.lang.String functionalityPath,
boolean recoverBIObjects)
Load low functionality by path. |
java.util.List |
loadLowFunctionalityList(java.util.List functionalityIDs)
Load low functionality list by id List |
java.util.List |
loadParentFunctionalities(java.lang.Integer functId,
java.lang.Integer rootFolderID)
Load all fathers functionalities. |
LowFunctionality |
loadRootLowFunctionality(boolean recoverBIObjects)
Load root low functionality. |
java.util.List |
loadSubLowFunctionalities(java.lang.String initialPath,
boolean recoverBIObjects)
Load sub low functionalities. |
java.util.List |
loadUserFunctionalities(java.lang.Integer parentId,
boolean recoverBIObjects,
it.eng.spago.security.IEngUserProfile profile)
Load all functionalities associated the user roles. |
java.util.List |
loadUserFunctionalitiesFiltered(java.lang.Integer parentId,
boolean recoverBIObjects,
it.eng.spago.security.IEngUserProfile profile,
java.lang.String permission)
Load all functionalities associated the user roles. |
void |
modifyLowFunctionality(LowFunctionality aLowFunctionality)
Modify low functionality. |
void |
moveDownLowFunctionality(java.lang.Integer functionalityID)
Moves down the functionality specified by the id at input in the functionalities tree. |
void |
moveUpLowFunctionality(java.lang.Integer functionalityID)
Moves up the functionality specified by the id at input in the functionalities tree. |
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.commons.dao.AbstractHibernateDAO |
---|
commitIfActiveAndClose, getSession, getUserProfile, logException, rollbackIfActiveAndClose, setUserID, setUserProfile, updateSbiCommonInfo4Insert, updateSbiCommonInfo4Update |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface it.eng.spagobi.commons.dao.ISpagoBIDao |
---|
getUserProfile, setUserID, setUserProfile |
Constructor Detail |
---|
public LowFunctionalityDAOHibImpl()
Method Detail |
---|
public boolean checkUserRootExists(java.lang.String userId) throws it.eng.spago.error.EMFUserError
ILowFunctionalityDAO
checkUserRootExists
in interface ILowFunctionalityDAO
userId
- the username
it.eng.spago.error.EMFUserError
- the EMF user errorpublic void insertUserFunctionality(UserFunctionality userfunct) throws it.eng.spago.error.EMFUserError
ILowFunctionalityDAO
insertUserFunctionality
in interface ILowFunctionalityDAO
userfunct
- the userfunct
it.eng.spago.error.EMFUserError
- the EMF user errorpublic LowFunctionality loadLowFunctionalityByID(java.lang.Integer functionalityID, boolean recoverBIObjects) throws it.eng.spago.error.EMFUserError
loadLowFunctionalityByID
in interface ILowFunctionalityDAO
functionalityID
- the functionality idrecoverBIObjects
- the recover bi objects
it.eng.spago.error.EMFUserError
- the EMF user errorit.eng.spagobi.analiticalmodel.functionalitytree.dao.ILowFunctionalityDAO#loadLowFunctionalityByID(java.lang.Integer)
public LowFunctionality loadLowFunctionalityByCode(java.lang.String code, boolean recoverBIObjects) throws it.eng.spago.error.EMFUserError
loadLowFunctionalityByCode
in interface ILowFunctionalityDAO
label
- the functionality coderecoverBIObjects
- the recover bi objects
it.eng.spago.error.EMFUserError
- the EMF user errorit.eng.spagobi.analiticalmodel.functionalitytree.dao.ILowFunctionalityDAO#loadLowFunctionalityByLabel(java.lang.String)
public java.util.List loadLowFunctionalityList(java.util.List functionalityIDs) throws it.eng.spago.error.EMFUserError
loadLowFunctionalityList
in interface ILowFunctionalityDAO
functionalityIDs
- the functionality id List
it.eng.spago.error.EMFUserError
- the EMF user errorit.eng.spagobi.analiticalmodel.functionalitytree.dao.ILowFunctionalityDAO#loadLowFunctionalityByID(java.lang.Integer)
public LowFunctionality loadRootLowFunctionality(boolean recoverBIObjects) throws it.eng.spago.error.EMFUserError
loadRootLowFunctionality
in interface ILowFunctionalityDAO
recoverBIObjects
- the recover bi objects
it.eng.spago.error.EMFUserError
- the EMF user errorILowFunctionalityDAO.loadRootLowFunctionality(boolean)
public LowFunctionality loadLowFunctionalityByPath(java.lang.String functionalityPath, boolean recoverBIObjects) throws it.eng.spago.error.EMFUserError
loadLowFunctionalityByPath
in interface ILowFunctionalityDAO
functionalityPath
- the functionality pathrecoverBIObjects
- the recover bi objects
it.eng.spago.error.EMFUserError
- the EMF user errorit.eng.spagobi.analiticalmodel.functionalitytree.dao.ILowFunctionalityDAO#loadLowFunctionalityByPath(java.lang.String)
public void modifyLowFunctionality(LowFunctionality aLowFunctionality) throws it.eng.spago.error.EMFUserError
modifyLowFunctionality
in interface ILowFunctionalityDAO
aLowFunctionality
- the a low functionality
it.eng.spago.error.EMFUserError
- the EMF user errorILowFunctionalityDAO.modifyLowFunctionality(it.eng.spagobi.analiticalmodel.functionalitytree.bo.LowFunctionality)
public void insertLowFunctionality(LowFunctionality aLowFunctionality, it.eng.spago.security.IEngUserProfile profile) throws it.eng.spago.error.EMFUserError
insertLowFunctionality
in interface ILowFunctionalityDAO
aLowFunctionality
- the a low functionalityprofile
- the profile
it.eng.spago.error.EMFUserError
- the EMF user errorILowFunctionalityDAO.insertLowFunctionality(it.eng.spagobi.analiticalmodel.functionalitytree.bo.LowFunctionality, it.eng.spago.security.IEngUserProfile)
public void eraseLowFunctionality(LowFunctionality aLowFunctionality, it.eng.spago.security.IEngUserProfile profile) throws it.eng.spago.error.EMFUserError
eraseLowFunctionality
in interface ILowFunctionalityDAO
aLowFunctionality
- the a low functionalityprofile
- the profile
it.eng.spago.error.EMFUserError
- the EMF user errorILowFunctionalityDAO.eraseLowFunctionality(it.eng.spagobi.analiticalmodel.functionalitytree.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 it.eng.spago.error.EMFUserError
existByCode
in interface ILowFunctionalityDAO
code
- the code
it.eng.spago.error.EMFUserError
- the EMF user errorILowFunctionalityDAO.existByCode(java.lang.String)
public java.util.List loadAllLowFunctionalities(boolean recoverBIObjects) throws it.eng.spago.error.EMFUserError
loadAllLowFunctionalities
in interface ILowFunctionalityDAO
recoverBIObjects
- the recover bi objects
it.eng.spago.error.EMFUserError
- the EMF user errorILowFunctionalityDAO.loadAllLowFunctionalities(boolean)
public java.util.List loadSubLowFunctionalities(java.lang.String initialPath, boolean recoverBIObjects) throws it.eng.spago.error.EMFUserError
loadSubLowFunctionalities
in interface ILowFunctionalityDAO
initialPath
- the initial pathrecoverBIObjects
- the recover bi objects
it.eng.spago.error.EMFUserError
- the EMF user errorILowFunctionalityDAO.loadSubLowFunctionalities(java.lang.String, boolean)
public boolean hasChild(java.lang.Integer id) throws it.eng.spago.error.EMFUserError
hasChild
in interface ILowFunctionalityDAO
id
- the id
it.eng.spago.error.EMFUserError
- the EMF user errorit.eng.spagobi.analiticalmodel.functionalitytree.dao.ILowFunctionalityDAO#hasChild(java.lang.String)
public void deleteInconsistentRoles(java.util.Set rolesSet) throws it.eng.spago.error.EMFUserError
deleteInconsistentRoles
in interface ILowFunctionalityDAO
rolesSet
- the set containing the roles to erase
it.eng.spago.error.EMFUserError
- the EMF user errorpublic java.util.List loadChildFunctionalities(java.lang.Integer parentId, boolean recoverBIObjects) throws it.eng.spago.error.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
it.eng.spago.error.EMFUserError
- the EMF user errorpublic void moveDownLowFunctionality(java.lang.Integer functionalityID) throws it.eng.spago.error.EMFUserError
ILowFunctionalityDAO
moveDownLowFunctionality
in interface ILowFunctionalityDAO
functionalityID
- the functionality id
it.eng.spago.error.EMFUserError
- the EMF user errorpublic void moveUpLowFunctionality(java.lang.Integer functionalityID) throws it.eng.spago.error.EMFUserError
ILowFunctionalityDAO
moveUpLowFunctionality
in interface ILowFunctionalityDAO
functionalityID
- the functionality id
it.eng.spago.error.EMFUserError
- the EMF user errorpublic java.util.List loadUserFunctionalities(java.lang.Integer parentId, boolean recoverBIObjects, it.eng.spago.security.IEngUserProfile profile) throws it.eng.spago.error.EMFUserError
loadUserFunctionalities
in interface ILowFunctionalityDAO
onlyFirstLevel
- limits functionalities to first levelrecoverBIObjects
- the recover bi objects
it.eng.spago.error.EMFUserError
- the EMF user errorILowFunctionalityDAO.loadAllLowFunctionalities(boolean)
public java.util.List loadUserFunctionalitiesFiltered(java.lang.Integer parentId, boolean recoverBIObjects, it.eng.spago.security.IEngUserProfile profile, java.lang.String permission) throws it.eng.spago.error.EMFUserError
loadUserFunctionalitiesFiltered
in interface ILowFunctionalityDAO
onlyFirstLevel
- limits functionalities to first levelrecoverBIObjects
- the recover bi objects
it.eng.spago.error.EMFUserError
- the EMF user errorILowFunctionalityDAO.loadAllLowFunctionalities(boolean)
public java.util.List loadParentFunctionalities(java.lang.Integer functId, java.lang.Integer rootFolderID) throws it.eng.spago.error.EMFUserError
loadParentFunctionalities
in interface ILowFunctionalityDAO
functId
- the identifier of functionality child
it.eng.spago.error.EMFUserError
- the EMF user errorit.eng.spagobi.analiticalmodel.functionalitytree.dao.ILowFunctionalityDAO#loadAllLowFunctionalities(Integer)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |