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
    • Field Summary

      Fields 
      Modifier and Type Field and Description
      static java.lang.String COPYRIGHT
      Copyright
    • Method Summary

      All Methods Instance Methods Abstract Methods Deprecated Methods 
      Modifier and Type Method and Description
      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)
      Adds a list of entitlements delegated to a user.
      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)
      Deprecated. 
      replaced by #addEntitlementByGroup(BeanList, BeanList, BeanList, UserBean, GroupBean, boolean, String, String, String)
      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)
      Insert a list of entitlements
      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)
      Add entitlements to an user in a group belonging to a non default hierarchy
      void addRemediation(com.engiweb.pm.entity.BeanList<RemediationBean> blRemBean, UserBean userBean, boolean updateSOD, com.engiweb.pm.dao.db.DAO dao)
      Adds remediations to a user.
      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)
      Add a list of resources to an user.
      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)
      Add a list of resources to an user.
      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)
      Add a list of services to an user
      com.engiweb.pm.entity.BeanList<EntitlementBean> checkPermission(UserBean userBean, EntitlementBean entBean, com.engiweb.pm.dao.db.DAO dao)
      Given an user check whether, permission inside the role, is verified or not from target.
      com.engiweb.pm.entity.BeanList<PersonProfileBean> checkPersonProfileByRole(UserBean userBean, EntitlementBean entBean, EntitlementBean filterEntitlementChild, java.lang.Long status, com.engiweb.pm.dao.db.DAO connDao)
      Given an user check whether, permission inside the role, is verified or not from target.
      com.engiweb.pm.entity.BeanList<PersonProfileServiceBean> checkPersonProfileServiceByRole(UserBean userBean, EntitlementBean entBean, EntitlementBean filterEntitlementChild, java.lang.Long status, com.engiweb.pm.dao.db.DAO connDao)
      Given an user check whether, rights of permission inside the role, is verified or not from target.
      void delete(UserBean userBean, java.lang.String code_scope, com.engiweb.pm.dao.db.DAO dao)
      Deletes an existing user.
      com.engiweb.pm.entity.BeanList<UserBean> find(UserBean userBean, com.engiweb.pm.entity.Paging paging, com.engiweb.pm.dao.db.DAO dao)
      Returns the users filtered by a specified user
      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)
      Returns BeanList of AccountBean of an user.
      com.engiweb.pm.entity.BeanList<ApplicationBean> findApplication(ApplicationBean appBean, UserBean userBean, com.engiweb.pm.entity.Paging paging, com.engiweb.pm.dao.db.DAO dao)
      Returns the application associated to user.
      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)
      Returns a list of entitlements a delegated user has been delegated from a represented.
      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)
      Returns a list of users delegated by a represented user filtered by entitlement.
      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)
      Returns a list of users delegated by a represented user filtered by profile type entitlement.
      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)
      Returns a list of entitlements a represended user gave delegated.
      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) 
      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)
      Returns entitlements assigned to an user filtered by an application.
      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)
      Returns entitlements assigned to an user on the default hierarchy filtered by an application.
      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)
      Returns a BeanList of GroupBean an user belong
      com.engiweb.pm.entity.BeanList<OrgUnitBean> findOU(UserBean userBean, java.lang.String code_scope, com.engiweb.pm.dao.db.DAO dao)
      Deprecated. 
      replaced by #findGroup(UserBean, String, String)
      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)
      Return the resources of a certain type owned by the specified user
      com.engiweb.pm.entity.BeanList<com.engiweb.pm.web.bean.AbstractBean> findOwnership(UserBean userBean, com.engiweb.pm.dao.db.DAO dao)
      Deprecated. 
      check if is more usefull
      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)
      Returns the user personal data as an HashMap with the name of the field as key and the user's personal data as field.
      com.engiweb.pm.entity.BeanList<EntitlementBean> findProfile(EntitlementBean profileBean, UserBean userBean, com.engiweb.pm.entity.Paging paging, com.engiweb.pm.dao.db.DAO dao)
      Find profile of a specified user .
      com.engiweb.pm.entity.BeanList<RemediationBean> findRemediation(RemediationBean remBean, UserBean userBean, com.engiweb.pm.entity.Paging paging, com.engiweb.pm.dao.db.DAO dao)
      Adds remediations to a user.
      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)
      Returns a list of entitlements a delegated user has been delegated from a represented.
      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)
      Return the resources of a specific type given an user
      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)
      Returns resources assigned to an user
      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)
      Returns user resources assigned to an entitlement having a given entitlement of profile type
      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)
      Return the remediations associated to a specific risk of an user
      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)
      Find service pending.
      com.engiweb.pm.entity.BeanList<UserExtInfoBean> findUserExtInfo(UserBean userBean, boolean onlyVisible, com.engiweb.pm.dao.db.DAO dao)
      Returns the user external info associated to the user and properly valued.
      com.engiweb.pm.entity.BeanList<UserExtInfoBean> getSelectedExtInfo(com.engiweb.pm.dao.db.DAO dao)
      Returns the user external info.
      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)
      Deprecated. 
      replaced by #insertByGroup(UserBean, BeanList, GroupBean, String, String)
      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)
      Adds a new user, if it not exists yet.
      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)
      Deprecated. 
      replaced by #moveUserByGroup(BeanList, GroupBean, HierarchyBean, GroupBean, int, String, String)
      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)
      Move a list of users from a group hierarchy to another one.
      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)
      Notify user profile.
      void removeDelegatedEnt(UserBean delegatedUser, UserBean representedUser, com.engiweb.pm.entity.BeanList<EntitlementBean> blEntitlementBean, com.engiweb.pm.dao.db.DAO dao)
      Removes a list of entitlements delegated to a user.
      void removeEntitlement(com.engiweb.pm.entity.BeanList<EntitlementBean> blEntitlementBean, java.lang.Integer directlyAssigned, UserBean userBean, com.engiweb.pm.dao.db.DAO dao)
      Removes a list of roles from an user.
      void removeEntitlement(com.engiweb.pm.entity.BeanList<EntitlementBean> blEntitlementBean, UserBean userBean, com.engiweb.pm.dao.db.DAO dao)
      void removeEntitlement(com.engiweb.pm.entity.BeanList<EntitlementBean> entBeanList, UserBean userBean, GroupBean groupBean, com.engiweb.pm.dao.db.DAO connDao)
      Removes a list of entitlements from an user.
      void removeEntitlement(com.engiweb.pm.entity.BeanList<EntitlementBean> entBeanList, UserBean userBean, HierarchyBean hierarchyBean, com.engiweb.pm.dao.db.DAO connDao)
      Removes a list of entitlements from an user in all the groups belonging to the hierarchy.
      void removeEntitlementNotDefHier(UserBean user, GroupBean groupBean, com.engiweb.pm.entity.BeanList<EntitlementBean> entBL, com.engiweb.pm.dao.db.DAO connDao) 
      void removeRemediation(com.engiweb.pm.entity.BeanList<RemediationBean> blRemBean, UserBean userBean, com.engiweb.pm.dao.db.DAO dao)
      Removes remediation from a user.
      void removeResource(UserBean userBean, EntitlementBean entitlementBean, com.engiweb.pm.entity.BeanList blResources, com.engiweb.pm.dao.db.DAO dao)
      Add a list of resources from an user.
      void removeServicePending(java.lang.String request, UserBean userBean, com.engiweb.pm.dao.db.DAO dao)
      Removes services related to a request to an user.
      UserBean update(UserBean userBean, com.engiweb.pm.entity.BeanList<UserExtInfoBean> extInfoBeanList, com.engiweb.pm.dao.db.DAO dao)
      Updates an existing user.Also updates of external properies is possible setting a list of user external info
      • Methods inherited from interface common.direct.IDirect

        checkAB, deleteAB, insertAB, modifyAB, openDAO, openDAO
    • 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
      • 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 the paging
        dao - DAO the connection dao
        Returns:
        BeanList of UserBean
        Throws:
        com.engiweb.toolkit.common.BackendException - the backend exception
      • 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

        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
        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
      • 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
      • 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 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
      • 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
      • 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
      • 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