Class IdentityAttributeFormatterService
java.lang.Object
fr.paris.lutece.plugins.identitystore.service.attribute.IdentityAttributeFormatterService
Service class used to format attribute values in requests
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.AttributeStatusbuildAttributeValueFormattedStatus(String attrStrKey, String oldValue, String newValue) Build attribute value formatted statusformatDateValue(String value) Put a leading zero in day and month parts if they contain only one characterList<fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.AttributeStatus>formatDuplicateSearchRequestAttributeValues(Map<String, String> attributes) Formats attribute values in the provided search request.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.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.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.instance()
-
Constructor Details
-
IdentityAttributeFormatterService
public IdentityAttributeFormatterService()
-
-
Method Details
-
instance
-
formatIdentityChangeRequestAttributeValues
public 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 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 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 List<fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.AttributeStatus> formatDuplicateSearchRequestAttributeValues(Map<String, String> attributes) Formats attribute values in the provided search request.- Parameters:
attributes- the searched attributes- See Also:
-
formatAttribute(String, String, List)
-
formatDateValue
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(String attrStrKey, String oldValue, String newValue) Build attribute value formatted status- Parameters:
attrStrKey- the attribute key- Returns:
- the status
-