com.crossideas.certification.common.interfaces

Interface ITemplateDirect

  • All Superinterfaces:
    common.direct.IDirect


    public interface ITemplateDirect
    extends common.direct.IDirect
    The ITemplate interface allows a client to retrieve and manage all information about template objects Warning. Il parametro int type dei metodi indica se l'operazione deve essere fatta su una black o un white list. type == 0 white list | 1 black list
    Author:
    CrossIdeas developer group
    • Method Detail

      • insert

        TemplateBean insert(TemplateBean templateBean,
                            com.engiweb.pm.dao.db.DAO connDao)
                     throws com.engiweb.toolkit.common.BackendException
        Insert.
        Parameters:
        templateBean - TemplateBean template to insert
        connDao - DAO the connection dao
        Returns:
        TemplateBean template insert
        Throws:
        com.engiweb.toolkit.common.BackendException - the backend exception
      • find

        com.engiweb.pm.entity.BeanList<TemplateBean> find(TemplateBean templateBean,
                                                          com.engiweb.pm.entity.Paging paging,
                                                          com.engiweb.pm.dao.db.DAO connDao)
                                                   throws com.engiweb.toolkit.common.BackendException
        Find template.
        Parameters:
        templateBean - TemplateBean if null no filter is applied, otherwise the passed object is used as filter
        paging - Paging
        connDao - DAO the connection dao
        Returns:
        BeanList of TemplateBean
        Throws:
        com.engiweb.toolkit.common.BackendException - the backend exception
      • update

        void update(TemplateBean templateBean,
                    com.engiweb.pm.dao.db.DAO connDao)
             throws com.engiweb.toolkit.common.BackendException
        Update a template.
        Parameters:
        templateBean - TemplateBean template to update
        connDao - DAO the connection dao
        Throws:
        com.engiweb.toolkit.common.BackendException - the backend exception
      • delete

        void delete(TemplateBean templateBean,
                    com.engiweb.pm.dao.db.DAO connDao)
             throws com.engiweb.toolkit.common.BackendException
        Delete a template.
        Parameters:
        templateBean - TemplateBean template to delete
        connDao - DAO the connection dao
        Throws:
        com.engiweb.toolkit.common.BackendException - the backend exception
      • addGroup

        void addGroup(GroupBean groupBean,
                      TemplateBean templateBean,
                      int addMode,
                      int type,
                      com.engiweb.pm.dao.db.DAO connDao)
               throws com.engiweb.toolkit.common.BackendException
        Adds the group.
        Parameters:
        groupBean - GroupitBean the group to add
        templateBean - TemplateBean the template
        addMode - int: the add mode
        • 0 <@link TemplateEntityOu> OU_PUNCTUAL
        • 1 <@link TemplateEntityOu> OU_HIER
        • 2 <@link TemplateEntityOu> OU_HIER_DYNAMIC
        type - int: indicates if the operation to be perform in the white or black list
        • type == 0 the ou is add in the white list
        • type== 1 the ou is add in the black list
        connDao - DAO the connection dao
        Throws:
        com.engiweb.toolkit.common.BackendException - the backend exception
      • removeGroup

        void removeGroup(GroupBean groupBean,
                         TemplateBean templateBean,
                         boolean hier,
                         int type,
                         com.engiweb.pm.dao.db.DAO connDao)
                  throws com.engiweb.toolkit.common.BackendException
        Removes the group.
        Parameters:
        groupBean - GroupBean the group to remove
        templateBean - TemplateBean the template
        hier - if true remove ou hierarchically, false otherwise
        type - int: indicates if the operation to be perform in the white or black list
        • type == 0 the ou is add in the white list
        • type== 1 the ou is add in the black list
        connDao - DAO the connection dao
        Throws:
        com.engiweb.toolkit.common.BackendException - the backend exception
      • addApplication

        void addApplication(com.engiweb.pm.entity.BeanList<ApplicationBean> listBean,
                            TemplateBean templateBean,
                            int type,
                            com.engiweb.pm.dao.db.DAO connDao)
                     throws com.engiweb.toolkit.common.BackendException
        Adds the application.
        Parameters:
        listBean - BeanList of ApplicationBean list of application to add
        templateBean - TemplateBean the template
        type - int: indicates if the operation to be perform in the white or black list
        • type == 0 the ou is add in the white list
        • type== 1 the ou is add in the black list
        connDao - DAO the connection dao
        Throws:
        com.engiweb.toolkit.common.BackendException - the backend exception
      • removeApplication

        void removeApplication(com.engiweb.pm.entity.BeanList<ApplicationBean> listBean,
                               TemplateBean templateBean,
                               int type,
                               com.engiweb.pm.dao.db.DAO connDao)
                        throws com.engiweb.toolkit.common.BackendException
        Removes the application.
        Parameters:
        listBean - BeanList of ApplicationBean list of application to remove
        templateBean - TemplateBean the template
        type - int: indicates if the operation to be perform in the white or black list
        • type == 0 the ou is add in the white list
        • type== 1 the ou is add in the black list
        connDao - DAO the connection dao
        Throws:
        com.engiweb.toolkit.common.BackendException - the backend exception
      • addEntitlement

        void addEntitlement(com.engiweb.pm.entity.BeanList<EntitlementBean> listBean,
                            TemplateBean templateBean,
                            int type,
                            com.engiweb.pm.dao.db.DAO connDao)
                     throws com.engiweb.toolkit.common.BackendException
        Adds the entitlement.
        Parameters:
        listBean - BeanList of EntitlementBean list of entitlement to add
        templateBean - TemplateBean the template
        type - int: indicates if the operation to be perform in the white or black list
        • type == 0 the ou is add in the white list
        • type== 1 the ou is add in the black list
        connDao - DAO the connection dao
        Throws:
        com.engiweb.toolkit.common.BackendException - the backend exception
      • removeEntitlement

        void removeEntitlement(com.engiweb.pm.entity.BeanList<EntitlementBean> listBean,
                               TemplateBean templateBean,
                               int type,
                               com.engiweb.pm.dao.db.DAO connDao)
                        throws com.engiweb.toolkit.common.BackendException
        Removes the entitlement.
        Parameters:
        listBean - BeanList of EntitlementBean the list of entitlement to remove
        templateBean - TemplateBean the template
        type - int: indicates if the operation to be perform in the white or black list
        • type == 0 the ou is add in the white list
        • type== 1 the ou is add in the black list
        connDao - DAO the connection dao
        Throws:
        com.engiweb.toolkit.common.BackendException - the backend exception
      • addPerson

        void addPerson(com.engiweb.pm.entity.BeanList<UserBean> listBean,
                       TemplateBean templateBean,
                       int type,
                       com.engiweb.pm.dao.db.DAO connDao)
                throws com.engiweb.toolkit.common.BackendException
        Adds the person.
        Parameters:
        listBean - BeanList of UserBean the list of user to add
        templateBean - TemplateBean the template
        type - int: indicates if the operation to be perform in the white or black list
        • type == 0 the ou is add in the white list
        • type== 1 the ou is add in the black list
        connDao - DAO the connection dao
        Throws:
        com.engiweb.toolkit.common.BackendException - the backend exception
      • removePerson

        void removePerson(com.engiweb.pm.entity.BeanList<UserBean> listBean,
                          TemplateBean templateBean,
                          int type,
                          com.engiweb.pm.dao.db.DAO connDao)
                   throws com.engiweb.toolkit.common.BackendException
        Removes the person.
        Parameters:
        listBean - BeanList of UserBean the list of user to remove
        templateBean - TemplateBean the template
        type - int: indicates if the operation to be perform in the white or black list
        • type == 0 the ou is add in the white list
        • type== 1 the ou is add in the black list
        connDao - DAO the connection dao
        Throws:
        com.engiweb.toolkit.common.BackendException - the backend exception
      • addAccount

        void addAccount(com.engiweb.pm.entity.BeanList<PwdCfgBean> listBean,
                        TemplateBean templateBean,
                        int type,
                        com.engiweb.pm.dao.db.DAO connDao)
                 throws com.engiweb.toolkit.common.BackendException
        Adds the account.
        Parameters:
        listBean - BeanList of PwdCfgBean the list of configuration
        templateBean - TemplateBean the template
        type - int: indicates if the operation to be perform in the white or black list
        • type == 0 the ou is add in the white list
        • type== 1 the ou is add in the black list
        connDao - DAO the connection dao
        Throws:
        com.engiweb.toolkit.common.BackendException - the backend exception
      • removeAccount

        void removeAccount(com.engiweb.pm.entity.BeanList<PwdCfgBean> listBean,
                           TemplateBean templateBean,
                           int type,
                           com.engiweb.pm.dao.db.DAO connDao)
                    throws com.engiweb.toolkit.common.BackendException
        Removes the account.
        Parameters:
        listBean - BeanList of PwdCfgBean list of account to removes
        templateBean - TemplateBean the template
        type - int: indicates if the operation to be perform in the white or black list
        • type == 0 the ou is add in the white list
        • type== 1 the ou is add in the black list
        connDao - DAO the connection dao
        Throws:
        com.engiweb.toolkit.common.BackendException - the backend exception
      • findPerson

        com.engiweb.pm.entity.BeanList<UserBean> findPerson(UserBean userBean,
                                                            TemplateBean templateBean,
                                                            int type,
                                                            com.engiweb.pm.entity.Paging paging,
                                                            com.engiweb.pm.dao.db.DAO connDao)
                                                     throws com.engiweb.toolkit.common.BackendException
        Find person.
        Parameters:
        userBean - UserBean the user
        templateBean - TemplateBean the template
        type - int: indicates if the operation to be perform in the white or black list
        • type == 0 the ou is add in the white list
        • type== 1 the ou is add in the black list
        paging - Paging
        connDao - DAO the connection dao
        Returns:
        BeanList of UserBean
        Throws:
        com.engiweb.toolkit.common.BackendException - the backend exception
      • findEntitlement

        com.engiweb.pm.entity.BeanList<EntitlementBean> findEntitlement(EntitlementBean entBean,
                                                                        TemplateBean templateBean,
                                                                        int type,
                                                                        com.engiweb.pm.entity.Paging paging,
                                                                        com.engiweb.pm.dao.db.DAO connDao)
                                                                 throws com.engiweb.toolkit.common.BackendException
        Find entitlement.
        Parameters:
        entBean - EntitlementBean the entitlement
        templateBean - TemplateBean the template
        type - int: indicates if the operation to be perform in the white or black list
        • type == 0 the ou is add in the white list
        • type== 1 the ou is add in the black list
        paging - Paging
        connDao - DAO the connection dao
        Returns:
        BeanList of EntitlementBean
        Throws:
        com.engiweb.toolkit.common.BackendException - the backend exception
      • findApplication

        com.engiweb.pm.entity.BeanList<ApplicationBean> findApplication(ApplicationBean appBean,
                                                                        TemplateBean templateBean,
                                                                        int type,
                                                                        com.engiweb.pm.entity.Paging paging,
                                                                        com.engiweb.pm.dao.db.DAO connDao)
                                                                 throws com.engiweb.toolkit.common.BackendException
        Find application.
        Parameters:
        appBean - ApplicationBean the application
        templateBean - TemplateBean the template
        type - int: indicates if the operation to be perform in the white or black list
        • type == 0 the ou is add in the white list
        • type== 1 the ou is add in the black list
        paging - Paging
        connDao - DAO the connection dao
        Returns:
        BeanList of ApplicationBean
        Throws:
        com.engiweb.toolkit.common.BackendException - the backend exception
      • findOU

        @Deprecated
        com.engiweb.pm.entity.BeanList<OrgUnitBean> findOU(OrgUnitBean ouBean,
                                                                       TemplateBean templateBean,
                                                                       int type,
                                                                       com.engiweb.pm.entity.Paging paging,
                                                                       com.engiweb.pm.dao.db.DAO connDao)
                                                                throws com.engiweb.toolkit.common.BackendException
        Deprecated. Replaced Bt #findGroup(GroupBean, TemplateBean, int, Paging, DAO)
        Throws:
        com.engiweb.toolkit.common.BackendException
      • findGroup

        com.engiweb.pm.entity.BeanList<GroupBean> findGroup(GroupBean groupBean,
                                                            HierarchyBean hierarchyBean,
                                                            TemplateBean templateBean,
                                                            int type,
                                                            com.engiweb.pm.entity.Paging paging,
                                                            com.engiweb.pm.dao.db.DAO connDao)
                                                     throws com.engiweb.toolkit.common.BackendException
        Find group.
        Parameters:
        groupBean - GroupBean the group
        hierarchyBean - HierarchyBean the hierarchy mandatory
        templateBean - TemplateBean
        type - int: indicates if the operation to be perform in the white or black list
        • type == 0 the ou is add in the white list
        • type== 1 the ou is add in the black list
        paging - Paging
        connDao - DAO the connection dao
        Returns:
        BeanList of OrgUnitBean
        Throws:
        com.engiweb.toolkit.common.BackendException - the backend exception
      • findAccount

        com.engiweb.pm.entity.BeanList<PwdCfgBean> findAccount(PwdCfgBean pwdCfgBean,
                                                               TemplateBean templateBean,
                                                               int type,
                                                               com.engiweb.pm.entity.Paging paging,
                                                               com.engiweb.pm.dao.db.DAO connDao)
                                                        throws com.engiweb.toolkit.common.BackendException
        Find account.
        Parameters:
        pwdCfgBean - PwdCfgBean the configuration
        templateBean - TemplateBean the template
        type - int: indicates if the operation to be perform in the white or black list
        • type == 0 the ou is add in the white list
        • type== 1 the ou is add in the black list
        paging - Paging the paging
        connDao - DAO the connection dao
        Returns:
        BeanList of PwdCfgBean
        Throws:
        com.engiweb.toolkit.common.BackendException - the backend exception
      • removeAllEntitlement

        void removeAllEntitlement(TemplateBean templateBean,
                                  int type,
                                  com.engiweb.pm.dao.db.DAO connDao)
                           throws com.engiweb.toolkit.common.BackendException
        Removes the all entitlement.
        Parameters:
        templateBean - TemplateBean the template
        type - int: indicates if the operation to be perform in the white or black list
        • type == 0 the ou is add in the white list
        • type== 1 the ou is add in the black list
        connDao - DAO the connection dao
        Throws:
        com.engiweb.toolkit.common.BackendException - the backend exception
      • removeAllPerson

        void removeAllPerson(TemplateBean templateBean,
                             int type,
                             com.engiweb.pm.dao.db.DAO connDao)
                      throws com.engiweb.toolkit.common.BackendException
        Removes the all person.
        Parameters:
        templateBean - TemplateBean the template
        type - int: indicates if the operation to be perform in the white or black list
        • type == 0 the ou is add in the white list
        • type== 1 the ou is add in the black list
        connDao - DAO the connection dao
        Throws:
        com.engiweb.toolkit.common.BackendException - the backend exception
      • removeAllOU

        @Deprecated
        void removeAllOU(TemplateBean templateBean,
                                     int type,
                                     com.engiweb.pm.dao.db.DAO connDao)
                              throws com.engiweb.toolkit.common.BackendException
        Throws:
        com.engiweb.toolkit.common.BackendException
      • removeAllGroup

        void removeAllGroup(TemplateBean templateBean,
                            int type,
                            com.engiweb.pm.dao.db.DAO connDao)
                     throws com.engiweb.toolkit.common.BackendException
        Removes the all group.
        Parameters:
        templateBean - TemplateBean the template
        type - int: indicates if the operation to be perform in the white or black list
        • type == 0 the ou is add in the white list
        • type== 1 the ou is add in the black list
        connDao - DAO the connection dao
        Throws:
        com.engiweb.toolkit.common.BackendException - the backend exception
      • removeAllApplication

        void removeAllApplication(TemplateBean templateBean,
                                  int type,
                                  com.engiweb.pm.dao.db.DAO connDao)
                           throws com.engiweb.toolkit.common.BackendException
        Removes the all application.
        Parameters:
        templateBean - TemplateBean the template
        type - int: indicates if the operation to be perform in the white or black list
        • type == 0 the ou is add in the white list
        • type== 1 the ou is add in the black list
        connDao - DAO the connection dao
        Throws:
        com.engiweb.toolkit.common.BackendException - the backend exception
      • findRisk

        com.engiweb.pm.entity.BeanList<RiskBean> findRisk(RiskBean riskBean,
                                                          TemplateBean templateBean,
                                                          int type,
                                                          com.engiweb.pm.entity.Paging paging,
                                                          com.engiweb.pm.dao.db.DAO connDao)
                                                   throws com.engiweb.toolkit.common.BackendException
        Find risk.
        Parameters:
        riskBean - RiskBean the risk
        templateBean - TemplateBean the template
        type - int: indicates if the operation to be perform in the white or black list
        • type == 0 the ou is add in the white list
        • type== 1 the ou is add in the black list
        paging - Paging
        connDao - DAO the connection dao
        Returns:
        BeanList of RiskBean
        Throws:
        com.engiweb.toolkit.common.BackendException - the backend exception
      • addRisk

        void addRisk(com.engiweb.pm.entity.BeanList<RiskBean> listBean,
                     TemplateBean templateBean,
                     int type,
                     com.engiweb.pm.dao.db.DAO connDao)
              throws com.engiweb.toolkit.common.BackendException
        Adds the risk.
        Parameters:
        listBean - BeanList of RiskBean list of risk
        templateBean - TemplateBean the template
        type - int: indicates if the operation to be perform in the white or black list
        • type == 0 the ou is add in the white list
        • type== 1 the ou is add in the black list
        connDao - DAO the connection dao
        Throws:
        com.engiweb.toolkit.common.BackendException - the backend exception
      • removeRisk

        void removeRisk(com.engiweb.pm.entity.BeanList<RiskBean> listBean,
                        TemplateBean templateBean,
                        int type,
                        com.engiweb.pm.dao.db.DAO connDao)
                 throws com.engiweb.toolkit.common.BackendException
        Removes the risk.
        Parameters:
        listBean - BeanList of RiskBean
        templateBean - TemplateBean the template
        type - int: indicates if the operation to be perform in the white or black list
        • type == 0 the ou is add in the white list
        • type== 1 the ou is add in the black list
        connDao - DAO the connection dao
        Throws:
        com.engiweb.toolkit.common.BackendException - the backend exception
      • removeAllRisk

        void removeAllRisk(TemplateBean templateBean,
                           int type,
                           com.engiweb.pm.dao.db.DAO connDao)
                    throws com.engiweb.toolkit.common.BackendException
        Removes the all risk.
        Parameters:
        templateBean - TemplateBean the template
        type - int: indicates if the operation to be perform in the white or black list
        • type == 0 the ou is add in the white list
        • type== 1 the ou is add in the black list
        connDao - DAO the connection dao
        Throws:
        com.engiweb.toolkit.common.BackendException - the backend exception
      • removeAllAccount

        void removeAllAccount(TemplateBean templateBean,
                              int type,
                              com.engiweb.pm.dao.db.DAO connDao)
                       throws com.engiweb.toolkit.common.BackendException
        Removes the all account.
        Parameters:
        templateBean - TemplateBean the template
        type - int: indicates if the operation to be perform in the white or black list
        • type == 0 the ou is add in the white list
        • type== 1 the ou is add in the black list
        connDao - DAO the connection dao
        Throws:
        com.engiweb.toolkit.common.BackendException - the backend exception
      • findProperty

        com.engiweb.pm.entity.BeanList<TemplatePropBean> findProperty(TemplatePropBean templatePropBean,
                                                                      TemplateBean templateBean,
                                                                      com.engiweb.pm.entity.Paging paging,
                                                                      com.engiweb.pm.dao.db.DAO connDao)
                                                               throws com.engiweb.toolkit.common.BackendException
        Find template properties.
        Parameters:
        templatePropBean - TemplatePropBean the template property
        templateBean - TemplateBean the template
        paging - Paging the paging
        connDao - DAO the conn dao
        Returns:
        of TemplatePropBean
        Throws:
        com.engiweb.toolkit.common.BackendException - the backend exception
      • updateProperty

        void updateProperty(com.engiweb.pm.entity.BeanList<TemplatePropBean> propertyBeans,
                            TemplateBean templateBean,
                            com.engiweb.pm.dao.db.DAO connDao)
                     throws com.engiweb.toolkit.common.BackendException
        Update property.
        Parameters:
        propertyBeans - BeanList of TemplatePropBean the template property
        templateBean - TemplateBean the template
        connDao - DAO the connection dao
        Throws:
        com.engiweb.toolkit.common.BackendException - the backend exception