public class DashboardIdentityUtils extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
DASHBOARD_APP_CODE |
static String |
SESSION_ERROR_MESSAGE |
static String |
SESSION_INFO_MESSAGE |
static String |
SESSION_SN_NAME |
| Modifier and Type | Method and Description |
|---|---|
DashboardIdentity |
convertToDashboardIdentity(fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.IdentityDto identity)
return an dashboardIdentity from a identityDto
|
DashboardIdentity |
convertToDashboardIdentity(fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.IdentityDto identity,
fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.contract.ServiceContractSearchResponse contractSearchResponse)
return an dashboardIdentity from a identityDto
|
fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.IdentityDto |
convertToIdentityDto(DashboardIdentity dashboardIdentity,
boolean bOnlyMandatory)
return an identityDto from a DashboardIdentity
|
void |
filterByCertifier(fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.IdentityDto identity)
Drop attributes from IdentityDto if there is a certificate.
|
List<String> |
getAllSuspiciousIdentityRules()
Gets all rules
|
DashboardIdentity |
getCurrentDashboardIdentityInSession(javax.servlet.http.HttpServletRequest request) |
fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.IdentityDto |
getIdentity(String strConnectionId)
return identitySearchResponse from strConnectionId
|
static DashboardIdentityUtils |
getInstance() |
Map<String,String> |
getMapAttributeKeyMatch() |
String |
getMessageInSession(boolean bErrorMessage,
boolean bRemoveAttribute,
javax.servlet.http.HttpServletRequest request)
Get message in the session
|
String |
getNumericServiceNameInSession(javax.servlet.http.HttpServletRequest request)
Get name of numeric service in the session
|
fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.RequestAuthor |
getOwnerRequestAuthor()
Gets the owner request author.
|
String |
getRedirectUrlAfterCompletionInSession(javax.servlet.http.HttpServletRequest request) |
List<String> |
getSuspiciousIdentityNotStrictRules()
Gets not strict rules
|
List<String> |
getSuspiciousIdentityStrictRules()
Gets strict rules
|
DashboardIdentity |
initMandatoryAttributeForCompletionIdentity(DashboardIdentity completionIdentity,
String strOriginActionCompletion)
Set mandatory attribute for completion identity
|
static boolean |
isDashboardAttributeCertified(DashboardAttribute dashboardAttribute)
return true if the attribute have a level of certification > declaratif
|
boolean |
isMandatoryAttribute(fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.contract.ServiceContractSearchResponse contractSearchResponse,
String identityAttributeKey)
Return true if the attribute is mandatory
|
boolean |
isMandatoryCompletionCreateAndCompletionAccount(Map.Entry<String,String> attribute)
Return true if the attribute is mandatory for create account completion
|
boolean |
isMandatoryCompletionModifyAccount(Map.Entry<String,String> attribute)
Return true if the attribute is mandatory for modify account completion
|
boolean |
needCertification(DashboardIdentity dashboardIdentity,
fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.contract.ServiceContractSearchResponse contractSearchResponse,
List<String> strAttributesNeedFC,
int nLevelMin) |
void |
populateDashboardIdentity(DashboardIdentity identity,
javax.servlet.http.HttpServletRequest request)
populaite DashboardIdentity from the request
|
void |
setCurrentDashboardIdentityInSession(javax.servlet.http.HttpServletRequest request,
DashboardIdentity dashboardIdentity) |
void |
setMessageInSession(String strMessage,
boolean bErrorMessage,
javax.servlet.http.HttpServletRequest request)
Set message in the session
|
void |
setNumericServiceNameInSession(String strServiceNumericName,
javax.servlet.http.HttpServletRequest request)
Set Numeric service name in session
|
void |
setRedirectUrlAfterCompletionInSession(String strPage,
String strView,
javax.servlet.http.HttpServletRequest request) |
void |
updateDashboardIdentityInSession(DashboardIdentity currentDasboardIdentity,
DashboardIdentity dasboardIdentitySession)
Update dashboardIdentity in the session
|
void |
updateIdentity(fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.IdentityDto identity)
Update Identity from an IdentityDto.
|
public static final String DASHBOARD_APP_CODE
public static final String SESSION_ERROR_MESSAGE
public static final String SESSION_INFO_MESSAGE
public static final String SESSION_SN_NAME
public static DashboardIdentityUtils getInstance()
public DashboardIdentity convertToDashboardIdentity(fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.IdentityDto identity)
identitySearchResponse - identitySearchResponse to convertpublic DashboardIdentity convertToDashboardIdentity(fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.IdentityDto identity, fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.contract.ServiceContractSearchResponse contractSearchResponse)
identity - identityDto to convertcontractSearchResponse - The App contractpublic boolean needCertification(DashboardIdentity dashboardIdentity, fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.contract.ServiceContractSearchResponse contractSearchResponse, List<String> strAttributesNeedFC, int nLevelMin)
public fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.IdentityDto convertToIdentityDto(DashboardIdentity dashboardIdentity, boolean bOnlyMandatory)
dashboardIdentity - dashboardIdentity to convertbOnlyMandatory - true the IdentitityDTO must contains only Mandatory informationspublic boolean isMandatoryAttribute(fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.contract.ServiceContractSearchResponse contractSearchResponse,
String identityAttributeKey)
contractSearchResponse - identityAttributeKey - public void populateDashboardIdentity(DashboardIdentity identity, javax.servlet.http.HttpServletRequest request)
identity - the DashboardIdentityrequest - the HttpServletRequestpublic void filterByCertifier(fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.IdentityDto identity)
identity - public fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.IdentityDto getIdentity(String strConnectionId)
strConnectionId - user connection idfr.paris.lutece.portal.service.security.UserNotSignedExceptionpublic void updateIdentity(fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.IdentityDto identity)
throws fr.paris.lutece.portal.service.util.AppException
identityDto - identity Data transfer Objectfr.paris.lutece.plugins.identitystore.web.exception.IdentityNotFoundException - the identity not found exceptionfr.paris.lutece.portal.service.util.AppException - the app exceptionpublic fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.RequestAuthor getOwnerRequestAuthor()
public DashboardIdentity getCurrentDashboardIdentityInSession(javax.servlet.http.HttpServletRequest request)
request - public void setCurrentDashboardIdentityInSession(javax.servlet.http.HttpServletRequest request,
DashboardIdentity dashboardIdentity)
request - dashboardIdentity - public String getRedirectUrlAfterCompletionInSession(javax.servlet.http.HttpServletRequest request)
request - public void setRedirectUrlAfterCompletionInSession(String strPage, String strView, javax.servlet.http.HttpServletRequest request)
strRedirectXPage - request - public String getNumericServiceNameInSession(javax.servlet.http.HttpServletRequest request)
request - public void setNumericServiceNameInSession(String strServiceNumericName, javax.servlet.http.HttpServletRequest request)
strServiceNumericName - request - public String getMessageInSession(boolean bErrorMessage, boolean bRemoveAttribute, javax.servlet.http.HttpServletRequest request)
bErrorMessage - ( set true if is a error message and false if is a info message )bRemoveAttribute - request - request - public void setMessageInSession(String strMessage, boolean bErrorMessage, javax.servlet.http.HttpServletRequest request)
strMessage - bErrorMessage - ( set true if is a error message and false if is a info message )request - public List<String> getAllSuspiciousIdentityRules()
public List<String> getSuspiciousIdentityStrictRules()
public List<String> getSuspiciousIdentityNotStrictRules()
public DashboardIdentity initMandatoryAttributeForCompletionIdentity(DashboardIdentity completionIdentity, String strOriginActionCompletion)
public boolean isMandatoryCompletionCreateAndCompletionAccount(Map.Entry<String,String> attribute)
attribute - public boolean isMandatoryCompletionModifyAccount(Map.Entry<String,String> attribute)
attribute - public void updateDashboardIdentityInSession(DashboardIdentity currentDasboardIdentity, DashboardIdentity dasboardIdentitySession)
currentDasboardIdentity - currentDasboardIdentity - in sessionpublic static boolean isDashboardAttributeCertified(DashboardAttribute dashboardAttribute)
dashboardAttribute - Copyright © 2024 City of Paris. All rights reserved.