com.engiweb.profilemanager.common.interfaces

Interface IUserDirect

  • All Superinterfaces:
    common.direct.IDirect


    public interface IUserDirect
    extends common.direct.IDirect
    The IUser interface allows a client to retrieve and manage all information about user objects.
    Author:
    CrossIdeas developer group
    • Method Detail

      • insert

        @Deprecated
        UserBean insert(UserBean userBean,
                                    com.engiweb.pm.entity.BeanList<UserExtInfoBean> extInfoBeanList,
                                    OrgUnitBean ouBean,
                                    java.lang.String code_scope,
                                    com.engiweb.pm.dao.db.DAO dao)
                             throws com.engiweb.toolkit.common.BackendException
        Deprecated. replaced by #insertByGroup(UserBean, BeanList, GroupBean, String, String)
        Throws:
        com.engiweb.toolkit.common.BackendException
      • insertInGroup

        UserBean insertInGroup(UserBean userBean,
                               com.engiweb.pm.entity.BeanList<UserExtInfoBean> extInfoBeanList,
                               GroupBean groupBean,
                               java.lang.String code_scope,
                               com.engiweb.pm.dao.db.DAO dao)
                        throws com.engiweb.toolkit.common.BackendException
        Adds a new user, if it not exists yet. Also insert into external repository is possible setting a list of UserExtInfoBean
        Parameters:
        userBean - UserBean to add (mandatory)
        extInfoBeanList - BeanList of UserExtInfoBean if null or empty no insertion on ext DB is performed
        groupBean - GroupBean to add. It must be present and uniquely defined.
        token - String Authorization string
        realmAdm - String Realm name
        Returns:
        UserBean added
        Throws:
        com.engiweb.toolkit.common.BackendException
      • update

        UserBean update(UserBean userBean,
                        com.engiweb.pm.entity.BeanList<UserExtInfoBean> extInfoBeanList,
                        com.engiweb.pm.dao.db.DAO dao)
                 throws com.engiweb.toolkit.common.BackendException
        Updates an existing user.Also updates of external properies is possible setting a list of user external info
        Parameters:
        userBean - UserBean to update. It must be present and uniquely defined
        extInfoBeanList - BeanList of UserExtInfoBean. If null or empty no updates on ext DB is performed
        dao - DAo the connection dao
        Returns:
        UserBean
        Throws:
        com.engiweb.toolkit.common.BackendException - the backend exception
      • delete

        void delete(UserBean userBean,
                    java.lang.String code_scope,
                    com.engiweb.pm.dao.db.DAO dao)
             throws com.engiweb.toolkit.common.BackendException
        Deletes an existing user.
        Parameters:
        userBean - UserBean to update. It must be present and uniquely defined
        code_scope - String the code scope
        dao - DAO the connection dao
        Throws:
        com.engiweb.toolkit.common.BackendException - the backend exception
      • findUserAttributesConfig

        UserAttributeMappings findUserAttributesConfig(com.engiweb.pm.dao.db.DAO connDao)
                                                throws com.engiweb.toolkit.common.BackendException
        Returns the list of attributes of a User Object. An object containing both internal (from UserBean) and external (virtual attributes mapping) attributes.
        Parameters:
        connDao - DAO the connection dao
        Returns:
        UserAttributeMappings
        Throws:
        com.engiweb.toolkit.common.BackendException
      • findUserAttributesConfig

        UserAttributeMappings findUserAttributesConfig(java.lang.String languageCode,
                                                       com.engiweb.pm.dao.db.DAO connDao)
                                                throws com.engiweb.toolkit.common.BackendException
        Returns the list of attributes of a User Object. An object containing both internal (from UserBean) and external (virtual attributes mapping) attributes. Passing a valid languageCode UserAttributeMappings will be filled with the localized Label
        Parameters:
        connDao -
        languageCode -
        Returns:
        Throws:
        com.engiweb.toolkit.common.BackendException
      • findAdvanced

        com.engiweb.pm.entity.BeanList<UserBean> findAdvanced(java.util.List<UserAttributeBean> userAttributesList,
                                                              java.lang.String genericFilterValue,
                                                              GroupBean groupBean,
                                                              boolean hier,
                                                              com.engiweb.pm.entity.Paging paging,
                                                              com.engiweb.pm.dao.db.DAO connDao)
                                                       throws com.engiweb.toolkit.common.BackendException
        Returns the users filtered by a list of attributes (AND condition). The search attributes list can contain both internal (from UserBean) and external (virtual attributes mapping) attributes.
        Parameters:
        userAttributesList -
        groupBean: - search users belonging this group
        hier: - search users in the full hierarchy starting from groupBean
        paging -
        connDao -
        Returns:
        Throws:
        com.engiweb.toolkit.common.BackendException
      • findAdvanced

        com.engiweb.pm.entity.BeanList<UserBean> findAdvanced(java.util.List<UserAttributeBean> userAttributesList,
                                                              java.lang.String genericFilterValue,
                                                              java.lang.Long filterOutOfSync,
                                                              GroupBean groupBean,
                                                              boolean hier,
                                                              com.engiweb.pm.entity.Paging paging,
                                                              com.engiweb.pm.dao.db.DAO connDao)
                                                       throws com.engiweb.toolkit.common.BackendException
        Returns the users filtered by a list of attributes (AND condition). The search attributes list can contain both internal (from UserBean) and external (virtual attributes mapping) attributes.
        Parameters:
        userAttributesList -
        genericFilterValue - allow searching for users by code, name, surname
        filterOutOfSync - allow searching by fulfillment status (out of synchronization, aligned, all)
        groupBean - earch users belonging this group
        hier - search users in the full hierarchy starting from groupBean
        paging -
        connDao -
        Returns:
        Throws:
        com.engiweb.toolkit.common.BackendException
      • find

        com.engiweb.pm.entity.BeanList<UserBean> find(UserBean userBean,
                                                      com.engiweb.pm.entity.Paging paging,
                                                      com.engiweb.pm.dao.db.DAO dao)
                                               throws com.engiweb.toolkit.common.BackendException
        Returns the users filtered by a specified user
        Parameters:
        userBean - UserBean if null no filter is applied, otherwise the passed object is used as filter
        paging - Paging
        dao -
        Returns:
        Throws:
        com.engiweb.toolkit.common.BackendException
      • findProfile

        com.engiweb.pm.entity.BeanList<EntitlementBean> findProfile(EntitlementBean profileBean,
                                                                    UserBean userBean,
                                                                    com.engiweb.pm.entity.Paging paging,
                                                                    com.engiweb.pm.dao.db.DAO dao)
                                                             throws com.engiweb.toolkit.common.BackendException
        Find profile of a specified user .
        Parameters:
        profileBean - EntitlementBean the profile. if null no filter is applied, otherwise the passed object is used as filter
        userBean - UserBean the user (mandatory)
        paging - Paging the paging
        dao - DAO the connection dao
        Returns:
        BeanList of EntitlementBean
        Throws:
        com.engiweb.toolkit.common.BackendException - the backend exception
      • findUserExtInfo

        com.engiweb.pm.entity.BeanList<UserExtInfoBean> findUserExtInfo(UserBean userBean,
                                                                        boolean onlyVisible,
                                                                        com.engiweb.pm.dao.db.DAO dao)
                                                                 throws com.engiweb.toolkit.common.BackendException
        Returns the user external info associated to the user and properly valued.
        Parameters:
        userBean - UserBean It must be present and uniquely defined
        onlyVisible - boolean: if true returns only the extInfo mapped as visible
        dao - DAO the connection dao
        Returns:
        BeanList of UserExtInfoBean
        Throws:
        com.engiweb.toolkit.common.BackendException - the backend exception
      • findPersonalDataFromAccount

        java.util.HashMap<java.lang.String,java.lang.String> findPersonalDataFromAccount(java.lang.String userid,
                                                                                         java.lang.String accountCfgName,
                                                                                         com.engiweb.pm.dao.db.DAO dao)
                                                                                  throws com.engiweb.toolkit.common.BackendException
        Returns the user personal data as an HashMap with the name of the field as key and the user's personal data as field.
        Parameters:
        userBean - UserBean It must be present and uniquely defined
        dao - DAO the connection dao
        Returns:
        HashMap
        Throws:
        com.engiweb.toolkit.common.BackendException - the backend exception
      • getSelectedExtInfo

        com.engiweb.pm.entity.BeanList<UserExtInfoBean> getSelectedExtInfo(com.engiweb.pm.dao.db.DAO dao)
                                                                    throws com.engiweb.toolkit.common.BackendException
        Returns the user external info.
        Parameters:
        dao - DAO the connection dao
        Returns:
        BeanList of UserExtInfoBean
        Throws:
        com.engiweb.toolkit.common.BackendException - the backend exception
      • addEntitlement

        @Deprecated
        void addEntitlement(com.engiweb.pm.entity.BeanList<EntitlementBean> entBeanList,
                                        com.engiweb.pm.entity.BeanList<UserRightsBean> rightsList,
                                        com.engiweb.pm.entity.BeanList<RemediationBean> blRemBean,
                                        UserBean userBean,
                                        OrgUnitBean ou,
                                        boolean checkIncompatibility,
                                        java.lang.String code_scope,
                                        com.engiweb.pm.dao.db.DAO dao)
                                 throws com.engiweb.toolkit.common.BackendException
        Deprecated. replaced by #addEntitlementByGroup(BeanList, BeanList, BeanList, UserBean, GroupBean, boolean, String, String, String)
        Throws:
        com.engiweb.toolkit.common.BackendException
      • addEntitlementByGroup

        @Deprecated
        void addEntitlementByGroup(com.engiweb.pm.entity.BeanList<EntitlementBean> entBeanList,
                                               com.engiweb.pm.entity.BeanList<UserRightsBean> rightsList,
                                               com.engiweb.pm.entity.BeanList<RemediationBean> blRemBean,
                                               UserBean userBean,
                                               GroupBean groupBean,
                                               boolean checkIncompatibility,
                                               java.lang.String code_scope,
                                               com.engiweb.pm.dao.db.DAO dao)
                                        throws com.engiweb.toolkit.common.BackendException
        Deprecated. 
        Insert a list of entitlements
        Parameters:
        entBeanList - Beanlist of EntitlementBean to add
        rightsList - BeanList of UserRightsBean to assign to the user. If null no right is assigned
        blRemBean - BeanList of RemediationBean to assign to the user. If null no remediation is assigned
        userBean - UserBean It must be present and uniquely defined
        groupBean - GroupBean It must be present and uniquely defined
        checkIncompatibility - boolean type. Check the conflicts and, if it's true and new entitlements create conflicts on user, an exception is returned.
        code_scope - String the code scope
        dao - DAO the connection dao
        Throws:
        com.engiweb.toolkit.common.BackendException
      • addEntitlementByGroup

        void addEntitlementByGroup(com.engiweb.pm.entity.BeanList<EntitlementBean> entBeanList,
                                   java.util.Map<java.lang.Long,AccountBean> accountList,
                                   com.engiweb.pm.entity.BeanList<UserRightsBean> rightsList,
                                   com.engiweb.pm.entity.BeanList<RemediationBean> blRemBean,
                                   UserBean userBean,
                                   GroupBean groupBean,
                                   boolean checkIncompatibility,
                                   java.lang.String code_scope,
                                   com.engiweb.pm.dao.db.DAO dao)
                            throws com.engiweb.toolkit.common.BackendException
        Insert a list of entitlements
        Parameters:
        entBeanList - List of EntitlementBean to add
        accountList - Map of Long - AccountBean. The key is the id of a Pwdcfg and the value is the related user account involved in the assignment.
        rightsList - BeanList of UserRightsBean to assign to the user. If null no right is assigned
        blRemBean - BeanList of RemediationBean to assign to the user. If null no remediation is assigned
        userBean - UserBean It must be present and uniquely defined
        groupBean - GroupBean It must be present and uniquely defined
        checkIncompatibility - boolean type. Check the conflicts and, if it's true and new entitlements create conflicts on user, an exception is returned.
        code_scope - String the code scope
        dao - DAO the connection dao
        Throws:
        com.engiweb.toolkit.common.BackendException
      • addEntitlementByGroup

        void addEntitlementByGroup(com.engiweb.pm.entity.BeanList<EntitlementBean> entBeanList,
                                   java.util.Map<java.lang.Long,AccountBean> accountList,
                                   com.engiweb.pm.entity.BeanList<UserRightsBean> rightsList,
                                   com.engiweb.pm.entity.BeanList<RemediationBean> blRemBean,
                                   UserBean userBean,
                                   GroupBean groupBean,
                                   boolean checkIncompatibility,
                                   boolean skipPwdHistoryCheck,
                                   java.lang.String code_scope,
                                   com.engiweb.pm.dao.db.DAO dao)
                            throws com.engiweb.toolkit.common.BackendException
        Insert a list of entitlements
        Parameters:
        entBeanList - List of EntitlementBean to add
        accountList - Map of Long - AccountBean. The key is the id of a Pwdcfg and the value is the related user account involved in the assignment.
        rightsList - BeanList of UserRightsBean to assign to the user. If null no right is assigned
        blRemBean - BeanList of RemediationBean to assign to the user. If null no remediation is assigned
        userBean - UserBean It must be present and uniquely defined
        groupBean - GroupBean It must be present and uniquely defined
        checkIncompatibility - boolean type. Check the conflicts and, if it's true and new entitlements create conflicts on user, an exception is returned.
        skipPwdHistoryCheck - boolean type. if true, skip pwd history check if new account is to be generated
        code_scope - String the code scope
        dao - DAO the connection dao
        Throws:
        com.engiweb.toolkit.common.BackendException
      • addEntitlementByGroupNOcheckSOD

        void addEntitlementByGroupNOcheckSOD(java.util.List<EntitlementBean> entBeanList,
                                             java.util.Map<java.lang.Long,AccountBean> accountList,
                                             com.engiweb.pm.entity.BeanList<UserRightsBean> rightsList,
                                             com.engiweb.pm.entity.BeanList<RemediationBean> blRemBean,
                                             UserBean userBean,
                                             GroupBean groupBean,
                                             boolean defaultRights,
                                             boolean skipPwdHistoryCheck,
                                             java.lang.String code_scope,
                                             com.engiweb.pm.dao.db.DAO dao)
                                      throws com.engiweb.toolkit.common.BackendException
        Insert a list of entitlements without refreshing the SOD check for the user
        Parameters:
        entBeanList - List of EntitlementBean to add
        accountList - Map of Long - AccountBean. The key is the id of a Pwdcfg and the value is the related user account involved in the assignment.
        rightsList - BeanList of UserRightsBean to assign to the user. If null no right is assigned
        blRemBean - BeanList of RemediationBean to assign to the user. If null no remediation is assigned
        userBean - UserBean It must be present and uniquely defined
        groupBean - GroupBean It must be present and uniquely defined
        defaultRights - boolean type. if true, assign the default value for rights
        skipPwdHistoryCheck - boolean type. if true, skip pwd history check if new account is to be generated
        code_scope - String the code scope
        dao - DAO the connection dao
        Throws:
        com.engiweb.toolkit.common.BackendException
      • removeEntitlement

        @Deprecated
        void removeEntitlement(com.engiweb.pm.entity.BeanList<EntitlementBean> blEntitlementBean,
                                           UserBean userBean,
                                           com.engiweb.pm.dao.db.DAO dao)
                                    throws com.engiweb.toolkit.common.BackendException
        It removes the list of role from the user on the default hier
        Throws:
        com.engiweb.toolkit.common.BackendException
      • removeEntitlement

        void removeEntitlement(com.engiweb.pm.entity.BeanList<EntitlementBean> blEntitlementBean,
                               java.lang.Integer directlyAssigned,
                               UserBean userBean,
                               com.engiweb.pm.dao.db.DAO dao)
                        throws com.engiweb.toolkit.common.BackendException
        Removes a list of roles from an user. The directlyAssigned (value 1) specifies if the role to remove must be assigned direclty to the user or in delegation mode (value 0) or both (value null)
        Parameters:
        blEntitlementBean - List of EntitlementBean to remove
        directlyAssigned - if 1 only direct assignment will be removed, if 0 only delegated, if null both
        userBean - The user to which remove the roles
        dao - DAO the connection dao
        Throws:
        com.engiweb.toolkit.common.BackendException
      • removeEntitlementNOcheckSOD

        void removeEntitlementNOcheckSOD(com.engiweb.pm.entity.BeanList<EntitlementBean> entBeanList,
                                         UserBean userBean,
                                         com.engiweb.pm.dao.db.DAO dao)
                                  throws com.engiweb.toolkit.common.BackendException
        Removes a list of roles from an user without refreshing the SOD check for the user
        Parameters:
        entBeanList - List of EntitlementBean to remove
        userBean - The user to which remove the roles
        dao - DAO the connection dao
        Throws:
        com.engiweb.toolkit.common.BackendException
      • removeEntitlement

        void removeEntitlement(com.engiweb.pm.entity.BeanList<EntitlementBean> entBeanList,
                               UserBean userBean,
                               HierarchyBean hierarchyBean,
                               com.engiweb.pm.dao.db.DAO connDao)
                        throws com.engiweb.toolkit.common.BackendException
        Removes a list of entitlements from an user in all the groups belonging to the hierarchy.
        Parameters:
        blEntitlementBean - BeanList of EntitlementBean to remove. They must be present and uniquely defined
        userBean - UserBean It must be present and uniquely defined
        hierarchyBean - HierarchyBean
        dao - DAO the connection dao
        Throws:
        com.engiweb.toolkit.common.BackendException - the backend exception
      • removeEntitlement

        void removeEntitlement(com.engiweb.pm.entity.BeanList<EntitlementBean> entBeanList,
                               UserBean userBean,
                               GroupBean groupBean,
                               com.engiweb.pm.dao.db.DAO connDao)
                        throws com.engiweb.toolkit.common.BackendException
        Removes a list of entitlements from an user.
        Parameters:
        blEntitlementBean - BeanList of EntitlementBean to remove. They must be present and uniquely defined
        userBean - UserBean It must be present and uniquely defined
        groupBean - GroupBean
        dao - DAO the connection dao
        Throws:
        com.engiweb.toolkit.common.BackendException - the backend exception
      • moveUser

        @Deprecated
        void moveUser(com.engiweb.pm.entity.BeanList<UserBean> userBeanList,
                                  OrgUnitBean ouStartBean,
                                  OrgUnitBean ouEndBean,
                                  int type,
                                  java.lang.String code_scope,
                                  com.engiweb.pm.dao.db.DAO dao)
                           throws com.engiweb.toolkit.common.BackendException
        Deprecated. replaced by #moveUserByGroup(BeanList, GroupBean, HierarchyBean, GroupBean, int, String, String)
        Throws:
        com.engiweb.toolkit.common.BackendException
      • moveUserInGroup

        void moveUserInGroup(com.engiweb.pm.entity.BeanList<UserBean> userBeanList,
                             GroupBean groupStartBean,
                             GroupBean groupEndBean,
                             int type,
                             java.lang.String code_scope,
                             com.engiweb.pm.dao.db.DAO dao)
                      throws com.engiweb.toolkit.common.BackendException
        Move a list of users from a group hierarchy to another one. If userBeanList is empty and groupStartBean is uniquely defined all user belonging to groupStartBean will be moved. If userBeanList is correctly defined all users contained into the list are moved into groupEnd.
        Parameters:
        userBeanList - of UserBean to move. If not null or not empty they must be uniquely defined
        groupStartBean - GroupBean Starting Group hierarchy. If userBeanList is null or empty groupStartBean must be not null otherwise no movement is performed
        groupEndBean - GroupBean Final group hierarchy. It must be present and uniquely defined
        type -
          1 - Entitlements present in both ouStart and ouEnd will be retained 2 - Only ouEnd default entitlements is assigned to users
        token - String Authorization string
        realm - String Realm name
        Throws:
        com.engiweb.toolkit.common.BackendException
      • findEntitlement

        com.engiweb.pm.entity.BeanList<EntitlementBean> findEntitlement(EntitlementBean entitlementBean,
                                                                        ApplicationBean appBean,
                                                                        UserBean userBean,
                                                                        com.engiweb.pm.entity.Paging paging,
                                                                        java.lang.String code_scope,
                                                                        com.engiweb.pm.dao.db.DAO dao)
                                                                 throws com.engiweb.toolkit.common.BackendException
        Returns entitlements assigned to an user on the default hierarchy filtered by an application.
        Parameters:
        entitlementBean - EntitlementBean if null no filter is applied, otherwise the passed object is used as filter
        appBean - ApplicationBean Null or it must be present and uniquely defined
        userBean - UserBean It must be present and uniquely defined
        paging - Paging the paging
        code_scope - String the code scope
        dao - DAo the connection dao
        Returns:
        BeanList of EntitlementBean
        Throws:
        com.engiweb.toolkit.common.BackendException - the backend exception
      • findEntitlement

        com.engiweb.pm.entity.BeanList<EntitlementBean> findEntitlement(EntitlementBean eBean,
                                                                        ApplicationBean appBean,
                                                                        AccountBean accountBean,
                                                                        GroupBean groupBean,
                                                                        UserBean userBean,
                                                                        com.engiweb.pm.entity.Paging paging,
                                                                        java.lang.String code_scope,
                                                                        com.engiweb.pm.dao.db.DAO dao)
                                                                 throws com.engiweb.toolkit.common.BackendException
        Returns entitlements assigned to an user filtered by an application.
        Parameters:
        entitlementBean - EntitlementBean if null no filter is applied, otherwise the passed object is used as filter
        appBean - ApplicationBean Null or it must be present and uniquely defined
        accountBean - AccountBean if null no filter is applied, otherwise the passed object is used as filter
        groupBean - GroupBean Null or it must be present and uniquely defined
        userBean - UserBean It must be present and uniquely defined
        paging - Paging the paging
        code_scope - String the code scope
        dao - DAo the connection dao
        Returns:
        BeanList of EntitlementBean
        Throws:
        com.engiweb.toolkit.common.BackendException - the backend exception
      • findEntitlement

        com.engiweb.pm.entity.BeanList<EntitlementBean> findEntitlement(EntitlementBean entitlementBean,
                                                                        ApplicationBean appBean,
                                                                        GroupBean groupBean,
                                                                        UserBean userBean,
                                                                        com.engiweb.pm.entity.Paging paging,
                                                                        java.lang.String code_scope,
                                                                        com.engiweb.pm.dao.db.DAO dao)
                                                                 throws com.engiweb.toolkit.common.BackendException
        Returns entitlements assigned to an user filtered by an application.
        Parameters:
        entitlementBean - EntitlementBean if null no filter is applied, otherwise the passed object is used as filter
        appBean - ApplicationBean Null or it must be present and uniquely defined
        groupBean - GroupBean Null or it must be present and uniquely defined
        userBean - UserBean It must be present and uniquely defined
        paging - Paging the paging
        code_scope - String the code scope
        dao - DAo the connection dao
        Returns:
        BeanList of EntitlementBean
        Throws:
        com.engiweb.toolkit.common.BackendException - the backend exception
      • findEntitlement

        com.engiweb.pm.entity.BeanList<EntitlementBean> findEntitlement(EntitlementBean entitlementBean,
                                                                        java.util.List<java.lang.Long> entTypes,
                                                                        ApplicationBean appBean,
                                                                        GroupBean groupBean,
                                                                        UserBean userBean,
                                                                        com.engiweb.pm.entity.Paging paging,
                                                                        java.lang.String code_scope,
                                                                        com.engiweb.pm.dao.db.DAO dao)
                                                                 throws com.engiweb.toolkit.common.BackendException
        Throws:
        com.engiweb.toolkit.common.BackendException
      • findAssignment

        com.engiweb.pm.entity.BeanList<AssignmentBean> findAssignment(EntitlementBean entitlementBean,
                                                                      ApplicationBean appBean,
                                                                      AccountBean accountBean,
                                                                      GroupBean groupBean,
                                                                      UserBean userBean,
                                                                      boolean defaultAccountsOnly,
                                                                      com.engiweb.pm.entity.Paging paging,
                                                                      java.lang.String code_scope,
                                                                      com.engiweb.pm.dao.db.DAO dao)
                                                               throws com.engiweb.toolkit.common.BackendException
        Returns assignments related to an user.
        Parameters:
        entitlementBean - EntitlementBean if null no filter is applied, otherwise the passed object is used as filter
        appBean - ApplicationBean Null or it must be present and uniquely defined
        accountBean - AccountBean if null no filter is applied, otherwise the passed object is used as filter
        groupBean - GroupBean Null or it must be present and uniquely defined
        userBean - UserBean It must be present and uniquely defined
        defaultAccountsOnly - boolean, true means only the assignments performed completeley through default accounts will be taken in consideration
        paging - Paging the paging
        code_scope - String the code scope
        dao - DAo the connection dao
        Returns:
        BeanList of AssignmentBean
        Throws:
        com.engiweb.toolkit.common.BackendException - the backend exception
      • findDelegated

        com.engiweb.pm.entity.BeanList<UserBean> findDelegated(UserBean delegatedUser,
                                                               EntitlementBean entitlementBean,
                                                               UserBean representedUser,
                                                               boolean isByUser,
                                                               com.engiweb.pm.entity.Paging paging,
                                                               com.engiweb.pm.dao.db.DAO dao)
                                                        throws com.engiweb.toolkit.common.BackendException
        Returns a list of users delegated by a represented user filtered by entitlement.
        Parameters:
        delegatedUser - UserBean if null no filter is applied, otherwise the passed object is used as filter
        entitlementBean - EntitlementBean if null no filter is applied, otherwise the passed object is used as filter
        representedUser - UserBean It must be present and uniquely defined
        isByUser - boolean: true find delegated by a represented,
        paging - Paging the paging
        dao - DAO the connection dao
        Returns:
        BeanList of UserBean
        Throws:
        com.engiweb.toolkit.common.BackendException - the backend exception
      • findDelegatedByProfile

        com.engiweb.pm.entity.BeanList<UserBean> findDelegatedByProfile(UserBean delegatedUser,
                                                                        EntitlementBean entitlementBean,
                                                                        UserBean representedUser,
                                                                        boolean isByUser,
                                                                        com.engiweb.pm.entity.Paging paging,
                                                                        com.engiweb.pm.dao.db.DAO dao)
                                                                 throws com.engiweb.toolkit.common.BackendException
        Returns a list of users delegated by a represented user filtered by profile type entitlement.
        Parameters:
        delegatedUser - UserBean if null no filter is applied, otherwise the passed object is used as filter
        entitlementBean - EntitlementBean if null no filter is applied, otherwise the passed object is used as filter and entitlement type is forced to PROFILE
        representedUser - UserBean It must be present and uniquely defined
        isByUser - boolean: true find delegated by a represented,
        paging - Paging the paging
        dao - DAO the connection dao
        Returns:
        BeanList of UserBean
        Throws:
        com.engiweb.toolkit.common.BackendException - the backend exception
      • findDelegatedEntitlement

        com.engiweb.pm.entity.BeanList<EntitlementBean> findDelegatedEntitlement(EntitlementBean entitlementBean,
                                                                                 UserBean representedUser,
                                                                                 UserBean delegatedUser,
                                                                                 boolean isByRepresented,
                                                                                 com.engiweb.pm.entity.Paging paging,
                                                                                 com.engiweb.pm.dao.db.DAO dao)
                                                                          throws com.engiweb.toolkit.common.BackendException
        Returns a list of entitlements a represended user gave delegated.
        Parameters:
        entitlementBean - EntitlementBean if null no filter is applied, otherwise the passed object is used as filter
        representedUser - UserBean It must be present and uniquely defined if isByRepresented is true
        delegatedUser - UserBean if isByRepresented is false, it must be present and uniquely defined if isByRepresented is true the passed object is used as filter
        isByRepresented - boolean if tue the search is by represented and the representedUser it must be present and uniquely defined
        paging - Paging the paging
        dao - DAO the connection dao
        Returns:
        BeanList of EntitlementBean
        Throws:
        com.engiweb.toolkit.common.BackendException - the backend exception
      • findDelegatedEntitlementInGroup

        com.engiweb.pm.entity.BeanList<EntitlementBean> findDelegatedEntitlementInGroup(EntitlementBean entitlementBean,
                                                                                        UserBean representedUser,
                                                                                        UserBean delegatedUser,
                                                                                        GroupBean groupBean,
                                                                                        HierarchyBean hierarchyBean,
                                                                                        boolean isByRepresented,
                                                                                        com.engiweb.pm.entity.Paging paging,
                                                                                        com.engiweb.pm.dao.db.DAO dao)
                                                                                 throws com.engiweb.toolkit.common.BackendException
        Parameters:
        entitlementBean - EntitlementBean if null no filter is applied, otherwise the passed object is used as filter
        representedUser - UserBean It must be present and uniquely defined if isByRepresented is true
        delegatedUser - UserBean if isByRepresented is false, it must be present and uniquely defined if isByRepresented is true the passed object is used as filter
        groupBean - GroupBean Null or it must be present and uniquely defined
        hierarchyBean - HierarchyBean if null no filter is applied, otherwise the object is used as filter
        isByRepresented - boolean if tue the search is by represented and the representedUser it must be present and uniquely defined
        paging - Paging the paging
        dao - DAO the connection dao
        Returns:
        BeanList of EntitlementBean
        Throws:
        com.engiweb.toolkit.common.BackendException - the backend exception
      • findRepresented

        com.engiweb.pm.entity.BeanList<UserBean> findRepresented(UserBean representedUser,
                                                                 EntitlementBean entitlementBean,
                                                                 UserBean delegatedUser,
                                                                 boolean isByDelegated,
                                                                 com.engiweb.pm.entity.Paging paging,
                                                                 com.engiweb.pm.dao.db.DAO dao)
                                                          throws com.engiweb.toolkit.common.BackendException
        Returns a list of entitlements a delegated user has been delegated from a represented.
        Parameters:
        representedUser - UserBean if null no filter is applied, otherwise the passed object is used as filter
        entitlementBean - EntitlementBean if null no filter is applied, otherwise the passed object is used as filter
        delegatedUser - UserBean It must be present and uniquely defined
        isByDelegated - boolean
        paging - Paging the paging
        dao - DAO the connection dao
        Returns:
        BeanList of UserBean
        Throws:
        com.engiweb.toolkit.common.BackendException - the backend exception
      • findDelegantByProfile

        com.engiweb.pm.entity.BeanList<UserBean> findDelegantByProfile(UserBean represented,
                                                                       EntitlementBean entitlementBean,
                                                                       UserBean delegated,
                                                                       boolean isByDelegated,
                                                                       com.engiweb.pm.entity.Paging paging,
                                                                       com.engiweb.pm.dao.db.DAO dao)
                                                                throws com.engiweb.toolkit.common.BackendException
        Returns a list of entitlements a delegated user has been delegated from a represented.
        Parameters:
        represented - UserBean if null no filter is applied, otherwise the passed object is used as filter
        entitlementBean - EntitlementBean if null no filter is applied, otherwise the passed object is used as filter and entitlement type is forced to PROFILE
        delegated - UserBean It must be present and uniquely defined
        isByDelegated - the is by delegated
        paging - Paging the paging
        dao - DAO the connection dao
        Returns:
        BeanList of UserBean
        Throws:
        com.engiweb.toolkit.common.BackendException - the backend exception
      • addDelegatedEnt

        void addDelegatedEnt(UserBean delegated,
                             UserBean represented,
                             com.engiweb.pm.entity.BeanList<EntitlementBean> entBeanList,
                             com.engiweb.pm.entity.BeanList<RemediationBean> blRemBean,
                             boolean checkIncompatibility,
                             com.engiweb.pm.dao.db.DAO dao)
                      throws com.engiweb.toolkit.common.BackendException
        Adds a list of entitlements delegated to a user.
        Parameters:
        delegated - UserBean It must be present and uniquely defined
        represented - UserBean It must be present and uniquely defined
        entBeanList - BeanList of EntitlementBean with delegation start date and end date valued
        blRemBean - BeanList of RemediationBean to assign to the user
        checkIncompatibility - boolean type provides the level of incompatibility
        dao - DAO the connection dao
        Throws:
        com.engiweb.toolkit.common.BackendException - the backend exception
      • removeDelegatedEnt

        void removeDelegatedEnt(UserBean delegatedUser,
                                UserBean representedUser,
                                com.engiweb.pm.entity.BeanList<EntitlementBean> blEntitlementBean,
                                com.engiweb.pm.dao.db.DAO dao)
                         throws com.engiweb.toolkit.common.BackendException
        Removes a list of entitlements delegated to a user.
        Parameters:
        delegatedUser - UserBean It must be present and uniquely defined
        representedUser - UserBean It must be present and uniquely defined
        blEntitlementBean - BeanList of EntitlementBean to remove
        dao - DAO the connection dao
        Throws:
        com.engiweb.toolkit.common.BackendException - the backend exception
      • addResource

        void addResource(UserBean userBean,
                         EntitlementBean entBean,
                         com.engiweb.pm.entity.BeanList<com.engiweb.pm.web.bean.AbstractBean> blResources,
                         com.engiweb.pm.dao.db.DAO dao)
                  throws com.engiweb.toolkit.common.BackendException
        Add a list of resources to an user.
        Parameters:
        userBean - UserBean It must be present and uniquely defined
        entBean - EntitlementBean It must be present and uniquely defined
        blResources - BeanList of ResourceBean to add
        dao - DAO the connection dao
        Throws:
        com.engiweb.toolkit.common.BackendException - the backend exception
      • addResource

        void addResource(UserBean userBean,
                         EntitlementBean entBean,
                         GroupBean groupBean,
                         com.engiweb.pm.entity.BeanList<com.engiweb.pm.web.bean.AbstractBean> blResources,
                         com.engiweb.pm.dao.db.DAO dao)
                  throws com.engiweb.toolkit.common.BackendException
        Add a list of resources to an user.
        Parameters:
        userBean - UserBean It must be present and uniquely defined
        entBean - EntitlementBean It must be present and uniquely defined
        groupBean - GroupBean It must be present and uniquely defined
        blResources - BeanList of ResourceBean to add
        dao - DAO the connection dao
        Throws:
        com.engiweb.toolkit.common.BackendException - the backend exception
      • removeResource

        void removeResource(UserBean userBean,
                            EntitlementBean entitlementBean,
                            com.engiweb.pm.entity.BeanList blResources,
                            com.engiweb.pm.dao.db.DAO dao)
                     throws com.engiweb.toolkit.common.BackendException
        Add a list of resources from an user.
        Parameters:
        userBean - UserBean It must be present and uniquely defined
        entitlementBean - EntitlementBean It must be present and uniquely defined
        blResources - BeanList of ResourceBean resource to add
        dao - DAO the connection dao
        Throws:
        com.engiweb.toolkit.common.BackendException - the backend exception
      • findResources

        com.engiweb.pm.entity.BeanList<? extends com.engiweb.pm.web.bean.AbstractBean> findResources(com.engiweb.pm.web.bean.AbstractBean resBean,
                                                                                                     UserBean userBean,
                                                                                                     EntitlementBean bean,
                                                                                                     int type,
                                                                                                     boolean grouped,
                                                                                                     com.engiweb.pm.entity.Paging paging,
                                                                                                     java.lang.String code_scope,
                                                                                                     com.engiweb.pm.dao.db.DAO dao)
                                                                                              throws com.engiweb.toolkit.common.BackendException
        Returns resources assigned to an user
        Parameters:
        resBean - AbstractBean if null no filter is applied, otherwise the passed object is used as filter
        userBean - UserBean It must be present and uniquely defined
        bean - EntitlementBean It must be present and uniquely defined
        int - type: type of resources to research
        • 1=inheritable resources of user's ou
        • 2=resources assigned punctually to an user
        • 3=internal resources of OU type
        • 4=internal resources of ENTITLEMENT type
        • 5=internal resources of APPLICATION type
        • 6=internal resources of RESOURCE TYPE type
        • 7=internal resources of RESOURCE FAMILY type
        • 8=internal resources of TASK type
        grouped - : boolean type. If type is 3 returns internal resources of ou type hierarchically higher (if true), all resources otherwise
        paging - Paging
        code_scope - String the code scope
        dao - DAO the connection dao
        Returns:
        BeanList of AbstractBean
        Throws:
        com.engiweb.toolkit.common.BackendException - the backend exception
      • findOU

        @Deprecated
        com.engiweb.pm.entity.BeanList<OrgUnitBean> findOU(UserBean userBean,
                                                                       java.lang.String code_scope,
                                                                       com.engiweb.pm.dao.db.DAO dao)
                                                                throws com.engiweb.toolkit.common.BackendException
        Deprecated. replaced by #findGroup(UserBean, String, String)
        Throws:
        com.engiweb.toolkit.common.BackendException
      • findGroup

        com.engiweb.pm.entity.BeanList<GroupBean> findGroup(GroupBean groupBean,
                                                            HierarchyBean hierarchyBean,
                                                            UserBean userBean,
                                                            java.lang.String code_scope,
                                                            com.engiweb.pm.dao.db.DAO dao)
                                                     throws com.engiweb.toolkit.common.BackendException
        Returns a BeanList of GroupBean an user belong
        Parameters:
        groupBean - GroupBean if null no filter is applied, otherwise the passed object is used as filter
        hierarchyBean - HierarchyBean if null no filter is applied, otherwise the passed object is used as filter
        userBean - String It must be present and uniquely defined
        token - String Authorization string
        realm - String Realm name
        Returns:
        BeanList of GroupBean
        Throws:
        com.engiweb.toolkit.common.BackendException
      • findAccount

        com.engiweb.pm.entity.BeanList<AccountBean> findAccount(AccountBean accountBean,
                                                                UserBean userBean,
                                                                boolean isByUser,
                                                                com.engiweb.pm.entity.Paging paging,
                                                                com.engiweb.pm.dao.db.DAO dao)
                                                         throws com.engiweb.toolkit.common.BackendException
        Returns BeanList of AccountBean of an user.
        Parameters:
        accountBean - AccountBean if null no filter is applied, otherwise the passed object is used as filter
        userBean - UserBean It must be present and uniquely defined
        isByUser - the is by user
        paging - Paging the paging
        dao - DAO the connection dao
        Returns:
        BeanList di AccountBean
        Throws:
        com.engiweb.toolkit.common.BackendException - the backend exception
      • addServicePending

        void addServicePending(java.util.HashMap<EntitlementBean,com.engiweb.pm.entity.BeanList<ServiceAttributeBean>> blServiceBean,
                               java.lang.String request,
                               UserBean userBean,
                               com.engiweb.pm.dao.db.DAO dao)
                        throws com.engiweb.toolkit.common.BackendException
        Add a list of services to an user
        Parameters:
        blServiceBean - BeanList of ServiceBean to assign to an user
        request - String it's mandatory
        userBean - UserBean It must be present and uniquely defined
        dao - DAO the connection dao
        Throws:
        com.engiweb.toolkit.common.BackendException - the backend exception
      • removeServicePending

        void removeServicePending(java.lang.String request,
                                  UserBean userBean,
                                  com.engiweb.pm.dao.db.DAO dao)
                           throws com.engiweb.toolkit.common.BackendException
        Removes services related to a request to an user.
        Parameters:
        request - String it's mandatory
        userBean - UserBean It must be present and uniquely defined
        dao - DAO the connection dao
        Throws:
        com.engiweb.toolkit.common.BackendException - the backend exception
      • findServicePending

        java.util.HashMap<EntitlementBean,com.engiweb.pm.entity.BeanList<ServiceAttributeBean>> findServicePending(ServiceAttributeBean serviceAttributeBean,
                                                                                                                   java.lang.String request,
                                                                                                                   UserBean userBean,
                                                                                                                   com.engiweb.pm.entity.Paging paging,
                                                                                                                   com.engiweb.pm.dao.db.DAO dao)
                                                                                                            throws com.engiweb.toolkit.common.BackendException
        Find service pending.
        Parameters:
        serviceAttributeBean - UserBean It must be present and uniquely defined
        request - String it's mandatory
        userBean - UserBean It must be present and uniquely defined
        paging - Paging the paging
        dao - DAO the connection dao
        Returns:
        HashMap
        Throws:
        com.engiweb.toolkit.common.BackendException - the backend exception
      • findResourcesByProfile

        com.engiweb.pm.entity.BeanList findResourcesByProfile(com.engiweb.pm.web.bean.AbstractBean resBean,
                                                              UserBean userBean,
                                                              EntitlementBean entProfileBean,
                                                              IntResource type,
                                                              boolean grouped,
                                                              com.engiweb.pm.entity.Paging pNew,
                                                              java.lang.String code_scope,
                                                              com.engiweb.pm.dao.db.DAO dao)
                                                       throws com.engiweb.toolkit.common.BackendException
        Returns user resources assigned to an entitlement having a given entitlement of profile type
        Parameters:
        resBean - AbstractBean if null no filter is applied, otherwise the passed object is used as filter
        userBean - UserBean It must be present and uniquely defined
        entProfileBean - EntitlementBean It must be present and uniquely defined and entitlements must be profile type
        int - type:
        • 1=inheritable resources of user's ou
        • 2=resources assigned punctually to an user
        • 3=internal resources of OU type
        • 4=internal resources of ENTITLEMENT type
        • 5=internal resources of APPLICATION type
        • 6=internal resources of RESOURCE TYPE type
        • 7=internal resources of RESOURCE FAMILY type
        • 8=internal resources of TASK type
        grouped - boolean type. associated to type=3 allws to search for OU type resources hierarchically higher (true) or all (false)
        pNew - Paging the paging
        code_scope - String the code scope
        dao - DAO the connection dao
        Returns:
        BeanList of AbstractBean according with resource type searched
        Throws:
        com.engiweb.toolkit.common.BackendException - the backend exception
      • findRemediation

        com.engiweb.pm.entity.BeanList<RemediationBean> findRemediation(RemediationBean remBean,
                                                                        UserBean userBean,
                                                                        com.engiweb.pm.entity.Paging paging,
                                                                        com.engiweb.pm.dao.db.DAO dao)
                                                                 throws com.engiweb.toolkit.common.BackendException
        Adds remediations to a user.
        Parameters:
        remBean - RemediationBean if null no filter is applied, otherwise the passed object is used as filter
        userBean - UserBean It must be present and uniquely defined
        paging - Paging the paging
        dao - DAO the connection dao
        Returns:
        BeanList of RemediationBean
        Throws:
        com.engiweb.toolkit.common.BackendException - the backend exception
      • findRiskScore

        com.engiweb.pm.entity.BeanList<CIARiskScoreBean> findRiskScore(CIARiskScoreBean riskScoreBean,
                                                                       com.engiweb.pm.entity.Paging paging,
                                                                       com.engiweb.pm.dao.db.DAO dao)
                                                                throws com.engiweb.toolkit.common.BackendException,
                                                                       java.io.IOException
        Finds Risk Score pertaining to a given user / assignment, based on the parameters populated in the riskScoreBean. If the userID, entitlementID & accountID are populated in the bean, we end up evaluating the risk score of the assignment. If the userID is the lone field populated in the bean, we end up evaluating the roll-up risk score of the user as a whole.
        Parameters:
        riskScoreBean - CIARiskScoreBean The bean encapsulating the user details, to be used for pulling up the risk details.
        paging - Paging
        dao - DAO the connection dao
        Returns:
        BeanList of CIARiskScoreBean
        Throws:
        com.engiweb.toolkit.common.BackendException
        java.io.IOException
      • addRemediation

        void addRemediation(com.engiweb.pm.entity.BeanList<RemediationBean> blRemBean,
                            UserBean userBean,
                            boolean updateSOD,
                            com.engiweb.pm.dao.db.DAO dao)
                     throws com.engiweb.toolkit.common.BackendException
        Adds remediations to a user.
        Parameters:
        blRemBean - BeanList of RemediationBean. They must be present and uniquely defined
        userBean - UserBean It must be present and uniquely defined
        updateSOD - boolean if true the sod is update
        dao - DAO the connection dao
        Throws:
        com.engiweb.toolkit.common.BackendException - the backend exception
      • removeRemediation

        void removeRemediation(com.engiweb.pm.entity.BeanList<RemediationBean> blRemBean,
                               UserBean userBean,
                               com.engiweb.pm.dao.db.DAO dao)
                        throws com.engiweb.toolkit.common.BackendException
        Removes remediation from a user.
        Parameters:
        blRemBean - BeanList of RemediationBean. They must be present and uniquely defined
        userBean - UserBean It must be present and uniquely defined
        dao - DAO the connection dao
        Throws:
        com.engiweb.toolkit.common.BackendException - the backend exception
      • removeRemediation

        void removeRemediation(com.engiweb.pm.entity.BeanList<RemediationBean> blRemBean,
                               UserBean userBean,
                               com.engiweb.pm.dao.db.DAO dao,
                               boolean removeTemporaryMitigation)
                        throws com.engiweb.toolkit.common.BackendException
        Throws:
        com.engiweb.toolkit.common.BackendException
      • findRiskRemediation

        java.util.HashMap<RiskBean,com.engiweb.pm.entity.BeanList<RemediationBean>> findRiskRemediation(com.engiweb.pm.entity.BeanList<RiskBean> riskList,
                                                                                                        UserBean userBean,
                                                                                                        EnvironmentBean envBean,
                                                                                                        com.engiweb.pm.entity.Paging paging,
                                                                                                        com.engiweb.pm.dao.db.DAO dao)
                                                                                                 throws com.engiweb.toolkit.common.BackendException
        Return the remediations associated to a specific risk of an user
        Parameters:
        riskList - BeanList of RiskBean. They must be present and uniquely defined
        userBean - UserBean It must be present and uniquely defined
        envBean - EnvironmentBean. If null, the working environment is selected automatically
        paging - Paging the paging
        dao - DAO the connection dao
        Returns:
        HashMap
        Throws:
        com.engiweb.toolkit.common.BackendException - the backend exception
      • findApplication

        com.engiweb.pm.entity.BeanList<ApplicationBean> findApplication(ApplicationBean appBean,
                                                                        UserBean userBean,
                                                                        com.engiweb.pm.entity.Paging paging,
                                                                        com.engiweb.pm.dao.db.DAO dao)
                                                                 throws com.engiweb.toolkit.common.BackendException
        Returns the application associated to user.
        Parameters:
        appBean - ApplicationBean used as filer (optional)
        userBean - UserBean It must be present and uniquely defined
        paging - Paging the paging
        dao - DAO the connection dao
        Returns:
        BeanList of ApplicationBean
        Throws:
        com.engiweb.toolkit.common.BackendException - the backend exception
      • findResource

        com.engiweb.pm.entity.BeanList<? extends com.engiweb.pm.web.bean.AbstractBean> findResource(com.engiweb.pm.web.bean.AbstractBean resBean,
                                                                                                    UserBean userBean,
                                                                                                    com.engiweb.pm.entity.BeanList<EntitlementBean> blEntitlementBean,
                                                                                                    int type,
                                                                                                    boolean grouped,
                                                                                                    com.engiweb.pm.entity.Paging paging,
                                                                                                    java.lang.String code_scope,
                                                                                                    com.engiweb.pm.dao.db.DAO dao)
                                                                                             throws com.engiweb.toolkit.common.BackendException
        Return the resources of a specific type given an user
        Parameters:
        resBean - AbstractBean used as filer (optional)
        userBean - UserBean It must be present and uniquely defined
        blEntitlementBean - BeanList of EntitlementBean
        type - int type.
        • 1=inheritable resources of user's ou
        • 2=resources assigned punctually to an user
        • 3=internal resources of OU type
        • 4=internal resources of ENTITLEMENT type
        • 5=internal resources of APPLICATION type
        • 6=internal resources of RESOURCE TYPE type
        • 7=internal resources of RESOURCE FAMILY type
        • 8=internal resources of TASK type
        grouped - boolean type. associated to type=3 allws to search for OU type resources hierarchically higher (true) or all (false)
        paging - Paging the paging
        code_scope - String the code scope
        dao - DAO the connection dao
        Returns:
        the bean list
        Throws:
        com.engiweb.toolkit.common.BackendException - the backend exception
      • findOwnership

        @Deprecated
        com.engiweb.pm.entity.BeanList<com.engiweb.pm.web.bean.AbstractBean> findOwnership(UserBean userBean,
                                                                                                       com.engiweb.pm.dao.db.DAO dao)
                                                                                                throws com.engiweb.toolkit.common.BackendException
        Deprecated. check if is more usefull
        Find ownership.
        Parameters:
        userBean - the user bean
        dao - the dao
        Returns:
        the bean list
        Throws:
        com.engiweb.toolkit.common.BackendException - the backend exception
      • checkPermission

        com.engiweb.pm.entity.BeanList<EntitlementBean> checkPermission(UserBean userBean,
                                                                        EntitlementBean entBean,
                                                                        com.engiweb.pm.dao.db.DAO dao)
                                                                 throws com.engiweb.toolkit.common.BackendException
        Given an user check whether, permission inside the role, is verified or not from target.
        Parameters:
        userBean - UserBean It must be present and uniquely defined
        entBean - EntitlementBean It must be present and uniquely defined
        dao - DAO the connection dao
        Returns:
        BeanList of EntitlementBean
        Throws:
        com.engiweb.toolkit.common.BackendException - the backend exception
      • checkPersonProfileByRole

        com.engiweb.pm.entity.BeanList<PersonProfileBean> checkPersonProfileByRole(UserBean userBean,
                                                                                   EntitlementBean entBean,
                                                                                   EntitlementBean filterEntitlementChild,
                                                                                   java.lang.Long status,
                                                                                   com.engiweb.pm.dao.db.DAO connDao)
                                                                            throws com.engiweb.toolkit.common.BackendException
        Given an user check whether, permission inside the role, is verified or not from target.
        Parameters:
        userBean - UserBean It must be present and uniquely defined
        entBean - EntitlementBean It must be present and uniquely defined
        filterEntitlementChild - EntitlementBean if null no filter is applied, otherwise the passed object is used as filter
        dao - DAO the connection dao
        Returns:
        BeanList of PersonProfileBean
        Throws:
        com.engiweb.toolkit.common.BackendException - the backend exception
      • notifyUserProfile

        void notifyUserProfile(UserBean userBean,
                               EntitlementBean profileBean,
                               java.lang.Long status,
                               java.lang.String verifiedBy,
                               java.util.Date date,
                               com.engiweb.pm.dao.db.DAO dao)
                        throws com.engiweb.toolkit.common.BackendException
        Notify user profile.
        Parameters:
        userBean - UserBean the user
        profileBean - EntitlementBean the profile
        status - Long the status
        verifiedBy - String the verified by
        date - Date the date
        dao - DAO the connection dao
        Throws:
        com.engiweb.toolkit.common.BackendException - the backend exception
      • findOwnerResources

        com.engiweb.pm.entity.BeanList findOwnerResources(com.engiweb.pm.web.bean.AbstractBean resBean,
                                                          UserBean userBean,
                                                          IntResource type,
                                                          com.engiweb.pm.entity.Paging pNew,
                                                          com.engiweb.pm.dao.db.DAO dao)
                                                   throws com.engiweb.toolkit.common.BackendException
        Return the resources of a certain type owned by the specified user
        Parameters:
        resBean - AbstractBean used as filer (optional)
        userBean - UserBean It must be present and uniquely defined
        type - IntResource it's mandatory
        pNew - Paging the paging
        dao - DAO the connection dao
        Returns:
        BeanList of AbstractBean according with resource type searched
        Throws:
        com.engiweb.toolkit.common.BackendException - the backend exception
      • checkPersonProfileServiceByRole

        com.engiweb.pm.entity.BeanList<PersonProfileServiceBean> checkPersonProfileServiceByRole(UserBean userBean,
                                                                                                 EntitlementBean entBean,
                                                                                                 EntitlementBean filterEntitlementChild,
                                                                                                 java.lang.Long status,
                                                                                                 com.engiweb.pm.dao.db.DAO connDao)
                                                                                          throws com.engiweb.toolkit.common.BackendException
        Given an user check whether, rights of permission inside the role, is verified or not from target.
        Parameters:
        userBean - UserBean It must be present and uniquely defined
        entBean - EntitlementBean It must be present and uniquely defined
        dao - DAO the connection dao
        Returns:
        BeanList of PersonProfileServiceBean
        Throws:
        com.engiweb.toolkit.common.BackendException - the backend exception
      • addEntitlementNoDefHierGroup

        void addEntitlementNoDefHierGroup(com.engiweb.pm.entity.BeanList<EntitlementBean> entBL,
                                          com.engiweb.pm.entity.BeanList<UserRightsBean> rightsList,
                                          com.engiweb.pm.entity.BeanList<RemediationBean> blRemBean,
                                          UserBean userBean,
                                          GroupBean groupBean,
                                          boolean checkIncompatibility,
                                          com.engiweb.pm.dao.db.DAO connDao)
                                   throws com.engiweb.toolkit.common.BackendException
        Add entitlements to an user in a group belonging to a non default hierarchy
        Parameters:
        entBeanList - Beanlist of EntitlementBean to add
        rightsList - BeanList of UserRightsBean to assign to the user. If null no right is assigned
        blRemBean - BeanList of RemediationBean to assign to the user. If null no remediation is assigned
        userBean - UserBean It must be present and uniquely defined
        groupBean - GroupBean It must be present and uniquely defined
        checkIncompatibility - boolean type. Check the conflicts and, if it's true and new entitlements create conflicts on user, an exception is returned.
        Throws:
        com.engiweb.toolkit.common.BackendException
      • removeEntitlementNotDefHier

        void removeEntitlementNotDefHier(UserBean user,
                                         GroupBean groupBean,
                                         com.engiweb.pm.entity.BeanList<EntitlementBean> entBL,
                                         com.engiweb.pm.dao.db.DAO connDao)
                                  throws com.engiweb.toolkit.common.BackendException
        Parameters:
        userBean - UserBean It must be present and uniquely defined
        groupBean - GroupBeanIt must be present and uniquely defined.
        entBL - BeanList of EntitlementBean to remove.
        connDao - DAO the connection dao
        Throws:
        com.engiweb.toolkit.common.BackendException - the backend exception
      • findUserAccountMap

        java.util.HashMap<java.lang.String,java.util.HashMap<java.lang.String,java.lang.Boolean>> findUserAccountMap(AccountBean accountBean,
                                                                                                                     UserBean userBean,
                                                                                                                     com.engiweb.pm.dao.db.DAO connDao)
                                                                                                              throws com.engiweb.toolkit.common.BackendException
        Returns HashMap of AccountBean of an user. The map has the Configuration Name as a key, and a value which is a map with a key account name, and a Boolean as is default.
        Parameters:
        accountBean - AccountBean if null no filter is applied, otherwise the passed object is used as filter
        userBean - UserBean It must be present and uniquely defined
        dao - DAO the connection dao
        Returns:
        Map di AccountBean
        Throws:
        com.engiweb.toolkit.common.BackendException - the backend exception
      • checkUserEntitlement

        boolean checkUserEntitlement(java.lang.Long userId,
                                     java.util.ArrayList<java.lang.String> entitlementsName,
                                     com.engiweb.pm.dao.db.DAO connDao)
                              throws com.engiweb.toolkit.common.BackendException
        Throws:
        com.engiweb.toolkit.common.BackendException
      • findFlatUserProfileList

        com.engiweb.pm.entity.BeanList<EntitlementBean> findFlatUserProfileList(ApplicationBean appBean,
                                                                                UserBean userBean,
                                                                                com.engiweb.pm.entity.Paging paging,
                                                                                com.engiweb.pm.dao.db.DAO connDao)
                                                                         throws com.engiweb.toolkit.common.BackendException
        The method returns the Permissions assigned (directly or contained into a BusinessRole or ITRole) to an user and belonging to an application (is specified)
        Parameters:
        applicationBean - Optional
        userBean - Mandatory
        paging -
        connDao -
        Returns:
        Throws:
        com.engiweb.toolkit.common.BackendException
      • findDelegatedEntitlementInGroup

        com.engiweb.pm.entity.BeanList<EntitlementBean> findDelegatedEntitlementInGroup(EntitlementBean entBean,
                                                                                        ApplicationBean appBean,
                                                                                        UserBean represented,
                                                                                        UserBean delegated,
                                                                                        GroupBean groupBean,
                                                                                        HierarchyBean hierarchyBean,
                                                                                        boolean isByRepresented,
                                                                                        com.engiweb.pm.entity.Paging paging,
                                                                                        com.engiweb.pm.dao.db.DAO connDao)
                                                                                 throws com.engiweb.toolkit.common.BackendException
        Throws:
        com.engiweb.toolkit.common.BackendException
      • findDelegatedEntitlementInGroup

        com.engiweb.pm.entity.BeanList<EntitlementBean> findDelegatedEntitlementInGroup(EntitlementBean entBean,
                                                                                        java.util.List<java.lang.Long> entTypes,
                                                                                        ApplicationBean appBean,
                                                                                        UserBean represented,
                                                                                        UserBean delegated,
                                                                                        GroupBean groupBean,
                                                                                        HierarchyBean hierarchyBean,
                                                                                        boolean isByRepresented,
                                                                                        com.engiweb.pm.entity.Paging paging,
                                                                                        com.engiweb.pm.dao.db.DAO connDao)
                                                                                 throws com.engiweb.toolkit.common.BackendException
        Throws:
        com.engiweb.toolkit.common.BackendException