use of org.wso2.carbon.identity.user.store.configuration.dto.UserStorePersistanceDTO in project carbon-identity-framework by wso2.
the class AbstractUserStoreDAO method updateUserStore.
@Override
public void updateUserStore(UserStoreDTO userStoreDTO, boolean isStateChange) throws IdentityUserStoreMgtException {
if (isStateChange) {
userStoreDTO = getUserStoreProperty(userStoreDTO);
}
UserStorePersistanceDTO userStorePersistanceDTO = getUserStorePersistanceDTO(userStoreDTO, getUserStoreProperties(userStoreDTO, userStoreDTO.getDomainId()));
userStorePersistanceDTO.setUserStoreDTO(userStoreDTO);
doUpdateUserStore(userStorePersistanceDTO, isStateChange);
}
use of org.wso2.carbon.identity.user.store.configuration.dto.UserStorePersistanceDTO in project carbon-identity-framework by wso2.
the class DatabaseBasedUserStoreDAOImpl method doUpdateUserStore.
@Override
protected void doUpdateUserStore(UserStorePersistanceDTO userStorePersistanceDTO, boolean isStateChange) throws IdentityUserStoreMgtException {
String domainName = userStorePersistanceDTO.getUserStoreDTO().getDomainId();
updateUserStoreProperties(domainName, userStorePersistanceDTO);
try {
removeRealmFromSecondaryUserStoreManager(domainName);
addRealmToSecondaryUserStoreManager(userStorePersistanceDTO);
} catch (UserStoreException | XMLStreamException e) {
throw new IdentityUserStoreMgtException("Error occured while updating the userstore.", e);
}
}
Aggregations