use of com.enonic.xp.security.IdProviderNotFoundException in project xp by enonic.
the class SecurityServiceImpl method deleteIdProvider.
@Override
public void deleteIdProvider(final IdProviderKey idProviderKey) {
removeRelationships(idProviderKey);
final NodeIds deletedNodes = callWithContext(() -> {
final NodePath idProviderNodePath = IdProviderNodeTranslator.toIdProviderNodePath(idProviderKey);
final Node node = this.nodeService.getByPath(idProviderNodePath);
if (node == null) {
return null;
}
return this.nodeService.deleteById(node.id());
});
if (deletedNodes == null) {
throw new IdProviderNotFoundException(idProviderKey);
}
}
Aggregations