com.engiweb.profilemanager.common.interfaces

Interface IGroupDirect

  • All Superinterfaces:
    common.direct.IDirect


    public interface IGroupDirect
    extends common.direct.IDirect
    The IGroupDirect interface allows a client to retrieve and manage all information about group 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 
      Modifier and Type Method and Description
      void addInNoDefHierGroup(UserBean userBean, GroupBean groupBean, com.engiweb.pm.dao.db.DAO dao)
      Add an existing user (in the ORGANIZATIONAL_UNIT hierarchy) to a group of another hierarchy
      void addProperties(com.engiweb.pm.entity.BeanList<PropertyBean> blPropertyBean, GroupBean groupBean, com.engiweb.pm.dao.db.DAO dao)
      Adds a list of properties to an group
      void addResources(com.engiweb.pm.entity.BeanList<ResourceBean> blResources, GroupBean groupBean, boolean hier, boolean employee, java.lang.String code_scope, com.engiweb.pm.dao.db.DAO dao)
      Adds a list of ResourceBean to an group
      void addRoles(com.engiweb.pm.entity.BeanList<EntitlementBean> blEntitlement, GroupBean groupBean, com.engiweb.profilemanager.common.util.EntitlementStatusOption entitlementStatusOption, boolean hier, boolean alignUserToDef, java.lang.String code_scope, com.engiweb.pm.dao.db.DAO dao)
      Adds a list of entitlements to an group
      void delete(GroupBean groupBean, HierarchyBean hierarchyBean, boolean hier, java.lang.String code_scope, com.engiweb.pm.dao.db.DAO dao)
      Deletes an existing group.
      void deleteType(OUTypeBean ouTypeBean, com.engiweb.pm.dao.db.DAO dao)
      Removes an existing group type.
      com.engiweb.pm.entity.BeanList<GroupBean> find(GroupBean groupBean, HierarchyBean hierarchyBean, GroupBean ouStart, com.engiweb.pm.entity.Paging paging, java.lang.String code_scope, com.engiweb.pm.dao.db.DAO dao)
      Returns the groups filtered by a passed GroupBean object starting from a start OU.
      com.engiweb.pm.entity.BeanList<GroupBean> find(GroupBean groupBean, HierarchyBean hierarchyBean, GroupBean ouStart, TaskBean taskBean, boolean taskHier, com.engiweb.pm.entity.Paging paging, java.lang.String code_scope, com.engiweb.pm.dao.db.DAO dao)
      Returns the groups filtered by a passed GroupBean object starting from a start OU.
      com.engiweb.pm.entity.BeanList<ApplicationBean> findApplication(ApplicationBean appBean, GroupBean groupBean, com.engiweb.pm.entity.Paging paging, java.lang.String code_scope, com.engiweb.pm.dao.db.DAO dao)
      Returns a list of applications associated to entitlements belonging to an group
      com.engiweb.pm.entity.BeanList<ApplicationBean> findApplicationByEntitlement(ApplicationBean appBean, EntitlementBean entBean, GroupBean groupBean, com.engiweb.pm.entity.Paging paging, java.lang.String code_scope, com.engiweb.pm.dao.db.DAO dao)
      Returns a list of applications belonging to an group (punctually or hierarchically) filtered by an entitlement
      com.engiweb.pm.entity.BeanList<EntitlementBean> findEntitlement(EntitlementBean entBean, ApplicationBean appBean, GroupBean groupBean, boolean hier, com.engiweb.pm.entity.Paging paging, java.lang.String code_scope, com.engiweb.pm.dao.db.DAO dao)
      Returns a list of entitlements belonging to an group (punctually or hierarchically) filtered by an application
      com.engiweb.pm.entity.BeanList<EntitlementBean> findEntitlement(EntitlementBean entBean, java.util.List<ApplicationBean> appBeans, GroupBean groupBean, boolean hier, com.engiweb.pm.entity.Paging paging, java.lang.String code_scope, com.engiweb.pm.dao.db.DAO dao)
      Returns a list of entitlements belonging to an group (punctually or hierarchically) filtered by an application
      com.engiweb.pm.entity.BeanList<GroupBean> findInHier(GroupBean groupBean, HierarchyBean hierarchyBean, boolean findAdmin, com.engiweb.pm.entity.Paging paging, java.lang.String code_scope, com.engiweb.pm.dao.db.DAO connDao)
      Returns the children nodes of the passed OU
      com.engiweb.pm.entity.BeanList<GroupBean> findParent(GroupBean ouBean, HierarchyBean hierarchyBean, boolean showAdmin, java.lang.String code_scope, com.engiweb.pm.dao.db.DAO dao)
      Returns the parent tree of the passed OU.
      com.engiweb.pm.entity.BeanList<PropertyBean> findProperty(PropertyBean propertyBean, GroupBean groupBean, com.engiweb.pm.entity.Paging paging, com.engiweb.pm.dao.db.DAO dao)
      Returns a list of properties assigned to an group
      com.engiweb.pm.entity.BeanList<ResourceBean> findResource(ResourceBean resourcBean, GroupBean groupBean, com.engiweb.pm.entity.Paging paging, java.lang.String code_scope, com.engiweb.pm.dao.db.DAO dao)
      Returns the resources filtered by a passed ResourceBean object assigned to an group
      com.engiweb.pm.entity.BeanList<GroupBean> findRoot(HierarchyBean hierarchyBean, com.engiweb.pm.entity.Paging paging, java.lang.String code_scope, com.engiweb.pm.dao.db.DAO dao)
      Returns a list of hierarchy roots
      com.engiweb.pm.entity.BeanList<OUTypeBean> findType(OUTypeBean ouTypeBean, com.engiweb.pm.entity.Paging paging, com.engiweb.pm.dao.db.DAO dao)
      Returns the group types filtered by a passed OUTypeBean object
      com.engiweb.pm.entity.BeanList<UserBean> findUser(UserBean userBean, EntitlementBean entitlementBean, GroupBean groupBean, HierarchyBean hierarchyBean, boolean hier, com.engiweb.pm.entity.Paging paging, java.lang.String code_scope, com.engiweb.pm.dao.db.DAO dao)
      Returns a list of users filtered by entitlement belonging to an group or one of its sons (if hier is true)
      com.engiweb.pm.entity.BeanList<UserBean> findUser(UserBean userBean, EntitlementBean entitlementBean, GroupBean groupBean, HierarchyBean hierarchyBean, boolean hier, TaskBean taskBean, boolean taskHier, com.engiweb.pm.entity.Paging paging, java.lang.String code_scope, com.engiweb.pm.dao.db.DAO dao)
      Returns a list of users filtered by entitlement belonging to an group or one of its sons (if hier is true)
      com.engiweb.pm.entity.BeanList<UserBean> findUser(UserBean userBean, EntitlementBean entitlementBean, java.util.List<GroupBean> listOUBean, HierarchyBean hierarchyBean, boolean hier, com.engiweb.pm.entity.Paging paging, com.engiweb.pm.dao.db.DAO dao) 
      com.engiweb.pm.entity.BeanList<UserBean> findUser(UserBean userBean, EntitlementBean entitlementBean, java.util.List<GroupBean> listOUBean, HierarchyBean hierarchyBean, boolean hier, TaskBean taskBean, boolean taskHier, com.engiweb.pm.entity.Paging paging, com.engiweb.pm.dao.db.DAO dao) 
      com.engiweb.pm.entity.BeanList<UserBean> findUserWithoutGroup(UserBean userBean, HierarchyBean hierarchyBean, com.engiweb.pm.entity.Paging paging, com.engiweb.pm.dao.db.DAO dao) 
      GroupBean insert(GroupBean groupBean, HierarchyBean hierarchyBean, GroupBean groupParentBean, boolean parentEntitlements, boolean parentResources, java.lang.String code_scope, com.engiweb.pm.dao.db.DAO dao)
      Adds a new group, if it not exists yet, to the group tree.
      OUTypeBean insertType(OUTypeBean ouTypeBean, com.engiweb.pm.dao.db.DAO dao)
      Adds a new organization unit type if it not exists yet.
      void modifyRoles(com.engiweb.pm.entity.BeanList<EntitlementBean> blEntitlement, GroupBean groupBean, com.engiweb.profilemanager.common.util.EntitlementStatusOption entitlementStatusOption, boolean hier, boolean alignUserToDef, java.lang.String code_scope, com.engiweb.pm.dao.db.DAO connDao)
      Updates Default, VisibilityViolation and/or enabled property from a list of entitlements belonging to a group
      void modifySOD(GroupBean groupBean, HierarchyBean hierarchyBean, boolean enableSOD, boolean hier, java.lang.String code_scope, com.engiweb.pm.dao.db.DAO dao)
      Modify SOD on the group punctually or hierarchically
      void removeFromNoDefHierGroup(UserBean userBean, GroupBean groupBean, com.engiweb.pm.dao.db.DAO dao)
      Remove an user from a group belonging to a not default hierarchy (hierarchy id<>1)
      void removeProperties(com.engiweb.pm.entity.BeanList<PropertyBean> blPropertyBean, GroupBean groupBean, com.engiweb.pm.dao.db.DAO dao)
      Removes a list of properties from an application
      void removeResources(com.engiweb.pm.entity.BeanList<ResourceBean> blResources, GroupBean groupBean, boolean hier, java.lang.String code_scope, com.engiweb.pm.dao.db.DAO dao)
      Removes a list of ResourceBean from an group
      void removeRoles(com.engiweb.pm.entity.BeanList<EntitlementBean> entBl, GroupBean groupBean, boolean hier, java.lang.String code_scope, com.engiweb.pm.dao.db.DAO dao)
      Removes a list of entitlements from an group
      GroupBean update(GroupBean groupBean, GroupBean ouParentBean, java.lang.String code_scope, com.engiweb.pm.dao.db.DAO dao)
      Updates an existing group
      void updateType(OUTypeBean ouTypeBean, com.engiweb.pm.dao.db.DAO dao)
      Updates an existing ou type
      • Methods inherited from interface common.direct.IDirect

        checkAB, deleteAB, insertAB, modifyAB, openDAO, openDAO
    • Method Detail

      • insert

        GroupBean insert(GroupBean groupBean,
                         HierarchyBean hierarchyBean,
                         GroupBean groupParentBean,
                         boolean parentEntitlements,
                         boolean parentResources,
                         java.lang.String code_scope,
                         com.engiweb.pm.dao.db.DAO dao)
                  throws com.engiweb.toolkit.common.BackendException
        Adds a new group, if it not exists yet, to the group tree. Organization unit parent is mandatory.
        Parameters:
        groupBean - GroupBean to add (mandatory)
        hierarchyBean - HierarchyBean mandatory
        groupParentBean - GroupBean parent of the new group.It must be present and uniquely defined.
        parentEntitlements - If true, all entitlements belonging to parent OU will be assigned to the new child OU
        parentResources - If true, all resources belonging to parent OU will be assigned to the new child OU
        code_scope -
        dao -
        Returns:
        GroupBean added
        Throws:
        com.engiweb.toolkit.common.BackendException
      • update

        GroupBean update(GroupBean groupBean,
                         GroupBean ouParentBean,
                         java.lang.String code_scope,
                         com.engiweb.pm.dao.db.DAO dao)
                  throws com.engiweb.toolkit.common.BackendException
        Updates an existing group
        Parameters:
        groupBean - GroupBean to update (mandatory)
        ouParentBean - GroupBean parent of the updated group.It must be present and uniquely defined.
        code_scope -
        dao -
        Throws:
        com.engiweb.toolkit.common.BackendException
      • delete

        void delete(GroupBean groupBean,
                    HierarchyBean hierarchyBean,
                    boolean hier,
                    java.lang.String code_scope,
                    com.engiweb.pm.dao.db.DAO dao)
             throws com.engiweb.toolkit.common.BackendException
        Deletes an existing group.
        Parameters:
        groupBean - GroupBean to delete (mandatory). If OU is not a leaf, then all nested OUs will be assigned to its associated parent OU
        hierarchyBean - mandatory
        boolean - hier: if true group and its sons will be deleted
        code_scope -
        dao -
        Throws:
        com.engiweb.toolkit.common.BackendException
      • find

        com.engiweb.pm.entity.BeanList<GroupBean> find(GroupBean groupBean,
                                                       HierarchyBean hierarchyBean,
                                                       GroupBean ouStart,
                                                       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 the groups filtered by a passed GroupBean object starting from a start OU. Is startOU is null or not uniquely defined, the start OU is defined according to user visibility
        Parameters:
        GroupBean - groupBean: if null no filter is applied, otherwise the passed object is used as filter
        hierarchyBean - HierarchyBean manadatory
        GroupBean - ouStart: OU from which research must be performed. If null or id or code is not set start OU is defined according to user visibility
        Paging - paging: Paging
        code_scope -
        dao -
        Returns:
        BeanList of GroupBean
        Throws:
        com.engiweb.toolkit.common.BackendException
      • find

        com.engiweb.pm.entity.BeanList<GroupBean> find(GroupBean groupBean,
                                                       HierarchyBean hierarchyBean,
                                                       GroupBean ouStart,
                                                       TaskBean taskBean,
                                                       boolean taskHier,
                                                       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 the groups filtered by a passed GroupBean object starting from a start OU. Is startOU is null or not uniquely defined, the start OU is defined according to user visibility
        Parameters:
        groupBean - GroupBean: if null no filter is applied, otherwise the passed object is used as filter
        hierarchyBean - HierarchyBean manadatory
        ouStart - GroupBean: OU from which research must be performed. If null or id or code is not set start OU is defined according to user visibility
        taskBean - TaskBean: if null no filter is applied, otherwise the passed object is used as filter
        taskHier - boolean: if true resources will be add to group in hierarchical mode
        Paging - paging: Paging
        code_scope -
        dao -
        Returns:
        BeanList of GroupBean
        Throws:
        com.engiweb.toolkit.common.BackendException
      • addResources

        void addResources(com.engiweb.pm.entity.BeanList<ResourceBean> blResources,
                          GroupBean groupBean,
                          boolean hier,
                          boolean employee,
                          java.lang.String code_scope,
                          com.engiweb.pm.dao.db.DAO dao)
                   throws com.engiweb.toolkit.common.BackendException
        Adds a list of ResourceBean to an group
        Parameters:
        BeanList - blResources: BeanList of ResourceBean to add. Resources must be present and uniquely defined.
        GroupBean - groupBean: GroupBean to which add resources. It must be present and uniquely defined.
        boolean - hier: if true resources will be add to group in hierarchical mode.
        boolean - employ: if true resources will be assigned to all employments according with passed OU
        Throws:
        com.engiweb.toolkit.common.BackendException
      • removeResources

        void removeResources(com.engiweb.pm.entity.BeanList<ResourceBean> blResources,
                             GroupBean groupBean,
                             boolean hier,
                             java.lang.String code_scope,
                             com.engiweb.pm.dao.db.DAO dao)
                      throws com.engiweb.toolkit.common.BackendException
        Removes a list of ResourceBean from an group
        Parameters:
        BeanList - blResources: BeanList of ResourceBean to remove. Resources must be present and uniquely defined.
        GroupBean - groupBean: GroupBean from which remove resources. It must be present and uniquely defined.
        boolean - hier: if true resources will be will be removed from group in hierarchical mode.
        code_scope -
        dao -
        Throws:
        com.engiweb.toolkit.common.BackendException
      • findResource

        com.engiweb.pm.entity.BeanList<ResourceBean> findResource(ResourceBean resourcBean,
                                                                  GroupBean groupBean,
                                                                  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 the resources filtered by a passed ResourceBean object assigned to an group
        Parameters:
        ResourceBean - resourcBean: if null no filter is applied, otherwise the passed object is used as filter
        GroupBean - groupBean: GroupBean in which to search for the resources
        Paging - paging: Paging
        code_scope -
        dao -
        Returns:
        BeanList of ResourceBean
        Throws:
        com.engiweb.toolkit.common.BackendException
      • findParent

        com.engiweb.pm.entity.BeanList<GroupBean> findParent(GroupBean ouBean,
                                                             HierarchyBean hierarchyBean,
                                                             boolean showAdmin,
                                                             java.lang.String code_scope,
                                                             com.engiweb.pm.dao.db.DAO dao)
                                                      throws com.engiweb.toolkit.common.BackendException
        Returns the parent tree of the passed OU. Explore the OU tree tracing and returning the passed ou parents The path ends when the scope of the user is reached.
        Parameters:
        GroupBean - groupBean: GroupBean that you want to find the parent tree. It must be present end uniquely defined
        hierarchyBean - HierarchyBean mandatory
        boolean - showAdmin: if true returs the ou's administrators
        code_scope -
        dao -
        Returns:
        BeanList of GroupBean
        Throws:
        com.engiweb.toolkit.common.BackendException
      • findInHier

        com.engiweb.pm.entity.BeanList<GroupBean> findInHier(GroupBean groupBean,
                                                             HierarchyBean hierarchyBean,
                                                             boolean findAdmin,
                                                             com.engiweb.pm.entity.Paging paging,
                                                             java.lang.String code_scope,
                                                             com.engiweb.pm.dao.db.DAO connDao)
                                                      throws com.engiweb.toolkit.common.BackendException
        Returns the children nodes of the passed OU
        Parameters:
        groupBean: - GroupBean that you want to find the sons. It must be present end uniquely defined
        hierarchyBean - HierarchyBean mandatory
        boolean - findAdmin: set true if you want to retrieve the aministraotr associated to the ous
        code_scope -
        dao -
        Returns:
        BeanList of GroupBean
        Throws:
        com.engiweb.toolkit.common.BackendException
      • insertType

        OUTypeBean insertType(OUTypeBean ouTypeBean,
                              com.engiweb.pm.dao.db.DAO dao)
                       throws com.engiweb.toolkit.common.BackendException
        Adds a new organization unit type if it not exists yet.
        Parameters:
        ouTypeBean: - OUTypeBean to insert (mandatory). The group type name is a mandatory field.
        dao -
        Returns:
        GroupBean created
        Throws:
        com.engiweb.toolkit.common.BackendException
      • updateType

        void updateType(OUTypeBean ouTypeBean,
                        com.engiweb.pm.dao.db.DAO dao)
                 throws com.engiweb.toolkit.common.BackendException
        Updates an existing ou type
        Parameters:
        ouTypeBean: - OUTypeBean to update (mandatory).It must be present and uniquely defined.
        dao -
        Throws:
        com.engiweb.toolkit.common.BackendException
      • deleteType

        void deleteType(OUTypeBean ouTypeBean,
                        com.engiweb.pm.dao.db.DAO dao)
                 throws com.engiweb.toolkit.common.BackendException
        Removes an existing group type. When an OU type is removed, ou type of groups having that type is set to null
        Parameters:
        OUTypeBean - ouTypeBean: OUTypeBean to delete (mandatory).It must be present and uniquely defined.
        dao -
        Throws:
        com.engiweb.toolkit.common.BackendException
      • findType

        com.engiweb.pm.entity.BeanList<OUTypeBean> findType(OUTypeBean ouTypeBean,
                                                            com.engiweb.pm.entity.Paging paging,
                                                            com.engiweb.pm.dao.db.DAO dao)
                                                     throws com.engiweb.toolkit.common.BackendException
        Returns the group types filtered by a passed OUTypeBean object
        Parameters:
        OUTypeBean - ouTypeBean: if null no filter is applied, otherwise the passed object is used as filter
        Paging - paging: Paging
        dao -
        Returns:
        BeanList of OUTypeBean
        Throws:
        com.engiweb.toolkit.common.BackendException
      • findUser

        com.engiweb.pm.entity.BeanList<UserBean> findUser(UserBean userBean,
                                                          EntitlementBean entitlementBean,
                                                          GroupBean groupBean,
                                                          HierarchyBean hierarchyBean,
                                                          boolean hier,
                                                          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 a list of users filtered by entitlement belonging to an group or one of its sons (if hier is true)
        Parameters:
        userBean: - 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
        groupBean: - GroupBean can be null, in that case user unassigned to any group are returned
        hierarchyBean - : HierarchyBean mandatory
        boolean - hier: if true the research is performed hierarchically
        Paging - paging: Paging
        code_scope -
        dao -
        Returns:
        BeanList of UserBean
        Throws:
        com.engiweb.toolkit.common.BackendException
      • findUser

        com.engiweb.pm.entity.BeanList<UserBean> findUser(UserBean userBean,
                                                          EntitlementBean entitlementBean,
                                                          GroupBean groupBean,
                                                          HierarchyBean hierarchyBean,
                                                          boolean hier,
                                                          TaskBean taskBean,
                                                          boolean taskHier,
                                                          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 a list of users filtered by entitlement belonging to an group or one of its sons (if hier is true)
        Parameters:
        userBean: - 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
        groupBean: - GroupBean can be null, in that case user unassigned to any group are returned
        hierarchyBean - : HierarchyBean mandatory
        boolean - hier: if true the research is performed hierarchically
        Paging - paging: Paging
        code_scope -
        dao -
        Returns:
        BeanList of UserBean
        Throws:
        com.engiweb.toolkit.common.BackendException
      • findUser

        com.engiweb.pm.entity.BeanList<UserBean> findUser(UserBean userBean,
                                                          EntitlementBean entitlementBean,
                                                          java.util.List<GroupBean> listOUBean,
                                                          HierarchyBean hierarchyBean,
                                                          boolean hier,
                                                          com.engiweb.pm.entity.Paging paging,
                                                          com.engiweb.pm.dao.db.DAO dao)
                                                   throws com.engiweb.toolkit.common.BackendException
        Parameters:
        userBean: - 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
        listOUBean -
        hierarchyBean - : HierarchyBean mandatory
        boolean - hier: if true the research is performed hierarchically
        Paging - paging: Paging
        code_scope -
        dao -
        Returns:
        BeanList of UserBean
        Throws:
        com.engiweb.toolkit.common.BackendException
      • findUser

        com.engiweb.pm.entity.BeanList<UserBean> findUser(UserBean userBean,
                                                          EntitlementBean entitlementBean,
                                                          java.util.List<GroupBean> listOUBean,
                                                          HierarchyBean hierarchyBean,
                                                          boolean hier,
                                                          TaskBean taskBean,
                                                          boolean taskHier,
                                                          com.engiweb.pm.entity.Paging paging,
                                                          com.engiweb.pm.dao.db.DAO dao)
                                                   throws com.engiweb.toolkit.common.BackendException
        Parameters:
        userBean: - 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
        listOUBean -
        hierarchyBean - : HierarchyBean mandatory
        boolean - hier: if true the research is performed hierarchically
        taskBean - : TaskBean if null no filter is applied, otherwise the passed object is used as filter
        boolean - taskHier: if true the research is performed hierarchically
        Paging - paging: Paging
        code_scope -
        dao -
        Returns:
        BeanList of UserBean
        Throws:
        com.engiweb.toolkit.common.BackendException
      • findUserWithoutGroup

        com.engiweb.pm.entity.BeanList<UserBean> findUserWithoutGroup(UserBean userBean,
                                                                      HierarchyBean hierarchyBean,
                                                                      com.engiweb.pm.entity.Paging paging,
                                                                      com.engiweb.pm.dao.db.DAO dao)
                                                               throws com.engiweb.toolkit.common.BackendException
        Parameters:
        userBean -
        hierarchyBean -
        paging -
        dao -
        Returns:
        Throws:
        com.engiweb.toolkit.common.BackendException
      • addRoles

        void addRoles(com.engiweb.pm.entity.BeanList<EntitlementBean> blEntitlement,
                      GroupBean groupBean,
                      com.engiweb.profilemanager.common.util.EntitlementStatusOption entitlementStatusOption,
                      boolean hier,
                      boolean alignUserToDef,
                      java.lang.String code_scope,
                      com.engiweb.pm.dao.db.DAO dao)
               throws com.engiweb.toolkit.common.BackendException
        Adds a list of entitlements to an group
        Parameters:
        alignUserToDef -
        blEntitlement: - BeanList of EntitlementBean on which can be set some properties (DEFAULT, VISIBILITY_VIOLATION, ENALBLED). Entitlements must be present and uniquely defined
        groupBean: - GroupBean must be present and uniquely defined
        entitlementStatusOption - : EntitlementStatusOption entitlement properties that have to be set
        boolean - hier: if true adds is performed hierarchically
        code_scope -
        dao -
        Throws:
        com.engiweb.toolkit.common.BackendException
      • modifyRoles

        void modifyRoles(com.engiweb.pm.entity.BeanList<EntitlementBean> blEntitlement,
                         GroupBean groupBean,
                         com.engiweb.profilemanager.common.util.EntitlementStatusOption entitlementStatusOption,
                         boolean hier,
                         boolean alignUserToDef,
                         java.lang.String code_scope,
                         com.engiweb.pm.dao.db.DAO connDao)
                  throws com.engiweb.toolkit.common.BackendException
        Updates Default, VisibilityViolation and/or enabled property from a list of entitlements belonging to a group
        Parameters:
        blEntitlement: - BeanList of EntitlementBean on which EntitlementStatusOption properties can be updated. Entitlements must be present and uniquely
        groupBean: - GroupBean must be present and uniquely defined
        entitlementStatusOption - : EntitlementStatusOption entitlement properties that must/can be updated
        boolean - hier: if true updates is performed hierarchically
        boolean - alignUserToDef: true if roles must to be assigned to already present OU users
        code_scope -
        dao -
        Throws:
        com.engiweb.toolkit.common.BackendException
      • removeRoles

        void removeRoles(com.engiweb.pm.entity.BeanList<EntitlementBean> entBl,
                         GroupBean groupBean,
                         boolean hier,
                         java.lang.String code_scope,
                         com.engiweb.pm.dao.db.DAO dao)
                  throws com.engiweb.toolkit.common.BackendException
        Removes a list of entitlements from an group
        Parameters:
        blEntitlement: - BeanList of EntitlementBean to remove, They must be present and uniquely defined
        groupBean: - GroupBean must be present and uniquely defined
        boolean - hier: if true removal operation is performed hierarchically
        code_scope -
        dao -
        Throws:
        com.engiweb.toolkit.common.BackendException
      • findApplication

        com.engiweb.pm.entity.BeanList<ApplicationBean> findApplication(ApplicationBean appBean,
                                                                        GroupBean groupBean,
                                                                        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 a list of applications associated to entitlements belonging to an group
        Parameters:
        appBean: - ApplicationBean if null no filter is applied, otherwise the passed object is used as filter
        groupBean:{@link - GroupBean} must be present and uniquely defined
        Paging - paging: Paging
        code_scope -
        dao -
        Returns:
        BeanList of ApplicationBean
        Throws:
        com.engiweb.toolkit.common.BackendException
      • modifySOD

        void modifySOD(GroupBean groupBean,
                       HierarchyBean hierarchyBean,
                       boolean enableSOD,
                       boolean hier,
                       java.lang.String code_scope,
                       com.engiweb.pm.dao.db.DAO dao)
                throws com.engiweb.toolkit.common.BackendException
        Modify SOD on the group punctually or hierarchically
        Parameters:
        groupBean - GroupBean if null the group in the user scope is used
        hierarchyBean - HierarchyBean mandatory
        enableSOD - if true SOD is enabled
        boolean - hier: if true modify is performed hierarchically
        code_scope -
        dao -
        Throws:
        com.engiweb.toolkit.common.BackendException
      • removeProperties

        void removeProperties(com.engiweb.pm.entity.BeanList<PropertyBean> blPropertyBean,
                              GroupBean groupBean,
                              com.engiweb.pm.dao.db.DAO dao)
                       throws com.engiweb.toolkit.common.BackendException
        Removes a list of properties from an application
        Parameters:
        blPropertyBean: - BeanList of PropertyBean to remove from application.
        groupBean:{@link - GroupBean} must be present and uniquely defined
        dao -
        Throws:
        com.engiweb.toolkit.common.BackendException
      • findProperty

        com.engiweb.pm.entity.BeanList<PropertyBean> findProperty(PropertyBean propertyBean,
                                                                  GroupBean groupBean,
                                                                  com.engiweb.pm.entity.Paging paging,
                                                                  com.engiweb.pm.dao.db.DAO dao)
                                                           throws com.engiweb.toolkit.common.BackendException
        Returns a list of properties assigned to an group
        Parameters:
        propertyBean: - PropertyBean if null no filter is applied, otherwise the passed object is used as filter
        groupBean:{@link - GroupBean} must be present and uniquely defined
        paging: - Paging
        dao -
        Returns:
        BeanList di PropertyBean
        Throws:
        com.engiweb.toolkit.common.BackendException
      • addProperties

        void addProperties(com.engiweb.pm.entity.BeanList<PropertyBean> blPropertyBean,
                           GroupBean groupBean,
                           com.engiweb.pm.dao.db.DAO dao)
                    throws com.engiweb.toolkit.common.BackendException
        Adds a list of properties to an group
        Parameters:
        blPropertyBean: - BeanList of PropertyBean to add to group
        groupBean:{@link - GroupBean} must be present and uniquely defined
        dao -
        Throws:
        com.engiweb.toolkit.common.BackendException
      • findEntitlement

        com.engiweb.pm.entity.BeanList<EntitlementBean> findEntitlement(EntitlementBean entBean,
                                                                        ApplicationBean appBean,
                                                                        GroupBean groupBean,
                                                                        boolean hier,
                                                                        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 a list of entitlements belonging to an group (punctually or hierarchically) filtered by an application
        Parameters:
        entBean: - EntitlementBean if null no filter is applied, otherwise the passed object is used as filter
        appBean:{@link - ApplicationBean} if null no filter is applied, otherwise the passed object is used as filter
        GroupBean - groupBean:GroupBean must be present and uniquely defined // * @param hierarchyBean // * mandatoryHierarchyBean
        hier - if true research is performed hierarchically
        paging - paging: Paging
        code_scope -
        dao -
        Returns:
        BeanList of EntitlementBean
        Throws:
        com.engiweb.toolkit.common.BackendException
      • findApplicationByEntitlement

        com.engiweb.pm.entity.BeanList<ApplicationBean> findApplicationByEntitlement(ApplicationBean appBean,
                                                                                     EntitlementBean entBean,
                                                                                     GroupBean groupBean,
                                                                                     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 a list of applications belonging to an group (punctually or hierarchically) filtered by an entitlement
        Parameters:
        appBean: - ApplicationBean if null no filter is applied, otherwise the passed object is used as filter
        entBean: - EntitlementBean if null no filter is applied, otherwise the passed object is used as filter
        groupBean - GroupBean must be present and uniquely defined // * @param hierarchyBean // * HierarchyBean must be present and uniquely defined
        paging - paging: Paging
        code_scope -
        dao -
        Returns:
        BeanList of EntitlementBean
        Throws:
        com.engiweb.toolkit.common.BackendException
      • findEntitlement

        com.engiweb.pm.entity.BeanList<EntitlementBean> findEntitlement(EntitlementBean entBean,
                                                                        java.util.List<ApplicationBean> appBeans,
                                                                        GroupBean groupBean,
                                                                        boolean hier,
                                                                        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 a list of entitlements belonging to an group (punctually or hierarchically) filtered by an application
        Parameters:
        entBean: - EntitlementBeanif null no filter is applied, otherwise the passed object is used as filter
        appBeans: - List of ApplicationBean null no filter is applied, otherwise the passed object is used as filter
        groupBean:{@link - GroupBean} must be present and uniquely defined // * @param hierarchyBean // * mandatoryHierarchyBean
        hier - if true research is performed hierarchically
        paging - paging: Paging
        code_scope -
        dao -
        Returns:
        BeanList of EntitlementBean
        Throws:
        com.engiweb.toolkit.common.BackendException
      • findRoot

        com.engiweb.pm.entity.BeanList<GroupBean> findRoot(HierarchyBean hierarchyBean,
                                                           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 a list of hierarchy roots
        Parameters:
        hierarchyBean - HierarchyBean must be present and uniquely defined
        paging - Paging
        code_scope -
        dao -
        Returns:
        BeanList of GroupBean
        Throws:
        com.engiweb.toolkit.common.BackendException
      • addInNoDefHierGroup

        void addInNoDefHierGroup(UserBean userBean,
                                 GroupBean groupBean,
                                 com.engiweb.pm.dao.db.DAO dao)
                          throws com.engiweb.toolkit.common.BackendException
        Add an existing user (in the ORGANIZATIONAL_UNIT hierarchy) to a group of another hierarchy
        Parameters:
        userBean - UserBean must be present and uniquely defined
        groupBean - GroupBean must be present and uniquely defined
        dao -
        Throws:
        com.engiweb.toolkit.common.BackendException
      • removeFromNoDefHierGroup

        void removeFromNoDefHierGroup(UserBean userBean,
                                      GroupBean groupBean,
                                      com.engiweb.pm.dao.db.DAO dao)
                               throws com.engiweb.toolkit.common.BackendException
        Remove an user from a group belonging to a not default hierarchy (hierarchy id<>1)
        Parameters:
        userBean - UserBean must be present and uniquely defined
        groupBean - GroupBean must be present and uniquely defined
        dao -
        Throws:
        com.engiweb.toolkit.common.BackendException