use of org.wso2.carbon.identity.application.mgt.dao.impl.DefaultAuthSeqMgtDAOImpl in project carbon-identity-framework by wso2.
the class DefaultAuthSeqMgtServiceImpl method doGetDefaultAuthenticationSeqInfo.
private DefaultAuthenticationSequence doGetDefaultAuthenticationSeqInfo(String sequenceName, String tenantDomain) throws DefaultAuthSeqMgtException {
DefaultAuthenticationSequence sequence = getDefaultAuthSeqFromCache(sequenceName, tenantDomain);
if (sequence == null) {
DefaultAuthSeqMgtDAO seqMgtDAO = new DefaultAuthSeqMgtDAOImpl();
sequence = seqMgtDAO.getDefaultAuthenticationSeqInfo(sequenceName, tenantDomain);
}
return sequence;
}
use of org.wso2.carbon.identity.application.mgt.dao.impl.DefaultAuthSeqMgtDAOImpl in project carbon-identity-framework by wso2.
the class DefaultAuthSeqMgtServiceImpl method doGetDefaultAuthSeq.
private DefaultAuthenticationSequence doGetDefaultAuthSeq(String sequenceName, String tenantDomain) throws DefaultAuthSeqMgtException {
if (DefaultAuthSeqMgtCache.getInstance().isEnabled()) {
DefaultAuthSeqMgtCacheEntry entry = DefaultAuthSeqMgtCache.getInstance().getValueFromCache(sequenceName, tenantDomain);
if (entry != null) {
if (log.isDebugEnabled()) {
log.debug("Default authentication sequence of tenant: " + tenantDomain + " is retrieved from cache.");
}
return entry.getSequence();
}
}
DefaultAuthSeqMgtDAO seqMgtDAO = new DefaultAuthSeqMgtDAOImpl();
DefaultAuthenticationSequence sequence = seqMgtDAO.getDefaultAuthenticationSeq(sequenceName, tenantDomain);
if (sequence != null) {
addDefaultAuthSeqToCache(sequence, tenantDomain);
}
return sequence;
}
use of org.wso2.carbon.identity.application.mgt.dao.impl.DefaultAuthSeqMgtDAOImpl in project carbon-identity-framework by wso2.
the class DefaultAuthSeqMgtServiceImpl method doDeleteDefaultAuthSeq.
private void doDeleteDefaultAuthSeq(String sequenceName, String tenantDomain) throws DefaultAuthSeqMgtServerException {
DefaultAuthSeqMgtDAO seqMgtDAO = new DefaultAuthSeqMgtDAOImpl();
seqMgtDAO.deleteDefaultAuthenticationSeq(sequenceName, tenantDomain);
removeDefaultAuthSeqFromCache(sequenceName, tenantDomain);
}
use of org.wso2.carbon.identity.application.mgt.dao.impl.DefaultAuthSeqMgtDAOImpl in project carbon-identity-framework by wso2.
the class DefaultAuthSeqMgtServiceImpl method doUpdateDefaultAuthSeq.
private void doUpdateDefaultAuthSeq(String sequenceName, DefaultAuthenticationSequence sequence, String tenantDomain) throws DefaultAuthSeqMgtServerException {
DefaultAuthSeqMgtDAO seqMgtDAO = new DefaultAuthSeqMgtDAOImpl();
seqMgtDAO.updateDefaultAuthenticationSeq(sequenceName, sequence, tenantDomain);
addDefaultAuthSeqToCache(sequence, tenantDomain);
}
use of org.wso2.carbon.identity.application.mgt.dao.impl.DefaultAuthSeqMgtDAOImpl in project carbon-identity-framework by wso2.
the class DefaultAuthSeqMgtServiceImpl method doCreateDefaultAuthSeq.
private void doCreateDefaultAuthSeq(DefaultAuthenticationSequence sequence, String tenantDomain) throws DefaultAuthSeqMgtException {
DefaultAuthSeqMgtDAO seqMgtDAO = new DefaultAuthSeqMgtDAOImpl();
seqMgtDAO.createDefaultAuthenticationSeq(sequence, tenantDomain);
addDefaultAuthSeqToCache(sequence, tenantDomain);
}
Aggregations