Class AttachmentRequestUtils
- java.lang.Object
-
- fr.paris.lutece.plugins.attachmentrequest.util.AttachmentRequestUtils
-
public class AttachmentRequestUtils extends java.lang.ObjectAttachmentRequestUtils
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static booleancanProcessAttachmentRequest(fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.IdentityDto identityDto, java.lang.String strApplicationCode)This method determines whether a user is authorized to initiate an attachment request.static booleancanShowUserDataForm(fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.IdentityDto identityDto)Allows the display of the user information block in the form to be conditional.static java.util.Map<java.lang.String,java.lang.String>checkIdentityForm(IdentityFormDTO identityFormDto)static IdentityFormDTOconvertToIdentityFormDTO(fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.IdentityDto identityDTO)Convert to identity form dtostatic voidkeepOnlyModifiedAttributes(fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.IdentityDto newIdentity)Filters the attributes of the given IdentityDto to keep only those that have been modified.static voidupdateIdentityDto(fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.IdentityDto identityDto, IdentityFormDTO identityFormDTO)Update identityDto data
-
-
-
Method Detail
-
convertToIdentityFormDTO
public static IdentityFormDTO convertToIdentityFormDTO(fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.IdentityDto identityDTO)
Convert to identity form dto- Parameters:
identityDTO-- Returns:
-
updateIdentityDto
public static void updateIdentityDto(fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.IdentityDto identityDto, IdentityFormDTO identityFormDTO)Update identityDto data- Parameters:
identityDto-identityFormDTO-
-
checkIdentityForm
public static java.util.Map<java.lang.String,java.lang.String> checkIdentityForm(IdentityFormDTO identityFormDto)
-
canShowUserDataForm
public static boolean canShowUserDataForm(fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.IdentityDto identityDto)
Allows the display of the user information block in the form to be conditional.- Parameters:
identityDto-- Returns:
- Returns true if the user information block should be displayed
-
canProcessAttachmentRequest
public static boolean canProcessAttachmentRequest(fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.IdentityDto identityDto, java.lang.String strApplicationCode)This method determines whether a user is authorized to initiate an attachment request. It verifies that the user's certification level is strictly lower than the level required by the service contract, and that the minimum certification level required by the SN system falls within the LEVEL_MIN and LEVEL_MAX parameters.- Parameters:
identityDto-strApplicationCode-- Returns:
- true if can proccess
-
keepOnlyModifiedAttributes
public static void keepOnlyModifiedAttributes(fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.IdentityDto newIdentity)
Filters the attributes of the given IdentityDto to keep only those that have been modified.- Parameters:
newIdentity-
-
-