Package org.openiam.srvc.am
Class AuthenticationRuleWebServiceImpl
- java.lang.Object
-
- org.openiam.srvc.AbstractApiService
-
- org.openiam.srvc.am.AuthenticationRuleWebServiceImpl
-
- All Implemented Interfaces:
AuthenticationRuleWebService
@Service("authenticationRuleWS") public class AuthenticationRuleWebServiceImpl extends AbstractApiService implements AuthenticationRuleWebService
-
-
Field Summary
-
Fields inherited from class org.openiam.srvc.AbstractApiService
applicationContext, log, rabbitMQSender
-
-
Constructor Summary
Constructors Constructor Description AuthenticationRuleWebServiceImpl(AuthenticationRuleQueue queue)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Response
deleteAuthRule(String ruleId)
delete AuthenticationRule object by rule idResponse
deleteAuthRuleStep(String stepId)
delete AuthenticationRuleStep object by step idResponse
deleteStepsLink(String stepsLinkId)
delete AuthenticationRuleStepsLink object by step idAuthenticationRuleListResponse
findAuthRules(AuthenticationRuleSearchBean searchBean, int from, int size)
Searches and returns list of AuthenticationRule objects, which are suitable for passed search criteriaResponse
getAllAuthRuleAuthentications(String ruleId)
get Authentications for AuthenticationRule object by rule idAuthenticationRule
getAuthRule(String ruleId)
get AuthenticationRule object by rule idResponse
getAuthRuleAuthenticationMap(String ruleId, AdaptiveAuthenticationExtraDataRequest params)
get Authentications for AuthenticationRule object mapped by rule IdResponse
getAuthRuleAuthentications(String ruleId, AdaptiveAuthenticationExtraDataRequest params)
get Authentications for AuthenticationRule object by rule idList<AdaptiveRisk>
getAuthRuleRisks(String ruleId)
get Risks for AuthenticationRule object by rule idAuthenticationRuleStep
getAuthRuleStep(String stepId)
get AuthenticationRuleStep object by step idList<AuthenticationRuleStep>
getAuthRuleSteps(String ruleId)
get AuthenticationRuleSteps object by rule idDbIpGeoStatus
getDbIpStatus()
get startDate and status of DB IP upload process : SUCCESS UPLOADING FAILDbIPGeo
getGeoByIp(String ip)
return geo location informationint
getNumOfAuthRules(AuthenticationRuleSearchBean searchBean)
Returns number of AuthenticationRule objects which are suitable for passed search criteriaList<AuthenticationRuleStepToStepXref>
getStepLinksByRuleId(String ruleId)
get AuthenticationRuleStepToStepLinks by rule idResponse
saveAuthRule(AuthenticationRule rule)
save AuthenticationRule objectResponse
saveAuthRuleStep(AuthenticationRuleStep ruleStep)
save AuthenticationRuleStep objectResponse
saveAuthRuleStepsFlowchart(AuthenticationRuleStepsFlowchart authenticationRuleStepsFlowchart)
save AuthenticationRuleStepsFlowchartResponse
saveStepsLink(AuthenticationRuleStepToStepXref authenticationRuleStepToStepXref)
save AuthenticationRuleStepsLink objectResponse
uploadGeoIpInfo(String fileName)
upload GeoIP information from csv to db-
Methods inherited from class org.openiam.srvc.AbstractApiService
broadcast, crudRequest, getBooleanValue, getIntValue, getIntValue, getRabbitMqQueue, getResponse, getResponse, getValue, getValue, getValueList, getValueList, idRequest, manageApiRequest, manageApiRequest, manageCrudApiRequest, manageCrudApiRequest, manageCrudApiRequest, manageCrudApiRequest, membershipRequestProcessing, membershipRequestProcessing, publish, publish, sendAsync, sendAsync
-
-
-
-
Constructor Detail
-
AuthenticationRuleWebServiceImpl
@Autowired public AuthenticationRuleWebServiceImpl(AuthenticationRuleQueue queue)
-
-
Method Detail
-
findAuthRules
public AuthenticationRuleListResponse findAuthRules(AuthenticationRuleSearchBean searchBean, int from, int size)
Description copied from interface:AuthenticationRuleWebService
Searches and returns list of AuthenticationRule objects, which are suitable for passed search criteria- Specified by:
findAuthRules
in interfaceAuthenticationRuleWebService
- Parameters:
searchBean
- - determines search criteriafrom
- - page index to startsize
- - page size- Returns:
- AuthenticationRuleListResponse
-
getNumOfAuthRules
public int getNumOfAuthRules(AuthenticationRuleSearchBean searchBean)
Description copied from interface:AuthenticationRuleWebService
Returns number of AuthenticationRule objects which are suitable for passed search criteria- Specified by:
getNumOfAuthRules
in interfaceAuthenticationRuleWebService
- Returns:
- int
-
getAuthRule
public AuthenticationRule getAuthRule(String ruleId)
Description copied from interface:AuthenticationRuleWebService
get AuthenticationRule object by rule id- Specified by:
getAuthRule
in interfaceAuthenticationRuleWebService
- Returns:
-
saveAuthRule
public Response saveAuthRule(AuthenticationRule rule)
Description copied from interface:AuthenticationRuleWebService
save AuthenticationRule object- Specified by:
saveAuthRule
in interfaceAuthenticationRuleWebService
- Returns:
-
deleteAuthRule
public Response deleteAuthRule(String ruleId)
Description copied from interface:AuthenticationRuleWebService
delete AuthenticationRule object by rule id- Specified by:
deleteAuthRule
in interfaceAuthenticationRuleWebService
- Returns:
-
getAuthRuleRisks
public List<AdaptiveRisk> getAuthRuleRisks(String ruleId)
Description copied from interface:AuthenticationRuleWebService
get Risks for AuthenticationRule object by rule id- Specified by:
getAuthRuleRisks
in interfaceAuthenticationRuleWebService
- Returns:
-
getAuthRuleAuthentications
public Response getAuthRuleAuthentications(String ruleId, AdaptiveAuthenticationExtraDataRequest params)
Description copied from interface:AuthenticationRuleWebService
get Authentications for AuthenticationRule object by rule id- Specified by:
getAuthRuleAuthentications
in interfaceAuthenticationRuleWebService
- Returns:
-
getAuthRuleAuthenticationMap
public Response getAuthRuleAuthenticationMap(String ruleId, AdaptiveAuthenticationExtraDataRequest params)
Description copied from interface:AuthenticationRuleWebService
get Authentications for AuthenticationRule object mapped by rule Id- Specified by:
getAuthRuleAuthenticationMap
in interfaceAuthenticationRuleWebService
- Returns:
-
getAllAuthRuleAuthentications
public Response getAllAuthRuleAuthentications(String ruleId)
Description copied from interface:AuthenticationRuleWebService
get Authentications for AuthenticationRule object by rule id- Specified by:
getAllAuthRuleAuthentications
in interfaceAuthenticationRuleWebService
- Returns:
-
getAuthRuleStep
public AuthenticationRuleStep getAuthRuleStep(String stepId)
Description copied from interface:AuthenticationRuleWebService
get AuthenticationRuleStep object by step id- Specified by:
getAuthRuleStep
in interfaceAuthenticationRuleWebService
- Returns:
-
getAuthRuleSteps
public List<AuthenticationRuleStep> getAuthRuleSteps(String ruleId)
Description copied from interface:AuthenticationRuleWebService
get AuthenticationRuleSteps object by rule id- Specified by:
getAuthRuleSteps
in interfaceAuthenticationRuleWebService
- Returns:
-
saveAuthRuleStep
public Response saveAuthRuleStep(AuthenticationRuleStep ruleStep)
Description copied from interface:AuthenticationRuleWebService
save AuthenticationRuleStep object- Specified by:
saveAuthRuleStep
in interfaceAuthenticationRuleWebService
- Returns:
-
deleteAuthRuleStep
public Response deleteAuthRuleStep(String stepId)
Description copied from interface:AuthenticationRuleWebService
delete AuthenticationRuleStep object by step id- Specified by:
deleteAuthRuleStep
in interfaceAuthenticationRuleWebService
- Returns:
-
getStepLinksByRuleId
public List<AuthenticationRuleStepToStepXref> getStepLinksByRuleId(String ruleId)
Description copied from interface:AuthenticationRuleWebService
get AuthenticationRuleStepToStepLinks by rule id- Specified by:
getStepLinksByRuleId
in interfaceAuthenticationRuleWebService
- Returns:
-
saveStepsLink
public Response saveStepsLink(AuthenticationRuleStepToStepXref authenticationRuleStepToStepXref)
Description copied from interface:AuthenticationRuleWebService
save AuthenticationRuleStepsLink object- Specified by:
saveStepsLink
in interfaceAuthenticationRuleWebService
- Returns:
-
deleteStepsLink
public Response deleteStepsLink(String stepsLinkId)
Description copied from interface:AuthenticationRuleWebService
delete AuthenticationRuleStepsLink object by step id- Specified by:
deleteStepsLink
in interfaceAuthenticationRuleWebService
- Returns:
-
saveAuthRuleStepsFlowchart
public Response saveAuthRuleStepsFlowchart(AuthenticationRuleStepsFlowchart authenticationRuleStepsFlowchart)
Description copied from interface:AuthenticationRuleWebService
save AuthenticationRuleStepsFlowchart- Specified by:
saveAuthRuleStepsFlowchart
in interfaceAuthenticationRuleWebService
- Returns:
-
getGeoByIp
public DbIPGeo getGeoByIp(String ip)
Description copied from interface:AuthenticationRuleWebService
return geo location information- Specified by:
getGeoByIp
in interfaceAuthenticationRuleWebService
- Returns:
- GeoLocation information
-
uploadGeoIpInfo
public Response uploadGeoIpInfo(String fileName)
Description copied from interface:AuthenticationRuleWebService
upload GeoIP information from csv to db- Specified by:
uploadGeoIpInfo
in interfaceAuthenticationRuleWebService
- Returns:
-
getDbIpStatus
public DbIpGeoStatus getDbIpStatus()
Description copied from interface:AuthenticationRuleWebService
get startDate and status of DB IP upload process : SUCCESS UPLOADING FAIL- Specified by:
getDbIpStatus
in interfaceAuthenticationRuleWebService
- Returns:
-
-