Class DashboardIdentityService
- java.lang.Object
-
- fr.paris.lutece.plugins.mydashboard.modules.identity.service.DashboardIdentityService
-
- All Implemented Interfaces:
IDashBoardIdentityService
public class DashboardIdentityService extends Object implements IDashBoardIdentityService
class DashboardIdentityService
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,String>checkDashboardIdentityFields(DashboardIdentity dashboardIdentity, javax.servlet.http.HttpServletRequest request, boolean bOnlyCheckMandatory)Check fields format of dashboardIdentity.Map<String,String>checkDashboardIdentityFields(DashboardIdentity dashboardIdentity, javax.servlet.http.HttpServletRequest request, boolean bOnlyCheckMandatory, AttributeCategory attributeCategory)Check fields format of dashboardIdentity.Map<String,String>checkDashboardIdentityFieldsFromServiceContract(DashboardIdentity dashboardIdentity, javax.servlet.http.HttpServletRequest request, boolean bOnlyCheckMandatory, String strAppCode)booleanexistSuspiciousIdentities(DashboardIdentity dashboardIdentity, List<String> listRules)Return true if exist suspicious identitiesfr.paris.lutece.plugins.identitystore.v3.web.rs.dto.contract.ServiceContractSearchResponsegetActiveServiceContract(String strApplicationCode)Get active service contractDashboardIdentitygetDashBoardIdentity(String strApplicationCode)Gets the dash board identityDashboardIdentitygetDashBoardIdentity(String strApplicationCode, String strGuid)Gets the dash board identity.fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.IdentityDtogetIdentityToUpdate(DashboardIdentity dashboardIdentity, boolean bUpdateOnlyManadtory)Return an IdentityDTO object wich contains only identity fields to updatestatic IDashBoardIdentityServicegetInstance()Gets the single instance of DashboardIdentityService.fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.search.DuplicateSearchResponsegetSuspiciousIdentities(DashboardIdentity dashboardIdentity, List<String> listRules)Search suspicious identitiesbooleanneedCertification(String strApplicationCode, String strGuid, DashboardIdentity dashboardIdentity, List<String> listAttributesNeedFC, int nLevelMin)voidpopulateDashboardIdentity(DashboardIdentity identity, javax.servlet.http.HttpServletRequest request)Populate dashboard identity.voidpopulateDashboardIdentity(DashboardIdentity identity, javax.servlet.http.HttpServletRequest request, AttributeCategory attributeCategory)Populate dashboard identity.voidupdateDashboardIdentity(DashboardIdentity dashboardIdentity, boolean bUpdateOnlyManadtory)Update identitity using dashboardinformations.voidupdateDashboardIdentity(DashboardIdentity dashboardIdentity, boolean bUpdateOnlyManadtory, AttributeCategory attributeCategory)Update identitity using dashboardinformations.
-
-
-
Method Detail
-
getInstance
public static IDashBoardIdentityService getInstance()
Gets the single instance of DashboardIdentityService.- Returns:
- single instance of DashboardIdentityService
-
getDashBoardIdentity
public DashboardIdentity getDashBoardIdentity(String strApplicationCode) throws fr.paris.lutece.portal.service.util.AppException
Gets the dash board identity- Specified by:
getDashBoardIdentityin interfaceIDashBoardIdentityService- Parameters:
strApplicationCode- the str application code- Returns:
- the dash board identity
- Throws:
fr.paris.lutece.portal.service.util.AppException- the app exception
-
getDashBoardIdentity
public DashboardIdentity getDashBoardIdentity(String strApplicationCode, String strGuid) throws fr.paris.lutece.portal.service.util.AppException
Gets the dash board identity.- Specified by:
getDashBoardIdentityin interfaceIDashBoardIdentityService- Parameters:
strApplicationCode- the str application codestrGuid- the user guid- Returns:
- the dash board identity
- Throws:
fr.paris.lutece.portal.service.util.AppException- the app exception
-
needCertification
public boolean needCertification(String strApplicationCode, String strGuid, DashboardIdentity dashboardIdentity, List<String> listAttributesNeedFC, int nLevelMin)
- Specified by:
needCertificationin interfaceIDashBoardIdentityService
-
getActiveServiceContract
public fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.contract.ServiceContractSearchResponse getActiveServiceContract(String strApplicationCode)
Description copied from interface:IDashBoardIdentityServiceGet active service contract- Specified by:
getActiveServiceContractin interfaceIDashBoardIdentityService- Returns:
- active service contract
-
checkDashboardIdentityFields
public Map<String,String> checkDashboardIdentityFields(DashboardIdentity dashboardIdentity, javax.servlet.http.HttpServletRequest request, boolean bOnlyCheckMandatory)
Check fields format of dashboardIdentity.- Specified by:
checkDashboardIdentityFieldsin interfaceIDashBoardIdentityService- Parameters:
dashboardIdentity- dashboardIdentity to checkrequest- the httpServletrequestbOnlyCheckMandatory- true if only mandatory file must be checked- Returns:
- a Map of errors
-
checkDashboardIdentityFields
public Map<String,String> checkDashboardIdentityFields(DashboardIdentity dashboardIdentity, javax.servlet.http.HttpServletRequest request, boolean bOnlyCheckMandatory, AttributeCategory attributeCategory)
Check fields format of dashboardIdentity.- Specified by:
checkDashboardIdentityFieldsin interfaceIDashBoardIdentityService- Parameters:
dashboardIdentity- dashboardIdentity to checkrequest- the httpServletrequestbOnlyCheckMandatory- true if only mandatory file must be checkedattributeCategory- only check attributeCategory- Returns:
- a Map of errors
-
checkDashboardIdentityFieldsFromServiceContract
public Map<String,String> checkDashboardIdentityFieldsFromServiceContract(DashboardIdentity dashboardIdentity, javax.servlet.http.HttpServletRequest request, boolean bOnlyCheckMandatory, String strAppCode)
- Specified by:
checkDashboardIdentityFieldsFromServiceContractin interfaceIDashBoardIdentityService
-
updateDashboardIdentity
public void updateDashboardIdentity(DashboardIdentity dashboardIdentity, boolean bUpdateOnlyManadtory) throws fr.paris.lutece.portal.service.util.AppException
Update identitity using dashboardinformations.- Specified by:
updateDashboardIdentityin interfaceIDashBoardIdentityService- Parameters:
dashboardIdentity- the dashboard identitybUpdateOnlyManadtory- Only Update mandatory Informations- Throws:
fr.paris.lutece.portal.service.util.AppException- the app exception
-
updateDashboardIdentity
public void updateDashboardIdentity(DashboardIdentity dashboardIdentity, boolean bUpdateOnlyManadtory, AttributeCategory attributeCategory) throws fr.paris.lutece.portal.service.util.AppException
Update identitity using dashboardinformations.- Specified by:
updateDashboardIdentityin interfaceIDashBoardIdentityService- Parameters:
dashboardIdentity- the dashboard identitybUpdateOnlyManadtory- Only Update mandatory InformationsattributeCategory- update only DashbordIdentity Attribute in this Category- Throws:
fr.paris.lutece.portal.service.util.AppException- the app exception
-
getIdentityToUpdate
public fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.IdentityDto getIdentityToUpdate(DashboardIdentity dashboardIdentity, boolean bUpdateOnlyManadtory)
Return an IdentityDTO object wich contains only identity fields to update- Specified by:
getIdentityToUpdatein interfaceIDashBoardIdentityService- Parameters:
dashboardIdentity- the dashboard IdentitybUpdateOnlyManadtory- only madantarory field must be updated- Returns:
- an IdentityDTO object wich contains only identity fields to update
-
populateDashboardIdentity
public void populateDashboardIdentity(DashboardIdentity identity, javax.servlet.http.HttpServletRequest request)
Populate dashboard identity.- Specified by:
populateDashboardIdentityin interfaceIDashBoardIdentityService- Parameters:
identity- the identityrequest- the request
-
populateDashboardIdentity
public void populateDashboardIdentity(DashboardIdentity identity, javax.servlet.http.HttpServletRequest request, AttributeCategory attributeCategory)
Populate dashboard identity.- Specified by:
populateDashboardIdentityin interfaceIDashBoardIdentityService- Parameters:
identity- the identityrequest- the requestattributeCategory- update only DashbordIdentity Attribute in this Category
-
getSuspiciousIdentities
public fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.search.DuplicateSearchResponse getSuspiciousIdentities(DashboardIdentity dashboardIdentity, List<String> listRules)
Description copied from interface:IDashBoardIdentityServiceSearch suspicious identities- Specified by:
getSuspiciousIdentitiesin interfaceIDashBoardIdentityService- Returns:
- suspicious identities
-
existSuspiciousIdentities
public boolean existSuspiciousIdentities(DashboardIdentity dashboardIdentity, List<String> listRules)
Description copied from interface:IDashBoardIdentityServiceReturn true if exist suspicious identities- Specified by:
existSuspiciousIdentitiesin interfaceIDashBoardIdentityService- Returns:
- true if exist suspicious identities
-
-