com.engiweb.profilemanager.common.interfaces

Interface IOrgUnitDirect

  • All Superinterfaces:
    common.direct.IDirect


    public interface IOrgUnitDirect
    extends common.direct.IDirect
    The IOrgUnit interface allows a client to retrieve and manage all information about organization unit 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 addProperties(com.engiweb.pm.entity.BeanList<PropertyBean> blPropertyBean, OrgUnitBean orgUnitBean, com.engiweb.pm.dao.db.DAO dao)
      Adds a list of properties to an organization unit.
      void addResources(com.engiweb.pm.entity.BeanList<ResourceBean> blResources, OrgUnitBean orgUnitBean, boolean hier, boolean employee, java.lang.String code_scope, com.engiweb.pm.dao.db.DAO dao)
      Adds a list of ResourceBean to an organization unit.
      void addRoles(com.engiweb.pm.entity.BeanList<EntitlementBean> blEntitlement, OrgUnitBean orgUnitBean, boolean hier, boolean alignUserToDef, java.lang.String code_scope, com.engiweb.pm.dao.db.DAO dao)
      Adds a list of entitlements to an organization unit.
      void delete(OrgUnitBean orgUnitBean, boolean hier, java.lang.String code_scope, com.engiweb.pm.dao.db.DAO dao)
      Deletes an existing organization unit.
      void deleteType(OUTypeBean ouTypeBean, com.engiweb.pm.dao.db.DAO dao)
      Removes an existing organization unit type.
      com.engiweb.pm.entity.BeanList<OrgUnitBean> find(OrgUnitBean orgUnitBean, OrgUnitBean ouStart, com.engiweb.pm.entity.Paging paging, java.lang.String code_scope, com.engiweb.pm.dao.db.DAO dao)
      Returns the organization units filtered by a passed OrgUnitBean object starting from a start OU.
      com.engiweb.pm.entity.BeanList<ApplicationBean> findApplication(ApplicationBean appBean, OrgUnitBean orgUnitBean, 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 organization unit.
      com.engiweb.pm.entity.BeanList<ApplicationBean> findApplicationByEntitlement(ApplicationBean appBean, EntitlementBean entBean, OrgUnitBean orgUnitBean, 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 organization unit (punctually or hierarchically) filtered by an entitlement.
      com.engiweb.pm.entity.BeanList<EntitlementBean> findEntitlement(EntitlementBean entBean, ApplicationBean appBean, OrgUnitBean orgUnitBean, 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 organization unit (punctually or hierarchically) filtered by an application.
      com.engiweb.pm.entity.BeanList<EntitlementBean> findEntitlement(EntitlementBean entBean, java.util.List<ApplicationBean> appBeans, OrgUnitBean orgUnitBean, boolean hier, com.engiweb.pm.entity.Paging paging, java.lang.String code_scope, com.engiweb.pm.dao.db.DAO connDao)
      Find entitlement.
      com.engiweb.pm.entity.BeanList<EntitlementBean> findEntitlement(EntitlementBean entBean, java.util.List<ApplicationBean> appBeans, OrgUnitBean orgUnitBean, boolean hier, TaskBean taskBean, boolean taskHier, com.engiweb.pm.entity.Paging paging, java.lang.String code_scope, com.engiweb.pm.dao.db.DAO connDao)
      Find entitlement.
      com.engiweb.pm.entity.BeanList<EntitlementBean> findEntitlement(EntitlementBean entBean, java.util.List<ApplicationBean> appBeans, UserBean userBean, com.engiweb.pm.entity.Paging paging, com.engiweb.pm.dao.db.DAO connDao)
      Find entitlements belonging to groups that a person belongs to, filtered by entitlement and list of applications.
      com.engiweb.pm.entity.BeanList<EntitlementBean> findEntitlement(EntitlementBean entBean, java.util.List<ApplicationBean> appBeans, UserBean userBean, TaskBean taskBean, boolean taskHier, com.engiweb.pm.entity.Paging paging, com.engiweb.pm.dao.db.DAO connDao)
      Find entitlements belonging to groups that a person belongs to, filtered by entitlement and list of applications.
      com.engiweb.pm.entity.BeanList<OrgUnitBean> findInHier(OrgUnitBean orgUnitBean, 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<OrgUnitBean> findInHier(OrgUnitBean orgUnitBean, boolean findAdmin, java.lang.String code_scope, com.engiweb.pm.dao.db.DAO connDao)
      Deprecated. 
      com.engiweb.pm.entity.BeanList<OrgUnitBean> findParent(OrgUnitBean ouBean, 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, OrgUnitBean orgUnitBean, com.engiweb.pm.entity.Paging paging, com.engiweb.pm.dao.db.DAO dao)
      Returns a list of properties assigned to an organization unit.
      com.engiweb.pm.entity.BeanList<ResourceBean> findResource(ResourceBean resourcBean, OrgUnitBean orgUnitBean, 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 organization unit.
      com.engiweb.pm.entity.BeanList<OUTypeBean> findType(OUTypeBean ouTypeBean, com.engiweb.pm.entity.Paging paging, com.engiweb.pm.dao.db.DAO dao)
      Returns the organization unit types filtered by a passed OUTypeBean object.
      com.engiweb.pm.entity.BeanList<UserBean> findUser(UserBean userBean, EntitlementBean entitlementBean, java.util.List<OrgUnitBean> listOUBean, boolean hier, com.engiweb.pm.entity.Paging paging, com.engiweb.pm.dao.db.DAO dao)
      Returns a list of users filtered by entitlement
      com.engiweb.pm.entity.BeanList<UserBean> findUser(UserBean userBean, EntitlementBean entitlementBean, java.util.List<OrgUnitBean> listOUBean, boolean hier, TaskBean taskBean, boolean taskHier, com.engiweb.pm.entity.Paging paging, com.engiweb.pm.dao.db.DAO connDao)
      Returns a list of users filtered by entitlement
      com.engiweb.pm.entity.BeanList<UserBean> findUser(UserBean userBean, EntitlementBean entitlementBean, OrgUnitBean orgUnitBean, 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 organization unit or one of its sons (if hier is true)
      com.engiweb.pm.entity.BeanList<UserBean> findUser(UserBean userBean, EntitlementBean entitlementBean, OrgUnitBean orgUnitBean, 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 organization unit or one of its sons (if hier is true)
      com.engiweb.pm.entity.BeanList<UserBean> findUserWithoutOU(UserBean userBean, com.engiweb.pm.entity.Paging paging, com.engiweb.pm.dao.db.DAO dao)
      Find user without ou.
      OrgUnitBean insert(OrgUnitBean orgUnitBean, OrgUnitBean ouParentBean, boolean parentEntitlements, boolean parentResources, java.lang.String code_scope, com.engiweb.pm.dao.db.DAO dao)
      Adds a new organization unit, if it not exists yet, to the organization unit tree.
      OUTypeBean insertType(OUTypeBean ouTypeBean, com.engiweb.pm.dao.db.DAO dao)
      Adds a new orgnization unit type if it not exists yet.
      void modifyRoles(com.engiweb.pm.entity.BeanList<EntitlementBean> entBl, OrgUnitBean ouBean, boolean hier, boolean alignUserToDef, java.lang.String code_scope, com.engiweb.pm.dao.db.DAO dao)
      Updates Default, VisibilityViolation and/or enabled property from a list of entitlements belonging to an orgaanization unit.
      void modifySOD(OrgUnitBean orgUnitBean, boolean enableSOD, boolean hier, java.lang.String code_scope, com.engiweb.pm.dao.db.DAO dao)
      Modify SOD on the organization unit punctually or hierarchically.
      void removeProperties(com.engiweb.pm.entity.BeanList<PropertyBean> blPropertyBean, OrgUnitBean orgUnitBean, com.engiweb.pm.dao.db.DAO dao)
      Removes a list of properties from an application.
      void removeResources(com.engiweb.pm.entity.BeanList<ResourceBean> blResources, OrgUnitBean orgUnitBean, boolean hier, java.lang.String code_scope, com.engiweb.pm.dao.db.DAO dao)
      Removes a list of ResourceBean from an organization unit.
      void removeRoles(com.engiweb.pm.entity.BeanList<EntitlementBean> entBl, OrgUnitBean orgUnitBean, boolean hier, java.lang.String code_scope, com.engiweb.pm.dao.db.DAO dao)
      Removes a list of entitlements from an organization unit.
      OrgUnitBean update(OrgUnitBean orgUnitBean, OrgUnitBean ouParentBean, java.lang.String code_scope, com.engiweb.pm.dao.db.DAO dao)
      Updates an existing organization unit.
      void updateType(OUTypeBean ouTypeBean, com.engiweb.pm.dao.db.DAO dao)
      Updates an existing organization unit type.
      • Methods inherited from interface common.direct.IDirect

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

      • insert

        OrgUnitBean insert(OrgUnitBean orgUnitBean,
                           OrgUnitBean ouParentBean,
                           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 organization unit, if it not exists yet, to the organization unit tree. Organization unit parent is mandatory.
        Parameters:
        orgUnitBean - OrgUnitBean to add (mandatory)
        ouParentBean - OrgUnitBean parent of the new organization unit.It must be present and uniquely defined.
        parentEntitlements - boolean: if true, all entitlements belonging to parent OU will be assigned to the new child OU
        parentResources - boolean: if true, all resources belonging to parent OU will be assigned to the new child OU
        code_scope - String the code scope
        dao - DAO the connection dao
        Returns:
        OrgUnitBean added
        Throws:
        com.engiweb.toolkit.common.BackendException - the backend exception
      • update

        OrgUnitBean update(OrgUnitBean orgUnitBean,
                           OrgUnitBean ouParentBean,
                           java.lang.String code_scope,
                           com.engiweb.pm.dao.db.DAO dao)
                    throws com.engiweb.toolkit.common.BackendException
        Updates an existing organization unit.
        Parameters:
        orgUnitBean - OrgUnitBean to update (mandatory)
        ouParentBean - OrgUnitBean parent of the updated organization unit.It must be present and uniquely defined.
        code_scope - String the code scope
        dao - DAO the connection dao
        Returns:
        OrgUnitBean
        Throws:
        com.engiweb.toolkit.common.BackendException - the backend exception
      • delete

        void delete(OrgUnitBean orgUnitBean,
                    boolean hier,
                    java.lang.String code_scope,
                    com.engiweb.pm.dao.db.DAO dao)
             throws com.engiweb.toolkit.common.BackendException
        Deletes an existing organization unit.
        Parameters:
        orgUnitBean - OrgUnitBean to delete (mandatory). If OU is not a leaf, then all nested OUs will be assigned to its associated parent OU
        hier - boolean: true if research must be performed hierarchically, false otherwise
        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<OrgUnitBean> find(OrgUnitBean orgUnitBean,
                                                         OrgUnitBean 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 organization units filtered by a passed OrgUnitBean object starting from a start OU. Is startOU is null or not uniquely defined, the start OU is defined according to user visibility
        Parameters:
        orgUnitBean - OrgUnitBean if null no filter is applied, otherwise the passed object is used as filter
        ouStart - OrgUnitBean 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 the paging
        code_scope - String the code scope
        dao - DAO the connection dao
        Returns:
        BeanList of OrgUnitBean
        Throws:
        com.engiweb.toolkit.common.BackendException - the backend exception
      • addResources

        void addResources(com.engiweb.pm.entity.BeanList<ResourceBean> blResources,
                          OrgUnitBean orgUnitBean,
                          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 organization unit.
        Parameters:
        blResources - BeanList of ResourceBean to add. Resources must be present and uniquely defined.
        orgUnitBean - OrgUnitBean to which add resources. It must be present and uniquely defined.
        hier - boolean if true resources will be add to organization unit in hierarchical mode.
        employee - boolean if true resources will be assigned to all employments according with passed OU
        code_scope - String the code scope
        dao - DAO the connection dao
        Throws:
        com.engiweb.toolkit.common.BackendException - the backend exception
      • removeResources

        void removeResources(com.engiweb.pm.entity.BeanList<ResourceBean> blResources,
                             OrgUnitBean orgUnitBean,
                             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 organization unit.
        Parameters:
        blResources - BeanList of ResourceBean to remove. Resources must be present and uniquely defined.
        orgUnitBean - OrgUnitBean from which remove resources. It must be present and uniquely defined.
        hier - if true resources will be will be removed from organization unit in hierarchical mode.
        code_scope - String the code scope
        dao - DAO the connection dao
        Throws:
        com.engiweb.toolkit.common.BackendException - the backend exception
      • findResource

        com.engiweb.pm.entity.BeanList<ResourceBean> findResource(ResourceBean resourcBean,
                                                                  OrgUnitBean orgUnitBean,
                                                                  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 organization unit.
        Parameters:
        resourcBean - ResourceBean if null no filter is applied, otherwise the passed object is used as filter
        orgUnitBean - OrgUnitBean in which to search for the resources
        paging - Paging the paging
        code_scope - String the code scope
        dao - DAO the connection dao
        Returns:
        BeanList of ResourceBean
        Throws:
        com.engiweb.toolkit.common.BackendException - the backend exception
      • findParent

        com.engiweb.pm.entity.BeanList<OrgUnitBean> findParent(OrgUnitBean ouBean,
                                                               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:
        ouBean - OrgUnitBean that you want to find the parent tree. It must be present end uniquely defined
        showAdmin - boolean: if true return also the ou's administrators
        code_scope - String the code scope
        dao - DAO the connection dao
        Returns:
        BeanList of OrgUnitBean
        Throws:
        com.engiweb.toolkit.common.BackendException - the backend exception
      • findInHier

        com.engiweb.pm.entity.BeanList<OrgUnitBean> findInHier(OrgUnitBean orgUnitBean,
                                                               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:
        orgUnitBean - OrgUnitBean that you want to find the sons. It must be present end uniquely defined
        findAdmin - boolean: set true if you want to retrieve the administrator associated to the ou's
        paging - Paging the paging
        code_scope - String the code scope
        connDao - DAO the connection dao
        Returns:
        BeanList of OrgUnitBean
        Throws:
        com.engiweb.toolkit.common.BackendException - the backend exception
      • findInHier

        @Deprecated
        com.engiweb.pm.entity.BeanList<OrgUnitBean> findInHier(OrgUnitBean orgUnitBean,
                                                                           boolean findAdmin,
                                                                           java.lang.String code_scope,
                                                                           com.engiweb.pm.dao.db.DAO connDao)
                                                                    throws com.engiweb.toolkit.common.BackendException
        Deprecated. 
        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 orgnization unit type if it not exists yet.
        Parameters:
        ouTypeBean - OUTypeBean the organization unit type to add (mandatory)
        dao - DAO the connection dao
        Returns:
        OUTypeBean created
        Throws:
        com.engiweb.toolkit.common.BackendException - the backend exception
      • updateType

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

        void deleteType(OUTypeBean ouTypeBean,
                        com.engiweb.pm.dao.db.DAO dao)
                 throws com.engiweb.toolkit.common.BackendException
        Removes an existing organization unit type. When an OU type is removed, ou type of organization units having that type is set to null
        Parameters:
        ouTypeBean - OUTypeBean the organization unit type to remove (mandatory and uniquely defined).
        dao - DAO the connection dao
        Throws:
        com.engiweb.toolkit.common.BackendException - the backend exception
      • 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 organization unit 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 the paging
        dao - DAO the connection dao
        Returns:
        BeanList of OUTypeBean
        Throws:
        com.engiweb.toolkit.common.BackendException - the backend exception
      • findUser

        com.engiweb.pm.entity.BeanList<UserBean> findUser(UserBean userBean,
                                                          EntitlementBean entitlementBean,
                                                          OrgUnitBean orgUnitBean,
                                                          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 organization unit 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
        OrgUnitBean - OrgUnitBean must be present and uniquely defined
        boolean - hier: if true the research is performed hierarchically
        Paging - paging: Paging
        Returns:
        BeanList of UserBean
        Throws:
        com.engiweb.toolkit.common.BackendException
      • findUser

        com.engiweb.pm.entity.BeanList<UserBean> findUser(UserBean userBean,
                                                          EntitlementBean entitlementBean,
                                                          OrgUnitBean orgUnitBean,
                                                          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 organization unit 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
        OrgUnitBean - OrgUnitBean must be present and uniquely defined
        boolean - hier: if true the research is performed hierarchically
        Paging - paging: Paging
        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<OrgUnitBean> listOUBean,
                                                          boolean hier,
                                                          com.engiweb.pm.entity.Paging paging,
                                                          com.engiweb.pm.dao.db.DAO dao)
                                                   throws com.engiweb.toolkit.common.BackendException
        Returns a list of users filtered by entitlement
        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
        OrgUnitBean - List of OrgUnitBean
        boolean - hier: if true the research is performed hierarchically
        Paging - paging: Paging
        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<OrgUnitBean> listOUBean,
                                                          boolean hier,
                                                          TaskBean taskBean,
                                                          boolean taskHier,
                                                          com.engiweb.pm.entity.Paging paging,
                                                          com.engiweb.pm.dao.db.DAO connDao)
                                                   throws com.engiweb.toolkit.common.BackendException
        Returns a list of users filtered by entitlement
        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
        OrgUnitBean - List of OrgUnitBean
        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
        taskHier - boolean: if true the research is performed hierarchically
        Paging - paging: Paging
        Returns:
        BeanList of UserBean
        Throws:
        com.engiweb.toolkit.common.BackendException
      • findUserWithoutOU

        com.engiweb.pm.entity.BeanList<UserBean> findUserWithoutOU(UserBean userBean,
                                                                   com.engiweb.pm.entity.Paging paging,
                                                                   com.engiweb.pm.dao.db.DAO dao)
                                                            throws com.engiweb.toolkit.common.BackendException
        Find user without ou.
        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
      • addRoles

        void addRoles(com.engiweb.pm.entity.BeanList<EntitlementBean> blEntitlement,
                      OrgUnitBean orgUnitBean,
                      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 organization unit.
        Parameters:
        blEntitlement - BeanList of EntitlementBean the list of entitlement to add
        orgUnitBean - OrgUnitBean the organization unit to which enitlements must be add
        hier - boolean: if true entitlement are assigned hierarchically, false otherwise
        alignUserToDef - boolean: if true entitlement must to be assigned to already present OU users, false otherwise
        code_scope - String the code scope
        dao - DAO the connection dao
        Throws:
        com.engiweb.toolkit.common.BackendException - the backend exception
      • modifyRoles

        void modifyRoles(com.engiweb.pm.entity.BeanList<EntitlementBean> entBl,
                         OrgUnitBean ouBean,
                         boolean hier,
                         boolean alignUserToDef,
                         java.lang.String code_scope,
                         com.engiweb.pm.dao.db.DAO dao)
                  throws com.engiweb.toolkit.common.BackendException
        Updates Default, VisibilityViolation and/or enabled property from a list of entitlements belonging to an orgaanization unit.
        Parameters:
        entBl - BeanList of EntitlementBean list of entitlement on which some properties (DEFAULT, VISIBILITY_VIOLATION, ENALBLED) can be updated. (mandatory and uniquely)
        ouBean - OrgUnitBean organization unit (mandatory and uniquely defined)
        hier - boolean: if true updates is performed hierarchically,false otherwise
        alignUserToDef - boolean: if true roles must to be assigned to already present OU users, false otherwise
        code_scope - String the code scope
        dao - DAO the connection dao
        Throws:
        com.engiweb.toolkit.common.BackendException - the backend exception
      • removeRoles

        void removeRoles(com.engiweb.pm.entity.BeanList<EntitlementBean> entBl,
                         OrgUnitBean orgUnitBean,
                         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 organization unit.
        Parameters:
        entBl - BeanList of EntitlementBean list of entitlement to remove. (mandatory and uniquely defined)
        orgUnitBean - OrgUnitBean organization unit (mandatory and uniquely defined)
        hier - boolean if true removal operation is performed hierarchically,false otherwise
        code_scope - String the code scope
        dao - DAO the connection dao
        Throws:
        com.engiweb.toolkit.common.BackendException - the backend exception
      • findApplication

        com.engiweb.pm.entity.BeanList<ApplicationBean> findApplication(ApplicationBean appBean,
                                                                        OrgUnitBean orgUnitBean,
                                                                        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 organization unit.
        Parameters:
        appBean - ApplicationBean if null no filter is applied, otherwise the passed object is used as filter
        orgUnitBean - OrgUnitBean the organization unit (mandatory and uniquely defined)
        paging - Paging the paging
        code_scope - String the code scope
        dao - DAO the connection dao
        Returns:
        BeanList of ApplicationBean
        Throws:
        com.engiweb.toolkit.common.BackendException - the backend exception
      • modifySOD

        void modifySOD(OrgUnitBean orgUnitBean,
                       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 organization unit punctually or hierarchically.
        Parameters:
        orgUnitBean - OrgUnitBean if null the organization unit in the user scope is used
        enableSOD - boolean: if true SOD is enabled,false otherwise
        hier - boolean: if true modify is performed hierarchically, false otherwise
        code_scope - String the code scope
        dao - DAO the connection dao
        Throws:
        com.engiweb.toolkit.common.BackendException - the backend exception
      • removeProperties

        void removeProperties(com.engiweb.pm.entity.BeanList<PropertyBean> blPropertyBean,
                              OrgUnitBean orgUnitBean,
                              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.
        orgUnitBean - OrgUnitBean (mandatory and uniquely defined)
        dao - DAO the connection dao
        Throws:
        com.engiweb.toolkit.common.BackendException - the backend exception
      • findProperty

        com.engiweb.pm.entity.BeanList<PropertyBean> findProperty(PropertyBean propertyBean,
                                                                  OrgUnitBean orgUnitBean,
                                                                  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 organization unit.
        Parameters:
        propertyBean - PropertyBean if null no filter is applied, otherwise the passed object is used as filter
        orgUnitBean - OrgUnitBean organization unit (mandatory and uniquely defined)
        paging - Paging the paging
        dao - DAO the connection dao
        Returns:
        BeanList of PropertyBean
        Throws:
        com.engiweb.toolkit.common.BackendException - the backend exception
      • addProperties

        void addProperties(com.engiweb.pm.entity.BeanList<PropertyBean> blPropertyBean,
                           OrgUnitBean orgUnitBean,
                           com.engiweb.pm.dao.db.DAO dao)
                    throws com.engiweb.toolkit.common.BackendException
        Adds a list of properties to an organization unit.
        Parameters:
        blPropertyBean - BeanList of PropertyBeanlist of properties to add to an organization unit
        orgUnitBean - OrgUnitBean organization unit (mandatory and uniquely defined)
        dao - DAO the connection dao
        Throws:
        com.engiweb.toolkit.common.BackendException - the backend exception
      • findEntitlement

        com.engiweb.pm.entity.BeanList<EntitlementBean> findEntitlement(EntitlementBean entBean,
                                                                        ApplicationBean appBean,
                                                                        OrgUnitBean orgUnitBean,
                                                                        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 organization unit (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 - ApplicationBean if null no filter is applied, otherwise the passed object is used as filter
        orgUnitBean - OrgUnitBean the organization unit (mandatory and uniquely defined)
        hier - boolean if true research is performed hierarchically, false otherwise
        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
      • findApplicationByEntitlement

        com.engiweb.pm.entity.BeanList<ApplicationBean> findApplicationByEntitlement(ApplicationBean appBean,
                                                                                     EntitlementBean entBean,
                                                                                     OrgUnitBean orgUnitBean,
                                                                                     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 organization unit (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
        orgUnitBean - OrgUnitBean organization unit (mandatory 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 entBean,
                                                                        java.util.List<ApplicationBean> appBeans,
                                                                        OrgUnitBean orgUnitBean,
                                                                        boolean hier,
                                                                        com.engiweb.pm.entity.Paging paging,
                                                                        java.lang.String code_scope,
                                                                        com.engiweb.pm.dao.db.DAO connDao)
                                                                 throws com.engiweb.toolkit.common.BackendException
        Find entitlement.
        Parameters:
        entBean - EntitlementBean if null no filter is applied, otherwise the passed object is used as filter
        appBeans - List of ApplicationBean if null no filter is applied, otherwise the passed object is used as filter and will well defined
        orgUnitBean - OrgUnitBean organization unit (mandatory and uniquely defined)
        hier - boolean if true research is performed hierarchically, false otherwise
        paging - Paging the paging
        code_scope - String the code scope
        connDao - 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 entBean,
                                                                        java.util.List<ApplicationBean> appBeans,
                                                                        OrgUnitBean orgUnitBean,
                                                                        boolean hier,
                                                                        TaskBean taskBean,
                                                                        boolean taskHier,
                                                                        com.engiweb.pm.entity.Paging paging,
                                                                        java.lang.String code_scope,
                                                                        com.engiweb.pm.dao.db.DAO connDao)
                                                                 throws com.engiweb.toolkit.common.BackendException
        Find entitlement.
        Parameters:
        entBean - EntitlementBean if null no filter is applied, otherwise the passed object is used as filter
        appBeans - List of ApplicationBean if null no filter is applied, otherwise the passed object is used as filter and will well defined
        orgUnitBean - OrgUnitBean organization unit (mandatory and uniquely defined)
        hier - boolean if true research is performed hierarchically, false otherwise
        taskBean - TaskBean if null no filter is applied, otherwise the passed object is used as filter and will well defined
        taskHier - boolean if true research is performed hierarchically, false otherwise
        paging - Paging the paging
        code_scope - String the code scope
        connDao - 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 entBean,
                                                                        java.util.List<ApplicationBean> appBeans,
                                                                        UserBean userBean,
                                                                        com.engiweb.pm.entity.Paging paging,
                                                                        com.engiweb.pm.dao.db.DAO connDao)
                                                                 throws com.engiweb.toolkit.common.BackendException
        Find entitlements belonging to groups that a person belongs to, filtered by entitlement and list of applications.
        Parameters:
        entBean - EntitlementBean if null no filter is applied, otherwise the passed object is used as filter
        appBeans - List of ApplicationBean if null no filter is applied, otherwise the passed object is used as filter and will well defined
        userBean - UserBean user (mandatory and uniquely defined)
        paging - Paging the paging
        code_scope - String the code scope
        connDao - 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 entBean,
                                                                        java.util.List<ApplicationBean> appBeans,
                                                                        UserBean userBean,
                                                                        TaskBean taskBean,
                                                                        boolean taskHier,
                                                                        com.engiweb.pm.entity.Paging paging,
                                                                        com.engiweb.pm.dao.db.DAO connDao)
                                                                 throws com.engiweb.toolkit.common.BackendException
        Find entitlements belonging to groups that a person belongs to, filtered by entitlement and list of applications.
        Parameters:
        entBean - EntitlementBean if null no filter is applied, otherwise the passed object is used as filter
        appBeans - List of ApplicationBean if null no filter is applied, otherwise the passed object is used as filter and will well defined
        userBean - UserBean user (mandatory and uniquely defined)
        taskBean - TaskBean if null no filter is applied, otherwise the passed object is used as filter and will well defined
        taskHier - boolean if true research is performed hierarchically, false otherwise
        paging - Paging the paging
        code_scope - String the code scope
        connDao - DAO the connection dao
        Returns:
        BeanList of EntitlementBean
        Throws:
        com.engiweb.toolkit.common.BackendException - the backend exception