service-registry/src/main/java/de/evoila/osb/service/registry/manager/CloudContextManager.java
public void clear() {
        Iterator<CloudContext> iterator = getAll().iterator();
        while (iterator.hasNext()) {
            CloudContext context = iterator.next();
            if (context.getSite() != null) {
                context.getSite().getContexts().remove(context);
                siteManager.update(context.getSite());
            }
            context.setSite(null);
        }
        super.clear();
    }
/**
     * Clears all cloud contexts from the storage.
     * Additionally removes entries from all {@linkplain CloudSite#getContexts()} first, before calling {@linkplain BasicManager#clear()}.
     */
Clears all cloud contexts from the storage.
Additionally removes entries from all  CloudSite#getContexts() first, before calling  BasicManager#clear().
Clears all cloud contexts from the storage . Additionally removes entries from all CloudSite#getContexts () first before calling BasicManager#clear () .
public void clear() {
        Iterator<CloudContext> iterator = getAll().iterator();
        while (iterator.hasNext()) {
            CloudContext context = iterator.next();
            if (context.getSite() != null) {
                context.getSite().getContexts().remove(context);
                siteManager.update(context.getSite());
            }
            context.setSite(null);
        }
        super.clear();
    }
public void clear ( ) { Iterator < CloudContext > iterator = getAll ( ) . iterator ( ) ; while ( iterator . hasNext ( ) ) { CloudContext context = iterator . next ( ) ; if ( context . getSite ( ) != null ) { context . getSite ( ) . getContexts ( ) . remove ( context ) ; siteManager . update ( context . getSite ( ) ) ; } context . setSite ( null ) ; } super . clear ( ) ; }
Clears all cloud contexts from the storage.
Clears all cloud contexts from the storage .