com.engiweb.profilemanager.common.interfaces

Interface IResourceDirect

  • All Superinterfaces:
    common.direct.IDirect


    public interface IResourceDirect
    extends common.direct.IDirect
    The IResource interface allows a client to retrieve and manage all information about resource 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 delete(ResourceBean resBean, com.engiweb.pm.dao.db.DAO dao)
      Deletes an existing resource.
      void deleteFamily(ResourceFamilyBean resFamBean, com.engiweb.pm.dao.db.DAO dao)
      Deletes an existing resource family and cascade all resource types and resources related.
      void deleteType(ResourceTypeBean resTypeBean, com.engiweb.pm.dao.db.DAO dao)
      Deletes an existing resource type and cascade all related resources.
      com.engiweb.pm.entity.BeanList<ResourceBean> find(ResourceBean resBean, com.engiweb.pm.entity.Paging paging, com.engiweb.pm.dao.db.DAO dao)
      Returns the resources filtered by a passed ResourceBean object.
      com.engiweb.pm.entity.BeanList<ResourceFamilyBean> findFamily(ResourceFamilyBean resFamBean, com.engiweb.pm.entity.Paging paging, com.engiweb.pm.dao.db.DAO dao)
      Returns the resource families filtered by a passed ResourceFamilyBean object.
      com.engiweb.pm.entity.BeanList<OrgUnitBean> findOrgUnit(OrgUnitBean ouBean, ResourceBean resBean, java.lang.String code_scope, com.engiweb.pm.entity.Paging paging, com.engiweb.pm.dao.db.DAO dao)
      Returns the organizational units for the given ResourceBean object.
      com.engiweb.pm.entity.BeanList<ResourceTypeBean> findType(ResourceTypeBean resTypeBean, com.engiweb.pm.entity.Paging paging, com.engiweb.pm.dao.db.DAO dao)
      Returns the resource types filtered by a passed ResourceTypeBean object.
      com.engiweb.pm.entity.BeanList<UserBean> findUser(UserBean userBean, OrgUnitBean ouBean, EntitlementBean entitlementBean, com.engiweb.pm.web.bean.AbstractBean resBean, boolean hier, boolean delegate, java.lang.String code_scope, com.engiweb.pm.entity.Paging paging, com.engiweb.pm.dao.db.DAO dao)
      Returns user having a fixed resource.
      com.engiweb.pm.entity.BeanList<UserBean> findUserByIntOU(UserBean userBean, OrgUnitBean ouBean, EntitlementBean entitlementBean, OrgUnitBean resBean, boolean hier, boolean delegated, java.lang.String code_scope, com.engiweb.pm.entity.Paging paging, com.engiweb.pm.dao.db.DAO dao)
      Returns users having a fixed organization unit in visibility.
      com.engiweb.pm.entity.BeanList<UserBean> findUserByIntOUAndProfile(UserBean userBean, OrgUnitBean ouBean, OrgUnitBean resBean, com.engiweb.pm.entity.BeanList<EntitlementBean> blEntBean, boolean hier, boolean delegated, java.lang.String code_scope, com.engiweb.pm.entity.Paging paging, com.engiweb.pm.dao.db.DAO dao)
      Returns user having a organizational unit internal resource assigned to a fixed list of entitlement, punctual or in visibility
      com.engiweb.pm.entity.BeanList<UserBean> findUserByProfile(UserBean userBean, OrgUnitBean ouBean, com.engiweb.pm.web.bean.AbstractBean resBean, com.engiweb.pm.entity.BeanList<EntitlementBean> blEntBean, boolean hier, boolean delegated, java.lang.String code_scope, com.engiweb.pm.entity.Paging paging, com.engiweb.pm.dao.db.DAO dao)
      Returns users with a fixed internal resource (OrgUnit, Entitlement, Application, ResourceFamily, ResourceType) given a list of his profiles.
      ResourceBean insert(ResourceBean resBean, com.engiweb.pm.dao.db.DAO dao)
      Adds a new resource, if it not exists yet.
      ResourceFamilyBean insertFamily(ResourceFamilyBean resFamBean, com.engiweb.pm.dao.db.DAO dao)
      Adds a new resource family, if it not exists yet.
      ResourceTypeBean insertType(ResourceTypeBean resTypeBean, com.engiweb.pm.dao.db.DAO dao)
      Adds a new resource type, if it not exists yet.
      void update(ResourceBean resBean, com.engiweb.pm.dao.db.DAO dao)
      Updates an existing resource.
      void updateFamily(ResourceFamilyBean resFamBean, com.engiweb.pm.dao.db.DAO dao)
      Updates an existing resource family.
      void updateType(ResourceTypeBean resTypeBean, com.engiweb.pm.dao.db.DAO dao)
      Updates an existing resource type.
      • Methods inherited from interface common.direct.IDirect

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

      • insert

        ResourceBean insert(ResourceBean resBean,
                            com.engiweb.pm.dao.db.DAO dao)
                     throws com.engiweb.toolkit.common.BackendException
        Adds a new resource, if it not exists yet. Resource is mandatory.
        Parameters:
        resBean - ResourceBean to add (mandatory)
        dao - DAO the connection dao
        Returns:
        ResourceBean
        Throws:
        com.engiweb.toolkit.common.BackendException - the backend exception
      • update

        void update(ResourceBean resBean,
                    com.engiweb.pm.dao.db.DAO dao)
             throws com.engiweb.toolkit.common.BackendException
        Updates an existing resource.
        Parameters:
        resBean - ResourceBean to update (mandatory)
        dao - DAO the connection dao
        Throws:
        com.engiweb.toolkit.common.BackendException - the backend exception
      • delete

        void delete(ResourceBean resBean,
                    com.engiweb.pm.dao.db.DAO dao)
             throws com.engiweb.toolkit.common.BackendException
        Deletes an existing resource.
        Parameters:
        resBean - ResourceBean to delete (mandatory)
        dao - DAO the connection dao
        Throws:
        com.engiweb.toolkit.common.BackendException - the backend exception
      • find

        com.engiweb.pm.entity.BeanList<ResourceBean> find(ResourceBean resBean,
                                                          com.engiweb.pm.entity.Paging paging,
                                                          com.engiweb.pm.dao.db.DAO dao)
                                                   throws com.engiweb.toolkit.common.BackendException
        Returns the resources filtered by a passed ResourceBean object.
        Parameters:
        resBean - ResourceBean if null no filter is applied, otherwise the passed object is used as filter
        paging - Paging
        dao - DAO the connection dao
        Returns:
        BeanList of ResourceBean
        Throws:
        com.engiweb.toolkit.common.BackendException - the backend exception
      • insertFamily

        ResourceFamilyBean insertFamily(ResourceFamilyBean resFamBean,
                                        com.engiweb.pm.dao.db.DAO dao)
                                 throws com.engiweb.toolkit.common.BackendException
        Adds a new resource family, if it not exists yet. Resource family is mandatory.
        Parameters:
        resFamBean - ResourceFamilyBean to add (mandatory)
        dao - DAO the connection dao
        Returns:
        ResourceFamilyBean
        Throws:
        com.engiweb.toolkit.common.BackendException - the backend exception
      • updateFamily

        void updateFamily(ResourceFamilyBean resFamBean,
                          com.engiweb.pm.dao.db.DAO dao)
                   throws com.engiweb.toolkit.common.BackendException
        Updates an existing resource family.
        Parameters:
        resFamBean - ResourceFamilyBean to update (mandatory)
        dao - DAO the connection dao
        Throws:
        com.engiweb.toolkit.common.BackendException - the backend exception
      • deleteFamily

        void deleteFamily(ResourceFamilyBean resFamBean,
                          com.engiweb.pm.dao.db.DAO dao)
                   throws com.engiweb.toolkit.common.BackendException
        Deletes an existing resource family and cascade all resource types and resources related.
        Parameters:
        resFamBean - ResourceFamilyuBean to delete (mandatory)
        dao - DAO the connection dao
        Throws:
        com.engiweb.toolkit.common.BackendException - the backend exception
      • findFamily

        com.engiweb.pm.entity.BeanList<ResourceFamilyBean> findFamily(ResourceFamilyBean resFamBean,
                                                                      com.engiweb.pm.entity.Paging paging,
                                                                      com.engiweb.pm.dao.db.DAO dao)
                                                               throws com.engiweb.toolkit.common.BackendException
        Returns the resource families filtered by a passed ResourceFamilyBean object.
        Parameters:
        resFamBean - ResourceFamilyBean if null no filter is applied, otherwise the passed object is used as filter
        paging - Paging
        dao - DAO the connection dao
        Returns:
        BeanList of ResourceFamilyBean
        Throws:
        com.engiweb.toolkit.common.BackendException - the backend exception
      • insertType

        ResourceTypeBean insertType(ResourceTypeBean resTypeBean,
                                    com.engiweb.pm.dao.db.DAO dao)
                             throws com.engiweb.toolkit.common.BackendException
        Adds a new resource type, if it not exists yet. Resource type is mandatory.
        Parameters:
        resTypeBean - ResourceTypeBean the resource type to add (mandatory)
        dao - DAO the connection dao
        Returns:
        ResourceTypeBean
        Throws:
        com.engiweb.toolkit.common.BackendException - the backend exception
      • updateType

        void updateType(ResourceTypeBean resTypeBean,
                        com.engiweb.pm.dao.db.DAO dao)
                 throws com.engiweb.toolkit.common.BackendException
        Updates an existing resource type.
        Parameters:
        resTypeBean - ResourceBean to update (mandatory)
        dao - DAO the connection dao
        Throws:
        com.engiweb.toolkit.common.BackendException - the backend exception
      • deleteType

        void deleteType(ResourceTypeBean resTypeBean,
                        com.engiweb.pm.dao.db.DAO dao)
                 throws com.engiweb.toolkit.common.BackendException
        Deletes an existing resource type and cascade all related resources.
        Parameters:
        resTypeBean - ResourceBean to delete (mandatory)
        dao - DAO the connection dao
        Throws:
        com.engiweb.toolkit.common.BackendException - the backend exception
      • findType

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

        com.engiweb.pm.entity.BeanList<OrgUnitBean> findOrgUnit(OrgUnitBean ouBean,
                                                                ResourceBean resBean,
                                                                java.lang.String code_scope,
                                                                com.engiweb.pm.entity.Paging paging,
                                                                com.engiweb.pm.dao.db.DAO dao)
                                                         throws com.engiweb.toolkit.common.BackendException
        Returns the organizational units for the given ResourceBean object.
        Parameters:
        ouBean - OrgUnitBean if null no filter is applied, otherwise the passed object is used as filter
        resBean - ResourceBean whose assigned organizational unit are to be retrieved.
        code_scope - String the code scope
        paging - Paging the paging
        dao - DAO the connection dao
        Returns:
        BeanList of OrgUnitBean
        Throws:
        com.engiweb.toolkit.common.BackendException - the backend exception
      • findUser

        com.engiweb.pm.entity.BeanList<UserBean> findUser(UserBean userBean,
                                                          OrgUnitBean ouBean,
                                                          EntitlementBean entitlementBean,
                                                          com.engiweb.pm.web.bean.AbstractBean resBean,
                                                          boolean hier,
                                                          boolean delegate,
                                                          java.lang.String code_scope,
                                                          com.engiweb.pm.entity.Paging paging,
                                                          com.engiweb.pm.dao.db.DAO dao)
                                                   throws com.engiweb.toolkit.common.BackendException
        Returns user having a fixed resource. It's possible to specify an entitlement as filter. Resource is an AbstractBean of ResourceBean type, for external resource, or ApplicationBean, EntitlementBean, OrgUnitBean for internal resources.
        Parameters:
        userBean - UserBean the user (optional)
        ouBean - OrgUnitBean the organization unit, if not null must be well defined
        entitlementBean - EntitlementBean the entitlement, if not null must be well defined
        resBean - AbstractBean resource of ApplicationBean or EntitlementBean or OrgUnitBean type. Mandatory
        hier - boolean: true if the research must be done in hierarchical mode. It is used only if ouBean arguments are set
        delegate - boolean: true if the research must include also user having the organization unit resource delegated
        code_scope - String the code scope
        paging - Paging the paging
        dao - DAO the connection dao
        Returns:
        BeanList di UserBean
        Throws:
        com.engiweb.toolkit.common.BackendException - the backend exception
      • findUserByIntOU

        com.engiweb.pm.entity.BeanList<UserBean> findUserByIntOU(UserBean userBean,
                                                                 OrgUnitBean ouBean,
                                                                 EntitlementBean entitlementBean,
                                                                 OrgUnitBean resBean,
                                                                 boolean hier,
                                                                 boolean delegated,
                                                                 java.lang.String code_scope,
                                                                 com.engiweb.pm.entity.Paging paging,
                                                                 com.engiweb.pm.dao.db.DAO dao)
                                                          throws com.engiweb.toolkit.common.BackendException
        Returns users having a fixed organization unit in visibility. It's possible to specify an entitlement as filter.
        Parameters:
        userBean - UserBean the user (optional)
        ouBean - OrgUnitBean organization unit, if not null must be well defined
        entitlementBean - EntitlementBean entitlement, if not null must be well defined
        resBean - OrgUnitBean resource of organization unit type. Mandatory
        hier - boolean: true if the research must be done in hierarchical mode. It is used only if ouBean arguments are set
        delegated - boolean: true if the research must include also user having the organization unit resource delegated
        code_scope - String the code scope
        paging - Paging the paging
        dao - DAO the connection dao
        Returns:
        BeanList di UserBean
        Throws:
        com.engiweb.toolkit.common.BackendException - the backend exception
      • findUserByProfile

        com.engiweb.pm.entity.BeanList<UserBean> findUserByProfile(UserBean userBean,
                                                                   OrgUnitBean ouBean,
                                                                   com.engiweb.pm.web.bean.AbstractBean resBean,
                                                                   com.engiweb.pm.entity.BeanList<EntitlementBean> blEntBean,
                                                                   boolean hier,
                                                                   boolean delegated,
                                                                   java.lang.String code_scope,
                                                                   com.engiweb.pm.entity.Paging paging,
                                                                   com.engiweb.pm.dao.db.DAO dao)
                                                            throws com.engiweb.toolkit.common.BackendException
        Returns users with a fixed internal resource (OrgUnit, Entitlement, Application, ResourceFamily, ResourceType) given a list of his profiles. The list of profiles if considered in OR condition
        Parameters:
        userBean - UserBean if null no filter is applied, otherwise the passed object is used as filter
        ouBean - OrgUnitBean starting point in the the organization unit tree from which search users. If null no filter is applied, otherwise it must be well defined
        resBean - AbstractBean that sets the internal resource type to search. It must be well defined (Mandatory)
        blEntBean - BeanList of profiles owned by user.The list is considered in OR condition
        hier - true if the research must be done in hierarchical mode. It is used only if ouBean arguments are set
        delegated - true if the research must include also user having the organization unit resource delegated
        code_scope - String the code scope
        paging - Paging the paging
        dao - DAO the connection dao
        Returns:
        BeanList of UserBean
        Throws:
        com.engiweb.toolkit.common.BackendException - the backend exception
      • findUserByIntOUAndProfile

        com.engiweb.pm.entity.BeanList<UserBean> findUserByIntOUAndProfile(UserBean userBean,
                                                                           OrgUnitBean ouBean,
                                                                           OrgUnitBean resBean,
                                                                           com.engiweb.pm.entity.BeanList<EntitlementBean> blEntBean,
                                                                           boolean hier,
                                                                           boolean delegated,
                                                                           java.lang.String code_scope,
                                                                           com.engiweb.pm.entity.Paging paging,
                                                                           com.engiweb.pm.dao.db.DAO dao)
                                                                    throws com.engiweb.toolkit.common.BackendException
        Returns user having a organizational unit internal resource assigned to a fixed list of entitlement, punctual or in visibility
        Parameters:
        userBean - UserBean if null no filter is applied, otherwise the passed object is used as filter
        ouBean - OrgUnitBean starting point in the the organization unit tree from which search users. If null no filter is applied, otherwise it must be well defined
        resBean - resource of OrgUnitBean type. Mandatory
        blEntBean - BeanList of profiles owned by user.The list is considered in OR condition
        hier - true if the research must be done in hierarchical mode. It is used only if ouBean arguments are set
        delegated - true if the research must include also user having the organization unit resource delegated
        code_scope - String the code scope
        paging - Paging the paging
        dao - DAO the connection dao
        Returns:
        BeanList of UserBean
        Throws:
        com.engiweb.toolkit.common.BackendException - the backend exception