Class DashboardIdentityService

    • Method Detail

      • getInstance

        public static IDashBoardIdentityService getInstance()
        Gets the single instance of DashboardIdentityService.
        Returns:
        single instance of DashboardIdentityService
      • getDashBoardIdentity

        public DashboardIdentity getDashBoardIdentity​(String strApplicationCode)
                                               throws fr.paris.lutece.portal.service.util.AppException
        Gets the dash board identity
        Specified by:
        getDashBoardIdentity in interface IDashBoardIdentityService
        Parameters:
        strApplicationCode - the str application code
        Returns:
        the dash board identity
        Throws:
        fr.paris.lutece.portal.service.util.AppException - the app exception
      • getDashBoardIdentity

        public DashboardIdentity getDashBoardIdentity​(String strApplicationCode,
                                                      String strGuid)
                                               throws fr.paris.lutece.portal.service.util.AppException
        Gets the dash board identity.
        Specified by:
        getDashBoardIdentity in interface IDashBoardIdentityService
        Parameters:
        strApplicationCode - the str application code
        strGuid - the user guid
        Returns:
        the dash board identity
        Throws:
        fr.paris.lutece.portal.service.util.AppException - the app exception
      • checkDashboardIdentityFields

        public Map<String,​String> checkDashboardIdentityFields​(DashboardIdentity dashboardIdentity,
                                                                     javax.servlet.http.HttpServletRequest request,
                                                                     boolean bOnlyCheckMandatory)
        Check fields format of dashboardIdentity.
        Specified by:
        checkDashboardIdentityFields in interface IDashBoardIdentityService
        Parameters:
        dashboardIdentity - dashboardIdentity to check
        request - the httpServletrequest
        bOnlyCheckMandatory - true if only mandatory file must be checked
        Returns:
        a Map of errors
      • updateDashboardIdentity

        public void updateDashboardIdentity​(DashboardIdentity dashboardIdentity,
                                            boolean bUpdateOnlyManadtory)
                                     throws fr.paris.lutece.portal.service.util.AppException
        Update identitity using dashboardinformations.
        Specified by:
        updateDashboardIdentity in interface IDashBoardIdentityService
        Parameters:
        dashboardIdentity - the dashboard identity
        bUpdateOnlyManadtory - Only Update mandatory Informations
        Throws:
        fr.paris.lutece.portal.service.util.AppException - the app exception
      • getIdentityToUpdate

        public fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.IdentityDto getIdentityToUpdate​(DashboardIdentity dashboardIdentity,
                                                                                                          boolean bUpdateOnlyManadtory)
        Return an IdentityDTO object wich contains only identity fields to update
        Specified by:
        getIdentityToUpdate in interface IDashBoardIdentityService
        Parameters:
        dashboardIdentity - the dashboard Identity
        bUpdateOnlyManadtory - only madantarory field must be updated
        Returns:
        an IdentityDTO object wich contains only identity fields to update