Class DashboardIdentityService

java.lang.Object
fr.paris.lutece.plugins.mydashboard.modules.identity.service.DashboardIdentityService
All Implemented Interfaces:
IDashBoardIdentityService

public class DashboardIdentityService extends Object implements IDashBoardIdentityService
class DashboardIdentityService
  • Method Details

    • 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
    • needCertification

      public boolean needCertification(String strApplicationCode, String strGuid, DashboardIdentity dashboardIdentity, List<String> listAttributesNeedFC, int nLevelMin, int nLevelMax)
      Specified by:
      needCertification in interface IDashBoardIdentityService
    • getActiveServiceContract

      public fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.contract.ServiceContractSearchResponse getActiveServiceContract(String strApplicationCode)
      Description copied from interface: IDashBoardIdentityService
      Get active service contract
      Specified by:
      getActiveServiceContract in interface IDashBoardIdentityService
      Returns:
      active service contract
    • 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
    • checkDashboardIdentityFields

      public Map<String,String> checkDashboardIdentityFields(DashboardIdentity dashboardIdentity, javax.servlet.http.HttpServletRequest request, boolean bOnlyCheckMandatory, AttributeCategory attributeCategory)
      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
      attributeCategory - only check attributeCategory
      Returns:
      a Map of errors
    • checkDashboardIdentityFieldsFromServiceContract

      public Map<String,String> checkDashboardIdentityFieldsFromServiceContract(DashboardIdentity dashboardIdentity, javax.servlet.http.HttpServletRequest request, boolean bOnlyCheckMandatory, String strAppCode)
      Specified by:
      checkDashboardIdentityFieldsFromServiceContract in interface IDashBoardIdentityService
    • 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
    • updateDashboardIdentity

      public void updateDashboardIdentity(DashboardIdentity dashboardIdentity, boolean bUpdateOnlyManadtory, AttributeCategory attributeCategory) 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
      attributeCategory - update only DashbordIdentity Attribute in this Category
      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
    • populateDashboardIdentity

      public void populateDashboardIdentity(DashboardIdentity identity, javax.servlet.http.HttpServletRequest request)
      Populate dashboard identity.
      Specified by:
      populateDashboardIdentity in interface IDashBoardIdentityService
      Parameters:
      identity - the identity
      request - the request
    • populateDashboardIdentity

      public void populateDashboardIdentity(DashboardIdentity identity, javax.servlet.http.HttpServletRequest request, AttributeCategory attributeCategory)
      Populate dashboard identity.
      Specified by:
      populateDashboardIdentity in interface IDashBoardIdentityService
      Parameters:
      identity - the identity
      request - the request
      attributeCategory - update only DashbordIdentity Attribute in this Category
    • getSuspiciousIdentities

      public fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.search.DuplicateSearchResponse getSuspiciousIdentities(DashboardIdentity dashboardIdentity, List<String> listRules)
      Description copied from interface: IDashBoardIdentityService
      Search suspicious identities
      Specified by:
      getSuspiciousIdentities in interface IDashBoardIdentityService
      Returns:
      suspicious identities
    • existSuspiciousIdentities

      public boolean existSuspiciousIdentities(DashboardIdentity dashboardIdentity, List<String> listRules)
      Description copied from interface: IDashBoardIdentityService
      Return true if exist suspicious identities
      Specified by:
      existSuspiciousIdentities in interface IDashBoardIdentityService
      Returns:
      true if exist suspicious identities