java.lang.Object
fr.paris.lutece.plugins.identitystore.v3.web.request.validator.IdentityValidator

public class IdentityValidator extends Object
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    checkIdentityDeletedStatusForDelete(fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.IdentityDto identityToDelete)
    Checks if the identity to delete is already deleted
    void
    checkIdentityDeletedStatusForUpdate(fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.IdentityDto existingIdentityToUpdate)
    Checks if the identity to update is already deleted
    void
    checkIdentityLastUpdateDate(fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.IdentityDto existingIdentityToUpdate, Timestamp requestLastUpdateDate)
    Checks if the sent last update date correlates with the actual identity's last update date
    void
    checkIdentityMergedStatusForMergeCancel(fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.IdentityDto primaryIdentity, fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.IdentityDto secondaryIdentity)
    Checks if the secondary identity to unmerge is already merged to the primary identity
    void
    checkIdentityMergedStatusForUpdate(fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.IdentityDto existingIdentityToUpdate)
    Checks if the identity to update is not merged
    void
    checkIDentityMergeStatusForDelete(fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.IdentityDto identityToDelete)
    Checks if the identity to update is not merged
     
    fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.search.IdentitySearchMessage
    verifyIfConsolidatedIdentitySearchResult(fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.IdentityDto result, String cuid, String guid)
    When the searched identity was merged, returns an IdentitySearchMessage to indicate that the returned Identity is the consolidated identity.

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • instance

      public static IdentityValidator instance()
    • checkIdentityLastUpdateDate

      public void checkIdentityLastUpdateDate(fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.IdentityDto existingIdentityToUpdate, Timestamp requestLastUpdateDate) throws fr.paris.lutece.plugins.identitystore.web.exception.ResourceConsistencyException
      Checks if the sent last update date correlates with the actual identity's last update date
      Parameters:
      existingIdentityToUpdate - the identity
      requestLastUpdateDate - the sent last update date
      Throws:
      fr.paris.lutece.plugins.identitystore.web.exception.ResourceConsistencyException - if the dates don't correlate
    • checkIdentityMergedStatusForUpdate

      public void checkIdentityMergedStatusForUpdate(fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.IdentityDto existingIdentityToUpdate) throws fr.paris.lutece.plugins.identitystore.web.exception.ResourceConsistencyException
      Checks if the identity to update is not merged
      Parameters:
      existingIdentityToUpdate - the identity
      Throws:
      fr.paris.lutece.plugins.identitystore.web.exception.ResourceConsistencyException - if the identity is already merged
    • checkIDentityMergeStatusForDelete

      public void checkIDentityMergeStatusForDelete(fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.IdentityDto identityToDelete) throws fr.paris.lutece.plugins.identitystore.web.exception.ResourceConsistencyException
      Checks if the identity to update is not merged
      Parameters:
      identityToDelete - identity to delete
      Throws:
      fr.paris.lutece.plugins.identitystore.web.exception.ResourceConsistencyException - if identity is merged
    • checkIdentityDeletedStatusForUpdate

      public void checkIdentityDeletedStatusForUpdate(fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.IdentityDto existingIdentityToUpdate) throws fr.paris.lutece.plugins.identitystore.web.exception.ResourceConsistencyException
      Checks if the identity to update is already deleted
      Parameters:
      existingIdentityToUpdate - the identity
      Throws:
      fr.paris.lutece.plugins.identitystore.web.exception.ResourceConsistencyException - if the identity is already deleted
    • checkIdentityDeletedStatusForDelete

      public void checkIdentityDeletedStatusForDelete(fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.IdentityDto identityToDelete) throws fr.paris.lutece.plugins.identitystore.web.exception.ResourceConsistencyException
      Checks if the identity to delete is already deleted
      Parameters:
      identityToDelete - the identity
      Throws:
      fr.paris.lutece.plugins.identitystore.web.exception.ResourceConsistencyException - if the identity is already deleted
    • checkIdentityMergedStatusForMergeCancel

      public void checkIdentityMergedStatusForMergeCancel(fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.IdentityDto primaryIdentity, fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.IdentityDto secondaryIdentity) throws fr.paris.lutece.plugins.identitystore.web.exception.ResourceConsistencyException
      Checks if the secondary identity to unmerge is already merged to the primary identity
      Parameters:
      primaryIdentity - the primary identity
      secondaryIdentity - the secondary identity
      Throws:
      fr.paris.lutece.plugins.identitystore.web.exception.ResourceConsistencyException - if the secondary identity is not merged to the primary identity
    • verifyIfConsolidatedIdentitySearchResult

      public fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.search.IdentitySearchMessage verifyIfConsolidatedIdentitySearchResult(fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.IdentityDto result, String cuid, String guid)
      When the searched identity was merged, returns an IdentitySearchMessage to indicate that the returned Identity is the consolidated identity.
      Parameters:
      result - the returned identity
      cuid - (requested or null)
      guid - (requested or null)
      Returns:
      a warning IdentitySearchMessage