public interface IRightsDirect
extends common.direct.IDirect
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COPYRIGHT
Copyright.
|
Modifier and Type | Method and Description |
---|---|
java.util.HashMap<EntitlementBean,com.engiweb.pm.entity.BeanList<ServiceAttributeBean>> |
checkService(UserBean userBean,
com.engiweb.pm.entity.BeanList<EntitlementBean> entBeanBL,
com.engiweb.pm.dao.db.DAO dao)
Given a user and a list of permission, return the rights associated.
|
void |
deleteEntitlementRights(ServiceAttributeBean sab,
EntitlementBean roleBean,
com.engiweb.pm.dao.db.DAO dao)
Delete entitlement rights.
|
void |
deleteRights(com.engiweb.pm.entity.BeanList<ServiceAttributeBean> rightsList,
EntitlementBean entitlementBean,
com.engiweb.pm.dao.db.DAO dao)
Delete a list of rights.
|
void |
deleteRights(com.engiweb.pm.entity.BeanList<ServiceAttributeBean> rightsList,
PwdCfgBean pwdCfgBean,
com.engiweb.pm.dao.db.DAO dao)
Delete rights.
|
void |
deleteRightsLookup(java.lang.String content,
java.lang.String value,
com.engiweb.pm.dao.db.DAO dao)
Delete rights lookup.
|
com.engiweb.pm.entity.BeanList<ServiceAttributeBean> |
findAccountRights(ServiceAttributeBean serviceAttributeBean,
PwdCfgBean pwdCfgBean,
UserBean userBean,
com.engiweb.pm.entity.Paging paging,
com.engiweb.pm.dao.db.DAO dao)
Find rights of the given user, filter by either serviceAttribute or by account.
|
com.engiweb.pm.entity.BeanList<RightsLookupBean> |
findContentLookup(RightsLookupBean rlbean,
com.engiweb.pm.entity.Paging paging,
com.engiweb.pm.dao.db.DAO dao)
Find content lookup.
|
com.engiweb.pm.entity.BeanList<EntitlementServiceBean> |
findEntitlementRightsValues(ServiceAttributeBean serviceAttributeBean,
EntitlementBean roleBean,
com.engiweb.pm.entity.Paging paging,
com.engiweb.pm.dao.db.DAO dao)
Find entitlement rights values.
|
com.engiweb.pm.entity.BeanList<ServiceAttributeBean> |
findPersonRights(ServiceAttributeBean serviceAttributeBean,
EntitlementBean profileBean,
UserBean userBean,
com.engiweb.pm.entity.Paging paging,
com.engiweb.pm.dao.db.DAO dao)
Return all rights of a given User.
|
com.engiweb.pm.entity.BeanList<ServiceAttributeBean> |
findProfileRights(ServiceAttributeBean serviceAttributeBean,
EntitlementBean profileBean,
EntitlementBean parentRole,
com.engiweb.pm.entity.Paging paging,
com.engiweb.pm.dao.db.DAO dao)
Find profile rights.
|
com.engiweb.pm.entity.BeanList<ServiceAttributeBean> |
findProfileRights(ServiceAttributeBean serviceBean,
EntitlementBean profileBean,
com.engiweb.pm.entity.Paging paging,
com.engiweb.pm.dao.db.DAO dao)
Return all rights of a given profile.
|
com.engiweb.pm.entity.BeanList<ServiceAttributeBean> |
findPwdCfgRights(ServiceAttributeBean rightBean,
PwdCfgBean pwdCfgBean,
com.engiweb.pm.entity.Paging paging,
com.engiweb.pm.dao.db.DAO dao)
Find all rights of a given account.
|
com.engiweb.pm.entity.BeanList<RightsLookupBean> |
findServiceAttrLookup(ServiceAttributeBean sab,
com.engiweb.pm.entity.Paging paging,
com.engiweb.pm.dao.db.DAO dao) |
com.engiweb.pm.entity.BeanList<RightsLookupBean> |
findServiceAttrLookup(java.lang.String key,
com.engiweb.pm.entity.Paging paging,
com.engiweb.pm.dao.db.DAO dao)
Deprecated.
Return rights lookup filter by the content passed with the parameter.
|
com.engiweb.pm.entity.BeanList<EntitlementBean> |
findUserProfiles(EntitlementBean profileBean,
UserBean userBean,
com.engiweb.pm.entity.Paging pag,
com.engiweb.pm.dao.db.DAO dao)
Find user profiles.
|
RightsLookupBean |
insertContentLookup(java.lang.String content,
com.engiweb.pm.dao.db.DAO dao)
Insert content lookup.
|
void |
insertEntitlementRights(EntitlementBean roleBean,
com.engiweb.pm.entity.BeanList<EntitlementServiceBean> eServList,
com.engiweb.pm.dao.db.DAO dao)
Add Rights to a Role.
|
void |
insertOrUpdateRight(com.engiweb.pm.entity.BeanList<ServiceAttributeBean> rightsList,
EntitlementBean entitlementBean,
com.engiweb.pm.dao.db.DAO dao)
Insert or update right.
|
void |
insertOrUpdateRight(com.engiweb.pm.entity.BeanList<ServiceAttributeBean> rightsList,
PwdCfgBean pwdCfgBean,
com.engiweb.pm.dao.db.DAO dao)
Insert or update right.
|
void |
insertOrUpdateUserRight(com.engiweb.pm.entity.BeanList<ServiceAttributeBean> rightsList,
PwdCfgBean pwdCfgBean,
UserBean userBean,
com.engiweb.pm.dao.db.DAO dao)
Insert or update user right.
|
void |
insertOrUpdateUserRight(com.engiweb.pm.entity.BeanList<UserRightsBean> rightsList,
UserBean userBean,
com.engiweb.pm.dao.db.DAO dao)
Insert or update all user right.
|
void |
insertRightsLookup(com.engiweb.pm.entity.BeanList<RightsLookupBean> rightsLookupList,
com.engiweb.pm.dao.db.DAO dao)
Insert rights lookup.
|
void |
insertRightsLookup(java.lang.String content,
java.lang.String value,
com.engiweb.pm.dao.db.DAO dao)
Insert rights lookup.
|
static final java.lang.String COPYRIGHT
com.engiweb.pm.entity.BeanList<ServiceAttributeBean> findProfileRights(ServiceAttributeBean serviceBean, EntitlementBean profileBean, com.engiweb.pm.entity.Paging paging, com.engiweb.pm.dao.db.DAO dao) throws com.engiweb.toolkit.common.BackendException
serviceBean
- ServiceAttributeBean
the rights, if null no filter is applied, otherwise the passed object is used as filterprofileBean
- EntitlementBean
the profile (mandatory)paging
- Paging
the pagingdao
- DAO
the connection daoBeanList
of ServiceAttributeBean
com.engiweb.toolkit.common.BackendException
- the backend exceptioncom.engiweb.pm.entity.BeanList<ServiceAttributeBean> findPersonRights(ServiceAttributeBean serviceAttributeBean, EntitlementBean profileBean, UserBean userBean, com.engiweb.pm.entity.Paging paging, com.engiweb.pm.dao.db.DAO dao) throws com.engiweb.toolkit.common.BackendException
serviceAttributeBean
- ServiceAttributeBean
the rights, if null no filter is applied, otherwise the passed object is used as filterprofileBean
- EntitlementBean
the profileuserBean
- UserBean
the user (mandatory)paging
- Paging
the pagingdao
- DAO
the connection daoBeanList
of ServiceAttributeBean
com.engiweb.toolkit.common.BackendException
- the backend exceptioncom.engiweb.pm.entity.BeanList<RightsLookupBean> findServiceAttrLookup(java.lang.String key, com.engiweb.pm.entity.Paging paging, com.engiweb.pm.dao.db.DAO dao) throws com.engiweb.toolkit.common.BackendException
key
- String
the keypaging
- Paging
the pagingdao
- DAO
the connection daoBeanList
of RightsLookupBean
com.engiweb.toolkit.common.BackendException
- the backend exceptioncom.engiweb.pm.entity.BeanList<RightsLookupBean> findServiceAttrLookup(ServiceAttributeBean sab, com.engiweb.pm.entity.Paging paging, com.engiweb.pm.dao.db.DAO dao) throws com.engiweb.toolkit.common.BackendException
com.engiweb.toolkit.common.BackendException
java.util.HashMap<EntitlementBean,com.engiweb.pm.entity.BeanList<ServiceAttributeBean>> checkService(UserBean userBean, com.engiweb.pm.entity.BeanList<EntitlementBean> entBeanBL, com.engiweb.pm.dao.db.DAO dao) throws com.engiweb.toolkit.common.BackendException
userBean
- UserBean
the user (mandatory)entBeanBL
- BeanList
of EntitlementBean
the list of profile (mandatory)dao
- DAO
the connection daoHashMap
where the key is the EntitlementBean
profile and the value is the BeanList
of ServiceAttributeBean
the associated rights.com.engiweb.toolkit.common.BackendException
- the backend exceptionvoid insertOrUpdateRight(com.engiweb.pm.entity.BeanList<ServiceAttributeBean> rightsList, EntitlementBean entitlementBean, com.engiweb.pm.dao.db.DAO dao) throws com.engiweb.toolkit.common.BackendException
rightsList
- BeanList
of ServiceAttributeBean
the rights listentitlementBean
- EntitlementBean
the entitlement is mandatory and has to be unique.dao
- DAO
the connection daocom.engiweb.toolkit.common.BackendException
- the backend exceptionvoid insertOrUpdateUserRight(com.engiweb.pm.entity.BeanList<UserRightsBean> rightsList, UserBean userBean, com.engiweb.pm.dao.db.DAO dao) throws com.engiweb.toolkit.common.BackendException
rightsList
- BeanList
of UserRightsBean
the rights listuserBean
- UserBean
the user (mandatory)dao
- DAO
the connection daocom.engiweb.toolkit.common.BackendException
- the backend exceptionvoid deleteRights(com.engiweb.pm.entity.BeanList<ServiceAttributeBean> rightsList, EntitlementBean entitlementBean, com.engiweb.pm.dao.db.DAO dao) throws com.engiweb.toolkit.common.BackendException
rightsList
- BeanList
of ServiceAttributeBean
the rights list (have to be unique).entitlementBean
- EntitlementBean
the entitlement (mandatory and ha to be unique).dao
- DAO
the connection daocom.engiweb.toolkit.common.BackendException
- the backend exceptioncom.engiweb.pm.entity.BeanList<EntitlementBean> findUserProfiles(EntitlementBean profileBean, UserBean userBean, com.engiweb.pm.entity.Paging pag, com.engiweb.pm.dao.db.DAO dao) throws com.engiweb.toolkit.common.BackendException
profileBean
- EntitlementBean
the profile. if null no filter is applied, otherwise the passed object is used as filteruserBean
- UserBean
the user (mandatory)pag
- Paging
the pagdao
- DAO
the connection daoBeanList
of EntitlementBean
com.engiweb.toolkit.common.BackendException
- the backend exceptioncom.engiweb.pm.entity.BeanList<ServiceAttributeBean> findPwdCfgRights(ServiceAttributeBean rightBean, PwdCfgBean pwdCfgBean, com.engiweb.pm.entity.Paging paging, com.engiweb.pm.dao.db.DAO dao) throws com.engiweb.toolkit.common.BackendException
rightBean
- the right. if null no filter is applied, otherwise the passed object is used as filterpwdCfgBean
- PwdCfgBean
the account (mandatory)paging
- Paging
the pagingdao
- DAO
the connection daoBeanList
of ServiceAttributeBean
com.engiweb.toolkit.common.BackendException
- the backend exceptionvoid insertOrUpdateRight(com.engiweb.pm.entity.BeanList<ServiceAttributeBean> rightsList, PwdCfgBean pwdCfgBean, com.engiweb.pm.dao.db.DAO dao) throws com.engiweb.toolkit.common.BackendException
rightsList
- BeanList
of ServiceAttributeBean
the rights listpwdCfgBean
- PwdCfgBean
the account (mandatory and has to be unique).dao
- DAO
the connection daocom.engiweb.toolkit.common.BackendException
- the backend exceptionvoid deleteRights(com.engiweb.pm.entity.BeanList<ServiceAttributeBean> rightsList, PwdCfgBean pwdCfgBean, com.engiweb.pm.dao.db.DAO dao) throws com.engiweb.toolkit.common.BackendException
rightsList
- BeanList
of ServiceAttributeBean
the rights list (has to be unique)pwdCfgBean
- PwdCfgBean
the account (mandatory and has to be unique)dao
- DAO
the connection daocom.engiweb.toolkit.common.BackendException
- the backend exceptioncom.engiweb.pm.entity.BeanList<ServiceAttributeBean> findAccountRights(ServiceAttributeBean serviceAttributeBean, PwdCfgBean pwdCfgBean, UserBean userBean, com.engiweb.pm.entity.Paging paging, com.engiweb.pm.dao.db.DAO dao) throws com.engiweb.toolkit.common.BackendException
serviceAttributeBean
- ServiceAttributeBean
the right. if null no filter is applied, otherwise the passed object is used as filterpwdCfgBean
- PwdCfgBean
the accountuserBean
- UserBean
the user (mandatory)paging
- Paging
the pagingdao
- DAO
the connection daoBeanList
of ServiceAttributeBean
com.engiweb.toolkit.common.BackendException
- the backend exceptionvoid insertOrUpdateUserRight(com.engiweb.pm.entity.BeanList<ServiceAttributeBean> rightsList, PwdCfgBean pwdCfgBean, UserBean userBean, com.engiweb.pm.dao.db.DAO dao) throws com.engiweb.toolkit.common.BackendException
rightsList
- BeanList
of ServiceAttributeBean
the rights listpwdCfgBean
- PwdCfgBean
the accountuserBean
- UserBean
the user (mandatory)dao
- DAO
the connection daocom.engiweb.toolkit.common.BackendException
- the backend exceptionvoid insertEntitlementRights(EntitlementBean roleBean, com.engiweb.pm.entity.BeanList<EntitlementServiceBean> eServList, com.engiweb.pm.dao.db.DAO dao) throws com.engiweb.toolkit.common.BackendException
roleBean
- EntitlementBean
the entitlement (mandatory)eServList
- BeanList
of EntitlementServiceBean
the list of rights to add to entitlementdao
- DAO
the connection daocom.engiweb.toolkit.common.BackendException
- the backend exceptionvoid deleteEntitlementRights(ServiceAttributeBean sab, EntitlementBean roleBean, com.engiweb.pm.dao.db.DAO dao) throws com.engiweb.toolkit.common.BackendException
sab
- ServiceAttributeBean
the rightsroleBean
- EntitlementBean
the entitlement (mandatory)dao
- DAO
the connection daocom.engiweb.toolkit.common.BackendException
- the backend exceptioncom.engiweb.pm.entity.BeanList<EntitlementServiceBean> findEntitlementRightsValues(ServiceAttributeBean serviceAttributeBean, EntitlementBean roleBean, com.engiweb.pm.entity.Paging paging, com.engiweb.pm.dao.db.DAO dao) throws com.engiweb.toolkit.common.BackendException
serviceAttributeBean
- ServiceAttributeBean
the rightroleBean
- EntitlementBean
the entitlement (mandatory)paging
- Paging
the pagingdao
- DAO
the connection daoBeanList
of EntitlementServiceBean
com.engiweb.toolkit.common.BackendException
- the backend exceptioncom.engiweb.pm.entity.BeanList<ServiceAttributeBean> findProfileRights(ServiceAttributeBean serviceAttributeBean, EntitlementBean profileBean, EntitlementBean parentRole, com.engiweb.pm.entity.Paging paging, com.engiweb.pm.dao.db.DAO dao) throws com.engiweb.toolkit.common.BackendException
serviceAttributeBean
- ServiceAttributeBean
the rightprofileBean
- EntitlementBean
the profile (mandatory)parentRole
- EntitlementBean
the parent rolepaging
- Paging
the pagingdao
- DAO
the connection daoBeanList
of ServiceAttributeBean
com.engiweb.toolkit.common.BackendException
- the backend exceptionvoid insertRightsLookup(java.lang.String content, java.lang.String value, com.engiweb.pm.dao.db.DAO dao) throws com.engiweb.toolkit.common.BackendException
content
- String
the content (mandatory)value
- String
the valuedao
- DAO
the connection daocom.engiweb.toolkit.common.BackendException
- the backend exceptionvoid insertRightsLookup(com.engiweb.pm.entity.BeanList<RightsLookupBean> rightsLookupList, com.engiweb.pm.dao.db.DAO dao) throws com.engiweb.toolkit.common.BackendException
rightsLookupList
- BeanList
of RightsLookupBean
the rights lookup list. Field "content" for each RightsLookupBean is mandatory.dao
- DAO
the connection daocom.engiweb.toolkit.common.BackendException
- the backend exception BeanList
of RightsLookupBean
the rights lookup listvoid deleteRightsLookup(java.lang.String content, java.lang.String value, com.engiweb.pm.dao.db.DAO dao) throws com.engiweb.toolkit.common.BackendException
content
- String
the content (mandatory)value
- String
the valuedao
- DAO
the daocom.engiweb.toolkit.common.BackendException
- the backend exceptioncom.engiweb.pm.entity.BeanList<RightsLookupBean> findContentLookup(RightsLookupBean rlbean, com.engiweb.pm.entity.Paging paging, com.engiweb.pm.dao.db.DAO dao) throws com.engiweb.toolkit.common.BackendException
rlbean
- RightsLookupBean
the rlbeanpaging
- Paging
the pagingdao
- DAO
the connection daoBeanList
of RightsLookupBean
com.engiweb.toolkit.common.BackendException
- the backend exceptionRightsLookupBean insertContentLookup(java.lang.String content, com.engiweb.pm.dao.db.DAO dao) throws com.engiweb.toolkit.common.BackendException
content
- String
the content (mandatory)dao
- DAO
the connection daoRightsLookupBean
com.engiweb.toolkit.common.BackendException
- the backend exception