Class IdentityAttributeFormatterService


  • public class IdentityAttributeFormatterService
    extends java.lang.Object
    Service class used to format attribute values in requests
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.AttributeStatus buildAttributeValueFormattedStatus​(java.lang.String attrStrKey, java.lang.String oldValue, java.lang.String newValue)
      Build attribute value formatted status
      java.lang.String formatDateValue​(java.lang.String value)
      Put a leading zero in day and month parts if they contain only one character
      java.util.List<fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.AttributeStatus> formatDuplicateSearchRequestAttributeValues​(java.util.Map<java.lang.String,​java.lang.String> attributes)
      Formats attribute values in the provided search request.
      java.util.List<fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.AttributeStatus> formatIdentityChangeRequestAttributeValues​(fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.crud.IdentityChangeRequest request)
      Formats attribute values in the Identity contained in the provided request.
      java.util.List<fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.AttributeStatus> formatIdentityMergeRequestAttributeValues​(fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.merge.IdentityMergeRequest request)
      Formats attribute values in the Identity contained in the provided request.
      java.util.List<fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.AttributeStatus> formatIdentitySearchRequestAttributeValues​(fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.search.IdentitySearchRequest request)
      Formats attribute values in the provided search request.
      static IdentityAttributeFormatterService instance()  
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • IdentityAttributeFormatterService

        public IdentityAttributeFormatterService()
    • Method Detail

      • formatIdentityChangeRequestAttributeValues

        public java.util.List<fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.AttributeStatus> formatIdentityChangeRequestAttributeValues​(fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.crud.IdentityChangeRequest request)
        Formats attribute values in the Identity contained in the provided request.
        Parameters:
        request - the identity change request
        See Also:
        formatIdentityAttributeValues(IdentityDto)
      • formatIdentityMergeRequestAttributeValues

        public java.util.List<fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.AttributeStatus> formatIdentityMergeRequestAttributeValues​(fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.merge.IdentityMergeRequest request)
        Formats attribute values in the Identity contained in the provided request.
        Parameters:
        request - the identity merge request
        See Also:
        formatIdentityAttributeValues(IdentityDto)
      • formatIdentitySearchRequestAttributeValues

        public java.util.List<fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.AttributeStatus> formatIdentitySearchRequestAttributeValues​(fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.search.IdentitySearchRequest request)
        Formats attribute values in the provided search request.
        Parameters:
        request - the identity change request
        See Also:
        formatAttribute(String, String, List)
      • formatDuplicateSearchRequestAttributeValues

        public java.util.List<fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.AttributeStatus> formatDuplicateSearchRequestAttributeValues​(java.util.Map<java.lang.String,​java.lang.String> attributes)
        Formats attribute values in the provided search request.
        Parameters:
        attributes - the searched attributes
        See Also:
        formatAttribute(String, String, List)
      • formatDateValue

        public java.lang.String formatDateValue​(java.lang.String value)
        Put a leading zero in day and month parts if they contain only one character
        Parameters:
        value - the value to format
        Returns:
        the formatted value
      • buildAttributeValueFormattedStatus

        public fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.AttributeStatus buildAttributeValueFormattedStatus​(java.lang.String attrStrKey,
                                                                                                                             java.lang.String oldValue,
                                                                                                                             java.lang.String newValue)
        Build attribute value formatted status
        Parameters:
        attrStrKey - the attribute key
        Returns:
        the status