You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@syncope.apache.org by il...@apache.org on 2015/12/16 14:38:31 UTC
[12/30] syncope git commit: [SYNCOPE-740] Release process in place,
now time to check if it works
http://git-wip-us.apache.org/repos/asf/syncope/blob/b7f88690/client/old_console/src/main/java/org/apache/syncope/client/console/wicket/markup/html/form/MappingPurposePanel.java
----------------------------------------------------------------------
diff --git a/client/old_console/src/main/java/org/apache/syncope/client/console/wicket/markup/html/form/MappingPurposePanel.java b/client/old_console/src/main/java/org/apache/syncope/client/console/wicket/markup/html/form/MappingPurposePanel.java
deleted file mode 100644
index 2c41f37..0000000
--- a/client/old_console/src/main/java/org/apache/syncope/client/console/wicket/markup/html/form/MappingPurposePanel.java
+++ /dev/null
@@ -1,133 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-package org.apache.syncope.client.console.wicket.markup.html.form;
-
-import org.apache.syncope.common.lib.types.MappingPurpose;
-import org.apache.wicket.AttributeModifier;
-import org.apache.wicket.ajax.AjaxRequestTarget;
-import org.apache.wicket.ajax.markup.html.AjaxLink;
-import org.apache.wicket.markup.html.WebMarkupContainer;
-import org.apache.wicket.markup.html.panel.Panel;
-import org.apache.wicket.model.IModel;
-import org.apache.wicket.model.Model;
-
-public class MappingPurposePanel extends Panel {
-
- private static final long serialVersionUID = 322966537010107771L;
-
- private final AjaxLink<Void> propagation;
-
- private final AjaxLink<Void> synchronization;
-
- private final AjaxLink<Void> both;
-
- private final AjaxLink<Void> none;
-
- public MappingPurposePanel(final String componentId, final IModel<MappingPurpose> model,
- final WebMarkupContainer container) {
-
- super(componentId, model);
-
- propagation = new AjaxLink<Void>("propagationPurposeLink") {
-
- private static final long serialVersionUID = -6957616042924610305L;
-
- @Override
- public void onClick(final AjaxRequestTarget target) {
- model.setObject(MappingPurpose.PROPAGATION);
- setOpacity(MappingPurpose.PROPAGATION);
- target.add(container);
- }
- };
-
- synchronization = new AjaxLink<Void>("synchronizationPurposeLink") {
-
- private static final long serialVersionUID = -6957616042924610305L;
-
- @Override
- public void onClick(final AjaxRequestTarget target) {
- model.setObject(MappingPurpose.SYNCHRONIZATION);
- setOpacity(MappingPurpose.SYNCHRONIZATION);
- target.add(container);
- }
- };
-
- both = new AjaxLink<Void>("bothPurposeLink") {
-
- private static final long serialVersionUID = -6957616042924610305L;
-
- @Override
- public void onClick(final AjaxRequestTarget target) {
- model.setObject(MappingPurpose.BOTH);
- setOpacity(MappingPurpose.BOTH);
- target.add(container);
- }
- };
-
- none = new AjaxLink<Void>("nonePurposeLink") {
-
- private static final long serialVersionUID = -6957616042924610305L;
-
- @Override
- public void onClick(final AjaxRequestTarget target) {
- model.setObject(MappingPurpose.NONE);
- setOpacity(MappingPurpose.NONE);
- target.add(container);
- }
- };
-
- add(propagation);
- add(synchronization);
- add(both);
- add(none);
-
- setOpacity(model.getObject());
- }
-
- private void setOpacity(final MappingPurpose mappingPurpose) {
- switch (mappingPurpose) {
- case PROPAGATION:
- propagation.add(new AttributeModifier("style", new Model<String>("opacity: 1;")));
- synchronization.add(new AttributeModifier("style", new Model<String>("opacity: 0.3;")));
- both.add(new AttributeModifier("style", new Model<String>("opacity: 0.3;")));
- none.add(new AttributeModifier("style", new Model<String>("opacity: 0.3;")));
- break;
- case SYNCHRONIZATION:
- synchronization.add(new AttributeModifier("style", new Model<String>("opacity: 1;")));
- propagation.add(new AttributeModifier("style", new Model<String>("opacity: 0.3;")));
- both.add(new AttributeModifier("style", new Model<String>("opacity: 0.3;")));
- none.add(new AttributeModifier("style", new Model<String>("opacity: 0.3;")));
- break;
- case BOTH:
- both.add(new AttributeModifier("style", new Model<String>("opacity: 1;")));
- propagation.add(new AttributeModifier("style", new Model<String>("opacity: 0.3;")));
- synchronization.add(new AttributeModifier("style", new Model<String>("opacity: 0.3;")));
- none.add(new AttributeModifier("style", new Model<String>("opacity: 0.3;")));
- break;
- case NONE:
- none.add(new AttributeModifier("style", new Model<String>("opacity: 1;")));
- synchronization.add(new AttributeModifier("style", new Model<String>("opacity: 0.3;")));
- propagation.add(new AttributeModifier("style", new Model<String>("opacity: 0.3;")));
- both.add(new AttributeModifier("style", new Model<String>("opacity: 0.3;")));
- break;
- default:
- // do nothing
- }
- }
-}
http://git-wip-us.apache.org/repos/asf/syncope/blob/b7f88690/client/old_console/src/main/java/org/apache/syncope/client/console/wicket/markup/html/form/MultiFieldPanel.java
----------------------------------------------------------------------
diff --git a/client/old_console/src/main/java/org/apache/syncope/client/console/wicket/markup/html/form/MultiFieldPanel.java b/client/old_console/src/main/java/org/apache/syncope/client/console/wicket/markup/html/form/MultiFieldPanel.java
deleted file mode 100644
index cd4ab2a..0000000
--- a/client/old_console/src/main/java/org/apache/syncope/client/console/wicket/markup/html/form/MultiFieldPanel.java
+++ /dev/null
@@ -1,172 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-package org.apache.syncope.client.console.wicket.markup.html.form;
-
-import java.util.List;
-import org.apache.syncope.client.console.commons.Constants;
-import org.apache.wicket.ajax.AjaxRequestTarget;
-import org.apache.wicket.ajax.form.AjaxFormComponentUpdatingBehavior;
-import org.apache.wicket.ajax.markup.html.AjaxLink;
-import org.apache.wicket.event.Broadcast;
-import org.apache.wicket.extensions.ajax.markup.html.IndicatingAjaxLink;
-import org.apache.wicket.markup.html.WebMarkupContainer;
-import org.apache.wicket.markup.html.list.ListItem;
-import org.apache.wicket.markup.html.list.ListView;
-import org.apache.wicket.markup.html.panel.Fragment;
-import org.apache.wicket.model.IModel;
-
-public class MultiFieldPanel<E> extends AbstractFieldPanel<List<E>> {
-
- private static final long serialVersionUID = -6322397761456513324L;
-
- private ListView<E> view;
-
- private WebMarkupContainer container;
-
- public MultiFieldPanel(final String id, final IModel<List<E>> model, final FieldPanel<E> panelTemplate) {
- this(id, model, panelTemplate, false);
- }
-
- public MultiFieldPanel(final String id, final IModel<List<E>> model, final FieldPanel<E> panelTemplate,
- final boolean eventTemplate) {
-
- super(id, model);
-
- // -----------------------
- // Object container definition
- // -----------------------
- container = new WebMarkupContainer("multiValueContainer");
- container.setOutputMarkupId(true);
- add(container);
- // -----------------------
-
- view = new ListView<E>("view", model) {
-
- private static final long serialVersionUID = -9180479401817023838L;
-
- @Override
- protected void populateItem(final ListItem<E> item) {
- final FieldPanel<E> fieldPanel = panelTemplate.clone();
-
- if (eventTemplate) {
- fieldPanel.getField().add(new AjaxFormComponentUpdatingBehavior(Constants.ON_CHANGE) {
-
- private static final long serialVersionUID = -1107858522700306810L;
-
- @Override
- protected void onUpdate(final AjaxRequestTarget target) {
- send(getPage(), Broadcast.BREADTH, new MultiValueSelectorEvent(target));
- }
- });
- }
-
- fieldPanel.getField().add(new AjaxFormComponentUpdatingBehavior(Constants.ON_BLUR) {
-
- private static final long serialVersionUID = -1107858522700306810L;
-
- @Override
- protected void onUpdate(final AjaxRequestTarget target) {
- }
- });
-
- fieldPanel.setNewModel(item);
- item.add(fieldPanel);
-
- AjaxLink<Void> minus = new IndicatingAjaxLink<Void>("drop") {
-
- private static final long serialVersionUID = -7978723352517770644L;
-
- @Override
- public void onClick(final AjaxRequestTarget target) {
- //Drop current component
- model.getObject().remove(item.getModelObject());
- fieldPanel.getField().clearInput();
- target.add(container);
-
- if (eventTemplate) {
- send(getPage(), Broadcast.BREADTH, new MultiValueSelectorEvent(target));
- }
- }
- };
-
- item.add(minus);
-
- if (model.getObject().size() <= 1) {
- minus.setVisible(false);
- minus.setEnabled(false);
- } else {
- minus.setVisible(true);
- minus.setEnabled(true);
- }
-
- final Fragment fragment;
- if (item.getIndex() == model.getObject().size() - 1) {
- final AjaxLink<Void> plus = new IndicatingAjaxLink<Void>("add") {
-
- private static final long serialVersionUID = -7978723352517770644L;
-
- @Override
- public void onClick(final AjaxRequestTarget target) {
- //Add current component
- model.getObject().add(null);
- target.add(container);
- }
- };
-
- fragment = new Fragment("panelPlus", "fragmentPlus", container);
-
- fragment.add(plus);
- } else {
- fragment = new Fragment("panelPlus", "emptyFragment", container);
- }
- item.add(fragment);
- }
- };
-
- container.add(view.setOutputMarkupId(true));
- setOutputMarkupId(true);
- }
-
- public ListView<E> getView() {
- return view;
- }
-
- public WebMarkupContainer getContainer() {
- return container;
- }
-
- @Override
- public MultiFieldPanel<E> setModelObject(final List<E> object) {
- view.setModelObject(object);
- return this;
- }
-
- public static class MultiValueSelectorEvent {
-
- final AjaxRequestTarget target;
-
- public MultiValueSelectorEvent(final AjaxRequestTarget target) {
- this.target = target;
- }
-
- public AjaxRequestTarget getTarget() {
- return target;
- }
- }
-}
http://git-wip-us.apache.org/repos/asf/syncope/blob/b7f88690/client/old_console/src/main/java/org/apache/syncope/client/console/wicket/markup/html/form/NonI18nPalette.java
----------------------------------------------------------------------
diff --git a/client/old_console/src/main/java/org/apache/syncope/client/console/wicket/markup/html/form/NonI18nPalette.java b/client/old_console/src/main/java/org/apache/syncope/client/console/wicket/markup/html/form/NonI18nPalette.java
deleted file mode 100644
index 55038da..0000000
--- a/client/old_console/src/main/java/org/apache/syncope/client/console/wicket/markup/html/form/NonI18nPalette.java
+++ /dev/null
@@ -1,44 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-package org.apache.syncope.client.console.wicket.markup.html.form;
-
-import java.util.Collection;
-import java.util.List;
-import org.apache.wicket.extensions.markup.html.form.palette.Palette;
-import org.apache.wicket.markup.html.form.IChoiceRenderer;
-import org.apache.wicket.model.IModel;
-
-public class NonI18nPalette<T> extends Palette<T> {
-
- private static final long serialVersionUID = 2659070187837941889L;
-
- public NonI18nPalette(final String id,
- final IModel<? extends List<? extends T>> model,
- final IModel<? extends Collection<? extends T>> choicesModel,
- final IChoiceRenderer<T> choiceRenderer, final int rows,
- final boolean allowOrder, final boolean allowMoveAll) {
-
- super(id, model, choicesModel, choiceRenderer, rows, allowOrder, allowMoveAll);
- }
-
- @Override
- protected boolean localizeDisplayValues() {
- return false;
- }
-}
http://git-wip-us.apache.org/repos/asf/syncope/blob/b7f88690/client/old_console/src/main/java/org/apache/syncope/client/console/wicket/markup/html/form/SelectableRecorder.java
----------------------------------------------------------------------
diff --git a/client/old_console/src/main/java/org/apache/syncope/client/console/wicket/markup/html/form/SelectableRecorder.java b/client/old_console/src/main/java/org/apache/syncope/client/console/wicket/markup/html/form/SelectableRecorder.java
deleted file mode 100644
index 2893533..0000000
--- a/client/old_console/src/main/java/org/apache/syncope/client/console/wicket/markup/html/form/SelectableRecorder.java
+++ /dev/null
@@ -1,204 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-package org.apache.syncope.client.console.wicket.markup.html.form;
-
-import java.util.ArrayList;
-import java.util.Collection;
-import java.util.Collections;
-import java.util.Iterator;
-import java.util.List;
-
-import org.apache.wicket.WicketRuntimeException;
-import org.apache.wicket.extensions.markup.html.form.palette.Palette;
-import org.apache.wicket.extensions.markup.html.form.palette.component.Recorder;
-import org.apache.wicket.markup.html.form.IChoiceRenderer;
-import org.apache.wicket.model.Model;
-import org.apache.wicket.util.string.Strings;
-
-/**
- * A variant of Recorder, supporting single element selection (for editing purpose, for example). <b>Note</b>: this
- * class extends Recorder<T> but in fact it is a bare copy of most source code; this was done because the original class
- * is keeping everything private.
- *
- * @param <T> Type of the palette
- */
-public class SelectableRecorder<T> extends Recorder<T> {
-
- private static final long serialVersionUID = -3009044376132921879L;
-
- private boolean attached = false;
-
- private static final String[] EMPTY_IDS = new String[0];
-
- /**
- * Conveniently maintained array of selected ids.
- */
- private String[] ids;
-
- private String selectedId;
-
- public SelectableRecorder(final String id, final Palette<T> palette) {
- super(id, palette);
- }
-
- @Override
- protected void onBeforeRender() {
- super.onBeforeRender();
-
- if (!getForm().hasError()) {
- initIds();
- } else if (ids == null) {
- ids = EMPTY_IDS;
- }
- attached = true;
- }
-
- /**
- * Synchronize ids collection from the palette's model
- */
- private void initIds() {
- // construct the model string based on selection collection
- IChoiceRenderer<T> renderer = getPalette().getChoiceRenderer();
- StringBuilder modelStringBuffer = new StringBuilder();
- Collection<T> modelCollection = getPalette().getModelCollection();
- if (modelCollection == null) {
- throw new WicketRuntimeException("Expected getPalette().getModelCollection() to return a non-null value."
- + " Please make sure you have model object assigned to the palette");
- }
- Iterator<T> selection = modelCollection.iterator();
-
- int i = 0;
- while (selection.hasNext()) {
- modelStringBuffer.append(renderer.getIdValue(selection.next(), i++));
- if (selection.hasNext()) {
- modelStringBuffer.append(",");
- }
- }
-
- // set model and update ids array
- String modelString = modelStringBuffer.toString();
- setDefaultModel(new Model<String>(modelString));
- updateIds(modelString);
- }
-
- public T getSelectedItem() {
- if (selectedId == null) {
- return null;
- }
-
- IChoiceRenderer<T> renderer = getPalette().getChoiceRenderer();
-
- T selected = null;
- for (T choice : getPalette().getChoices()) {
- if (renderer.getIdValue(choice, 0).equals(selectedId)) {
- selected = choice;
- break;
- }
- }
-
- return selected;
- }
-
- /**
- * @return iterator over selected choices
- */
- @Override
- public Iterator<T> getSelectedChoices() {
- IChoiceRenderer<T> renderer = getPalette().getChoiceRenderer();
- if (ids.length == 0) {
- return Collections.<T>emptyList().iterator();
- }
-
- List<T> selected = new ArrayList<T>(ids.length);
- for (String id : ids) {
- for (T choice : getPalette().getChoices()) {
- if (renderer.getIdValue(choice, 0).equals(id)) {
- selected.add(choice);
- break;
- }
- }
- }
- return selected.iterator();
- }
-
- /**
- * @return iterator over unselected choices
- */
- @Override
- public Iterator<T> getUnselectedChoices() {
- IChoiceRenderer<T> renderer = getPalette().getChoiceRenderer();
- Collection<? extends T> choices = getPalette().getChoices();
-
- if (choices.size() - ids.length == 0) {
- return Collections.<T>emptyList().iterator();
- }
-
- List<T> unselected = new ArrayList<T>(Math.max(1, choices.size() - ids.length));
- for (T choice : choices) {
- final String choiceId = renderer.getIdValue(choice, 0);
- boolean selected = false;
- for (String id : ids) {
- if (id.equals(choiceId)) {
- selected = true;
- break;
- }
- }
- if (!selected) {
- unselected.add(choice);
- }
- }
- return unselected.iterator();
- }
-
- @Override
- protected void onValid() {
- super.onValid();
- if (attached) {
- updateIds();
- }
- }
-
- @Override
- protected void onInvalid() {
- super.onInvalid();
- if (attached) {
- updateIds();
- }
- }
-
- private void updateIds() {
- updateIds(getValue());
- }
-
- @Override
- protected void updateIds(final String value) {
- if (Strings.isEmpty(value)) {
- ids = EMPTY_IDS;
- } else {
- if (value.indexOf('|') == -1) {
- ids = value.split(",");
- selectedId = null;
- } else {
- String[] splitted = value.split("\\|");
- selectedId = splitted[0];
- ids = splitted[1].split(",");
- }
- }
- }
-}
http://git-wip-us.apache.org/repos/asf/syncope/blob/b7f88690/client/old_console/src/main/java/org/apache/syncope/client/console/wicket/markup/html/form/SpinnerFieldPanel.java
----------------------------------------------------------------------
diff --git a/client/old_console/src/main/java/org/apache/syncope/client/console/wicket/markup/html/form/SpinnerFieldPanel.java b/client/old_console/src/main/java/org/apache/syncope/client/console/wicket/markup/html/form/SpinnerFieldPanel.java
deleted file mode 100644
index 4f71f81..0000000
--- a/client/old_console/src/main/java/org/apache/syncope/client/console/wicket/markup/html/form/SpinnerFieldPanel.java
+++ /dev/null
@@ -1,197 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-package org.apache.syncope.client.console.wicket.markup.html.form;
-
-import java.io.Serializable;
-import java.util.List;
-import java.util.UUID;
-import org.apache.commons.lang3.math.NumberUtils;
-import org.apache.syncope.client.console.commons.Constants;
-import org.apache.wicket.ajax.AjaxRequestTarget;
-import org.apache.wicket.ajax.form.AjaxFormComponentUpdatingBehavior;
-import org.apache.wicket.markup.html.basic.Label;
-import org.apache.wicket.markup.html.form.TextField;
-import org.apache.wicket.markup.html.list.ListItem;
-import org.apache.wicket.model.IModel;
-import org.apache.wicket.model.Model;
-import org.springframework.util.StringUtils;
-
-public class SpinnerFieldPanel<T extends Number> extends FieldPanel<T> {
-
- private static final long serialVersionUID = 6413819574530703577L;
-
- private final String name;
-
- private final Class<T> reference;
-
- private final IModel<T> model;
-
- private final T min;
-
- private final T max;
-
- @SuppressWarnings("unchecked")
- public SpinnerFieldPanel(final String id, final String name, final Class<T> reference, final IModel<T> model,
- final T min, final T max) {
-
- super(id, model);
- this.name = name;
- this.reference = reference;
- this.model = model;
- this.min = min;
- this.max = max;
-
- String uuid = UUID.randomUUID().toString();
- field = new TextField<T>("spinnerField", model, reference);
- field.setMarkupId(uuid);
- add(field.setLabel(new Model<String>(name)));
-
- if (!isReadOnly()) {
- field.add(new AjaxFormComponentUpdatingBehavior(Constants.ON_CHANGE) {
-
- private static final long serialVersionUID = -1107858522700306810L;
-
- @Override
- protected void onUpdate(final AjaxRequestTarget target) {
- // nothing to do
- }
- });
- }
-
- final StringBuilder statements = new StringBuilder();
- statements.append("jQuery(function() {").
- append("var spinner = $('#").append(uuid).append("').spinner();").
- append("$('#").append(uuid).append("').spinner(").
- append("'option', 'stop', function(event, ui) { $(this).change(); });");
- if (this.min != null) {
- statements.
- append("$('#").append(uuid).append("').spinner(").
- append("'option', 'min', ").append(this.min).append(");");
- }
- if (this.max != null) {
- statements.
- append("$('#").append(uuid).append("').spinner(").
- append("'option', 'max', ").append(this.max).append(");");
- }
- statements.append("});");
- Label spinnerFieldJS = new Label("spinnerFieldJS", statements.toString());
- spinnerFieldJS.setEscapeModelStrings(false);
- add(spinnerFieldJS);
- }
-
- @Override
- public SpinnerFieldPanel<T> setNewModel(final List<Serializable> list) {
- setNewModel(new Model<T>() {
-
- private static final long serialVersionUID = 527651414610325237L;
-
- @Override
- public T getObject() {
- T value = null;
-
- if (list != null && !list.isEmpty() && StringUtils.hasText(list.get(0).toString())) {
- value = reference.equals(Integer.class)
- ? reference.cast(NumberUtils.toInt(list.get(0).toString()))
- : reference.equals(Long.class)
- ? reference.cast(NumberUtils.toLong(list.get(0).toString()))
- : reference.equals(Short.class)
- ? reference.cast(NumberUtils.toShort(list.get(0).toString()))
- : reference.equals(Float.class)
- ? reference.cast(NumberUtils.toFloat(list.get(0).toString()))
- : reference.equals(byte.class)
- ? reference.cast(NumberUtils.toByte(list.get(0).toString()))
- : reference.cast(NumberUtils.toDouble(list.get(0).toString()));
- }
-
- return value;
- }
-
- @Override
- public void setObject(final T object) {
- list.clear();
- if (object != null) {
- list.add(object.toString());
- }
- }
- });
-
- return this;
- }
-
- @SuppressWarnings("rawtypes")
- @Override
- public SpinnerFieldPanel<T> setNewModel(final ListItem item) {
- field.setModel(new Model<T>() {
-
- private static final long serialVersionUID = 6799404673615637845L;
-
- @Override
- public T getObject() {
- T number = null;
-
- final Object obj = item.getModelObject();
-
- if (obj != null && !obj.toString().isEmpty()) {
- if (obj instanceof String) {
- number = reference.equals(Integer.class)
- ? reference.cast(Integer.valueOf((String) obj))
- : reference.equals(Long.class)
- ? reference.cast(Long.valueOf((String) obj))
- : reference.equals(Short.class)
- ? reference.cast(Short.valueOf((String) obj))
- : reference.equals(Float.class)
- ? reference.cast(Float.valueOf((String) obj))
- : reference.equals(byte.class)
- ? reference.cast(Byte.valueOf((String) obj))
- : reference.cast(Double.valueOf((String) obj));
- } else if (obj instanceof Number) {
- // Don't parse anything
- number = reference.cast(obj);
- }
- }
-
- return number;
- }
-
- @Override
- @SuppressWarnings("unchecked")
- public void setObject(final T object) {
- item.setModelObject(object == null ? null : object.toString());
- }
- });
-
- return this;
- }
-
- @Override
- public SpinnerFieldPanel<T> clone() {
- SpinnerFieldPanel<T> panel = new SpinnerFieldPanel<T>(getId(), name, reference, model, min, max);
-
- panel.setRequired(isRequired());
- panel.setReadOnly(isReadOnly());
- panel.setTitle(title);
-
- if (isRequiredLabelAdded) {
- panel.addRequiredLabel();
- }
-
- return panel;
- }
-
-}
http://git-wip-us.apache.org/repos/asf/syncope/blob/b7f88690/client/old_console/src/main/java/org/apache/syncope/client/console/wicket/markup/html/form/preview/AbstractBinaryPreviewer.java
----------------------------------------------------------------------
diff --git a/client/old_console/src/main/java/org/apache/syncope/client/console/wicket/markup/html/form/preview/AbstractBinaryPreviewer.java b/client/old_console/src/main/java/org/apache/syncope/client/console/wicket/markup/html/form/preview/AbstractBinaryPreviewer.java
deleted file mode 100644
index 24bdb47..0000000
--- a/client/old_console/src/main/java/org/apache/syncope/client/console/wicket/markup/html/form/preview/AbstractBinaryPreviewer.java
+++ /dev/null
@@ -1,46 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-package org.apache.syncope.client.console.wicket.markup.html.form.preview;
-
-import org.apache.wicket.Component;
-import org.apache.wicket.markup.html.panel.Panel;
-import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
-
-public abstract class AbstractBinaryPreviewer extends Panel {
-
- /**
- * Logger.
- */
- protected static final Logger LOG = LoggerFactory.getLogger(AbstractBinaryPreviewer.class);
-
- private static final long serialVersionUID = -2482706463911903025L;
-
- protected final String mimeType;
-
- protected final byte[] uploadedBytes;
-
- public AbstractBinaryPreviewer(final String id, final String mimeType, final byte[] uploadedBytes) {
- super(id);
- this.mimeType = mimeType;
- this.uploadedBytes = uploadedBytes;
- }
-
- public abstract Component preview();
-}
http://git-wip-us.apache.org/repos/asf/syncope/blob/b7f88690/client/old_console/src/main/java/org/apache/syncope/client/console/wicket/markup/html/form/preview/BinaryCertPreviewer.java
----------------------------------------------------------------------
diff --git a/client/old_console/src/main/java/org/apache/syncope/client/console/wicket/markup/html/form/preview/BinaryCertPreviewer.java b/client/old_console/src/main/java/org/apache/syncope/client/console/wicket/markup/html/form/preview/BinaryCertPreviewer.java
deleted file mode 100644
index 61589d7..0000000
--- a/client/old_console/src/main/java/org/apache/syncope/client/console/wicket/markup/html/form/preview/BinaryCertPreviewer.java
+++ /dev/null
@@ -1,70 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-package org.apache.syncope.client.console.wicket.markup.html.form.preview;
-
-import java.io.ByteArrayInputStream;
-import java.security.cert.CertificateFactory;
-import java.security.cert.X509Certificate;
-import javax.naming.ldap.LdapName;
-import javax.naming.ldap.Rdn;
-import org.apache.commons.lang3.StringUtils;
-import org.apache.syncope.client.console.BinaryPreview;
-import org.apache.wicket.Component;
-import org.apache.wicket.markup.html.basic.Label;
-import org.apache.wicket.model.Model;
-import org.apache.wicket.util.io.IOUtils;
-
-@BinaryPreview(mimeTypes = { "application/x-x509-ca-cert", "application/x-x509-user-cert", "application/pkix-cert" })
-public class BinaryCertPreviewer extends AbstractBinaryPreviewer {
-
- private static final long serialVersionUID = -5843835939538055110L;
-
- public BinaryCertPreviewer(final String id, final String mimeType, final byte[] uploadedBytes) {
- super(id, mimeType, uploadedBytes);
- }
-
- @Override
- public Component preview() {
- final Label commonNameLabel = new Label("certCommonName", new Model<String>());
- final ByteArrayInputStream certificateStream = new ByteArrayInputStream(uploadedBytes);
- try {
- final X509Certificate certificate = (X509Certificate) CertificateFactory.getInstance("X.509").
- generateCertificate(certificateStream);
-
- final StringBuilder commonNameBuilder = new StringBuilder("cn=");
-
- final LdapName ldapName = new LdapName(certificate.getIssuerDN().getName());
-
- for (Rdn rdn : ldapName.getRdns()) {
- if ("CN".equalsIgnoreCase(rdn.getType())) {
- commonNameBuilder.append(rdn.getValue() == null
- ? StringUtils.EMPTY
- : rdn.getValue().toString());
- }
- }
- commonNameLabel.setDefaultModelObject(commonNameBuilder.toString());
- } catch (Exception e) {
- LOG.error("Error evaluating certificate file", e);
- throw new IllegalArgumentException("Error evaluating certificate file", e);
- } finally {
- IOUtils.closeQuietly(certificateStream);
- }
- return this.add(commonNameLabel);
- }
-}
http://git-wip-us.apache.org/repos/asf/syncope/blob/b7f88690/client/old_console/src/main/java/org/apache/syncope/client/console/wicket/markup/html/form/preview/BinaryImagePreviewer.java
----------------------------------------------------------------------
diff --git a/client/old_console/src/main/java/org/apache/syncope/client/console/wicket/markup/html/form/preview/BinaryImagePreviewer.java b/client/old_console/src/main/java/org/apache/syncope/client/console/wicket/markup/html/form/preview/BinaryImagePreviewer.java
deleted file mode 100644
index 35e442e..0000000
--- a/client/old_console/src/main/java/org/apache/syncope/client/console/wicket/markup/html/form/preview/BinaryImagePreviewer.java
+++ /dev/null
@@ -1,51 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-package org.apache.syncope.client.console.wicket.markup.html.form.preview;
-
-import org.apache.syncope.client.console.BinaryPreview;
-import org.apache.wicket.Component;
-import org.apache.wicket.extensions.markup.html.image.resource.ThumbnailImageResource;
-import org.apache.wicket.markup.html.image.NonCachingImage;
-import org.apache.wicket.request.resource.DynamicImageResource;
-import org.apache.wicket.request.resource.IResource;
-
-@BinaryPreview(mimeTypes = { "image/jpeg", "image/png", "image/gif", "image/bmp", "image/x-png", "image/vnd.wap.wbmp" })
-public class BinaryImagePreviewer extends AbstractBinaryPreviewer {
-
- private static final long serialVersionUID = 3338812359368457349L;
-
- private static final int IMG_SIZE = 230;
-
- public BinaryImagePreviewer(final String id, final String mimeType, final byte[] uploadedBytes) {
- super(id, mimeType, uploadedBytes);
- }
-
- @Override
- public Component preview() {
- return this.add(new NonCachingImage("previewImage", new ThumbnailImageResource(new DynamicImageResource() {
-
- private static final long serialVersionUID = 923201517955737928L;
-
- @Override
- protected byte[] getImageData(final IResource.Attributes attributes) {
- return uploadedBytes;
- }
- }, IMG_SIZE)));
- }
-}
http://git-wip-us.apache.org/repos/asf/syncope/blob/b7f88690/client/old_console/src/main/java/org/apache/syncope/client/console/wicket/markup/html/link/VeilPopupSettings.java
----------------------------------------------------------------------
diff --git a/client/old_console/src/main/java/org/apache/syncope/client/console/wicket/markup/html/link/VeilPopupSettings.java b/client/old_console/src/main/java/org/apache/syncope/client/console/wicket/markup/html/link/VeilPopupSettings.java
deleted file mode 100644
index 51c8ec5..0000000
--- a/client/old_console/src/main/java/org/apache/syncope/client/console/wicket/markup/html/link/VeilPopupSettings.java
+++ /dev/null
@@ -1,32 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-package org.apache.syncope.client.console.wicket.markup.html.link;
-
-import org.apache.wicket.markup.html.link.PopupSettings;
-
-public class VeilPopupSettings extends PopupSettings {
-
- private static final long serialVersionUID = -2727046117490858226L;
-
- @Override
- public String getPopupJavaScript() {
- return "document.getElementById('veil').style.display = 'block';" + super.getPopupJavaScript();
- }
-
-}
http://git-wip-us.apache.org/repos/asf/syncope/blob/b7f88690/client/old_console/src/main/java/org/apache/syncope/client/console/wicket/markup/html/list/AltListView.java
----------------------------------------------------------------------
diff --git a/client/old_console/src/main/java/org/apache/syncope/client/console/wicket/markup/html/list/AltListView.java b/client/old_console/src/main/java/org/apache/syncope/client/console/wicket/markup/html/list/AltListView.java
deleted file mode 100644
index 5a491ae..0000000
--- a/client/old_console/src/main/java/org/apache/syncope/client/console/wicket/markup/html/list/AltListView.java
+++ /dev/null
@@ -1,59 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-package org.apache.syncope.client.console.wicket.markup.html.list;
-
-import java.util.List;
-import org.apache.wicket.markup.ComponentTag;
-import org.apache.wicket.markup.html.list.ListItem;
-import org.apache.wicket.markup.html.list.ListView;
-import org.apache.wicket.model.IModel;
-
-public abstract class AltListView<T> extends ListView<T> {
-
- private static final long serialVersionUID = 251378224847354710L;
-
- public AltListView(final String id) {
- super(id);
- }
-
- public AltListView(final String id, final IModel<? extends List<? extends T>> model) {
- super(id, model);
- }
-
- public AltListView(final String id, final List<? extends T> list) {
- super(id, list);
- }
-
- @Override
- protected ListItem<T> newItem(final int index, final IModel<T> itemModel) {
- return new ListItem<T>(index, itemModel) {
-
- private static final long serialVersionUID = 5473483270932376694L;
-
- @Override
- protected void onComponentTag(final ComponentTag tag) {
- if (index % 2 == 0) {
- tag.append("class", "alt", " ");
- }
-
- super.onComponentTag(tag);
- }
- };
- }
-}
http://git-wip-us.apache.org/repos/asf/syncope/blob/b7f88690/client/old_console/src/main/java/org/apache/syncope/client/console/wicket/markup/html/list/ConnConfPropertyListView.java
----------------------------------------------------------------------
diff --git a/client/old_console/src/main/java/org/apache/syncope/client/console/wicket/markup/html/list/ConnConfPropertyListView.java b/client/old_console/src/main/java/org/apache/syncope/client/console/wicket/markup/html/list/ConnConfPropertyListView.java
deleted file mode 100644
index 30775f5..0000000
--- a/client/old_console/src/main/java/org/apache/syncope/client/console/wicket/markup/html/list/ConnConfPropertyListView.java
+++ /dev/null
@@ -1,152 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-package org.apache.syncope.client.console.wicket.markup.html.list;
-
-import java.io.Serializable;
-import java.util.List;
-import java.util.Set;
-import org.apache.commons.lang3.StringUtils;
-import org.apache.syncope.client.console.commons.Constants;
-import org.apache.syncope.client.console.wicket.markup.html.form.AjaxCheckBoxPanel;
-import org.apache.syncope.client.console.wicket.markup.html.form.AjaxPasswordFieldPanel;
-import org.apache.syncope.client.console.wicket.markup.html.form.AjaxTextFieldPanel;
-import org.apache.syncope.client.console.wicket.markup.html.form.FieldPanel;
-import org.apache.syncope.client.console.wicket.markup.html.form.MultiFieldPanel;
-import org.apache.syncope.client.console.wicket.markup.html.form.SpinnerFieldPanel;
-import org.apache.syncope.common.lib.types.ConnConfProperty;
-import org.apache.wicket.markup.html.basic.Label;
-import org.apache.wicket.markup.html.form.PasswordTextField;
-import org.apache.wicket.markup.html.list.ListItem;
-import org.apache.wicket.model.IModel;
-import org.apache.wicket.model.Model;
-import org.apache.wicket.model.PropertyModel;
-import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
-import org.springframework.util.ClassUtils;
-
-public class ConnConfPropertyListView extends AltListView<ConnConfProperty> {
-
- private static final long serialVersionUID = -5239334900329150316L;
-
- private static final Logger LOG = LoggerFactory.getLogger(ConnConfPropertyListView.class);
-
- private final boolean withOverridable;
-
- private final Set<ConnConfProperty> configuration;
-
- public ConnConfPropertyListView(final String id, final IModel<? extends List<? extends ConnConfProperty>> model,
- final boolean withOverridable, final Set<ConnConfProperty> configuration) {
-
- super(id, model);
- this.configuration = configuration;
- this.withOverridable = withOverridable;
- }
-
- @Override
- @SuppressWarnings({ "unchecked", "rawtypes" })
- protected void populateItem(final ListItem<ConnConfProperty> item) {
- final ConnConfProperty property = item.getModelObject();
-
- final Label label = new Label("connPropAttrSchema",
- StringUtils.isBlank(property.getSchema().getDisplayName())
- ? property.getSchema().getName()
- : property.getSchema().getDisplayName());
- item.add(label);
-
- FieldPanel<? extends Serializable> field;
- boolean required = false;
- boolean isArray = false;
-
- if (property.getSchema().isConfidential()
- || Constants.GUARDED_STRING.equalsIgnoreCase(property.getSchema().getType())
- || Constants.GUARDED_BYTE_ARRAY.equalsIgnoreCase(property.getSchema().getType())) {
-
- field = new AjaxPasswordFieldPanel("panel",
- label.getDefaultModelObjectAsString(), new Model<String>());
- ((PasswordTextField) field.getField()).setResetPassword(false);
-
- required = property.getSchema().isRequired();
- } else {
- Class<?> propertySchemaClass;
- try {
- propertySchemaClass =
- ClassUtils.forName(property.getSchema().getType(), ClassUtils.getDefaultClassLoader());
- if (ClassUtils.isPrimitiveOrWrapper(propertySchemaClass)) {
- propertySchemaClass = org.apache.commons.lang3.ClassUtils.primitiveToWrapper(propertySchemaClass);
- }
- } catch (Exception e) {
- LOG.error("Error parsing attribute type", e);
- propertySchemaClass = String.class;
- }
-
- if (ClassUtils.isAssignable(Number.class, propertySchemaClass)) {
- @SuppressWarnings("unchecked")
- final Class<Number> numberClass = (Class<Number>) propertySchemaClass;
- field = new SpinnerFieldPanel<Number>("panel",
- label.getDefaultModelObjectAsString(), numberClass, new Model<Number>(), null, null);
-
- required = property.getSchema().isRequired();
- } else if (ClassUtils.isAssignable(Boolean.class, propertySchemaClass)) {
- field = new AjaxCheckBoxPanel("panel",
- label.getDefaultModelObjectAsString(), new Model<Boolean>());
- } else {
- field = new AjaxTextFieldPanel("panel",
- label.getDefaultModelObjectAsString(), new Model<String>());
-
- required = property.getSchema().isRequired();
- }
-
- if (propertySchemaClass.isArray()) {
- isArray = true;
- }
- }
-
- field.setTitle(property.getSchema().getHelpMessage());
-
- if (required) {
- field.addRequiredLabel();
- }
-
- if (isArray) {
- if (property.getValues().isEmpty()) {
- property.getValues().add(null);
- }
-
- final MultiFieldPanel multiFieldPanel = new MultiFieldPanel("panel",
- new PropertyModel<List<String>>(property, "values"), field);
- item.add(multiFieldPanel);
- } else {
- setNewFieldModel(field, property.getValues());
- item.add(field);
- }
-
- if (withOverridable) {
- item.add(new AjaxCheckBoxPanel("connPropAttrOverridable",
- "connPropAttrOverridable", new PropertyModel<Boolean>(property, "overridable")));
- }
-
- configuration.add(property);
- }
-
- @SuppressWarnings({ "unchecked", "rawtypes" })
- private void setNewFieldModel(final FieldPanel field, final List<Object> values) {
- field.setNewModel(values);
- }
-
-}
http://git-wip-us.apache.org/repos/asf/syncope/blob/b7f88690/client/old_console/src/main/java/org/apache/syncope/client/console/wicket/markup/html/tree/DefaultMutableTreeNodeExpansion.java
----------------------------------------------------------------------
diff --git a/client/old_console/src/main/java/org/apache/syncope/client/console/wicket/markup/html/tree/DefaultMutableTreeNodeExpansion.java b/client/old_console/src/main/java/org/apache/syncope/client/console/wicket/markup/html/tree/DefaultMutableTreeNodeExpansion.java
deleted file mode 100644
index fa962bc..0000000
--- a/client/old_console/src/main/java/org/apache/syncope/client/console/wicket/markup/html/tree/DefaultMutableTreeNodeExpansion.java
+++ /dev/null
@@ -1,160 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-package org.apache.syncope.client.console.wicket.markup.html.tree;
-
-import java.io.Serializable;
-import java.util.Collection;
-import java.util.HashSet;
-import java.util.Iterator;
-import java.util.Set;
-import javax.swing.tree.DefaultMutableTreeNode;
-import org.apache.syncope.common.lib.to.GroupTO;
-import org.apache.wicket.MetaDataKey;
-import org.apache.wicket.Session;
-
-public class DefaultMutableTreeNodeExpansion implements Set<DefaultMutableTreeNode>, Serializable {
-
- private static final long serialVersionUID = -2864060875425661224L;
-
- private static MetaDataKey<DefaultMutableTreeNodeExpansion> KEY =
- new MetaDataKey<DefaultMutableTreeNodeExpansion>() {
-
- private static final long serialVersionUID = 3109256773218160485L;
-
- };
-
- private Set<Long> ids = new HashSet<Long>();
-
- private boolean inverse;
-
- public void expandAll() {
- ids.clear();
-
- inverse = true;
- }
-
- public void collapseAll() {
- ids.clear();
-
- inverse = false;
- }
-
- @Override
- public boolean add(final DefaultMutableTreeNode node) {
- GroupTO groupTO = (GroupTO) node.getUserObject();
- boolean isAdded;
- if (inverse) {
- isAdded = ids.remove(groupTO.getKey());
- } else {
- isAdded = ids.add(groupTO.getKey());
- }
- return isAdded;
- }
-
- @Override
- public boolean remove(final Object object) {
- DefaultMutableTreeNode node = (DefaultMutableTreeNode) object;
- GroupTO groupTO = (GroupTO) node.getUserObject();
- boolean isRemoved;
- if (inverse) {
- isRemoved = ids.add(groupTO.getKey());
- } else {
- isRemoved = ids.remove(groupTO.getKey());
- }
- return isRemoved;
- }
-
- @Override
- public boolean contains(final Object object) {
- DefaultMutableTreeNode node = (DefaultMutableTreeNode) object;
- GroupTO groupTO = (GroupTO) node.getUserObject();
- boolean isContained;
- if (inverse) {
- isContained = !ids.contains(groupTO.getKey());
- } else {
- isContained = ids.contains(groupTO.getKey());
- }
- return isContained;
- }
-
- @Override
- public void clear() {
- throw new UnsupportedOperationException();
- }
-
- @Override
- public int size() {
- throw new UnsupportedOperationException();
- }
-
- @Override
- public boolean isEmpty() {
- throw new UnsupportedOperationException();
- }
-
- @Override
- public <A> A[] toArray(final A[] a) {
- throw new UnsupportedOperationException();
- }
-
- @Override
- public Iterator<DefaultMutableTreeNode> iterator() {
- throw new UnsupportedOperationException();
- }
-
- @Override
- public Object[] toArray() {
- throw new UnsupportedOperationException();
- }
-
- @Override
- public boolean containsAll(Collection<?> c) {
- throw new UnsupportedOperationException();
- }
-
- @Override
- public boolean addAll(Collection<? extends DefaultMutableTreeNode> c) {
- throw new UnsupportedOperationException();
- }
-
- @Override
- public boolean retainAll(Collection<?> c) {
- throw new UnsupportedOperationException();
- }
-
- @Override
- public boolean removeAll(Collection<?> c) {
- throw new UnsupportedOperationException();
- }
-
- /**
- * Get the expansion for the session.
- *
- * @return expansion
- */
- public static DefaultMutableTreeNodeExpansion get() {
- DefaultMutableTreeNodeExpansion expansion = Session.get().getMetaData(KEY);
- if (expansion == null) {
- expansion = new DefaultMutableTreeNodeExpansion();
-
- Session.get().setMetaData(KEY, expansion);
- }
- return expansion;
- }
-}
http://git-wip-us.apache.org/repos/asf/syncope/blob/b7f88690/client/old_console/src/main/java/org/apache/syncope/client/console/wicket/markup/html/tree/DefaultMutableTreeNodeExpansionModel.java
----------------------------------------------------------------------
diff --git a/client/old_console/src/main/java/org/apache/syncope/client/console/wicket/markup/html/tree/DefaultMutableTreeNodeExpansionModel.java b/client/old_console/src/main/java/org/apache/syncope/client/console/wicket/markup/html/tree/DefaultMutableTreeNodeExpansionModel.java
deleted file mode 100644
index 1b342bd..0000000
--- a/client/old_console/src/main/java/org/apache/syncope/client/console/wicket/markup/html/tree/DefaultMutableTreeNodeExpansionModel.java
+++ /dev/null
@@ -1,36 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-package org.apache.syncope.client.console.wicket.markup.html.tree;
-
-import java.util.Set;
-
-import javax.swing.tree.DefaultMutableTreeNode;
-
-import org.apache.wicket.model.AbstractReadOnlyModel;
-
-public class DefaultMutableTreeNodeExpansionModel
- extends AbstractReadOnlyModel<Set<DefaultMutableTreeNode>> {
-
- private static final long serialVersionUID = -3407581132184748054L;
-
- @Override
- public Set<DefaultMutableTreeNode> getObject() {
- return DefaultMutableTreeNodeExpansion.get();
- }
-}
http://git-wip-us.apache.org/repos/asf/syncope/blob/b7f88690/client/old_console/src/main/java/org/apache/syncope/client/console/wicket/markup/html/tree/TreeGroupPanel.java
----------------------------------------------------------------------
diff --git a/client/old_console/src/main/java/org/apache/syncope/client/console/wicket/markup/html/tree/TreeGroupPanel.java b/client/old_console/src/main/java/org/apache/syncope/client/console/wicket/markup/html/tree/TreeGroupPanel.java
deleted file mode 100644
index 0638a73..0000000
--- a/client/old_console/src/main/java/org/apache/syncope/client/console/wicket/markup/html/tree/TreeGroupPanel.java
+++ /dev/null
@@ -1,121 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-package org.apache.syncope.client.console.wicket.markup.html.tree;
-
-import javax.swing.tree.DefaultMutableTreeNode;
-import org.apache.syncope.client.console.commons.GroupTreeBuilder;
-import org.apache.syncope.client.console.commons.XMLRolesReader;
-import org.apache.syncope.client.console.pages.Groups.TreeNodeClickUpdate;
-import org.apache.syncope.common.lib.to.GroupTO;
-import org.apache.wicket.Component;
-import org.apache.wicket.ajax.AjaxRequestTarget;
-import org.apache.wicket.authroles.authorization.strategies.role.metadata.MetaDataRoleAuthorizationStrategy;
-import org.apache.wicket.event.Broadcast;
-import org.apache.wicket.event.IEvent;
-import org.apache.wicket.extensions.markup.html.repeater.tree.DefaultNestedTree;
-import org.apache.wicket.extensions.markup.html.repeater.tree.ITreeProvider;
-import org.apache.wicket.extensions.markup.html.repeater.tree.NestedTree;
-import org.apache.wicket.extensions.markup.html.repeater.tree.content.Folder;
-import org.apache.wicket.extensions.markup.html.repeater.tree.theme.WindowsTheme;
-import org.apache.wicket.markup.html.WebMarkupContainer;
-import org.apache.wicket.markup.html.panel.Panel;
-import org.apache.wicket.model.IModel;
-import org.apache.wicket.model.Model;
-import org.apache.wicket.spring.injection.annot.SpringBean;
-
-public class TreeGroupPanel extends Panel {
-
- private static final long serialVersionUID = 1762003213871836869L;
-
- @SpringBean
- private GroupTreeBuilder groupTreeBuilder;
-
- @SpringBean
- private XMLRolesReader xmlRolesReader;
-
- private WebMarkupContainer treeContainer;
-
- private NestedTree<DefaultMutableTreeNode> tree;
-
- public TreeGroupPanel(final String id) {
- super(id);
-
- treeContainer = new WebMarkupContainer("treeContainer");
- treeContainer.setOutputMarkupId(true);
- add(treeContainer);
- updateTree();
- }
-
- private void updateTree() {
- final ITreeProvider<DefaultMutableTreeNode> treeProvider = new TreeGroupProvider(groupTreeBuilder, true);
- final DefaultMutableTreeNodeExpansionModel treeModel = new DefaultMutableTreeNodeExpansionModel();
-
- tree = new DefaultNestedTree<DefaultMutableTreeNode>("treeTable", treeProvider, treeModel) {
-
- private static final long serialVersionUID = 7137658050662575546L;
-
- @Override
- protected Component newContentComponent(final String id, final IModel<DefaultMutableTreeNode> node) {
- final DefaultMutableTreeNode treeNode = node.getObject();
- final GroupTO groupTO = (GroupTO) treeNode.getUserObject();
-
- return new Folder<DefaultMutableTreeNode>(id, TreeGroupPanel.this.tree, node) {
-
- private static final long serialVersionUID = 9046323319920426493L;
-
- @Override
- protected boolean isClickable() {
- return true;
- }
-
- @Override
- protected IModel<?> newLabelModel(final IModel<DefaultMutableTreeNode> model) {
- return new Model<>(groupTO.getDisplayName());
- }
-
- @Override
- protected void onClick(final AjaxRequestTarget target) {
- super.onClick(target);
-
- send(getPage(), Broadcast.BREADTH, new TreeNodeClickUpdate(target, groupTO.getKey()));
- }
- };
- }
- };
- tree.add(new WindowsTheme());
- tree.setOutputMarkupId(true);
-
- DefaultMutableTreeNodeExpansion.get().expandAll();
-
- MetaDataRoleAuthorizationStrategy.authorize(tree, ENABLE, xmlRolesReader.getEntitlement("Groups", "read"));
-
- treeContainer.addOrReplace(tree);
- }
-
- @Override
- public void onEvent(final IEvent<?> event) {
- super.onEvent(event);
-
- if (event.getPayload() instanceof TreeNodeClickUpdate) {
- final TreeNodeClickUpdate update = (TreeNodeClickUpdate) event.getPayload();
- updateTree();
- update.getTarget().add(treeContainer);
- }
- }
-}
http://git-wip-us.apache.org/repos/asf/syncope/blob/b7f88690/client/old_console/src/main/java/org/apache/syncope/client/console/wicket/markup/html/tree/TreeGroupProvider.java
----------------------------------------------------------------------
diff --git a/client/old_console/src/main/java/org/apache/syncope/client/console/wicket/markup/html/tree/TreeGroupProvider.java b/client/old_console/src/main/java/org/apache/syncope/client/console/wicket/markup/html/tree/TreeGroupProvider.java
deleted file mode 100644
index c0b55c3..0000000
--- a/client/old_console/src/main/java/org/apache/syncope/client/console/wicket/markup/html/tree/TreeGroupProvider.java
+++ /dev/null
@@ -1,43 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-package org.apache.syncope.client.console.wicket.markup.html.tree;
-
-import javax.swing.tree.DefaultMutableTreeNode;
-import org.apache.syncope.client.console.commons.GroupTreeBuilder;
-import org.apache.wicket.extensions.markup.html.repeater.util.TreeModelProvider;
-import org.apache.wicket.model.IModel;
-import org.apache.wicket.model.Model;
-
-public class TreeGroupProvider extends TreeModelProvider<DefaultMutableTreeNode> {
-
- private static final long serialVersionUID = -7741964777100892335L;
-
- public TreeGroupProvider(final GroupTreeBuilder groupTreeBuilder) {
- this(groupTreeBuilder, false);
- }
-
- public TreeGroupProvider(final GroupTreeBuilder groupTreeBuilde, final boolean rootVisible) {
- super(groupTreeBuilde.build(), rootVisible);
- }
-
- @Override
- public IModel<DefaultMutableTreeNode> model(final DefaultMutableTreeNode treeNode) {
- return new Model<DefaultMutableTreeNode>(treeNode);
- }
-}
http://git-wip-us.apache.org/repos/asf/syncope/blob/b7f88690/client/old_console/src/main/resources/META-INF/resources/css/bulk.css
----------------------------------------------------------------------
diff --git a/client/old_console/src/main/resources/META-INF/resources/css/bulk.css b/client/old_console/src/main/resources/META-INF/resources/css/bulk.css
deleted file mode 100644
index 1f0e621..0000000
--- a/client/old_console/src/main/resources/META-INF/resources/css/bulk.css
+++ /dev/null
@@ -1,97 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-th.checkGroupColumn{
- width: 20px;
-}
-
-td.checkGroupColumn{
- text-align: center;
-}
-
-div.bulkAction{
- display:inline-table;
-}
-
-div.bulkActionCell{
- display: table-cell;
- vertical-align: middle;
- text-align: center;
- width: 40px;
- padding-left: 7px;
-}
-
-.pageRowElement{
- display: inline-table;
- width: 95%;
-}
-
-div#selectedObjects{
- text-align: center;
- margin-top: 10px;
-}
-
-div#selectedObjects table {
- margin: 1em 0;
- border-collapse: collapse;
-}
-
-div#selectedObjects table td, div#selectedObjects table th {
- border: 1px solid #eee;
- padding: .6em 10px;
-}
-
-div#actionRow{
- height: 30px;
- overflow: hidden;
- text-align: left;
- margin-top: 10px;
-}
-
-div#actions{
- display: inline-table;
- height: 30px;
- overflow: hidden;
-}
-
-div#actions div#actionPanel{
- display: table-cell;
- height: 30px;
- overflow: hidden;
- cursor: auto;
- background: none;
- padding: 0px 10px;
- vertical-align: middle;
-}
-
-div#actions div#cancelBtmForm{
- display: table-cell;
- height: 30px;
- overflow: hidden;
- vertical-align: middle;
- padding-left: 3px;
-}
-
-div#actions div#cancelBtmForm form{
- padding: 0px;
- margin: 0px;
-}
-
-div#actions div#cancelBtmForm form input#cancel{
- padding: 0.6em 1em;
-}
http://git-wip-us.apache.org/repos/asf/syncope/blob/b7f88690/client/old_console/src/main/resources/META-INF/resources/css/fieldstyle.css
----------------------------------------------------------------------
diff --git a/client/old_console/src/main/resources/META-INF/resources/css/fieldstyle.css b/client/old_console/src/main/resources/META-INF/resources/css/fieldstyle.css
deleted file mode 100644
index 23ef109..0000000
--- a/client/old_console/src/main/resources/META-INF/resources/css/fieldstyle.css
+++ /dev/null
@@ -1,191 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-.drop_button{
- vertical-align: middle;
-}
-
-.add_button{
- vertical-align: middle;
- margin-left: 6px;
-}
-
-.date_size{
- width: 90px;
-}
-
-.long_dynamicsize{
- width: 80%;
-}
-
-.medium_dynamicsize{
- width: 45%;
-}
-
-.short_dynamicsize{
- width: 35%;
-}
-
-.long_fixedsize{
- width: 500px;
-}
-
-.medium_fixedsize{
- width: 300px;
-}
-
-.short_fixedsize{
- width: 150px;
-}
-
-.veryshort_fixedsize{
- width: 70px;
-}
-
-.all_dynamicsize{
- width: 100%;
-}
-
-div#formtable {
- display: table;
- width: 100%;
-}
-
-div#formtable > span:first-of-type {
- display: table-row-group;
- width: 100%;
-}
-
-div.tablerow {
- display: inline-table;
- padding: 5px;
- width: 99%;
-}
-
-div.tablerow.connectorProp {
- height:22px;
- vertical-align: middle;
- font-size: 12px;
-}
-
-div.tablecolumn_connPropAttr {
- display: table-cell;
- vertical-align: middle;
-}
-
-div.tablerow2 {
- display: inline-table;
- padding: 5px 0px 5px 0px;
- width: 99%;
-}
-
-div.alt {
- background: #eff3ea;
-}
-
-div.tablecolumn_label{
- display: table-cell;
- font-size: 12px;
- vertical-align: middle;
- font-family: Verdana,Tahoma,sans-serif;
- width: 30%;
-}
-
-div.tablecolumn_field{
- display: table-cell;
- vertical-align: middle;
- font-family: Verdana,Tahoma,sans-serif;
- width: 70%;
-}
-
-div.tablecolumn_check{
- display: table-cell;
- margin-right: 5px;
- margin-left: 2px;
- vertical-align: middle;
-}
-
-div.tablecolumn2_label{
- display: table-cell;
- font-size: 12px;
- vertical-align: middle;
- font-family: Verdana,Tahoma,sans-serif;
- padding-left: 5px;
- width: 15%;
-}
-
-div.tablecolumn2_field{
- display: table-cell;
- vertical-align: middle;
- font-family: Verdana,Tahoma,sans-serif;
- width: 35%;
-}
-
-.ui-tabs .ui-tabs-panel {
- background: none repeat scroll 0 0 #FFFFFF;
- border-width: 0;
- display: block;
- overflow: auto;
- padding: 1em 1.4em;
-}
-
-.ui-widget input, .ui-widget select, .ui-widget textarea, .ui-widget button {
- font-family: Verdana,Arial,sans-serif;
- font-size: 12px;
- padding: 2px 4px;
-}
-
-.ui-widget-header {
- border: 1px solid #aaaaaa
- /*{borderColorHeader}*/;
- background: #cccccc
- /*{bgColorHeader}*/
- url(images/ui-bg_highlight-soft_75_cccccc_1x100.png)
- /*{bgImgUrlHeader}*/
- 50%/*{bgHeaderXPos}*/
- 50%/*{bgHeaderYPos}*/
- repeat-x/*{bgHeaderRepeat}*/;
- color: #222222/*{fcHeader}*/;
- font-weight: bold;
- padding: 7px 15px;
-}
-
-.ui-button {
- display: inline-block;
- position: relative;
- margin-right: .1em;
- cursor: pointer;
- text-align: center;
- zoom: 1;
- overflow: visible;
- padding: 7px 15px;
-}
-
-.ui-spinner-button {
- cursor: default;
- display: block;
- font-size: 0.5em;
- height: 50%;
- margin: 0;
- overflow: hidden;
- padding: 0;
- position: absolute;
- right: 0;
- text-align: center;
- width: 16px;
-}
http://git-wip-us.apache.org/repos/asf/syncope/blob/b7f88690/client/old_console/src/main/resources/META-INF/resources/css/images/ui-bg_diagonals-thick_20_666666_40x40.png
----------------------------------------------------------------------
diff --git a/client/old_console/src/main/resources/META-INF/resources/css/images/ui-bg_diagonals-thick_20_666666_40x40.png b/client/old_console/src/main/resources/META-INF/resources/css/images/ui-bg_diagonals-thick_20_666666_40x40.png
deleted file mode 100644
index 64ece57..0000000
Binary files a/client/old_console/src/main/resources/META-INF/resources/css/images/ui-bg_diagonals-thick_20_666666_40x40.png and /dev/null differ
http://git-wip-us.apache.org/repos/asf/syncope/blob/b7f88690/client/old_console/src/main/resources/META-INF/resources/css/images/ui-bg_flat_0_aaaaaa_40x100.png
----------------------------------------------------------------------
diff --git a/client/old_console/src/main/resources/META-INF/resources/css/images/ui-bg_flat_0_aaaaaa_40x100.png b/client/old_console/src/main/resources/META-INF/resources/css/images/ui-bg_flat_0_aaaaaa_40x100.png
deleted file mode 100644
index fc9ef06..0000000
Binary files a/client/old_console/src/main/resources/META-INF/resources/css/images/ui-bg_flat_0_aaaaaa_40x100.png and /dev/null differ
http://git-wip-us.apache.org/repos/asf/syncope/blob/b7f88690/client/old_console/src/main/resources/META-INF/resources/css/images/ui-bg_flat_0_aaaaaa_40x100_greennotused.png
----------------------------------------------------------------------
diff --git a/client/old_console/src/main/resources/META-INF/resources/css/images/ui-bg_flat_0_aaaaaa_40x100_greennotused.png b/client/old_console/src/main/resources/META-INF/resources/css/images/ui-bg_flat_0_aaaaaa_40x100_greennotused.png
deleted file mode 100644
index b3d1999..0000000
Binary files a/client/old_console/src/main/resources/META-INF/resources/css/images/ui-bg_flat_0_aaaaaa_40x100_greennotused.png and /dev/null differ
http://git-wip-us.apache.org/repos/asf/syncope/blob/b7f88690/client/old_console/src/main/resources/META-INF/resources/css/images/ui-bg_glass_55_fbf9ee_1x400.png
----------------------------------------------------------------------
diff --git a/client/old_console/src/main/resources/META-INF/resources/css/images/ui-bg_glass_55_fbf9ee_1x400.png b/client/old_console/src/main/resources/META-INF/resources/css/images/ui-bg_glass_55_fbf9ee_1x400.png
deleted file mode 100644
index ad3d634..0000000
Binary files a/client/old_console/src/main/resources/META-INF/resources/css/images/ui-bg_glass_55_fbf9ee_1x400.png and /dev/null differ
http://git-wip-us.apache.org/repos/asf/syncope/blob/b7f88690/client/old_console/src/main/resources/META-INF/resources/css/images/ui-bg_glass_65_ffffff_1x400.png
----------------------------------------------------------------------
diff --git a/client/old_console/src/main/resources/META-INF/resources/css/images/ui-bg_glass_65_ffffff_1x400.png b/client/old_console/src/main/resources/META-INF/resources/css/images/ui-bg_glass_65_ffffff_1x400.png
deleted file mode 100644
index 42ccba2..0000000
Binary files a/client/old_console/src/main/resources/META-INF/resources/css/images/ui-bg_glass_65_ffffff_1x400.png and /dev/null differ
http://git-wip-us.apache.org/repos/asf/syncope/blob/b7f88690/client/old_console/src/main/resources/META-INF/resources/css/images/ui-bg_glass_75_dadada_1x400.png
----------------------------------------------------------------------
diff --git a/client/old_console/src/main/resources/META-INF/resources/css/images/ui-bg_glass_75_dadada_1x400.png b/client/old_console/src/main/resources/META-INF/resources/css/images/ui-bg_glass_75_dadada_1x400.png
deleted file mode 100644
index 5a46b47..0000000
Binary files a/client/old_console/src/main/resources/META-INF/resources/css/images/ui-bg_glass_75_dadada_1x400.png and /dev/null differ
http://git-wip-us.apache.org/repos/asf/syncope/blob/b7f88690/client/old_console/src/main/resources/META-INF/resources/css/images/ui-bg_glass_75_e6e6e6_1x400.png
----------------------------------------------------------------------
diff --git a/client/old_console/src/main/resources/META-INF/resources/css/images/ui-bg_glass_75_e6e6e6_1x400.png b/client/old_console/src/main/resources/META-INF/resources/css/images/ui-bg_glass_75_e6e6e6_1x400.png
deleted file mode 100644
index 86c2baa..0000000
Binary files a/client/old_console/src/main/resources/META-INF/resources/css/images/ui-bg_glass_75_e6e6e6_1x400.png and /dev/null differ
http://git-wip-us.apache.org/repos/asf/syncope/blob/b7f88690/client/old_console/src/main/resources/META-INF/resources/css/images/ui-bg_glass_95_fef1ec_1x400.png
----------------------------------------------------------------------
diff --git a/client/old_console/src/main/resources/META-INF/resources/css/images/ui-bg_glass_95_fef1ec_1x400.png b/client/old_console/src/main/resources/META-INF/resources/css/images/ui-bg_glass_95_fef1ec_1x400.png
deleted file mode 100644
index 4443fdc..0000000
Binary files a/client/old_console/src/main/resources/META-INF/resources/css/images/ui-bg_glass_95_fef1ec_1x400.png and /dev/null differ
http://git-wip-us.apache.org/repos/asf/syncope/blob/b7f88690/client/old_console/src/main/resources/META-INF/resources/css/images/ui-bg_highlight-soft_75_cccccc_1x100.png
----------------------------------------------------------------------
diff --git a/client/old_console/src/main/resources/META-INF/resources/css/images/ui-bg_highlight-soft_75_cccccc_1x100.png b/client/old_console/src/main/resources/META-INF/resources/css/images/ui-bg_highlight-soft_75_cccccc_1x100.png
deleted file mode 100644
index 5749fc4..0000000
Binary files a/client/old_console/src/main/resources/META-INF/resources/css/images/ui-bg_highlight-soft_75_cccccc_1x100.png and /dev/null differ
http://git-wip-us.apache.org/repos/asf/syncope/blob/b7f88690/client/old_console/src/main/resources/META-INF/resources/css/images/ui-bg_highlight-soft_75_cccccc_1x100_greynotused.png
----------------------------------------------------------------------
diff --git a/client/old_console/src/main/resources/META-INF/resources/css/images/ui-bg_highlight-soft_75_cccccc_1x100_greynotused.png b/client/old_console/src/main/resources/META-INF/resources/css/images/ui-bg_highlight-soft_75_cccccc_1x100_greynotused.png
deleted file mode 100644
index 7c9fa6c..0000000
Binary files a/client/old_console/src/main/resources/META-INF/resources/css/images/ui-bg_highlight-soft_75_cccccc_1x100_greynotused.png and /dev/null differ
http://git-wip-us.apache.org/repos/asf/syncope/blob/b7f88690/client/old_console/src/main/resources/META-INF/resources/css/images/ui-bg_highlight-soft_75_cccccc_1x100_red.png
----------------------------------------------------------------------
diff --git a/client/old_console/src/main/resources/META-INF/resources/css/images/ui-bg_highlight-soft_75_cccccc_1x100_red.png b/client/old_console/src/main/resources/META-INF/resources/css/images/ui-bg_highlight-soft_75_cccccc_1x100_red.png
deleted file mode 100644
index 4632529..0000000
Binary files a/client/old_console/src/main/resources/META-INF/resources/css/images/ui-bg_highlight-soft_75_cccccc_1x100_red.png and /dev/null differ
http://git-wip-us.apache.org/repos/asf/syncope/blob/b7f88690/client/old_console/src/main/resources/META-INF/resources/css/images/ui-icons_222222_256x240.png
----------------------------------------------------------------------
diff --git a/client/old_console/src/main/resources/META-INF/resources/css/images/ui-icons_222222_256x240.png b/client/old_console/src/main/resources/META-INF/resources/css/images/ui-icons_222222_256x240.png
deleted file mode 100644
index ee039dc..0000000
Binary files a/client/old_console/src/main/resources/META-INF/resources/css/images/ui-icons_222222_256x240.png and /dev/null differ
http://git-wip-us.apache.org/repos/asf/syncope/blob/b7f88690/client/old_console/src/main/resources/META-INF/resources/css/images/ui-icons_2e83ff_256x240.png
----------------------------------------------------------------------
diff --git a/client/old_console/src/main/resources/META-INF/resources/css/images/ui-icons_2e83ff_256x240.png b/client/old_console/src/main/resources/META-INF/resources/css/images/ui-icons_2e83ff_256x240.png
deleted file mode 100644
index 45e8928..0000000
Binary files a/client/old_console/src/main/resources/META-INF/resources/css/images/ui-icons_2e83ff_256x240.png and /dev/null differ
http://git-wip-us.apache.org/repos/asf/syncope/blob/b7f88690/client/old_console/src/main/resources/META-INF/resources/css/images/ui-icons_454545_256x240.png
----------------------------------------------------------------------
diff --git a/client/old_console/src/main/resources/META-INF/resources/css/images/ui-icons_454545_256x240.png b/client/old_console/src/main/resources/META-INF/resources/css/images/ui-icons_454545_256x240.png
deleted file mode 100644
index 7ec70d1..0000000
Binary files a/client/old_console/src/main/resources/META-INF/resources/css/images/ui-icons_454545_256x240.png and /dev/null differ
http://git-wip-us.apache.org/repos/asf/syncope/blob/b7f88690/client/old_console/src/main/resources/META-INF/resources/css/images/ui-icons_888888_256x240.png
----------------------------------------------------------------------
diff --git a/client/old_console/src/main/resources/META-INF/resources/css/images/ui-icons_888888_256x240.png b/client/old_console/src/main/resources/META-INF/resources/css/images/ui-icons_888888_256x240.png
deleted file mode 100644
index 5ba708c..0000000
Binary files a/client/old_console/src/main/resources/META-INF/resources/css/images/ui-icons_888888_256x240.png and /dev/null differ
http://git-wip-us.apache.org/repos/asf/syncope/blob/b7f88690/client/old_console/src/main/resources/META-INF/resources/css/images/ui-icons_cd0a0a_256x240.png
----------------------------------------------------------------------
diff --git a/client/old_console/src/main/resources/META-INF/resources/css/images/ui-icons_cd0a0a_256x240.png b/client/old_console/src/main/resources/META-INF/resources/css/images/ui-icons_cd0a0a_256x240.png
deleted file mode 100644
index 7930a55..0000000
Binary files a/client/old_console/src/main/resources/META-INF/resources/css/images/ui-icons_cd0a0a_256x240.png and /dev/null differ