com.engiweb.rpd.common.interfaces

Interface IProfileGroupDirect

  • All Superinterfaces:
    common.direct.IDirect


    public interface IProfileGroupDirect
    extends common.direct.IDirect
    The Interface IProfileGroupDirect.
    • Method Detail

      • findChild

        com.engiweb.pm.entity.BeanList<com.engiweb.pm.web.bean.AbstractBean> findChild(ProfileGroupBean bean,
                                                                                       EnvironmentBean envBean,
                                                                                       com.engiweb.pm.entity.Paging p,
                                                                                       com.engiweb.pm.dao.db.DAO connDao)
                                                                                throws com.engiweb.toolkit.common.BackendException
        Find childs of a profile group. Method used by profile group tree DEFINITION. It shows either all entities for a given task, or the given profileGroup childs
        Parameters:
        bean - ProfileGroupBean the parent which want child
        envBean - EnvironmentBean the environment
        p - Paging the paging
        connDao - DAO the connection dao
        Returns:
        BeanList of AbstractBean
        Throws:
        com.engiweb.toolkit.common.BackendException - the backend exception
      • find

        com.engiweb.pm.entity.BeanList<ProfileGroupBean> find(ProfileGroupBean bean,
                                                              EnvironmentBean envBean,
                                                              com.engiweb.pm.entity.Paging p,
                                                              com.engiweb.pm.dao.db.DAO connDao)
                                                       throws com.engiweb.toolkit.common.BackendException
        Find profile group.
        Parameters:
        bean - ProfileGroupBean if null no filter is applied, otherwise the passed object is used as filter
        envBean - EnvironmentBean the environment
        p - Paging the paging
        connDao - DAO the connection dao
        Returns:
        BeanList of ProfileGroupBean
        Throws:
        com.engiweb.toolkit.common.BackendException - the backend exception
      • findProfileGroup4Analisys

        com.engiweb.pm.entity.BeanList<ProfileGroupBean> findProfileGroup4Analisys(ProfileGroupBean bean,
                                                                                   com.engiweb.pm.entity.Paging p,
                                                                                   com.engiweb.pm.dao.db.DAO connDao)
                                                                            throws com.engiweb.toolkit.common.BackendException
        Find profile group for analisys.
        Parameters:
        bean - ProfileGroupBean if null no filter is applied, otherwise the passed object is used as filter
        p - Paging the paging
        connDao - DAO the connection dao
        Returns:
        beanList of ProfileGroupBean
        Throws:
        com.engiweb.toolkit.common.BackendException - the backend exception
      • createEntity

        ProfileGroupBean createEntity(ProfileGroupBean pgb,
                                      com.engiweb.pm.dao.db.DAO connDao)
                               throws com.engiweb.toolkit.common.BackendException
        Creates the entity.
        Parameters:
        pgb - ProfileGroupBean the profile group to create (mandatory)
        connDao - DAO the connection dao
        Returns:
        ProfileGroupBean
        Throws:
        com.engiweb.toolkit.common.BackendException - the backend exception
      • addProfile

        void addProfile(ProfileGroupBean parent,
                        com.engiweb.pm.entity.BeanList<EntitlementBean> profileList,
                        long condition,
                        com.engiweb.pm.dao.db.DAO connDao)
                 throws com.engiweb.toolkit.common.BackendException
        Add a list of profile to a profile group
        Parameters:
        parent - ProfileGroupBean the profile group which want add a list of profile
        profileList - BeanList of EntitlementBean the profile list to add
        condition - long: the condition
        • 0 = OR
        • 1 = AND
        connDao - DAO the connection dao
        Throws:
        com.engiweb.toolkit.common.BackendException - the backend exception
      • createProfileGroup

        void createProfileGroup(TaskBean taskbean,
                                EnvironmentBean envBean,
                                long condition,
                                java.lang.String value,
                                com.engiweb.pm.dao.db.DAO connDao)
                         throws com.engiweb.toolkit.common.BackendException
        Creates the profile group.
        Parameters:
        taskbean - TaskBean the task
        envBean - EnvironmentBean the environment
        condition - long: the condition
        • 0 = OR
        • 1 = AND
        value - String the value
        connDao - DAO the connection dao
        Throws:
        com.engiweb.toolkit.common.BackendException - the backend exception
      • removeGroup

        void removeGroup(ProfileGroupBean bean,
                         com.engiweb.pm.dao.db.DAO connDao)
                  throws com.engiweb.toolkit.common.BackendException
        Removes a group.
        Parameters:
        bean - ProfileGroupBean the profile group to remove (mandatory)
        connDao - DAO the connection dao
        Throws:
        com.engiweb.toolkit.common.BackendException - the backend exception
      • modifyCondition

        void modifyCondition(ProfileGroupBean bean,
                             com.engiweb.pm.dao.db.DAO connDao)
                      throws com.engiweb.toolkit.common.BackendException
        Modify condition: if the condition is set to OR(=0) is modify to AND(=1),
        Parameters:
        bean - ProfileGroupBean the profile group (mandatory)
        connDao - DAO the connection dao
        Throws:
        com.engiweb.toolkit.common.BackendException - the backend exception
      • removeProfile

        void removeProfile(com.engiweb.pm.entity.BeanList<EntitlementBean> blProfile,
                           TaskBean taskBean,
                           EnvironmentBean envBean,
                           boolean hier,
                           com.engiweb.pm.dao.db.DAO connDao)
                    throws com.engiweb.toolkit.common.BackendException
        Removes a list of profile.
        Parameters:
        blProfile - BeanList of EntitlementBean the list of profile to remove
        taskBean - TaskBean the task
        envBean - EnvironmentBean the environment
        hier - boolean: if true research must be performed hierarchically, false otherwise
        connDao - DAO the connection dao
        Throws:
        com.engiweb.toolkit.common.BackendException - the backend exception
      • createAndReturnProfileGroup

        ProfileGroupBean createAndReturnProfileGroup(TaskBean taskBean,
                                                     EnvironmentBean envBean,
                                                     long condition,
                                                     java.lang.String value,
                                                     com.engiweb.pm.dao.db.DAO connDao)
                                              throws com.engiweb.toolkit.common.BackendException
        Creates the and return profile group.
        Parameters:
        taskBean - TaskBean the task
        envBean - EnvironmentBean the environment
        condition - long: the condition
        • 0 = OR
        • 1 = AND
        value - String the value
        connDao - DAO the connection dao
        Returns:
        ProfileGroupBean
        Throws:
        com.engiweb.toolkit.common.BackendException - the backend exception