[42/51] [partial] syncope git commit: [SYNCOPE-156] Preparing place for new console

2015-04-22 Thread ilgrosso
http://git-wip-us.apache.org/repos/asf/syncope/blob/39f8a069/client/console/src/main/java/org/apache/syncope/client/console/pages/Users.java
--
diff --git 
a/client/console/src/main/java/org/apache/syncope/client/console/pages/Users.java
 
b/client/console/src/main/java/org/apache/syncope/client/console/pages/Users.java
deleted file mode 100644
index 98f93bf..000
--- 
a/client/console/src/main/java/org/apache/syncope/client/console/pages/Users.java
+++ /dev/null
@@ -1,166 +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.pages;
-
-import org.apache.syncope.client.console.commons.Constants;
-import org.apache.syncope.client.console.panels.AbstractSearchResultPanel;
-import 
org.apache.syncope.client.console.panels.AbstractSearchResultPanel.EventDataWrapper;
-import org.apache.syncope.client.console.panels.UserSearchPanel;
-import org.apache.syncope.client.console.panels.UserSearchResultPanel;
-import org.apache.syncope.client.console.rest.UserRestClient;
-import 
org.apache.syncope.client.console.wicket.ajax.markup.html.ClearIndicatingAjaxButton;
-import 
org.apache.syncope.client.console.wicket.ajax.markup.html.ClearIndicatingAjaxLink;
-import org.apache.syncope.common.lib.to.UserTO;
-import org.apache.wicket.Page;
-import org.apache.wicket.Session;
-import org.apache.wicket.ajax.AjaxRequestTarget;
-import org.apache.wicket.ajax.markup.html.AjaxLink;
-import 
org.apache.wicket.authroles.authorization.strategies.role.metadata.MetaDataRoleAuthorizationStrategy;
-import org.apache.wicket.event.Broadcast;
-import org.apache.wicket.extensions.ajax.markup.html.modal.ModalWindow;
-import org.apache.wicket.markup.html.form.Form;
-import org.apache.wicket.model.ResourceModel;
-import org.apache.wicket.request.mapper.parameter.PageParameters;
-import org.apache.wicket.spring.injection.annot.SpringBean;
-
-public class Users extends BasePage {
-
-private static final long serialVersionUID = 134681165644474568L;
-
-private final static int EDIT_MODAL_WIN_HEIGHT = 550;
-
-private final static int EDIT_MODAL_WIN_WIDTH = 800;
-
-@SpringBean
-private UserRestClient restClient;
-
-public Users(final PageParameters parameters) {
-super(parameters);
-
-// Modal window for editing user attributes
-final ModalWindow editModalWin = new ModalWindow("editModal");
-editModalWin.setCssClassName(ModalWindow.CSS_CLASS_GRAY);
-editModalWin.setInitialHeight(EDIT_MODAL_WIN_HEIGHT);
-editModalWin.setInitialWidth(EDIT_MODAL_WIN_WIDTH);
-editModalWin.setCookieName("edit-modal");
-add(editModalWin);
-
-final AbstractSearchResultPanel searchResult =
-new UserSearchResultPanel("searchResult", true, null, 
getPageReference(), restClient);
-add(searchResult);
-
-final AbstractSearchResultPanel listResult =
-new UserSearchResultPanel("listResult", false, null, 
getPageReference(), restClient);
-add(listResult);
-
-// create new user
-final AjaxLink createLink = new 
ClearIndicatingAjaxLink("createLink", getPageReference()) {
-
-private static final long serialVersionUID = -7978723352517770644L;
-
-@Override
-protected void onClickInternal(final AjaxRequestTarget target) {
-editModalWin.setPageCreator(new ModalWindow.PageCreator() {
-
-private static final long serialVersionUID = 
-7834632442532690940L;
-
-@Override
-public Page createPage() {
-return new 
EditUserModalPage(Users.this.getPageReference(), editModalWin, new UserTO());
-}
-});
-
-editModalWin.show(target);
-}
-};
-MetaDataRoleAuthorizationStrategy.authorize(
-createLink, ENABLE, xmlRolesReader.getEntitlement("Users", 
"create"));
-add(createLink);
-
-setWindowClosedReloadCallback(editModalWin);
-
-final Form searchForm = new Form<>("searchForm");
-add(searchForm);
-
-fi

[50/51] [partial] syncope git commit: [SYNCOPE-156] Preparing place for new console

2015-04-22 Thread ilgrosso
http://git-wip-us.apache.org/repos/asf/syncope/blob/39f8a069/client/console/src/main/java/org/apache/syncope/client/console/SyncopeApplication.java
--
diff --git 
a/client/console/src/main/java/org/apache/syncope/client/console/SyncopeApplication.java
 
b/client/console/src/main/java/org/apache/syncope/client/console/SyncopeApplication.java
deleted file mode 100644
index a1e781d..000
--- 
a/client/console/src/main/java/org/apache/syncope/client/console/SyncopeApplication.java
+++ /dev/null
@@ -1,306 +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;
-
-import java.io.Serializable;
-import org.apache.commons.lang3.StringUtils;
-import org.apache.syncope.client.console.commons.Constants;
-import org.apache.syncope.client.console.commons.XMLRolesReader;
-import org.apache.syncope.client.console.pages.Configuration;
-import org.apache.syncope.client.console.pages.InfoModalPage;
-import org.apache.syncope.client.console.pages.Login;
-import org.apache.syncope.client.console.pages.Logout;
-import org.apache.syncope.client.console.pages.Reports;
-import org.apache.syncope.client.console.pages.Resources;
-import org.apache.syncope.client.console.pages.Groups;
-import org.apache.syncope.client.console.pages.Schema;
-import org.apache.syncope.client.console.pages.Tasks;
-import org.apache.syncope.client.console.pages.Todo;
-import org.apache.syncope.client.console.pages.UserSelfModalPage;
-import org.apache.syncope.client.console.pages.Users;
-import org.apache.syncope.client.console.pages.WelcomePage;
-import org.apache.syncope.client.console.resources.FilesystemResource;
-import org.apache.syncope.client.console.resources.WorkflowDefGETResource;
-import org.apache.syncope.client.console.resources.WorkflowDefPUTResource;
-import org.apache.syncope.client.console.rest.UserSelfRestClient;
-import org.apache.syncope.common.lib.to.UserTO;
-import org.apache.wicket.Component;
-import org.apache.wicket.Page;
-import org.apache.wicket.RestartResponseAtInterceptPageException;
-import org.apache.wicket.Session;
-import org.apache.wicket.WicketRuntimeException;
-import org.apache.wicket.ajax.AjaxRequestTarget;
-import org.apache.wicket.ajax.markup.html.AjaxLink;
-import 
org.apache.wicket.authorization.IUnauthorizedComponentInstantiationListener;
-import org.apache.wicket.authorization.UnauthorizedInstantiationException;
-import 
org.apache.wicket.authroles.authorization.strategies.role.IRoleCheckingStrategy;
-import 
org.apache.wicket.authroles.authorization.strategies.role.RoleAuthorizationStrategy;
-import 
org.apache.wicket.authroles.authorization.strategies.role.metadata.MetaDataRoleAuthorizationStrategy;
-import org.apache.wicket.extensions.ajax.markup.html.modal.ModalWindow;
-import org.apache.wicket.markup.html.WebPage;
-import org.apache.wicket.markup.html.basic.Label;
-import org.apache.wicket.markup.html.image.Image;
-import org.apache.wicket.markup.html.link.BookmarkablePageLink;
-import org.apache.wicket.protocol.http.WebApplication;
-import org.apache.wicket.request.Request;
-import org.apache.wicket.request.Response;
-import org.apache.wicket.request.resource.ContextRelativeResource;
-import org.apache.wicket.request.resource.IResource;
-import org.apache.wicket.request.resource.ResourceReference;
-import org.apache.wicket.spring.injection.annot.SpringComponentInjector;
-import org.springframework.web.context.support.WebApplicationContextUtils;
-
-/**
- * SyncopeApplication class.
- */
-public class SyncopeApplication
-extends WebApplication
-implements IUnauthorizedComponentInstantiationListener, 
IRoleCheckingStrategy, Serializable {
-
-private static final long serialVersionUID = -2920378752291913495L;
-
-public static final String IMG_PREFIX = "/img/menu/";
-
-public static final String IMG_NOTSEL = "notsel/";
-
-private static final String ACTIVITI_MODELER_CONTEXT = "activiti-modeler";
-
-private static final int EDIT_PROFILE_WIN_HEIGHT = 550;
-
-private static final int EDIT_PROFILE_WIN_WIDTH = 800;
-
-@Override
-protected void init() {
-super.init();
-
-getCo

[14/51] [partial] syncope git commit: [SYNCOPE-156] Preparing place for new console

2015-04-22 Thread ilgrosso
http://git-wip-us.apache.org/repos/asf/syncope/blob/39f8a069/client/old_console/src/main/java/org/apache/syncope/client/console/panels/NotificationPanel.java
--
diff --git 
a/client/old_console/src/main/java/org/apache/syncope/client/console/panels/NotificationPanel.java
 
b/client/old_console/src/main/java/org/apache/syncope/client/console/panels/NotificationPanel.java
new file mode 100644
index 000..8624d26
--- /dev/null
+++ 
b/client/old_console/src/main/java/org/apache/syncope/client/console/panels/NotificationPanel.java
@@ -0,0 +1,119 @@
+/*
+ * 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.panels;
+
+import org.apache.commons.lang3.StringUtils;
+import org.apache.syncope.client.console.commons.Constants;
+import org.apache.wicket.AttributeModifier;
+import org.apache.wicket.ajax.AjaxEventBehavior;
+import org.apache.wicket.ajax.AjaxRequestTarget;
+import org.apache.wicket.feedback.FeedbackMessage;
+import org.apache.wicket.feedback.IFeedbackMessageFilter;
+import org.apache.wicket.markup.html.panel.FeedbackPanel;
+import org.apache.wicket.model.Model;
+
+public class NotificationPanel extends FeedbackPanel {
+
+private static final long serialVersionUID = 5895940553202128621L;
+
+private static final String CSS_CLASS = "notificationpanel";
+
+private static final String DEFAULT_ADDITIONAL_CSS_CLASS = 
"notificationpanel_top_right";
+
+private final String additionalCSSClass;
+
+public NotificationPanel(final String id) {
+this(id, null, null);
+}
+
+public NotificationPanel(final String id, final String additionalCSSClass,
+final IFeedbackMessageFilter feedbackMessageFilter) {
+
+super(id, feedbackMessageFilter);
+
+this.add(new AjaxEventBehavior(Constants.ON_CLICK) {
+
+private static final long serialVersionUID = -7133385027739964990L;
+
+@Override
+protected void onEvent(final AjaxRequestTarget target) {
+target.appendJavaScript(
+"setTimeout(\"$('div#" + getMarkupId() + 
"').fadeOut('normal')\", 0);");
+}
+});
+
+this.additionalCSSClass = StringUtils.isBlank(additionalCSSClass)
+? DEFAULT_ADDITIONAL_CSS_CLASS
+: additionalCSSClass;
+
+// set custom markup id and ouput it, to find the component later on 
in the js function
+setMarkupId(id);
+setOutputMarkupId(true);
+
+// Add the additional cssClass and hide the element by default
+add(new AttributeModifier("class", new Model(CSS_CLASS + " " + 
this.additionalCSSClass)));
+add(new AttributeModifier("style", new Model("opacity: 0;")));
+}
+
+/**
+ * Method to refresh the notification panel.
+ *
+ * If there are any feedback messages for the user, find the gravest 
level, format the notification panel
+ * accordingly and show it.
+ *
+ * @param target AjaxRequestTarget to add panel and the calling javascript 
function
+ */
+public void refresh(final AjaxRequestTarget target) {
+// any feedback at all in the current form?
+if (anyMessage()) {
+int highestFeedbackLevel = FeedbackMessage.INFO;
+
+// any feedback with the given level?
+if (anyMessage(FeedbackMessage.WARNING)) {
+highestFeedbackLevel = FeedbackMessage.WARNING;
+}
+if (anyMessage(FeedbackMessage.ERROR)) {
+highestFeedbackLevel = FeedbackMessage.ERROR;
+}
+
+// add the css classes to the notification panel, 
+// including the border css which represents the highest level of 
feedback
+add(new AttributeModifier("class",
+new Model(CSS_CLASS
++ " " + additionalCSSClass
++ " notificationpanel_border_" + 
highestFeedbackLevel)));
+
+// refresh the panel and call the js function with the panel 
markup id 
+// and the total count of messages
+target.add(this);
+if (any

[08/51] [partial] syncope git commit: [SYNCOPE-156] Preparing place for new console

2015-04-22 Thread ilgrosso
http://git-wip-us.apache.org/repos/asf/syncope/blob/39f8a069/client/old_console/src/main/java/org/apache/syncope/client/console/wicket/markup/html/form/DateTimeFieldPanel.java
--
diff --git 
a/client/old_console/src/main/java/org/apache/syncope/client/console/wicket/markup/html/form/DateTimeFieldPanel.java
 
b/client/old_console/src/main/java/org/apache/syncope/client/console/wicket/markup/html/form/DateTimeFieldPanel.java
new file mode 100644
index 000..d8014f6
--- /dev/null
+++ 
b/client/old_console/src/main/java/org/apache/syncope/client/console/wicket/markup/html/form/DateTimeFieldPanel.java
@@ -0,0 +1,195 @@
+/*
+ * 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.Calendar;
+import java.util.Date;
+import org.apache.syncope.client.console.commons.Constants;
+import org.apache.wicket.AttributeModifier;
+import org.apache.wicket.ajax.AjaxRequestTarget;
+import org.apache.wicket.ajax.form.AjaxFormComponentUpdatingBehavior;
+import org.apache.wicket.extensions.yui.calendar.DateTimeField;
+import org.apache.wicket.markup.html.form.Form;
+import org.apache.wicket.markup.html.form.FormComponent;
+import org.apache.wicket.markup.html.form.validation.AbstractFormValidator;
+import org.apache.wicket.model.IModel;
+import org.apache.wicket.model.Model;
+import org.apache.wicket.validation.IValidationError;
+import org.apache.wicket.validation.ValidationError;
+
+public class DateTimeFieldPanel extends DateFieldPanel {
+
+private static final long serialVersionUID = -428975732068281726L;
+
+private Form form = null;
+
+public DateTimeFieldPanel(final String id, final String name, final 
IModel model, final String datePattern) {
+super(id, name, model, datePattern);
+
+field = new DateTimeField("field", model);
+
+final Calendar cal = Calendar.getInstance();
+
+field.get("hours").add(new 
AjaxFormComponentUpdatingBehavior(Constants.ON_CHANGE) {
+
+private static final long serialVersionUID = -1107858522700306810L;
+
+@Override
+protected void onUpdate(final AjaxRequestTarget target) {
+final Integer hours = ((DateTimeField) field).getHours();
+if (hours != null) {
+cal.set(hours > 12 ? Calendar.HOUR_OF_DAY : Calendar.HOUR, 
hours);
+field.setModelObject(cal.getTime());
+}
+}
+});
+
+field.get("minutes").add(new 
AjaxFormComponentUpdatingBehavior(Constants.ON_CHANGE) {
+
+private static final long serialVersionUID = -1107858522700306810L;
+
+@Override
+protected void onUpdate(final AjaxRequestTarget target) {
+final Integer minutes = ((DateTimeField) field).getMinutes();
+if (minutes != null) {
+cal.set(Calendar.MINUTE, minutes);
+field.setModelObject(cal.getTime());
+}
+}
+});
+
+field.get("date").add(new 
AjaxFormComponentUpdatingBehavior(Constants.ON_CHANGE) {
+
+private static final long serialVersionUID = -1107858522700306810L;
+
+@Override
+protected void onUpdate(final AjaxRequestTarget target) {
+final Date date = ((DateTimeField) field).getDate();
+if (date == null) {
+field.setModelObject(null);
+} else {
+cal.setTime(date);
+cal.set(Calendar.AM_PM, "PM".equals("" + ((DateTimeField) 
field).getAmOrPm()) ? Calendar.PM
+: Calendar.AM);
+field.setModelObject(cal.getTime());
+}
+}
+});
+
+field.get("amOrPmChoice").add(new 
AjaxFormComponentUpdatingBehavior(Constants.ON_CHANGE) {
+
+private static final long serialVersionUID = -1107858522700306810L;
+
+@Override
+protected void onUpdate(final AjaxRequestTarget target) {
+cal.set(Calendar.AM_PM, "PM".equals("" + ((DateTimeFiel

[23/51] [partial] syncope git commit: [SYNCOPE-156] Preparing place for new console

2015-04-22 Thread ilgrosso
http://git-wip-us.apache.org/repos/asf/syncope/blob/39f8a069/client/old_console/src/main/java/org/apache/syncope/client/console/pages/AbstractSyncTaskModalPage.java
--
diff --git 
a/client/old_console/src/main/java/org/apache/syncope/client/console/pages/AbstractSyncTaskModalPage.java
 
b/client/old_console/src/main/java/org/apache/syncope/client/console/pages/AbstractSyncTaskModalPage.java
new file mode 100644
index 000..aa62b41
--- /dev/null
+++ 
b/client/old_console/src/main/java/org/apache/syncope/client/console/pages/AbstractSyncTaskModalPage.java
@@ -0,0 +1,209 @@
+/*
+ * 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.pages;
+
+import java.util.ArrayList;
+import java.util.Arrays;
+import java.util.Collections;
+import java.util.List;
+import org.apache.commons.lang3.StringUtils;
+import org.apache.syncope.client.console.commons.Constants;
+import org.apache.syncope.client.console.commons.SelectChoiceRenderer;
+import 
org.apache.syncope.client.console.wicket.markup.html.form.AjaxCheckBoxPanel;
+import 
org.apache.syncope.client.console.wicket.markup.html.form.AjaxDropDownChoicePanel;
+import org.apache.syncope.common.lib.to.AbstractProvisioningTaskTO;
+import org.apache.syncope.common.lib.to.ResourceTO;
+import org.apache.syncope.common.lib.types.MatchingRule;
+import org.apache.syncope.common.lib.types.UnmatchingRule;
+import org.apache.wicket.PageReference;
+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.extensions.ajax.markup.html.IndicatingAjaxLink;
+import org.apache.wicket.extensions.ajax.markup.html.modal.ModalWindow;
+import org.apache.wicket.markup.html.WebMarkupContainer;
+import org.apache.wicket.markup.html.form.DropDownChoice;
+import org.apache.wicket.markup.html.list.ListItem;
+import org.apache.wicket.markup.html.list.ListView;
+import org.apache.wicket.model.IModel;
+import org.apache.wicket.model.LoadableDetachableModel;
+import org.apache.wicket.model.Model;
+import org.apache.wicket.model.PropertyModel;
+
+/**
+ * Abstract Modal window for Sync and Push Task form.
+ */
+public abstract class AbstractSyncTaskModalPage extends 
AbstractSchedTaskModalPage {
+
+private static final long serialVersionUID = 2148403203517274669L;
+
+protected AjaxDropDownChoicePanel matchingRule;
+
+protected AjaxDropDownChoicePanel unmatchingRule;
+
+protected abstract List getSyncActions();
+
+final IModel> allResources = new 
LoadableDetachableModel>() {
+
+private static final long serialVersionUID = 5275935387613157437L;
+
+@Override
+protected List load() {
+final List resourceNames = new ArrayList<>();
+
+for (ResourceTO resourceTO : resourceRestClient.getAll()) {
+resourceNames.add(resourceTO.getKey());
+}
+
+Collections.sort(resourceNames);
+return resourceNames;
+}
+};
+
+final IModel> syncActionsClasses = new 
LoadableDetachableModel>() {
+
+private static final long serialVersionUID = 5275935387613157438L;
+
+@Override
+protected List load() {
+return getSyncActions();
+}
+};
+
+public AbstractSyncTaskModalPage(
+final ModalWindow window, final AbstractProvisioningTaskTO taskTO, 
final PageReference pageRef) {
+
+super(window, taskTO, pageRef);
+
+final AjaxDropDownChoicePanel resource = new 
AjaxDropDownChoicePanel<>("resource",
+getString("resourceName"), new PropertyModel(taskTO, 
"resource"));
+resource.setChoices(allResources.getObject());
+resource.setChoiceRenderer(new SelectChoiceRenderer());
+resource.addRequiredLabel();
+resource.setEnabled(taskTO.getKey() == 0);
+resource.setStyleSheet("ui-widget-content ui-corner-all 
long_dynamicsize");
+
+profile.add(resource);
+
+final WebMarkupContainer syncActionsClassNames = new 
WebMarkupContainer("syncActionsClassNames");
+syncAct

[20/51] [partial] syncope git commit: [SYNCOPE-156] Preparing place for new console

2015-04-22 Thread ilgrosso
http://git-wip-us.apache.org/repos/asf/syncope/blob/39f8a069/client/old_console/src/main/java/org/apache/syncope/client/console/pages/PropagationTaskModalPage.java
--
diff --git 
a/client/old_console/src/main/java/org/apache/syncope/client/console/pages/PropagationTaskModalPage.java
 
b/client/old_console/src/main/java/org/apache/syncope/client/console/pages/PropagationTaskModalPage.java
new file mode 100644
index 000..5a6779f
--- /dev/null
+++ 
b/client/old_console/src/main/java/org/apache/syncope/client/console/pages/PropagationTaskModalPage.java
@@ -0,0 +1,45 @@
+/*
+ * 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.pages;
+
+import 
org.apache.syncope.client.console.wicket.markup.html.form.AjaxTextFieldPanel;
+import org.apache.syncope.common.lib.to.AbstractTaskTO;
+import org.apache.wicket.model.PropertyModel;
+
+/**
+ * Modal window with Task form (to stop and start execution).
+ */
+public class PropagationTaskModalPage extends TaskModalPage {
+
+private static final long serialVersionUID = 523379887023786151L;
+
+public PropagationTaskModalPage(final AbstractTaskTO taskTO) {
+super(taskTO);
+
+final AjaxTextFieldPanel accountId = new 
AjaxTextFieldPanel("accountId", getString("accountId"),
+new PropertyModel(taskTO, "accountId"));
+accountId.setEnabled(false);
+profile.add(accountId);
+
+final AjaxTextFieldPanel resource = new AjaxTextFieldPanel("resource", 
getString("resource"),
+new PropertyModel(taskTO, "resource"));
+resource.setEnabled(false);
+profile.add(resource);
+}
+}

http://git-wip-us.apache.org/repos/asf/syncope/blob/39f8a069/client/old_console/src/main/java/org/apache/syncope/client/console/pages/ProvisioningModalPage.java
--
diff --git 
a/client/old_console/src/main/java/org/apache/syncope/client/console/pages/ProvisioningModalPage.java
 
b/client/old_console/src/main/java/org/apache/syncope/client/console/pages/ProvisioningModalPage.java
new file mode 100644
index 000..6418d61
--- /dev/null
+++ 
b/client/old_console/src/main/java/org/apache/syncope/client/console/pages/ProvisioningModalPage.java
@@ -0,0 +1,249 @@
+/*
+ * 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.pages;
+
+import java.util.ArrayList;
+import java.util.Collections;
+import java.util.LinkedHashMap;
+import java.util.List;
+import org.apache.commons.lang3.StringUtils;
+import org.apache.syncope.client.console.commons.Constants;
+import 
org.apache.syncope.client.console.commons.status.AbstractStatusBeanProvider;
+import org.apache.syncope.client.console.commons.status.ConnObjectWrapper;
+import org.apache.syncope.client.console.commons.status.StatusBean;
+import org.apache.syncope.client.console.commons.status.StatusUtils;
+import org.apache.syncope.client.console.panels.ActionDataTablePanel;
+import org.apache.syncope.client.console.wicket.markup.html.form.ActionLink;
+import org.apache.syncope.client.lib.SyncopeClient;
+import org.apache.syncope.common.lib.to.AbstractAttributableTO;
+import org.apache.syncope.common.lib.to.AbstractSubjectTO;
+import org.apache.syncope.common.lib.to.BulkActionResult;
+import org.apache.syncope.common.lib.to.ResourceTO;
+import org.apache.syncop

[02/51] [partial] syncope git commit: [SYNCOPE-156] Preparing place for new console

2015-04-22 Thread ilgrosso
http://git-wip-us.apache.org/repos/asf/syncope/blob/39f8a069/client/old_console/src/main/resources/org/apache/syncope/client/console/pages/ResourceModalPage_it.properties
--
diff --git 
a/client/old_console/src/main/resources/org/apache/syncope/client/console/pages/ResourceModalPage_it.properties
 
b/client/old_console/src/main/resources/org/apache/syncope/client/console/pages/ResourceModalPage_it.properties
new file mode 100644
index 000..a7b33b8
--- /dev/null
+++ 
b/client/old_console/src/main/resources/org/apache/syncope/client/console/pages/ResourceModalPage_it.properties
@@ -0,0 +1,60 @@
+# 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.
+resource=Dettagli Risorsa
+umapping=Mapping utenti
+connectorProperties=Propriet\u00e0\u00a0 Connettore
+security=Sicurezza
+required_alert=Tutti i campi sono richiesti
+connector=Connettore
+existing_resources=Risorse esistenti
+action=Azione
+edit_attribute=Modifica risorsa
+title=Risorsa
+extAttrNames=Attributi esterni
+intMappingTypes=Tipo mapping interno
+entity=Entità
+groupSchema=Schema Gruppo
+accountId=AccountId
+mandatoryCondition=Obbligatorio
+password=Password
+purpose=Scopo
+mappingUserSchema=Mapping User Schema
+mappingGroupSchema=Mapping Group Schema
+delete=Rimuovi
+intAttrNames=Attributi interni
+enforceMandatoryCondition=Abilita mandatory condition
+fieldName=Nome campo
+
+accountIdValidation=Deve essere definito esattamente un AccountId
+propagationMode=Modalit\u00e0 di propagazione
+accountLink=Account link
+enable=Abilita
+
+createTraceLevel=Livello di tracciamento delle creazioni
+updateTraceLevel=Livello di tracciamento degli aggiornamenti
+deleteTraceLevel=Livello di tracciamento delle cancellazioni
+syncTraceLevel=Livello di tracciamento delle sincronizzazioni
+propagationPriority=Priorit\u00e0 in propagazione
+propagationPrimary=Primaria in propagazione
+
+success_connection=Connessione avvenuta con successo
+error_connection=Connessione non riuscita
+check=Verifica connessione
+actionsClasses=Classi azioni
+gmapping=Mapping gruppi
+new=Nuova
+randomPwdIfNotProvided=Genera password casuali se mancanti

http://git-wip-us.apache.org/repos/asf/syncope/blob/39f8a069/client/old_console/src/main/resources/org/apache/syncope/client/console/pages/ResourceModalPage_pt_BR.properties
--
diff --git 
a/client/old_console/src/main/resources/org/apache/syncope/client/console/pages/ResourceModalPage_pt_BR.properties
 
b/client/old_console/src/main/resources/org/apache/syncope/client/console/pages/ResourceModalPage_pt_BR.properties
new file mode 100644
index 000..be08c73
--- /dev/null
+++ 
b/client/old_console/src/main/resources/org/apache/syncope/client/console/pages/ResourceModalPage_pt_BR.properties
@@ -0,0 +1,60 @@
+# 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.
+resource=Detalhes de Recursos
+umapping=Mapeamento de usu\u00e1rios
+connectorProperties=Propriedades de Conectores
+security=Seguran\u00e7a
+required_alert=Todos os campos deste formul\u00e1rio s\u00e3o obrigat\u00f3rios
+connector=Conector
+existing_resources=Recursos Existentes
+action=A\u00e7\u00e3o
+edit_attribute=Alterar Recurso
+title=Recurso
+extAttrNames=Atributos Externos
+intMappingTypes=Tipos internos de mapeamentos
+entity=Entidade
+groupSchema=Esquema de Grupo
+accountId=Identificador da Conta
+mandatoryCondition=Obrigat\u00f3rio
+password=Senha
+purpose=Prop\u00f3si

[16/51] [partial] syncope git commit: [SYNCOPE-156] Preparing place for new console

2015-04-22 Thread ilgrosso
http://git-wip-us.apache.org/repos/asf/syncope/blob/39f8a069/client/old_console/src/main/java/org/apache/syncope/client/console/panels/AbstractSearchResultPanel.java
--
diff --git 
a/client/old_console/src/main/java/org/apache/syncope/client/console/panels/AbstractSearchResultPanel.java
 
b/client/old_console/src/main/java/org/apache/syncope/client/console/panels/AbstractSearchResultPanel.java
new file mode 100644
index 000..6139ee4
--- /dev/null
+++ 
b/client/old_console/src/main/java/org/apache/syncope/client/console/panels/AbstractSearchResultPanel.java
@@ -0,0 +1,353 @@
+/*
+ * 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.panels;
+
+import java.util.Collection;
+import java.util.List;
+import org.apache.syncope.client.console.commons.AttributableDataProvider;
+import org.apache.syncope.client.console.commons.Constants;
+import org.apache.syncope.client.console.commons.PreferenceManager;
+import org.apache.syncope.client.console.commons.XMLRolesReader;
+import org.apache.syncope.client.console.pages.AbstractBasePage;
+import org.apache.syncope.client.console.rest.AbstractSubjectRestClient;
+import org.apache.syncope.client.console.wicket.markup.html.form.ActionLink;
+import org.apache.syncope.common.lib.to.AbstractAttributableTO;
+import org.apache.wicket.PageReference;
+import org.apache.wicket.ajax.AjaxRequestTarget;
+import org.apache.wicket.ajax.form.AjaxFormComponentUpdatingBehavior;
+import org.apache.wicket.event.Broadcast;
+import org.apache.wicket.event.IEvent;
+import org.apache.wicket.event.IEventSource;
+import org.apache.wicket.extensions.ajax.markup.html.modal.ModalWindow;
+import org.apache.wicket.extensions.markup.html.repeater.data.table.IColumn;
+import org.apache.wicket.markup.html.WebMarkupContainer;
+import org.apache.wicket.markup.html.form.DropDownChoice;
+import org.apache.wicket.markup.html.form.Form;
+import org.apache.wicket.markup.html.panel.Panel;
+import org.apache.wicket.model.PropertyModel;
+import org.apache.wicket.spring.injection.annot.SpringBean;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
+public abstract class AbstractSearchResultPanel extends Panel implements 
IEventSource {
+
+private static final long serialVersionUID = -9170191461250434024L;
+
+/**
+ * Logger.
+ */
+protected static final Logger LOG = 
LoggerFactory.getLogger(AbstractSearchResultPanel.class);
+
+/**
+ * Edit modal window height.
+ */
+private final static int EDIT_MODAL_WIN_HEIGHT = 550;
+
+/**
+ * Edit modal window width.
+ */
+private final static int EDIT_MODAL_WIN_WIDTH = 800;
+
+/**
+ * Schemas to be shown modal window height.
+ */
+private final static int DISPLAYATTRS_MODAL_WIN_HEIGHT = 550;
+
+/**
+ * Schemas to be shown modal window width.
+ */
+private final static int DISPLAYATTRS_MODAL_WIN_WIDTH = 550;
+
+/**
+ * Schemas to be shown modal window height.
+ */
+private final static int STATUS_MODAL_WIN_HEIGHT = 500;
+
+/**
+ * Schemas to be shown modal window width.
+ */
+private final static int STATUS_MODAL_WIN_WIDTH = 700;
+
+/**
+ * Application preferences.
+ */
+@SpringBean
+protected PreferenceManager prefMan;
+
+/**
+ * Role reader for authorizations management.
+ */
+@SpringBean
+protected XMLRolesReader xmlRolesReader;
+
+protected final AbstractSubjectRestClient restClient;
+
+/**
+ * Number of rows per page.
+ */
+private final int rows;
+
+/**
+ * Container used to refresh table.
+ */
+protected final WebMarkupContainer container;
+
+/**
+ * Feedback panel specified by the caller.
+ */
+protected final NotificationPanel feedbackPanel;
+
+/**
+ * Specify if results are about a filtered search or not. Using this 
attribute it is possible to use this panel to
+ * show results about user list and user search.
+ */
+private final boolean filtered;
+
+/**
+ * Filter used in case of filtered search.
+ */
+private String fiql;
+
+/**
+ * Result ta

[38/51] [partial] syncope git commit: [SYNCOPE-156] Preparing place for new console

2015-04-22 Thread ilgrosso
http://git-wip-us.apache.org/repos/asf/syncope/blob/39f8a069/client/console/src/main/java/org/apache/syncope/client/console/panels/ResourceMappingPanel.java
--
diff --git 
a/client/console/src/main/java/org/apache/syncope/client/console/panels/ResourceMappingPanel.java
 
b/client/console/src/main/java/org/apache/syncope/client/console/panels/ResourceMappingPanel.java
deleted file mode 100644
index 406676f..000
--- 
a/client/console/src/main/java/org/apache/syncope/client/console/panels/ResourceMappingPanel.java
+++ /dev/null
@@ -1,644 +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.panels;
-
-import java.util.ArrayList;
-import java.util.Arrays;
-import java.util.Collections;
-import java.util.Comparator;
-import java.util.HashSet;
-import java.util.List;
-import java.util.Set;
-import org.apache.syncope.client.console.commons.Constants;
-import org.apache.syncope.client.console.commons.JexlHelpUtils;
-import 
org.apache.syncope.client.console.panels.ResourceConnConfPanel.ConnConfModEvent;
-import org.apache.syncope.client.console.rest.ConnectorRestClient;
-import org.apache.syncope.client.console.rest.SchemaRestClient;
-import 
org.apache.syncope.client.console.wicket.markup.html.form.AjaxCheckBoxPanel;
-import 
org.apache.syncope.client.console.wicket.markup.html.form.AjaxDecoratedCheckbox;
-import 
org.apache.syncope.client.console.wicket.markup.html.form.AjaxDropDownChoicePanel;
-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.MappingPurposePanel;
-import org.apache.syncope.common.lib.to.ConnIdObjectClassTO;
-import org.apache.syncope.common.lib.to.ConnInstanceTO;
-import org.apache.syncope.common.lib.to.MappingItemTO;
-import org.apache.syncope.common.lib.to.MappingTO;
-import org.apache.syncope.common.lib.to.ResourceTO;
-import org.apache.syncope.common.lib.types.AttributableType;
-import org.apache.syncope.common.lib.types.ConnConfProperty;
-import org.apache.syncope.common.lib.types.IntMappingType;
-import org.apache.syncope.common.lib.types.MappingPurpose;
-import org.apache.wicket.Component;
-import org.apache.wicket.ajax.AjaxRequestTarget;
-import org.apache.wicket.ajax.attributes.AjaxCallListener;
-import org.apache.wicket.ajax.attributes.AjaxRequestAttributes;
-import org.apache.wicket.ajax.form.AjaxFormComponentUpdatingBehavior;
-import org.apache.wicket.ajax.markup.html.AjaxLink;
-import org.apache.wicket.ajax.markup.html.form.AjaxButton;
-import org.apache.wicket.event.IEvent;
-import org.apache.wicket.extensions.ajax.markup.html.IndicatingAjaxButton;
-import org.apache.wicket.markup.html.WebMarkupContainer;
-import org.apache.wicket.markup.html.basic.Label;
-import org.apache.wicket.markup.html.form.Form;
-import org.apache.wicket.markup.html.list.ListItem;
-import org.apache.wicket.markup.html.list.ListView;
-import org.apache.wicket.markup.html.panel.Panel;
-import org.apache.wicket.model.Model;
-import org.apache.wicket.model.PropertyModel;
-import org.apache.wicket.model.ResourceModel;
-import org.apache.wicket.spring.injection.annot.SpringBean;
-
-/**
- * Resource mapping panel.
- */
-public class ResourceMappingPanel extends Panel {
-
-private static final long serialVersionUID = -7982691107029848579L;
-
-/**
- * Mapping field style sheet.
- */
-private static final String FIELD_STYLE = "ui-widget-content ui-corner-all 
short_fixedsize";
-
-/**
- * Mapping field style sheet.
- */
-private static final String DEF_FIELD_STYLE = "ui-widget-content 
ui-corner-all";
-
-/**
- * Mapping field style sheet.
- */
-private static final String SHORT_FIELD_STYLE = "ui-widget-content 
ui-corner-all veryshort_fixedsize";
-
-/**
- * Schema rest client.
- */
-@SpringBean
-private SchemaRestClient schemaRestClient;
-
-/**
- * ConnInstance rest client.
- */
-@SpringBean
-private ConnectorRestClient connRestClient;
-
-/**
- * Resource schema 

[40/51] [partial] syncope git commit: [SYNCOPE-156] Preparing place for new console

2015-04-22 Thread ilgrosso
http://git-wip-us.apache.org/repos/asf/syncope/blob/39f8a069/client/console/src/main/java/org/apache/syncope/client/console/panels/GroupTabPanel.java
--
diff --git 
a/client/console/src/main/java/org/apache/syncope/client/console/panels/GroupTabPanel.java
 
b/client/console/src/main/java/org/apache/syncope/client/console/panels/GroupTabPanel.java
deleted file mode 100644
index 9615554..000
--- 
a/client/console/src/main/java/org/apache/syncope/client/console/panels/GroupTabPanel.java
+++ /dev/null
@@ -1,195 +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.panels;
-
-import org.apache.syncope.client.console.commons.Constants;
-import org.apache.syncope.client.console.commons.Mode;
-import org.apache.syncope.client.console.commons.XMLRolesReader;
-import org.apache.syncope.client.console.pages.ResultStatusModalPage;
-import org.apache.syncope.client.console.pages.GroupModalPage;
-import org.apache.syncope.client.console.pages.Groups;
-import org.apache.syncope.client.console.pages.StatusModalPage;
-import org.apache.syncope.client.console.rest.GroupRestClient;
-import org.apache.syncope.client.console.rest.UserRestClient;
-import 
org.apache.syncope.client.console.wicket.ajax.markup.html.ClearIndicatingAjaxButton;
-import org.apache.syncope.client.console.wicket.markup.html.form.ActionLink;
-import 
org.apache.syncope.client.console.wicket.markup.html.form.ActionLinksPanel;
-import org.apache.syncope.client.lib.SyncopeClient;
-import org.apache.syncope.common.lib.SyncopeClientException;
-import org.apache.syncope.common.lib.to.GroupTO;
-import org.apache.wicket.Page;
-import org.apache.wicket.PageReference;
-import org.apache.wicket.ajax.AjaxRequestTarget;
-import org.apache.wicket.extensions.ajax.markup.html.modal.ModalWindow;
-import org.apache.wicket.markup.html.WebMarkupContainer;
-import org.apache.wicket.markup.html.basic.Label;
-import org.apache.wicket.markup.html.form.Form;
-import org.apache.wicket.markup.html.panel.Panel;
-import org.apache.wicket.model.CompoundPropertyModel;
-import org.apache.wicket.model.Model;
-import org.apache.wicket.model.ResourceModel;
-import org.apache.wicket.spring.injection.annot.SpringBean;
-
-public class GroupTabPanel extends Panel {
-
-private static final long serialVersionUID = 859236186975983959L;
-
-@SpringBean
-private XMLRolesReader xmlRolesReader;
-
-@SpringBean
-private GroupRestClient groupRestClient;
-
-@SpringBean
-private UserRestClient userRestClient;
-
-@SuppressWarnings({ "unchecked", "rawtypes" })
-public GroupTabPanel(final String id, final GroupTO selectedNode, final 
ModalWindow window,
-final PageReference pageRef) {
-
-super(id);
-
-this.add(new Label("displayName", selectedNode.getDisplayName()));
-
-final ActionLinksPanel links = new ActionLinksPanel("actionLinks", new 
Model(), pageRef);
-links.setOutputMarkupId(true);
-this.add(links);
-links.addWithRoles(new ActionLink() {
-
-private static final long serialVersionUID = -3722207913631435501L;
-
-@Override
-public void onClick(final AjaxRequestTarget target) {
-window.setPageCreator(new ModalWindow.PageCreator() {
-
-private static final long serialVersionUID = 
-7834632442532690940L;
-
-@Override
-public Page createPage() {
-GroupTO groupTO = new GroupTO();
-groupTO.setParent(selectedNode.getKey());
-return new GroupModalPage(pageRef, window, groupTO);
-}
-});
-
-window.show(target);
-}
-}, ActionLink.ActionType.CREATE, 
xmlRolesReader.getEntitlement("Groups", "create"));
-links.addWithRoles(new ActionLink() {
-
-private static final long serialVersionUID = -3722207913631435501L;
-
-@Override
-public void onClick(final AjaxRequestTarget target) {
-window.setPageCreator(new ModalWindow.PageCreator() {
-

[27/51] [partial] syncope git commit: [SYNCOPE-156] Preparing place for new console

2015-04-22 Thread ilgrosso
http://git-wip-us.apache.org/repos/asf/syncope/blob/39f8a069/client/console/src/main/resources/org/apache/syncope/client/console/panels/GroupTabPanel_pt_BR.properties
--
diff --git 
a/client/console/src/main/resources/org/apache/syncope/client/console/panels/GroupTabPanel_pt_BR.properties
 
b/client/console/src/main/resources/org/apache/syncope/client/console/panels/GroupTabPanel_pt_BR.properties
deleted file mode 100644
index 7e751b2..000
--- 
a/client/console/src/main/resources/org/apache/syncope/client/console/panels/GroupTabPanel_pt_BR.properties
+++ /dev/null
@@ -1,27 +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.
-title=Grupo
-details=Detalhes
-plainAttrs=Atributos Normal
-derAttrs=Atributos Derivados
-virAttrs=Atributos Virtuais
-resources=Recursos
-entitlements=Direitos
-security=Seguran\u00e7a
-users=Usu\u00e1rios
-search=Obter Usu\u00e1rios
-templates=Modelo

http://git-wip-us.apache.org/repos/asf/syncope/blob/39f8a069/client/console/src/main/resources/org/apache/syncope/client/console/panels/ImagePanel.html
--
diff --git 
a/client/console/src/main/resources/org/apache/syncope/client/console/panels/ImagePanel.html
 
b/client/console/src/main/resources/org/apache/syncope/client/console/panels/ImagePanel.html
deleted file mode 100644
index 63a568e..000
--- 
a/client/console/src/main/resources/org/apache/syncope/client/console/panels/ImagePanel.html
+++ /dev/null
@@ -1,23 +0,0 @@
-
-http://www.w3.org/1999/xhtml"; 
xmlns:wicket="http://wicket.apache.org";>
-  
-
-  
-

http://git-wip-us.apache.org/repos/asf/syncope/blob/39f8a069/client/console/src/main/resources/org/apache/syncope/client/console/panels/JQueryUITabbedPanel.html
--
diff --git 
a/client/console/src/main/resources/org/apache/syncope/client/console/panels/JQueryUITabbedPanel.html
 
b/client/console/src/main/resources/org/apache/syncope/client/console/panels/JQueryUITabbedPanel.html
deleted file mode 100644
index 9f66972..000
--- 
a/client/console/src/main/resources/org/apache/syncope/client/console/panels/JQueryUITabbedPanel.html
+++ /dev/null
@@ -1,41 +0,0 @@
-
-http://www.w3.org/1999/xhtml"; 
xmlns:wicket="http://wicket.apache.org";>
-  
-
-  li.selected {
-margin-bottom: -1px !important;
-padding-bottom: 1px !important;
-  }
-
-  
-  http://wicket.apache.org";>
-
-   
-
-  
-[[tab title]]
-  
-
-  
-  [panel]
-
-  
-

http://git-wip-us.apache.org/repos/asf/syncope/blob/39f8a069/client/console/src/main/resources/org/apache/syncope/client/console/panels/LayoutsPanel.html
--
diff --git 
a/client/console/src/main/resources/org/apache/syncope/client/console/panels/LayoutsPanel.html
 
b/client/console/src/main/resources/org/apache/syncope/client/console/panels/LayoutsPanel.html
deleted file mode 100644
index 51840f4..000
--- 
a/client/console/src/main/resources/org/apache/syncope/client/console/panels/LayoutsPanel.html
+++ /dev/null
@@ -1,41 +0,0 @@
-
-http://www.w3.org/1999/xhtml"; 
xmlns:wicket="http://wicket.apache.org";>
-  
-
-  
-
-  
-
-  [fields]
-
-
-  
-  
-
-  
-
-  
-
-  
-

http://git-wip-us.apache.org/repos/asf/syncope/blob/39f8a069/client/console/src/main/resources/org/apache/syncope/client/console/panels/LayoutsPanel.properties
--
diff --git 
a/client/console/src/main/resources/org/apache/syncope/client/console/panels/LayoutsPanel.properties
 
b/client/console/src/main/resources/org/apache/syncope/client/console/panels/LayoutsPanel.properties
deleted file mode 100644
index a7a1683..000
--- 
a/client/console/src/main/resources/org/apache/syncope/client/console/panels/LayoutsPanel.properties
+++ /dev/null
@@ -1,18 +0,0 @@
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contri

[29/51] [partial] syncope git commit: [SYNCOPE-156] Preparing place for new console

2015-04-22 Thread ilgrosso
http://git-wip-us.apache.org/repos/asf/syncope/blob/39f8a069/client/console/src/main/resources/org/apache/syncope/client/console/pages/SyncTaskModalPage.html
--
diff --git 
a/client/console/src/main/resources/org/apache/syncope/client/console/pages/SyncTaskModalPage.html
 
b/client/console/src/main/resources/org/apache/syncope/client/console/pages/SyncTaskModalPage.html
deleted file mode 100644
index fc9b0a5..000
--- 
a/client/console/src/main/resources/org/apache/syncope/client/console/pages/SyncTaskModalPage.html
+++ /dev/null
@@ -1,205 +0,0 @@
-
-http://www.w3.org/1999/xhtml"; 
xmlns:wicket="http://wicket.apache.org";>
-  
-
-  
-
-  
-
-
-  
-
-
-
-  
-  
-
-  
-
-
-  
-
-  [Id]
-
-
-  [key]
-
-  
-
-  
-
-  
-
-
-  [name]
-
-  
-
-  
-
-  
-
-
-  [description]
-
-  
-
-  
-
-  
-
-
-  [resource]
-
-  
-
-  
-
-  
-
-
-  [lastExec]
-
-  
-
-  
-
-  
-
-
-  [nextExec]
-
-  
-
-  
-
-  
-
-
-  
-
-
-
-
-  
-  
- 
-  
-
-  
-
-  
-
-
-  [performCreate]
-
-  
-  
-
-  
-
-
-  [performUpdate]
-
-  
-  
-
-  
-
-
-  [performDelete]
-
-  
-  
-
-  
-
-
-  [syncStatus]
-
-  
-  
-
-  
-
-
-  [fullReconciliation]
-
-  
-  
-
-  
-
-
-  [matchingRule]
-
-  
-  
-
-  
-
-
-  [unmatchingRule]
-
-  
-  
-
-  
-
-  
-  
-
-  
-
-  
-
-
-  
-  
-  
-  
-  
-  
-
-
-  
-
-
-  
-
-  
-
-  
-  
-
-  
-
-  
-
-
-  
-  
-
-  
-
-
-  
-
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/syncope/blob/39f8a069/client/console/src/main/resources/org/apache/syncope/client/console/pages/SyncTaskModalPage.properties
--
diff --git 
a/client/console/src/main/resources/org/apache/syncope/client/console/pages/SyncTaskModalPage.properties
 
b/client/console/src/main/resources/org/apache/syncope/client/console/pages/SyncTaskModalPage.properties
deleted file mode 100644
index 4fa0321..000
--- 
a/client/console/src/main/resources/org/apache/syncope/client/console/pages/SyncTaskModalPage.properties
+++ /dev/null
@@ -1,43 +0,0

[31/51] [partial] syncope git commit: [SYNCOPE-156] Preparing place for new console

2015-04-22 Thread ilgrosso
http://git-wip-us.apache.org/repos/asf/syncope/blob/39f8a069/client/console/src/main/resources/org/apache/syncope/client/console/pages/PlainSchemaModalPage.properties
--
diff --git 
a/client/console/src/main/resources/org/apache/syncope/client/console/pages/PlainSchemaModalPage.properties
 
b/client/console/src/main/resources/org/apache/syncope/client/console/pages/PlainSchemaModalPage.properties
deleted file mode 100644
index 58c5708..000
--- 
a/client/console/src/main/resources/org/apache/syncope/client/console/pages/PlainSchemaModalPage.properties
+++ /dev/null
@@ -1,38 +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.
-tab1=Attributes
-tab2=Derived attributes
-tab3=User attributes
-tab4=User derived attributes
-required_alert=All form fields are required.
-mandatoryCondition=Mandatory
-enumerationValues= Enumeration values
-enumerationKeys= Enumeration labels
-uniqueConstraint=Unique
-multivalue=Multivalue
-multivalueAndUniqueConstr.validation='Multivalue' and 'Unique constraint' 
options can't be both checked
-type=Type
-validatorClass=Validator class
-conversionPattern=Conversion pattern
-existing_schemas=Existing Schemas:
-action=Action
-edit_attribute=Edit attribute
-title=Schema
-readonly=Read-only
-secretKey=Secret key
-cipherAlgorithm=Cipher algorithm
-mimeType=MIME Type

http://git-wip-us.apache.org/repos/asf/syncope/blob/39f8a069/client/console/src/main/resources/org/apache/syncope/client/console/pages/PlainSchemaModalPage_it.properties
--
diff --git 
a/client/console/src/main/resources/org/apache/syncope/client/console/pages/PlainSchemaModalPage_it.properties
 
b/client/console/src/main/resources/org/apache/syncope/client/console/pages/PlainSchemaModalPage_it.properties
deleted file mode 100644
index 74eed7d..000
--- 
a/client/console/src/main/resources/org/apache/syncope/client/console/pages/PlainSchemaModalPage_it.properties
+++ /dev/null
@@ -1,38 +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.
-tab1=Attributi
-tab2=Attributi derivati
-tab3=Attributi utenti
-tab4=Attributi utenti derivati
-required_alert=Tutti i campi sono richiesti
-mandatoryCondition=Obbligatorio
-enumerationValues= Valori enumeration
-enumerationKeys= Label enumeration
-multivalue=Multivalore
-type=Tipo
-validatorClass=Validatore
-conversionPattern=Conversion pattern
-existing_schemas=Schema esistenti:
-action=Azione
-edit_attribute=Modifica attributo
-title=Schema
-readonly=Read-only
-uniqueConstraint=Univoco
-multivalueAndUniqueConstr.validation=Le opzioni 'Multivalore' e 'Vincolo 
unique' non possono essere entrambe impostate
-secretKey=Chiave segreta
-cipherAlgorithm=Algoritmo di cifratura
-mimeType=MIME Type

http://git-wip-us.apache.org/repos/asf/syncope/blob/39f8a069/client/console/src/main/resources/org/apache/syncope/client/console/pages/PlainSchemaModalPage_pt_BR.properties
--
diff --git 
a/client/console/src/main/resources/org/apache/syncope/client/console/pages/PlainSchemaModalPage_pt_BR.properties
 
b/client/console/src/main/resources/org/apache/syncope/client/console/pages/PlainSchemaModalPage_pt_BR.properties
deleted file mode 100644
index a026c17..000
--- 
a/client/console/src/main/resources/org/apache/syncope/client/console/pages/PlainSchemaModalPage_pt_BR.properties
+++ /dev/null
@@ -1,38 +0,0 @@
-# L

[37/51] [partial] syncope git commit: [SYNCOPE-156] Preparing place for new console

2015-04-22 Thread ilgrosso
http://git-wip-us.apache.org/repos/asf/syncope/blob/39f8a069/client/console/src/main/java/org/apache/syncope/client/console/panels/SelectOnlyUserSearchResultPanel.java
--
diff --git 
a/client/console/src/main/java/org/apache/syncope/client/console/panels/SelectOnlyUserSearchResultPanel.java
 
b/client/console/src/main/java/org/apache/syncope/client/console/panels/SelectOnlyUserSearchResultPanel.java
deleted file mode 100644
index efa5a3d..000
--- 
a/client/console/src/main/java/org/apache/syncope/client/console/panels/SelectOnlyUserSearchResultPanel.java
+++ /dev/null
@@ -1,93 +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.panels;
-
-import java.util.ArrayList;
-import java.util.List;
-import org.apache.syncope.client.console.pages.DisplayAttributesModalPage;
-import org.apache.syncope.client.console.rest.UserRestClient;
-import org.apache.syncope.client.console.wicket.markup.html.form.ActionLink;
-import 
org.apache.syncope.client.console.wicket.markup.html.form.ActionLinksPanel;
-import org.apache.syncope.common.lib.to.AbstractAttributableTO;
-import org.apache.wicket.PageReference;
-import org.apache.wicket.ajax.AjaxRequestTarget;
-import org.apache.wicket.event.Broadcast;
-import org.apache.wicket.extensions.ajax.markup.html.modal.ModalWindow;
-import 
org.apache.wicket.extensions.markup.html.repeater.data.grid.ICellPopulator;
-import 
org.apache.wicket.extensions.markup.html.repeater.data.table.AbstractColumn;
-import org.apache.wicket.extensions.markup.html.repeater.data.table.IColumn;
-import 
org.apache.wicket.extensions.markup.html.repeater.data.table.PropertyColumn;
-import org.apache.wicket.markup.repeater.Item;
-import org.apache.wicket.model.IModel;
-import org.apache.wicket.model.ResourceModel;
-
-public class SelectOnlyUserSearchResultPanel extends UserSearchResultPanel {
-
-private static final long serialVersionUID = 2146781496050131930L;
-
-private final PageReference pageRef;
-
-private final ModalWindow window;
-
-public  
SelectOnlyUserSearchResultPanel(final String id, final boolean filtered,
-final String fiql, final PageReference pageRef, final ModalWindow 
window, final UserRestClient restClient) {
-
-super(id, filtered, fiql, pageRef, restClient);
-
-this.pageRef = pageRef;
-this.window = window;
-}
-
-@Override
-protected List> getColumns() {
-final List> columns =
-new ArrayList>();
-for (String name : DisplayAttributesModalPage.DEFAULT_SELECTION) {
-columns.add(new PropertyColumn(new 
ResourceModel(name, name), name, name));
-}
-
-columns.add(new AbstractColumn(new 
ResourceModel("actions", "")) {
-
-private static final long serialVersionUID = 8263694778917279290L;
-
-@Override
-public void populateItem(final 
Item> cellItem,
-final String componentId, final 
IModel rowModel) {
-
-final ActionLinksPanel panel = new 
ActionLinksPanel(componentId, rowModel, pageRef);
-
-panel.add(new ActionLink() {
-
-private static final long serialVersionUID = 
-3722207913631435501L;
-
-@Override
-public void onClick(final AjaxRequestTarget target) {
-send(pageRef.getPage(), Broadcast.BREADTH,
-new 
GroupDetailsPanel.UserOwnerSelectPayload(rowModel.getObject().getKey()));
-window.close(target);
-}
-}, ActionLink.ActionType.SELECT, "Users");
-
-cellItem.add(panel);
-}
-});
-
-return columns;
-}
-}

http://git-wip-us.apache.org/repos/asf/syncope/blob/39f8a069/client/console/src/main/java/org/apache/syncope/client/console/panels/SelectedEventsPanel.java
--
diff --git 
a/client/console/src/main/java/org/apache/syncope/client/console/panels/SelectedEventsPanel.java
 
b/client/console/src/main/java/org/apache/syncope/cli

[15/51] [partial] syncope git commit: [SYNCOPE-156] Preparing place for new console

2015-04-22 Thread ilgrosso
http://git-wip-us.apache.org/repos/asf/syncope/blob/39f8a069/client/old_console/src/main/java/org/apache/syncope/client/console/panels/GroupPanel.java
--
diff --git 
a/client/old_console/src/main/java/org/apache/syncope/client/console/panels/GroupPanel.java
 
b/client/old_console/src/main/java/org/apache/syncope/client/console/panels/GroupPanel.java
new file mode 100644
index 000..7cbf47e
--- /dev/null
+++ 
b/client/old_console/src/main/java/org/apache/syncope/client/console/panels/GroupPanel.java
@@ -0,0 +1,187 @@
+/*
+ * 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.panels;
+
+import java.io.Serializable;
+import java.util.ArrayList;
+import java.util.Collection;
+import java.util.Collections;
+import java.util.List;
+import org.apache.syncope.client.console.commons.Mode;
+import org.apache.syncope.client.console.commons.XMLRolesReader;
+import org.apache.syncope.client.console.commons.status.StatusBean;
+import org.apache.syncope.client.console.rest.AuthRestClient;
+import 
org.apache.syncope.client.console.wicket.markup.html.form.AjaxCheckBoxPanel;
+import 
org.apache.syncope.client.console.wicket.markup.html.form.AjaxPalettePanel;
+import org.apache.syncope.common.lib.to.GroupTO;
+import org.apache.wicket.PageReference;
+import 
org.apache.wicket.authroles.authorization.strategies.role.metadata.MetaDataRoleAuthorizationStrategy;
+import org.apache.wicket.markup.html.basic.Label;
+import org.apache.wicket.markup.html.form.Form;
+import org.apache.wicket.markup.html.panel.Panel;
+import org.apache.wicket.model.PropertyModel;
+import org.apache.wicket.model.util.ListModel;
+import org.apache.wicket.spring.injection.annot.SpringBean;
+
+public class GroupPanel extends Panel {
+
+private static final long serialVersionUID = 4216376097320768369L;
+
+@SpringBean
+private AuthRestClient authRestClient;
+
+@SpringBean
+private XMLRolesReader xmlRolesReader;
+
+private final AjaxPalettePanel entitlements;
+
+public static class Builder implements Serializable {
+
+private static final long serialVersionUID = 8150440254654306070L;
+
+private String id;
+
+private Form form;
+
+private GroupTO groupTO;
+
+private Mode mode;
+
+private PageReference pageReference;
+
+public Builder(final String id) {
+this.id = id;
+}
+
+public Builder form(final Form form) {
+this.form = form;
+return this;
+}
+
+public Builder groupTO(final GroupTO groupTO) {
+this.groupTO = groupTO;
+return this;
+}
+
+public Builder groupModalPageMode(final Mode mode) {
+this.mode = mode;
+return this;
+}
+
+public Builder pageRef(final PageReference pageReference) {
+this.pageReference = pageReference;
+return this;
+}
+
+public GroupPanel build() {
+return new GroupPanel(this);
+}
+}
+
+private GroupPanel(final Builder builder) {
+super(builder.id);
+
+this.add(new GroupDetailsPanel("details", builder.groupTO, 
builder.mode == Mode.TEMPLATE));
+
+if (builder.pageReference == null || builder.groupTO.getKey() == 0) {
+this.add(new Label("statuspanel", ""));
+} else {
+StatusPanel statusPanel = new StatusPanel(
+"statuspanel", builder.groupTO, new 
ArrayList(), builder.pageReference);
+statusPanel.setOutputMarkupId(true);
+MetaDataRoleAuthorizationStrategy.authorize(
+statusPanel, RENDER, 
xmlRolesReader.getEntitlement("Resources", "getConnectorObject"));
+this.add(statusPanel);
+}
+
+this.add(new AnnotatedBeanPanel("systeminformation", builder.groupTO));
+
+//
+// Attribute templates panel
+//
+AttrTemplatesPanel attrTemplates = new AttrTemplatesPanel("templates", 
builder.groupTO);
+this.add(attrTemplates);
+
+//---

[17/51] [partial] syncope git commit: [SYNCOPE-156] Preparing place for new console

2015-04-22 Thread ilgrosso
http://git-wip-us.apache.org/repos/asf/syncope/blob/39f8a069/client/old_console/src/main/java/org/apache/syncope/client/console/pages/Todo.java
--
diff --git 
a/client/old_console/src/main/java/org/apache/syncope/client/console/pages/Todo.java
 
b/client/old_console/src/main/java/org/apache/syncope/client/console/pages/Todo.java
new file mode 100644
index 000..1329fe4
--- /dev/null
+++ 
b/client/old_console/src/main/java/org/apache/syncope/client/console/pages/Todo.java
@@ -0,0 +1,245 @@
+/*
+ * 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.pages;
+
+import java.util.ArrayList;
+import java.util.Collections;
+import java.util.Iterator;
+import java.util.List;
+import org.apache.syncope.client.console.SyncopeSession;
+import org.apache.syncope.client.console.commons.Constants;
+import org.apache.syncope.client.console.commons.PreferenceManager;
+import 
org.apache.syncope.client.console.commons.SortableDataProviderComparator;
+import org.apache.syncope.client.console.rest.ApprovalRestClient;
+import 
org.apache.syncope.client.console.wicket.extensions.markup.html.repeater.data.table.DatePropertyColumn;
+import org.apache.syncope.client.console.wicket.markup.html.form.ActionLink;
+import 
org.apache.syncope.client.console.wicket.markup.html.form.ActionLinksPanel;
+import org.apache.syncope.common.lib.SyncopeClientException;
+import org.apache.syncope.common.lib.to.WorkflowFormTO;
+import org.apache.wicket.Page;
+import org.apache.wicket.ajax.AjaxRequestTarget;
+import org.apache.wicket.ajax.form.AjaxFormComponentUpdatingBehavior;
+import 
org.apache.wicket.authroles.authorization.strategies.role.metadata.MetaDataRoleAuthorizationStrategy;
+import org.apache.wicket.extensions.ajax.markup.html.modal.ModalWindow;
+import 
org.apache.wicket.extensions.ajax.markup.html.repeater.data.table.AjaxFallbackDefaultDataTable;
+import 
org.apache.wicket.extensions.markup.html.repeater.data.grid.ICellPopulator;
+import org.apache.wicket.extensions.markup.html.repeater.data.sort.SortOrder;
+import 
org.apache.wicket.extensions.markup.html.repeater.data.table.AbstractColumn;
+import org.apache.wicket.extensions.markup.html.repeater.data.table.IColumn;
+import 
org.apache.wicket.extensions.markup.html.repeater.data.table.PropertyColumn;
+import 
org.apache.wicket.extensions.markup.html.repeater.util.SortableDataProvider;
+import org.apache.wicket.markup.html.WebMarkupContainer;
+import org.apache.wicket.markup.html.form.DropDownChoice;
+import org.apache.wicket.markup.html.form.Form;
+import org.apache.wicket.markup.repeater.Item;
+import org.apache.wicket.model.AbstractReadOnlyModel;
+import org.apache.wicket.model.IModel;
+import org.apache.wicket.model.PropertyModel;
+import org.apache.wicket.model.ResourceModel;
+import org.apache.wicket.request.mapper.parameter.PageParameters;
+import org.apache.wicket.spring.injection.annot.SpringBean;
+
+public class Todo extends BasePage {
+
+private static final long serialVersionUID = -7122136682275797903L;
+
+@SpringBean
+private ApprovalRestClient restClient;
+
+@SpringBean
+private PreferenceManager prefMan;
+
+private final ModalWindow window;
+
+private static final int WIN_HEIGHT = 400;
+
+private static final int WIN_WIDTH = 600;
+
+private WebMarkupContainer container;
+
+private int paginatorRows;
+
+public Todo(final PageParameters parameters) {
+super(parameters);
+
+add(window = new ModalWindow("editApprovalWin"));
+
+container = new WebMarkupContainer("approvalContainer");
+
+MetaDataRoleAuthorizationStrategy.authorize(
+container, RENDER, xmlRolesReader.getEntitlement("Approval", 
"list"));
+
+paginatorRows = prefMan.getPaginatorRows(getRequest(), 
Constants.PREF_TODO_PAGINATOR_ROWS);
+
+List> columns = new 
ArrayList>();
+columns.add(new PropertyColumn(
+new ResourceModel("taskId"), "taskId", "taskId"));
+columns.add(new PropertyColumn(
+new ResourceModel("key"), "key", "key"));
+columns.add(new PropertyColumn(
+new Resou

[47/51] [partial] syncope git commit: [SYNCOPE-156] Preparing place for new console

2015-04-22 Thread ilgrosso
http://git-wip-us.apache.org/repos/asf/syncope/blob/39f8a069/client/console/src/main/java/org/apache/syncope/client/console/pages/EditUserModalPage.java
--
diff --git 
a/client/console/src/main/java/org/apache/syncope/client/console/pages/EditUserModalPage.java
 
b/client/console/src/main/java/org/apache/syncope/client/console/pages/EditUserModalPage.java
deleted file mode 100644
index af502d2..000
--- 
a/client/console/src/main/java/org/apache/syncope/client/console/pages/EditUserModalPage.java
+++ /dev/null
@@ -1,105 +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.pages;
-
-import java.util.ArrayList;
-import org.apache.commons.lang3.SerializationUtils;
-import org.apache.syncope.client.console.commons.Mode;
-import org.apache.syncope.client.console.commons.status.StatusBean;
-import org.apache.syncope.client.console.panels.AccountInformationPanel;
-import org.apache.syncope.client.console.panels.MembershipsPanel;
-import org.apache.syncope.client.console.panels.ResourcesPanel;
-import org.apache.syncope.client.console.panels.StatusPanel;
-import org.apache.syncope.common.lib.AttributableOperations;
-import org.apache.syncope.common.lib.mod.UserMod;
-import org.apache.syncope.common.lib.to.UserTO;
-import org.apache.wicket.PageReference;
-import org.apache.wicket.ajax.AjaxRequestTarget;
-import 
org.apache.wicket.authroles.authorization.strategies.role.metadata.MetaDataRoleAuthorizationStrategy;
-import org.apache.wicket.extensions.ajax.markup.html.modal.ModalWindow;
-import org.apache.wicket.markup.html.basic.Label;
-import org.apache.wicket.markup.html.form.Form;
-import org.apache.wicket.model.ResourceModel;
-
-/**
- * Modal window with User form.
- */
-public class EditUserModalPage extends UserModalPage {
-
-private static final long serialVersionUID = -6479209496805705739L;
-
-protected Form form;
-
-private final UserTO initialUserTO;
-
-private StatusPanel statusPanel;
-
-public EditUserModalPage(final PageReference pageRef, final ModalWindow 
window, final UserTO userTO) {
-super(pageRef, window, userTO, Mode.ADMIN, true);
-
-this.initialUserTO = SerializationUtils.clone(userTO);
-
-form = setupEditPanel();
-
-// add resource assignment details in case of update
-if (userTO.getKey() != 0) {
-form.addOrReplace(new Label("pwdChangeInfo", new 
ResourceModel("pwdChangeInfo")));
-
-statusPanel = new StatusPanel("statuspanel", userTO, new 
ArrayList(), getPageReference());
-statusPanel.setOutputMarkupId(true);
-MetaDataRoleAuthorizationStrategy.authorize(
-statusPanel, RENDER, 
xmlRolesReader.getEntitlement("Resources", "getConnectorObject"));
-form.addOrReplace(statusPanel);
-
-form.addOrReplace(new 
AccountInformationPanel("accountinformation", userTO));
-
-form.addOrReplace(new 
ResourcesPanel.Builder("resources").attributableTO(userTO).
-statusPanel(statusPanel).build());
-
-form.addOrReplace(new MembershipsPanel("memberships", userTO, 
mode, statusPanel, getPageReference()));
-}
-}
-
-@SuppressWarnings("rawtypes")
-@Override
-protected void submitAction(final AjaxRequestTarget target, final Form 
form) {
-final UserTO updatedUserTO = (UserTO) form.getModelObject();
-
-if (updatedUserTO.getKey() == 0) {
-userTO = userRestClient.create(updatedUserTO, 
storePassword.getModelObject());
-} else {
-final UserMod userMod = AttributableOperations.diff(updatedUserTO, 
initialUserTO);
-
-if (statusPanel != null) {
-userMod.setPwdPropRequest(statusPanel.getStatusMod());
-}
-
-// update user just if it is changed
-if (!userMod.isEmpty()) {
-userTO = userRestClient.update(initialUserTO.getETagValue(), 
userMod);
-}
-}
-}
-
-@SuppressWarnings("rawtypes")
-@Override
-protected void closeAction(final AjaxRequestTarget target, final Form 
form) {
- 

[11/51] [partial] syncope git commit: [SYNCOPE-156] Preparing place for new console

2015-04-22 Thread ilgrosso
http://git-wip-us.apache.org/repos/asf/syncope/blob/39f8a069/client/old_console/src/main/java/org/apache/syncope/client/console/panels/VirAttrsPanel.java
--
diff --git 
a/client/old_console/src/main/java/org/apache/syncope/client/console/panels/VirAttrsPanel.java
 
b/client/old_console/src/main/java/org/apache/syncope/client/console/panels/VirAttrsPanel.java
new file mode 100644
index 000..84049f0
--- /dev/null
+++ 
b/client/old_console/src/main/java/org/apache/syncope/client/console/panels/VirAttrsPanel.java
@@ -0,0 +1,294 @@
+/*
+ * 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.panels;
+
+import java.util.ArrayList;
+import java.util.HashSet;
+import java.util.List;
+import java.util.ListIterator;
+import java.util.Map;
+import java.util.Set;
+import java.util.TreeMap;
+import org.apache.syncope.client.console.commons.Constants;
+import 
org.apache.syncope.client.console.panels.AttrTemplatesPanel.GroupAttrTemplatesChange;
+import org.apache.syncope.client.console.rest.GroupRestClient;
+import org.apache.syncope.client.console.rest.SchemaRestClient;
+import 
org.apache.syncope.client.console.wicket.markup.html.form.AjaxDecoratedCheckbox;
+import 
org.apache.syncope.client.console.wicket.markup.html.form.AjaxTextFieldPanel;
+import 
org.apache.syncope.client.console.wicket.markup.html.form.MultiFieldPanel;
+import org.apache.syncope.common.lib.to.AbstractAttributableTO;
+import org.apache.syncope.common.lib.to.AttrTO;
+import org.apache.syncope.common.lib.to.MembershipTO;
+import org.apache.syncope.common.lib.to.GroupTO;
+import org.apache.syncope.common.lib.to.UserTO;
+import org.apache.syncope.common.lib.to.VirSchemaTO;
+import org.apache.syncope.common.lib.types.AttributableType;
+import org.apache.wicket.Component;
+import org.apache.wicket.ajax.AjaxRequestTarget;
+import org.apache.wicket.ajax.attributes.AjaxCallListener;
+import org.apache.wicket.ajax.attributes.AjaxRequestAttributes;
+import org.apache.wicket.ajax.form.AjaxFormComponentUpdatingBehavior;
+import org.apache.wicket.ajax.markup.html.form.AjaxButton;
+import org.apache.wicket.event.IEvent;
+import org.apache.wicket.extensions.ajax.markup.html.IndicatingAjaxButton;
+import org.apache.wicket.markup.html.WebMarkupContainer;
+import org.apache.wicket.markup.html.form.ChoiceRenderer;
+import org.apache.wicket.markup.html.form.DropDownChoice;
+import org.apache.wicket.markup.html.form.Form;
+import org.apache.wicket.markup.html.list.ListItem;
+import org.apache.wicket.markup.html.list.ListView;
+import org.apache.wicket.markup.html.panel.Panel;
+import org.apache.wicket.model.IModel;
+import org.apache.wicket.model.LoadableDetachableModel;
+import org.apache.wicket.model.Model;
+import org.apache.wicket.model.PropertyModel;
+import org.apache.wicket.model.ResourceModel;
+import org.apache.wicket.spring.injection.annot.SpringBean;
+
+public class VirAttrsPanel extends Panel {
+
+private static final long serialVersionUID = -7982691107029848579L;
+
+@SpringBean
+private SchemaRestClient schemaRestClient;
+
+@SpringBean
+private GroupRestClient groupRestClient;
+
+private final AttrTemplatesPanel attrTemplates;
+
+private final Map schemas = new TreeMap();
+
+public  VirAttrsPanel(final String id, 
final T entityTO,
+final boolean templateMode) {
+
+this(id, entityTO, templateMode, null);
+}
+
+public  VirAttrsPanel(final String id, 
final T entityTO,
+final boolean templateMode, final AttrTemplatesPanel 
attrTemplates) {
+
+super(id);
+this.attrTemplates = attrTemplates;
+this.setOutputMarkupId(true);
+
+final IModel> virSchemas = new 
LoadableDetachableModel>() {
+
+private static final long serialVersionUID = 5275935387613157437L;
+
+private void filter(final List schemaTOs, final 
Set allowed) {
+for (ListIterator itor = 
schemaTOs.listIterator(); itor.hasNext();) {
+VirSchemaTO schema = itor.next();
+if (!allowed.contains(schema.getKey())) {
+itor.remove();
+ 

[51/51] [partial] syncope git commit: [SYNCOPE-156] Preparing place for new console

2015-04-22 Thread ilgrosso
[SYNCOPE-156] Preparing place for new console


Project: http://git-wip-us.apache.org/repos/asf/syncope/repo
Commit: http://git-wip-us.apache.org/repos/asf/syncope/commit/39f8a069
Tree: http://git-wip-us.apache.org/repos/asf/syncope/tree/39f8a069
Diff: http://git-wip-us.apache.org/repos/asf/syncope/diff/39f8a069

Branch: refs/heads/master
Commit: 39f8a0696c465a5d170c4f37a36ea093743a60d1
Parents: 0474098
Author: Francesco Chicchiriccò 
Authored: Wed Apr 22 15:51:01 2015 +0200
Committer: Francesco Chicchiriccò 
Committed: Wed Apr 22 15:51:01 2015 +0200

--
 .../syncope/client/console/BinaryPreview.java   |  34 -
 .../syncope/client/console/ExtensionPanel.java  |  34 -
 .../client/console/PreferenceManager.java   | 173 
 .../client/console/SyncopeApplication.java  | 306 ---
 .../console/SyncopeConsoleApplication.java  |  60 ++
 .../client/console/SyncopeConsoleSession.java   | 179 
 .../console/SyncopeRequestCycleListener.java|  84 --
 .../syncope/client/console/SyncopeSession.java  | 185 -
 .../console/annotations/BinaryPreview.java  |  34 +
 .../console/annotations/ExtensionPanel.java |  34 +
 .../console/commons/ActionTableCheckGroup.java  |  40 -
 .../commons/AttributableDataProvider.java   | 101 ---
 .../console/commons/CloseOnESCBehavior.java |  55 --
 .../console/commons/DateFormatROModel.java  |  50 --
 .../console/commons/GroupTreeBuilder.java   | 128 ---
 .../client/console/commons/JexlHelpUtils.java   |  61 --
 .../console/commons/MapChoiceRenderer.java  |  43 -
 .../console/commons/PreferenceManager.java  | 176 
 .../console/commons/SchemaModalPageFactory.java |  58 --
 .../console/commons/SelectChoiceRenderer.java   |  40 -
 .../client/console/commons/SelectOption.java|  72 --
 .../client/console/commons/XMLRolesReader.java  | 118 ---
 .../status/AbstractStatusBeanProvider.java  |   2 +-
 .../console/commons/status/StatusBean.java  |   2 +-
 .../console/commons/status/StatusUtils.java |  42 -
 .../init/ImplementationClassNamesLoader.java|   2 +-
 .../client/console/pages/AbstractBasePage.java  |  11 +-
 .../pages/AbstractSchedTaskModalPage.java   | 132 ---
 .../console/pages/AbstractSchemaModalPage.java  |  45 -
 .../console/pages/AbstractStatusModalPage.java  |  30 -
 .../pages/AbstractSyncTaskModalPage.java| 209 -
 .../console/pages/ActivitiModelerPopupPage.java |  27 -
 .../client/console/pages/ApprovalModalPage.java | 286 ---
 .../client/console/pages/BaseModalPage.java |  32 +-
 .../syncope/client/console/pages/BasePage.java  |  70 --
 .../console/pages/BulkActionModalPage.java  | 166 
 .../pages/BulkActionResultModalPage.java|  97 ---
 .../client/console/pages/ConfModalPage.java | 112 ---
 .../client/console/pages/Configuration.java | 814 ---
 .../pages/ConfirmPasswordResetModalPage.java| 103 ---
 .../console/pages/ConnObjectModalPage.java  | 101 ---
 .../console/pages/ConnectorModalPage.java   | 479 ---
 .../console/pages/DerSchemaModalPage.java   | 140 
 .../pages/DisplayAttributesModalPage.java   | 273 ---
 .../client/console/pages/EditUserModalPage.java | 105 ---
 .../syncope/client/console/pages/ErrorPage.java |  42 -
 .../console/pages/ExecMessageModalPage.java |  32 -
 .../console/pages/FailureMessageModalPage.java  |  37 -
 .../client/console/pages/GroupModalPage.java| 164 
 .../console/pages/GroupSelectModalPage.java | 105 ---
 .../console/pages/GroupTemplateModalPage.java   |  50 --
 .../syncope/client/console/pages/Groups.java| 186 -
 .../syncope/client/console/pages/HomePage.java  |   9 +-
 .../client/console/pages/InfoModalPage.java |  43 -
 .../syncope/client/console/pages/Login.java | 365 -
 .../syncope/client/console/pages/Logout.java|  38 -
 .../console/pages/MembershipModalPage.java  | 114 ---
 .../console/pages/NotificationModalPage.java| 441 --
 .../pages/NotificationTaskModalPage.java|  69 --
 .../console/pages/PlainSchemaModalPage.java | 456 ---
 .../client/console/pages/PolicyModalPage.java   | 450 --
 .../console/pages/PropagationTaskModalPage.java |  45 -
 .../console/pages/ProvisioningModalPage.java| 249 --
 .../client/console/pages/PushTaskModalPage.java | 135 ---
 .../ReportExecResultDownloadModalPage.java  |  73 --
 .../client/console/pages/ReportModalPage.java   | 640 ---
 .../console/pages/ReportletConfModalPage.java   | 362 -
 .../syncope/client/console/pages/Reports.java   | 412 --
 .../pages/RequestPasswordResetModalPage.java| 153 
 .../client/console/pages/ResourceModalPage.java | 214 -
 .../syncope/client/console/pages/Resources.java | 723 
 .../console/pages/ResultStatusModalPage.java| 424 --
 .../console/pages/SchedTaskModalPage.java  

[10/51] [partial] syncope git commit: [SYNCOPE-156] Preparing place for new console

2015-04-22 Thread ilgrosso
http://git-wip-us.apache.org/repos/asf/syncope/blob/39f8a069/client/old_console/src/main/java/org/apache/syncope/client/console/rest/SchemaRestClient.java
--
diff --git 
a/client/old_console/src/main/java/org/apache/syncope/client/console/rest/SchemaRestClient.java
 
b/client/old_console/src/main/java/org/apache/syncope/client/console/rest/SchemaRestClient.java
new file mode 100644
index 000..378f98d
--- /dev/null
+++ 
b/client/old_console/src/main/java/org/apache/syncope/client/console/rest/SchemaRestClient.java
@@ -0,0 +1,250 @@
+/*
+ * 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.rest;
+
+import java.util.ArrayList;
+import java.util.Collection;
+import java.util.Collections;
+import java.util.List;
+import java.util.ListIterator;
+import org.apache.syncope.client.console.SyncopeSession;
+import org.apache.syncope.client.console.commons.AttrLayoutType;
+import org.apache.syncope.common.lib.SyncopeClientException;
+import org.apache.syncope.common.lib.to.AbstractSchemaTO;
+import org.apache.syncope.common.lib.to.DerSchemaTO;
+import org.apache.syncope.common.lib.to.PlainSchemaTO;
+import org.apache.syncope.common.lib.to.VirSchemaTO;
+import org.apache.syncope.common.lib.types.AttributableType;
+import org.apache.syncope.common.lib.types.SchemaType;
+import org.apache.syncope.common.rest.api.service.SchemaService;
+import org.springframework.stereotype.Component;
+
+/**
+ * Console client for invoking rest schema services.
+ */
+@Component
+public class SchemaRestClient extends BaseRestClient {
+
+private static final long serialVersionUID = -2479730152700312373L;
+
+public void filter(
+final List schemaTOs, final 
Collection allowed, final boolean exclude) {
+
+for (ListIterator itor = 
schemaTOs.listIterator(); itor.hasNext();) {
+AbstractSchemaTO schema = itor.next();
+if (exclude) {
+if (!allowed.contains(schema.getKey())) {
+itor.remove();
+}
+} else {
+if (allowed.contains(schema.getKey())) {
+itor.remove();
+}
+}
+}
+}
+
+public List getSchemas(final AttributableType 
attrType, final SchemaType schemaType) {
+List schemas = Collections.emptyList();
+
+try {
+schemas = getService(SchemaService.class).list(attrType, 
schemaType);
+} catch (SyncopeClientException e) {
+LOG.error("While getting all schemas for {} and {}", attrType, 
schemaType, e);
+}
+
+if (attrType == AttributableType.CONFIGURATION) {
+filter(schemas, AttrLayoutType.confKeys(), false);
+}
+
+return schemas;
+}
+
+public List getSchemas(final AttributableType type) {
+List schemas = null;
+
+try {
+schemas = getService(SchemaService.class).list(type, 
SchemaType.PLAIN);
+} catch (SyncopeClientException e) {
+LOG.error("While getting all schemas", e);
+}
+
+return schemas;
+}
+
+public List getSchemaNames(final AttributableType attrType, final 
SchemaType schemaType) {
+final List schemaNames = new ArrayList<>();
+
+try {
+final List schemas = 
getSchemas(attrType, schemaType);
+for (AbstractSchemaTO schemaTO : schemas) {
+schemaNames.add(schemaTO.getKey());
+}
+} catch (SyncopeClientException e) {
+LOG.error("While getting all user schema names", e);
+}
+
+return schemaNames;
+}
+
+public List getPlainSchemaNames(final AttributableType type) {
+final List schemaNames = new ArrayList<>();
+
+try {
+final List schemas = getSchemas(type);
+for (PlainSchemaTO schemaTO : schemas) {
+schemaNames.add(schemaTO.getKey());
+}
+} catch (SyncopeClientException e) {
+LOG.error("While getting all user schema names", e);
+}
+
+return schemaNames;
+}
+
+public List getDerSchemas(final AttributableT

[22/51] [partial] syncope git commit: [SYNCOPE-156] Preparing place for new console

2015-04-22 Thread ilgrosso
http://git-wip-us.apache.org/repos/asf/syncope/blob/39f8a069/client/old_console/src/main/java/org/apache/syncope/client/console/pages/ConfirmPasswordResetModalPage.java
--
diff --git 
a/client/old_console/src/main/java/org/apache/syncope/client/console/pages/ConfirmPasswordResetModalPage.java
 
b/client/old_console/src/main/java/org/apache/syncope/client/console/pages/ConfirmPasswordResetModalPage.java
new file mode 100644
index 000..ebc041d
--- /dev/null
+++ 
b/client/old_console/src/main/java/org/apache/syncope/client/console/pages/ConfirmPasswordResetModalPage.java
@@ -0,0 +1,103 @@
+/*
+ * 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.pages;
+
+import org.apache.syncope.client.console.commons.Constants;
+import org.apache.syncope.client.console.commons.Mode;
+import 
org.apache.syncope.client.console.wicket.markup.html.form.AjaxPasswordFieldPanel;
+import org.apache.syncope.client.console.wicket.markup.html.form.FieldPanel;
+import org.apache.syncope.common.lib.to.UserTO;
+import org.apache.wicket.ajax.AjaxRequestTarget;
+import org.apache.wicket.ajax.markup.html.form.AjaxButton;
+import org.apache.wicket.extensions.ajax.markup.html.IndicatingAjaxButton;
+import org.apache.wicket.extensions.ajax.markup.html.modal.ModalWindow;
+import org.apache.wicket.markup.html.form.Form;
+import org.apache.wicket.markup.html.form.PasswordTextField;
+import org.apache.wicket.markup.html.form.StatelessForm;
+import 
org.apache.wicket.markup.html.form.validation.EqualPasswordInputValidator;
+import org.apache.wicket.model.Model;
+import org.apache.wicket.model.ResourceModel;
+
+public class ConfirmPasswordResetModalPage extends BaseModalPage {
+
+private static final long serialVersionUID = -8419445804421211904L;
+
+public ConfirmPasswordResetModalPage(final ModalWindow window, final 
String token) {
+super();
+setOutputMarkupId(true);
+
+final StatelessForm form = new StatelessForm(FORM);
+form.setOutputMarkupId(true);
+
+final FieldPanel password =
+new AjaxPasswordFieldPanel("password", "password", new 
Model()).setRequired(true);
+((PasswordTextField) password.getField()).setResetPassword(true);
+form.add(password);
+
+final FieldPanel confirmPassword =
+new AjaxPasswordFieldPanel("confirmPassword", 
"confirmPassword", new Model());
+((PasswordTextField) 
confirmPassword.getField()).setResetPassword(true);
+form.add(confirmPassword);
+
+form.add(new EqualPasswordInputValidator(password.getField(), 
confirmPassword.getField()));
+
+final AjaxButton submit = new IndicatingAjaxButton(APPLY, new 
ResourceModel(SUBMIT, SUBMIT)) {
+
+private static final long serialVersionUID = -4804368561204623354L;
+
+@Override
+protected void onSubmit(final AjaxRequestTarget target, final 
Form form) {
+try {
+userSelfRestClient.confirmPasswordReset(token, 
password.getModelObject());
+
+setResponsePage(new ResultStatusModalPage.Builder(window, 
new UserTO()).mode(Mode.SELF).build());
+} catch (Exception e) {
+LOG.error("While confirming password reset for {}", token, 
e);
+error(getString(Constants.ERROR) + ": " + e.getMessage());
+feedbackPanel.refresh(target);
+}
+}
+
+@Override
+protected void onError(final AjaxRequestTarget target, final 
Form form) {
+feedbackPanel.refresh(target);
+}
+};
+form.add(submit);
+form.setDefaultButton(submit);
+
+final AjaxButton cancel = new IndicatingAjaxButton(CANCEL, new 
ResourceModel(CANCEL)) {
+
+private static final long serialVersionUID = -958724007591692537L;
+
+@Override
+protected void onSubmit(final AjaxRequestTarget target, final 
Form form) {
+window.close(target);
+}
+
+@Override
+protected void onError(final AjaxRequest

[09/51] [partial] syncope git commit: [SYNCOPE-156] Preparing place for new console

2015-04-22 Thread ilgrosso
http://git-wip-us.apache.org/repos/asf/syncope/blob/39f8a069/client/old_console/src/main/java/org/apache/syncope/client/console/wicket/markup/html/CrontabContainer.java
--
diff --git 
a/client/old_console/src/main/java/org/apache/syncope/client/console/wicket/markup/html/CrontabContainer.java
 
b/client/old_console/src/main/java/org/apache/syncope/client/console/wicket/markup/html/CrontabContainer.java
new file mode 100644
index 000..616
--- /dev/null
+++ 
b/client/old_console/src/main/java/org/apache/syncope/client/console/wicket/markup/html/CrontabContainer.java
@@ -0,0 +1,184 @@
+/*
+ * 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;
+
+import java.util.Arrays;
+import org.apache.syncope.client.console.commons.Constants;
+import org.apache.syncope.client.console.commons.SelectChoiceRenderer;
+import org.apache.syncope.client.console.commons.SelectOption;
+import org.apache.wicket.ajax.AjaxRequestTarget;
+import org.apache.wicket.ajax.form.AjaxFormComponentUpdatingBehavior;
+import org.apache.wicket.markup.html.WebMarkupContainer;
+import org.apache.wicket.markup.html.form.DropDownChoice;
+import org.apache.wicket.markup.html.form.FormComponent;
+import org.apache.wicket.markup.html.form.TextField;
+import org.apache.wicket.model.IModel;
+import org.apache.wicket.model.Model;
+import org.apache.wicket.model.PropertyModel;
+
+public class CrontabContainer extends WebMarkupContainer {
+
+private static final long serialVersionUID = 7879593326085337650L;
+
+private final TextField seconds;
+
+private final TextField minutes;
+
+private final TextField hours;
+
+private final TextField daysOfMonth;
+
+private final TextField months;
+
+private final TextField daysOfWeek;
+
+@SuppressWarnings({ "unchecked", "rawtypes" })
+public CrontabContainer(final String id, final PropertyModel 
cronExpressionModel,
+final String cronExpression) {
+
+super(id);
+setOutputMarkupId(true);
+
+final SelectOption[] CRON_TEMPLATES = {
+new SelectOption(getString("selOpt1"), "UNSCHEDULE"),
+new SelectOption(getString("selOpt2"), "0 0/5 * * * ?"),
+new SelectOption(getString("selOpt3"), "0 0 12 * * ?"),
+new SelectOption(getString("selOpt4"), "0 0 0 1 * ?"),
+new SelectOption(getString("selOpt5"), "0 0 0 L * ?"),
+new SelectOption(getString("selOpt6"), "0 0 0 ? * 2")
+};
+
+final DropDownChoice cronTemplateChooser =
+new DropDownChoice("cronTemplateChooser") {
+
+private static final long serialVersionUID = 
-5843424545478691442L;
+
+@Override
+protected CharSequence getDefaultChoice(final String 
selected) {
+return "" + 
getString("chooseForTemplate") + "";
+}
+};
+
+cronTemplateChooser.setModel(new IModel() {
+
+private static final long serialVersionUID = 6762568283146531315L;
+
+@Override
+public SelectOption getObject() {
+SelectOption result = null;
+for (SelectOption so : CRON_TEMPLATES) {
+if 
(so.getKeyValue().equals(cronExpressionModel.getObject())) {
+
+result = so;
+}
+}
+
+return result;
+}
+
+@Override
+public void setObject(final SelectOption object) {
+cronExpressionModel.setObject(object == null || 
object.equals(CRON_TEMPLATES[0])
+? null
+: object.toString());
+}
+
+@Override
+public void detach() {
+// no detach
+}
+});
+cronTemplateChooser.setChoices(Arrays.asList(CRON_TEMPLATES));
+cronTemplateChooser.setChoiceRenderer(new SelectChoiceRenderer());
+add(cronTemplateChooser);
+
+seconds = new TextField("seconds", new 
Model(getCronField(cronExpression, 0)));

[25/51] [partial] syncope git commit: [SYNCOPE-156] Preparing place for new console

2015-04-22 Thread ilgrosso
http://git-wip-us.apache.org/repos/asf/syncope/blob/39f8a069/client/console/src/main/resources/org/apache/syncope/client/console/wicket/markup/html/form/MultiFieldPanel_pt_BR.properties
--
diff --git 
a/client/console/src/main/resources/org/apache/syncope/client/console/wicket/markup/html/form/MultiFieldPanel_pt_BR.properties
 
b/client/console/src/main/resources/org/apache/syncope/client/console/wicket/markup/html/form/MultiFieldPanel_pt_BR.properties
deleted file mode 100644
index d4f5693..000
--- 
a/client/console/src/main/resources/org/apache/syncope/client/console/wicket/markup/html/form/MultiFieldPanel_pt_BR.properties
+++ /dev/null
@@ -1,22 +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.
-minLength=Tamanho m\u00EDnimo de senha
-maxLength=Tamanho m\u00E1ximo de senha
-historyLength=Tamanho dos hist\u00F3rico de senha
-digitRequired=Senha precisa contar um ou mais d\u00EDgitos
-prefixesNotPermitted=Prefixos de senha n\u00E3o permitidos
-apply=Salvar

http://git-wip-us.apache.org/repos/asf/syncope/blob/39f8a069/client/console/src/main/resources/org/apache/syncope/client/console/wicket/markup/html/form/NonI18nPalette.html
--
diff --git 
a/client/console/src/main/resources/org/apache/syncope/client/console/wicket/markup/html/form/NonI18nPalette.html
 
b/client/console/src/main/resources/org/apache/syncope/client/console/wicket/markup/html/form/NonI18nPalette.html
deleted file mode 100644
index 5800d77..000
--- 
a/client/console/src/main/resources/org/apache/syncope/client/console/wicket/markup/html/form/NonI18nPalette.html
+++ /dev/null
@@ -1,69 +0,0 @@
-
-
-http://www.w3.org/1999/xhtml"; 
xmlns:wicket="http://wicket.apache.org";>
-  
-
-
-  
-
-  
-
-  [available header]
-
-
-
-
-
-
-  [selected header]
-
-  
-
-  
-
-  [choices]   
-
-
-
-  
-
-  
-  
-
-  
-  
-
-  
-  
-
-  
-  
-
-  
-  
-
-  
-
-
-
-  [selection] 
-
-  
-
-  
-

http://git-wip-us.apache.org/repos/asf/syncope/blob/39f8a069/client/console/src/main/resources/org/apache/syncope/client/console/wicket/markup/html/form/SpinnerFieldPanel.html
--
diff --git 
a/client/console/src/main/resources/org/apache/syncope/client/console/wicket/markup/html/form/SpinnerFieldPanel.html
 
b/client/console/src/main/resources/org/apache/syncope/client/console/wicket/markup/html/form/SpinnerFieldPanel.html
deleted file mode 100644
index a6f0e51..000
--- 
a/client/console/src/main/resources/org/apache/syncope/client/console/wicket/markup/html/form/SpinnerFieldPanel.html
+++ /dev/null
@@ -1,29 +0,0 @@
-
-http://www.w3.org/1999/xhtml"; 
xmlns:wicket="http://wicket.apache.org";>
-  
-
-
-
-  
-
-  
-
-  
-

http://git-wip-us.apache.org/repos/asf/syncope/blob/39f8a069/client/console/src/main/resources/org/apache/syncope/client/console/wicket/markup/html/form/preview/AbstractBinaryPreviewer.html
--
diff --git 
a/client/console/src/main/resources/org/apache/syncope/client/console/wicket/markup/html/form/preview/AbstractBinaryPreviewer.html
 
b/client/console/src/main/resources/org/apache/syncope/client/console/wicket/markup/html/form/preview/AbstractBinaryPreviewer.html
deleted file mode 100644
index 81e0797..000
--- 
a/client/console/src/main/resources/org/apache/syncope/client/console/wicket/markup/html/form/preview/AbstractBinaryPreviewer.html
+++ /dev/null
@@ -1,24 +0,0 @@
-
-http://www.w3.org/1999/xhtml"; 
xmlns:wicket="http://wicket.apache.org";>
-  
-  
-
-  
-

http://git-wip-us.apache.org/repos/asf/syncope/blob/39f8a069/client/console/src/main/resources/org/apache/syncope/client/console/wicket/markup/html/form/preview/BinaryCertPreviewer.html
---

[43/51] [partial] syncope git commit: [SYNCOPE-156] Preparing place for new console

2015-04-22 Thread ilgrosso
http://git-wip-us.apache.org/repos/asf/syncope/blob/39f8a069/client/console/src/main/java/org/apache/syncope/client/console/pages/StatusModalPage.java
--
diff --git 
a/client/console/src/main/java/org/apache/syncope/client/console/pages/StatusModalPage.java
 
b/client/console/src/main/java/org/apache/syncope/client/console/pages/StatusModalPage.java
deleted file mode 100644
index cab0e04..000
--- 
a/client/console/src/main/java/org/apache/syncope/client/console/pages/StatusModalPage.java
+++ /dev/null
@@ -1,641 +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.pages;
-
-import java.util.ArrayList;
-import java.util.Collection;
-import java.util.Collections;
-import java.util.List;
-import org.apache.commons.lang3.StringUtils;
-import org.apache.syncope.client.console.commons.Constants;
-import 
org.apache.syncope.client.console.commons.status.AbstractStatusBeanProvider;
-import org.apache.syncope.client.console.commons.status.ConnObjectWrapper;
-import org.apache.syncope.client.console.commons.status.Status;
-import org.apache.syncope.client.console.commons.status.StatusBean;
-import org.apache.syncope.client.console.commons.status.StatusUtils;
-import org.apache.syncope.client.console.panels.ActionDataTablePanel;
-import 
org.apache.syncope.client.console.wicket.ajax.markup.html.ClearIndicatingAjaxButton;
-import org.apache.syncope.client.console.wicket.markup.html.form.ActionLink;
-import 
org.apache.syncope.client.console.wicket.markup.html.form.AjaxCheckBoxPanel;
-import org.apache.syncope.common.lib.to.AbstractSubjectTO;
-import org.apache.syncope.common.lib.to.BulkActionResult;
-import org.apache.syncope.common.lib.to.ResourceTO;
-import org.apache.syncope.common.lib.to.GroupTO;
-import org.apache.syncope.common.lib.to.UserTO;
-import org.apache.syncope.common.lib.types.ResourceAssociationActionType;
-import org.apache.wicket.PageReference;
-import org.apache.wicket.ajax.AjaxRequestTarget;
-import org.apache.wicket.ajax.form.AjaxFormComponentUpdatingBehavior;
-import org.apache.wicket.extensions.ajax.markup.html.modal.ModalWindow;
-import 
org.apache.wicket.extensions.markup.html.repeater.data.grid.ICellPopulator;
-import 
org.apache.wicket.extensions.markup.html.repeater.data.table.AbstractColumn;
-import org.apache.wicket.extensions.markup.html.repeater.data.table.IColumn;
-import 
org.apache.wicket.extensions.markup.html.repeater.data.table.ISortableDataProvider;
-import 
org.apache.wicket.extensions.markup.html.repeater.data.table.PropertyColumn;
-import org.apache.wicket.markup.ComponentTag;
-import org.apache.wicket.markup.html.WebMarkupContainer;
-import org.apache.wicket.markup.html.basic.Label;
-import org.apache.wicket.markup.html.form.Form;
-import org.apache.wicket.markup.html.form.PasswordTextField;
-import org.apache.wicket.markup.html.panel.Fragment;
-import org.apache.wicket.markup.repeater.Item;
-import org.apache.wicket.model.IModel;
-import org.apache.wicket.model.Model;
-import org.apache.wicket.model.ResourceModel;
-import org.apache.wicket.model.StringResourceModel;
-
-public class StatusModalPage extends 
AbstractStatusModalPage {
-
-private static final long serialVersionUID = -9148734710505211261L;
-
-private final AbstractSubjectTO subjectTO;
-
-private int rowsPerPage = 10;
-
-final StatusUtils statusUtils;
-
-final boolean statusOnly;
-
-// 
-// password management fields ..
-// 
-final ClearIndicatingAjaxButton cancel;
-
-final WebMarkupContainer pwdMgt;
-
-final Form pwdMgtForm;
-
-final AjaxCheckBoxPanel changepwd;
-
-final PasswordTextField password;
-
-final PasswordTextField confirm;
-// 
-
-final PageReference pageRef;
-
-final ModalWindow window;
-
-final ActionDataTablePanel table;
-
-final List> columns;
-
-public StatusModalPage(
-final PageReference pageRef,
-final ModalWindow window,
-final AbstractSubjectTO attributableTO) {
-
-this(pageRef, window, attributable

[48/51] [partial] syncope git commit: [SYNCOPE-156] Preparing place for new console

2015-04-22 Thread ilgrosso
http://git-wip-us.apache.org/repos/asf/syncope/blob/39f8a069/client/console/src/main/java/org/apache/syncope/client/console/pages/Configuration.java
--
diff --git 
a/client/console/src/main/java/org/apache/syncope/client/console/pages/Configuration.java
 
b/client/console/src/main/java/org/apache/syncope/client/console/pages/Configuration.java
deleted file mode 100644
index 9f8c734..000
--- 
a/client/console/src/main/java/org/apache/syncope/client/console/pages/Configuration.java
+++ /dev/null
@@ -1,814 +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.pages;
-
-import static org.apache.syncope.client.console.pages.AbstractBasePage.LOG;
-
-import java.io.File;
-import java.io.Serializable;
-import java.util.ArrayList;
-import java.util.Arrays;
-import java.util.Collections;
-import java.util.Iterator;
-import java.util.List;
-import org.apache.logging.log4j.LogManager;
-import org.apache.logging.log4j.core.LoggerContext;
-import org.apache.logging.log4j.core.config.LoggerConfig;
-import org.apache.syncope.client.console.ExtensionPanel;
-import org.apache.syncope.client.console.commons.AttrLayoutType;
-import org.apache.syncope.client.console.commons.Constants;
-import org.apache.syncope.client.console.commons.HttpResourceStream;
-import org.apache.syncope.client.console.commons.PreferenceManager;
-import 
org.apache.syncope.client.console.commons.SortableDataProviderComparator;
-import org.apache.syncope.client.console.init.ImplementationClassNamesLoader;
-import org.apache.syncope.client.console.panels.AbstractExtensionPanel;
-import org.apache.syncope.client.console.panels.JQueryUITabbedPanel;
-import org.apache.syncope.client.console.panels.LayoutsPanel;
-import org.apache.syncope.client.console.panels.PoliciesPanel;
-import org.apache.syncope.client.console.rest.LoggerRestClient;
-import org.apache.syncope.client.console.rest.NotificationRestClient;
-import org.apache.syncope.client.console.rest.SecurityQuestionRestClient;
-import org.apache.syncope.client.console.rest.WorkflowRestClient;
-import 
org.apache.syncope.client.console.wicket.extensions.markup.html.repeater.data.table.CollectionPropertyColumn;
-import org.apache.syncope.client.console.wicket.markup.html.form.ActionLink;
-import 
org.apache.syncope.client.console.wicket.markup.html.form.ActionLinksPanel;
-import 
org.apache.syncope.client.console.wicket.markup.html.link.VeilPopupSettings;
-import org.apache.syncope.common.lib.SyncopeClientException;
-import org.apache.syncope.common.lib.SyncopeConstants;
-import org.apache.syncope.common.lib.to.LoggerTO;
-import org.apache.syncope.common.lib.to.NotificationTO;
-import org.apache.syncope.common.lib.to.SecurityQuestionTO;
-import org.apache.syncope.common.lib.types.LoggerLevel;
-import org.apache.syncope.common.lib.types.PolicyType;
-import org.apache.wicket.Page;
-import org.apache.wicket.PageReference;
-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.authroles.authorization.strategies.role.metadata.MetaDataRoleAuthorizationStrategy;
-import org.apache.wicket.extensions.ajax.markup.html.IndicatingAjaxLink;
-import org.apache.wicket.extensions.ajax.markup.html.modal.ModalWindow;
-import 
org.apache.wicket.extensions.ajax.markup.html.repeater.data.table.AjaxFallbackDefaultDataTable;
-import 
org.apache.wicket.extensions.markup.html.repeater.data.grid.ICellPopulator;
-import org.apache.wicket.extensions.markup.html.repeater.data.sort.SortOrder;
-import 
org.apache.wicket.extensions.markup.html.repeater.data.table.AbstractColumn;
-import org.apache.wicket.extensions.markup.html.repeater.data.table.IColumn;
-import 
org.apache.wicket.extensions.markup.html.repeater.data.table.PropertyColumn;
-import 
org.apache.wicket.extensions.markup.html.repeater.util.SortableDataProvider;
-import org.apache.wicket.extensions.markup.html.tabs.AbstractTab;
-import org.apache.wicket.markup.html.WebMarkupContainer;
-import org.apache.wicket.markup.html.basic.Label;
-import org.apache

[21/51] [partial] syncope git commit: [SYNCOPE-156] Preparing place for new console

2015-04-22 Thread ilgrosso
http://git-wip-us.apache.org/repos/asf/syncope/blob/39f8a069/client/old_console/src/main/java/org/apache/syncope/client/console/pages/Login.java
--
diff --git 
a/client/old_console/src/main/java/org/apache/syncope/client/console/pages/Login.java
 
b/client/old_console/src/main/java/org/apache/syncope/client/console/pages/Login.java
new file mode 100644
index 000..deaa359
--- /dev/null
+++ 
b/client/old_console/src/main/java/org/apache/syncope/client/console/pages/Login.java
@@ -0,0 +1,365 @@
+/*
+ * 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.pages;
+
+import java.security.AccessControlException;
+import java.util.List;
+import java.util.Locale;
+import org.apache.commons.lang3.StringUtils;
+import org.apache.syncope.client.console.SyncopeSession;
+import org.apache.syncope.client.console.commons.Constants;
+import org.apache.syncope.client.console.panels.NotificationPanel;
+import org.apache.syncope.client.console.rest.UserSelfRestClient;
+import 
org.apache.syncope.client.console.wicket.ajax.markup.html.ClearIndicatingAjaxLink;
+import org.apache.syncope.client.console.wicket.markup.html.form.LinkPanel;
+import org.apache.syncope.common.lib.to.UserTO;
+import org.apache.syncope.common.lib.wrap.EntitlementTO;
+import org.apache.syncope.common.rest.api.CollectionWrapper;
+import org.apache.syncope.common.rest.api.service.EntitlementService;
+import org.apache.wicket.Component;
+import org.apache.wicket.Page;
+import org.apache.wicket.ajax.AbstractDefaultAjaxBehavior;
+import org.apache.wicket.ajax.AjaxRequestTarget;
+import org.apache.wicket.ajax.markup.html.AjaxLink;
+import org.apache.wicket.ajax.markup.html.form.AjaxButton;
+import org.apache.wicket.extensions.ajax.markup.html.modal.ModalWindow;
+import org.apache.wicket.markup.head.IHeaderResponse;
+import org.apache.wicket.markup.head.JavaScriptHeaderItem;
+import org.apache.wicket.markup.html.WebPage;
+import org.apache.wicket.markup.html.basic.Label;
+import org.apache.wicket.markup.html.form.ChoiceRenderer;
+import org.apache.wicket.markup.html.form.DropDownChoice;
+import org.apache.wicket.markup.html.form.Form;
+import org.apache.wicket.markup.html.form.PasswordTextField;
+import org.apache.wicket.markup.html.form.StatelessForm;
+import org.apache.wicket.markup.html.form.TextField;
+import org.apache.wicket.markup.html.panel.Fragment;
+import org.apache.wicket.markup.html.panel.Panel;
+import org.apache.wicket.model.IModel;
+import org.apache.wicket.model.Model;
+import org.apache.wicket.model.ResourceModel;
+import org.apache.wicket.request.cycle.RequestCycle;
+import org.apache.wicket.request.mapper.parameter.PageParameters;
+import org.apache.wicket.spring.injection.annot.SpringBean;
+
+/**
+ * Syncope Login page.
+ */
+public class Login extends WebPage {
+
+private static final long serialVersionUID = -3744389270366566218L;
+
+private final static int SELF_REG_WIN_HEIGHT = 550;
+
+private final static int SELF_REG_WIN_WIDTH = 800;
+
+private final static int PWD_RESET_WIN_HEIGHT = 300;
+
+private final static int PWD_RESET_WIN_WIDTH = 800;
+
+@SpringBean(name = "version")
+private String version;
+
+@SpringBean(name = "anonymousUser")
+private String anonymousUser;
+
+@SpringBean(name = "anonymousKey")
+private String anonymousKey;
+
+@SpringBean
+private UserSelfRestClient userSelfRestClient;
+
+private final StatelessForm form;
+
+private final TextField userIdField;
+
+private final TextField passwordField;
+
+private final DropDownChoice languageSelect;
+
+private final NotificationPanel feedbackPanel;
+
+public Login(final PageParameters parameters) {
+super(parameters);
+setStatelessHint(true);
+
+feedbackPanel = new NotificationPanel(Constants.FEEDBACK);
+add(feedbackPanel);
+
+form = new StatelessForm("login");
+
+userIdField = new TextField("userId", new Model());
+userIdField.setMarkupId("userId");
+form.add(userIdField);
+
+passwordField = new PasswordTextField("password", new Model());
+passwordField.setM

[03/51] [partial] syncope git commit: [SYNCOPE-156] Preparing place for new console

2015-04-22 Thread ilgrosso
http://git-wip-us.apache.org/repos/asf/syncope/blob/39f8a069/client/old_console/src/main/resources/org/apache/syncope/client/console/pages/PolicyModalPage_pt_BR.properties
--
diff --git 
a/client/old_console/src/main/resources/org/apache/syncope/client/console/pages/PolicyModalPage_pt_BR.properties
 
b/client/old_console/src/main/resources/org/apache/syncope/client/console/pages/PolicyModalPage_pt_BR.properties
new file mode 100644
index 000..a69aeb4
--- /dev/null
+++ 
b/client/old_console/src/main/resources/org/apache/syncope/client/console/pages/PolicyModalPage_pt_BR.properties
@@ -0,0 +1,87 @@
+# 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.
+title=Gerenciamento de Pol\u00edtica
+
+description=Descri\u00e7\u00e3o
+type=Tipo
+apply=Salvar
+
+policyInfo=Info
+policySpecification = Especifica\u00e7\u00e3o
+
+#-
+# Password policy specification properties
+#-
+minLength=Tamanho m\u00ednimo
+maxLength=Tamanho M\u00e1ximo
+historyLength=Tamanho do Hist\u00f3rico
+prefixesNotPermitted=Prefixos n\u00e3o permitidos
+suffixesNotPermitted=sufixos n\u00e3o permitidos
+wordsNotPermitted=Substrings n\u00e3o permitidas
+schemasNotPermitted=N\u00e3o deve conter valores dos seguintes atributos
+digitRequired=Precisa possuir um ou mais d\u00edgitos
+nonAlphanumericRequired=Caractere n\u00e3o alfanum\u00e9rico requerido
+alphanumericRequired=Caractere alfanum\u00e9rico requerido
+lowercaseRequired=Requerido em letra min\u00fascula
+uppercaseRequired=Requerido em letra mai\u00fascula
+mustStartWithDigit=Precisa come\u00e7ar com um d\u00edgito
+mustntStartWithDigit=N\u00e3o deve come\u00e7\u00e3r com um d\u00edgito
+mustEndWithDigit=Precisa terminar com um d\u00edgito
+mustntEndWithDigit=N\u00e3o deve terminar com um d\u00edgito
+mustStartWithNonAlpha=Precisa come\u00e7ar com um caractere n\u00e3o 
alfanum\u00e9rico
+mustStartWithAlpha=Precisa come\u00e7ar com um caracter alfanum\u00e9rico
+mustntStartWithNonAlpha=N\u00e3o deve come\u00e7ar com um caractere n\u00e3o 
alfanum\u00e9rico
+mustntStartWithAlpha=N\u00e3o deve come\u00e7ar com um caractere 
alfanum\u00e9rico
+mustEndWithNonAlpha=Precisa terminar com um caractere n\u00e3o 
alfanum\u00e9rico
+mustEndWithAlpha=Precisa terminar com um caractere alfanum\u00e9rico
+mustntEndWithNonAlpha=N\u00e3o deve terminar com um caractere n\u00e3o 
alfanum\u00e9rico
+mustntEndWithAlpha=N\u00e3o precisa terminar com um caracter alfanum\u00e9rico
+allowNullPassword=A senha n\u00e3o pode ser armazenado internamente
+#-
+
+#-
+# Account policy specification properties
+#-
+allUpperCase=Todos em letras mai\u00fasculas
+allLowerCase=todos em letras min\u00fasculas
+pattern=Pattern (regex)
+propagateSuspension=Suspender propaga\u00e7\u00e3o
+permittedLoginRetries=N\u00famero m\u00e1ximo de subsequentes falhas de login
+#-
+
+#-
+# Sync policy specification properties
+#-
+uAltSearchSchemas=Atributos alternativos para busca local (usu\u00e1rios)
+gAltSearchSchemas=Atributos alternativos para busca local (grupos)
+userJavaRule=Regra customizada de correla\u00e7\u00e3o de usu\u00e1rio
+groupJavaRule=Regra de correla\u00e7\u00e3o de grupo customizada
+conflictResolutionAction= A\u00e7\u00e3o de resolu\u00e7\u00e3o de conflito
+#-
+
+#-
+# Policy Type
+#-
+ACCOUNT=Pol\u00edtica de Conta
+GLOBAL_ACCOUNT=Pol\u00edtica Global de Conta
+PASSWORD=Plo\u00edtica de Senha
+GLOBAL_PASSWORD=Pol\u00edtica Global de Senha
+SYNC=Pol\u00edtica de Sincroniza\u00e7\u00e3o
+GLOBAL_SYNC=Pol\u00edtica Global de sincroniza\u00e7\u00e3o
+resources=Recursos
+groups=Grupos
+authResources=Recursos de autentica\u00e7\u00e3o

http://git-wip-us.apache.org/repos/asf/syncope/blob/39f8a069/client/old_console/src/main/resources/org/apache/syncope/client/console/pages/PropagationTaskModalPage.html
--
diff --git 
a/client/old_console/src/main/resourc

[01/51] [partial] syncope git commit: [SYNCOPE-156] Preparing place for new console

2015-04-22 Thread ilgrosso
Repository: syncope
Updated Branches:
  refs/heads/master 047409836 -> 39f8a0696


http://git-wip-us.apache.org/repos/asf/syncope/blob/39f8a069/client/old_console/src/main/resources/org/apache/syncope/client/console/pages/Tasks_it.properties
--
diff --git 
a/client/old_console/src/main/resources/org/apache/syncope/client/console/pages/Tasks_it.properties
 
b/client/old_console/src/main/resources/org/apache/syncope/client/console/pages/Tasks_it.properties
new file mode 100644
index 000..2c050e1
--- /dev/null
+++ 
b/client/old_console/src/main/resources/org/apache/syncope/client/console/pages/Tasks_it.properties
@@ -0,0 +1,21 @@
+# 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.
+tab1=Task di propagazione
+tab2=Task di notifica
+tab3=Task programmabili
+tab4=Task di sincronizzazione
+tab5=Task di push
\ No newline at end of file



[45/51] [partial] syncope git commit: [SYNCOPE-156] Preparing place for new console

2015-04-22 Thread ilgrosso
http://git-wip-us.apache.org/repos/asf/syncope/blob/39f8a069/client/console/src/main/java/org/apache/syncope/client/console/pages/ReportModalPage.java
--
diff --git 
a/client/console/src/main/java/org/apache/syncope/client/console/pages/ReportModalPage.java
 
b/client/console/src/main/java/org/apache/syncope/client/console/pages/ReportModalPage.java
deleted file mode 100644
index 0ef7c6a..000
--- 
a/client/console/src/main/java/org/apache/syncope/client/console/pages/ReportModalPage.java
+++ /dev/null
@@ -1,640 +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.pages;
-
-import java.util.ArrayList;
-import java.util.Collections;
-import java.util.Iterator;
-import java.util.List;
-import org.apache.syncope.client.console.commons.Constants;
-import org.apache.syncope.client.console.commons.DateFormatROModel;
-import org.apache.syncope.client.console.commons.HttpResourceStream;
-import 
org.apache.syncope.client.console.commons.SortableDataProviderComparator;
-import 
org.apache.syncope.client.console.wicket.ajax.form.AbstractAjaxDownloadBehavior;
-import 
org.apache.syncope.client.console.wicket.ajax.markup.html.ClearIndicatingAjaxButton;
-import 
org.apache.syncope.client.console.wicket.extensions.markup.html.repeater.data.table.ActionColumn;
-import 
org.apache.syncope.client.console.wicket.extensions.markup.html.repeater.data.table.DatePropertyColumn;
-import org.apache.syncope.client.console.wicket.markup.html.CrontabContainer;
-import org.apache.syncope.client.console.wicket.markup.html.form.ActionLink;
-import 
org.apache.syncope.client.console.wicket.markup.html.form.ActionLinksPanel;
-import 
org.apache.syncope.client.console.wicket.markup.html.form.AjaxTextFieldPanel;
-import org.apache.syncope.common.lib.SyncopeClientException;
-import org.apache.syncope.common.lib.report.AbstractReportletConf;
-import org.apache.syncope.common.lib.report.ReportletConf;
-import org.apache.syncope.common.lib.to.ReportExecTO;
-import org.apache.syncope.common.lib.to.ReportTO;
-import org.apache.syncope.common.lib.types.ReportExecExportFormat;
-import org.apache.syncope.common.lib.types.ReportExecStatus;
-import org.apache.wicket.Component;
-import org.apache.wicket.Page;
-import org.apache.wicket.PageReference;
-import org.apache.wicket.ajax.AjaxRequestTarget;
-import org.apache.wicket.ajax.attributes.AjaxCallListener;
-import org.apache.wicket.ajax.attributes.AjaxRequestAttributes;
-import org.apache.wicket.ajax.form.AjaxFormComponentUpdatingBehavior;
-import org.apache.wicket.ajax.markup.html.AjaxLink;
-import org.apache.wicket.ajax.markup.html.form.AjaxButton;
-import 
org.apache.wicket.authroles.authorization.strategies.role.metadata.MetaDataRoleAuthorizationStrategy;
-import org.apache.wicket.extensions.ajax.markup.html.modal.ModalWindow;
-import 
org.apache.wicket.extensions.ajax.markup.html.repeater.data.table.AjaxFallbackDefaultDataTable;
-import org.apache.wicket.extensions.markup.html.repeater.data.sort.SortOrder;
-import org.apache.wicket.extensions.markup.html.repeater.data.table.IColumn;
-import 
org.apache.wicket.extensions.markup.html.repeater.data.table.PropertyColumn;
-import 
org.apache.wicket.extensions.markup.html.repeater.util.SortableDataProvider;
-import org.apache.wicket.markup.html.WebMarkupContainer;
-import org.apache.wicket.markup.html.basic.Label;
-import org.apache.wicket.markup.html.form.Form;
-import org.apache.wicket.markup.html.form.IChoiceRenderer;
-import org.apache.wicket.markup.html.form.ListChoice;
-import org.apache.wicket.model.AbstractReadOnlyModel;
-import org.apache.wicket.model.CompoundPropertyModel;
-import org.apache.wicket.model.IModel;
-import org.apache.wicket.model.Model;
-import org.apache.wicket.model.PropertyModel;
-import org.apache.wicket.model.ResourceModel;
-import org.apache.wicket.util.resource.IResourceStream;
-import org.springframework.util.StringUtils;
-
-public class ReportModalPage extends BaseModalPage {
-
-private static final long serialVersionUID = -5747628615211127644L;
-
-private static final String ADD_BUTTON_ID = "addButton";
-
-private static final S

[07/51] [partial] syncope git commit: [SYNCOPE-156] Preparing place for new console

2015-04-22 Thread ilgrosso
http://git-wip-us.apache.org/repos/asf/syncope/blob/39f8a069/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
new file mode 100644
index 000..23ef109
--- /dev/null
+++ 
b/client/old_console/src/main/resources/META-INF/resources/css/fieldstyle.css
@@ -0,0 +1,191 @@
+/*
+ * 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 #FF;
+  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 #aa
+/*{borderColorHeader}*/; 
+  background: #cc
+/*{bgColorHeader}*/ 
+url(images/ui-bg_highlight-soft_75_cc_1x100.png)
+/*{bgImgUrlHeader}*/ 
+50%/*{bgHeaderXPos}*/ 
+50%/*{bgHeaderYPos}*/ 
+repeat-x/*{bgHeaderRepeat}*/; 
+  color: #22/*{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/39f8a069/client/old_console/src/main/resources/META-INF/resources/css/images/ui-bg_diagonals-thick_20_66_40x40.png
--
diff --git 
a/client/old_console/src/main/resources/META-INF/resources/css/images/ui-bg_diagonals-thick_20_66_40x40.png
 
b/client/old_console/src/main/resources/META-INF/resources/css/images/ui-bg_diagonals-thick_20_66_40x40.png
new file mode 100644
index 000..64ece57
Binary files /dev/null and 
b/client/old_console/src/main/resources/META-INF/resources/css/images/ui-bg_diagonals-thick_20_66_40x40.png
 differ

http://git-wip-us.apache.org/repos/asf/syncope/blob/39f8a069

[33/51] [partial] syncope git commit: [SYNCOPE-156] Preparing place for new console

2015-04-22 Thread ilgrosso
http://git-wip-us.apache.org/repos/asf/syncope/blob/39f8a069/client/console/src/main/resources/org/apache/syncope/client/console/pages/BulkActionModalPage.html
--
diff --git 
a/client/console/src/main/resources/org/apache/syncope/client/console/pages/BulkActionModalPage.html
 
b/client/console/src/main/resources/org/apache/syncope/client/console/pages/BulkActionModalPage.html
deleted file mode 100644
index 9e5d497..000
--- 
a/client/console/src/main/resources/org/apache/syncope/client/console/pages/BulkActionModalPage.html
+++ /dev/null
@@ -1,45 +0,0 @@
-
-http://www.w3.org/1999/xhtml"; 
xmlns:wicket="http://wicket.apache.org";>
-  
-
-  
-  
-
-
-
-  [DataTable]
-
-  
-
-  
-[Actions]
-  
-
-  
-
-  
-
-  
-
-  
-
-  
-

http://git-wip-us.apache.org/repos/asf/syncope/blob/39f8a069/client/console/src/main/resources/org/apache/syncope/client/console/pages/BulkActionModalPage.properties
--
diff --git 
a/client/console/src/main/resources/org/apache/syncope/client/console/pages/BulkActionModalPage.properties
 
b/client/console/src/main/resources/org/apache/syncope/client/console/pages/BulkActionModalPage.properties
deleted file mode 100644
index bd28d80..000
--- 
a/client/console/src/main/resources/org/apache/syncope/client/console/pages/BulkActionModalPage.properties
+++ /dev/null
@@ -1,17 +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.
-title=Bulk action

http://git-wip-us.apache.org/repos/asf/syncope/blob/39f8a069/client/console/src/main/resources/org/apache/syncope/client/console/pages/BulkActionModalPage_it.properties
--
diff --git 
a/client/console/src/main/resources/org/apache/syncope/client/console/pages/BulkActionModalPage_it.properties
 
b/client/console/src/main/resources/org/apache/syncope/client/console/pages/BulkActionModalPage_it.properties
deleted file mode 100644
index 3989422..000
--- 
a/client/console/src/main/resources/org/apache/syncope/client/console/pages/BulkActionModalPage_it.properties
+++ /dev/null
@@ -1,17 +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.
-title=Operazioni di gruppo

http://git-wip-us.apache.org/repos/asf/syncope/blob/39f8a069/client/console/src/main/resources/org/apache/syncope/client/console/pages/BulkActionModalPage_pt_BR.properties
--
diff --git 
a/client/console/src/main/resources/org/apache/syncope/client/console/pages/BulkActionModalPage_pt_BR.properties
 
b/client/console/src/main/resources/org/apache/syncope/client/console/pages/BulkActionModalPage_pt_BR.properties
deleted file mode 100644
index ec07d02..000
--- 
a/client/console/src/main/resources/org/apache/syncope/client/console/pages/BulkActionModalPage_pt_BR.properties
+++ /dev/null
@@ -1,17 +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 Licen

[41/51] [partial] syncope git commit: [SYNCOPE-156] Preparing place for new console

2015-04-22 Thread ilgrosso
http://git-wip-us.apache.org/repos/asf/syncope/blob/39f8a069/client/console/src/main/java/org/apache/syncope/client/console/panels/AttrTemplatesPanel.java
--
diff --git 
a/client/console/src/main/java/org/apache/syncope/client/console/panels/AttrTemplatesPanel.java
 
b/client/console/src/main/java/org/apache/syncope/client/console/panels/AttrTemplatesPanel.java
deleted file mode 100644
index 98ada28..000
--- 
a/client/console/src/main/java/org/apache/syncope/client/console/panels/AttrTemplatesPanel.java
+++ /dev/null
@@ -1,167 +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.panels;
-
-import java.util.Collection;
-import java.util.Collections;
-import java.util.List;
-import org.apache.syncope.client.console.commons.Constants;
-import org.apache.syncope.client.console.commons.SelectChoiceRenderer;
-import org.apache.syncope.client.console.rest.SchemaRestClient;
-import 
org.apache.syncope.client.console.wicket.markup.html.form.NonI18nPalette;
-import org.apache.syncope.common.lib.to.GroupTO;
-import org.apache.syncope.common.lib.types.AttributableType;
-import org.apache.syncope.common.lib.types.SchemaType;
-import org.apache.wicket.ajax.AjaxRequestTarget;
-import org.apache.wicket.ajax.form.AjaxFormComponentUpdatingBehavior;
-import org.apache.wicket.event.Broadcast;
-import 
org.apache.wicket.extensions.markup.html.form.palette.component.Recorder;
-import org.apache.wicket.markup.html.panel.Panel;
-import org.apache.wicket.model.PropertyModel;
-import org.apache.wicket.model.util.ListModel;
-import org.apache.wicket.spring.injection.annot.SpringBean;
-
-public class AttrTemplatesPanel extends Panel {
-
-public enum Type {
-
-gPlainAttrTemplates,
-gDerAttrTemplates,
-gVirAttrTemplates,
-mPlainAttrTemplates,
-mDerAttrTemplates,
-mVirAttrTemplates;
-
-}
-
-private static final long serialVersionUID = 1016028222120619000L;
-
-@SpringBean
-private SchemaRestClient schemaRestClient;
-
-private final GroupTO groupTO;
-
-private final NonI18nPalette rPlainAttrTemplates;
-
-private final NonI18nPalette rDerAttrTemplates;
-
-private final NonI18nPalette rVirAttrTemplates;
-
-public AttrTemplatesPanel(final String id, final GroupTO groupTO) {
-super(id);
-this.groupTO = groupTO;
-
-rPlainAttrTemplates = buildPalette(Type.gPlainAttrTemplates,
-schemaRestClient.getSchemaNames(AttributableType.GROUP, 
SchemaType.PLAIN));
-this.add(rPlainAttrTemplates);
-rDerAttrTemplates = buildPalette(Type.gDerAttrTemplates,
-schemaRestClient.getSchemaNames(AttributableType.GROUP, 
SchemaType.DERIVED));
-this.add(rDerAttrTemplates);
-rVirAttrTemplates = buildPalette(Type.gVirAttrTemplates,
-schemaRestClient.getSchemaNames(AttributableType.GROUP, 
SchemaType.VIRTUAL));
-this.add(rVirAttrTemplates);
-
-this.add(buildPalette(Type.mPlainAttrTemplates,
-schemaRestClient.getSchemaNames(AttributableType.MEMBERSHIP, 
SchemaType.PLAIN)));
-this.add(buildPalette(Type.mDerAttrTemplates,
-schemaRestClient.getSchemaNames(AttributableType.MEMBERSHIP, 
SchemaType.DERIVED)));
-this.add(buildPalette(Type.mVirAttrTemplates,
-schemaRestClient.getSchemaNames(AttributableType.MEMBERSHIP, 
SchemaType.VIRTUAL)));
-}
-
-private NonI18nPalette buildPalette(final Type type, final 
List allSchemas) {
-if (allSchemas != null && !allSchemas.isEmpty()) {
-Collections.sort(allSchemas);
-}
-ListModel availableSchemas = new ListModel<>(allSchemas);
-
-return new NonI18nPalette(type.name(), new 
PropertyModel>(groupTO, type.name()),
-availableSchemas, new SelectChoiceRenderer(), 8, 
false, true) {
-
-private static final long serialVersionUID = 
2295567122085510330L;
-
-@Override
-protected Recorder newRecorderComponent() {
-final Recorder recorder = 
super.newRecorde

[19/51] [partial] syncope git commit: [SYNCOPE-156] Preparing place for new console

2015-04-22 Thread ilgrosso
http://git-wip-us.apache.org/repos/asf/syncope/blob/39f8a069/client/old_console/src/main/java/org/apache/syncope/client/console/pages/RequestPasswordResetModalPage.java
--
diff --git 
a/client/old_console/src/main/java/org/apache/syncope/client/console/pages/RequestPasswordResetModalPage.java
 
b/client/old_console/src/main/java/org/apache/syncope/client/console/pages/RequestPasswordResetModalPage.java
new file mode 100644
index 000..d8b762f
--- /dev/null
+++ 
b/client/old_console/src/main/java/org/apache/syncope/client/console/pages/RequestPasswordResetModalPage.java
@@ -0,0 +1,153 @@
+/*
+ * 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.pages;
+
+import org.apache.syncope.client.console.commons.Constants;
+import org.apache.syncope.client.console.commons.Mode;
+import org.apache.syncope.client.console.rest.SecurityQuestionRestClient;
+import 
org.apache.syncope.client.console.wicket.markup.html.form.AjaxTextFieldPanel;
+import org.apache.syncope.common.lib.to.SecurityQuestionTO;
+import org.apache.syncope.common.lib.to.UserTO;
+import org.apache.wicket.ajax.AjaxRequestTarget;
+import org.apache.wicket.ajax.form.AjaxFormComponentUpdatingBehavior;
+import org.apache.wicket.ajax.markup.html.form.AjaxButton;
+import org.apache.wicket.extensions.ajax.markup.html.IndicatingAjaxButton;
+import org.apache.wicket.extensions.ajax.markup.html.modal.ModalWindow;
+import org.apache.wicket.markup.html.basic.Label;
+import org.apache.wicket.markup.html.form.Form;
+import org.apache.wicket.markup.html.form.StatelessForm;
+import org.apache.wicket.model.Model;
+import org.apache.wicket.model.ResourceModel;
+import org.apache.wicket.spring.injection.annot.SpringBean;
+
+public class RequestPasswordResetModalPage extends BaseModalPage {
+
+private static final long serialVersionUID = -8419445804421211904L;
+
+@SpringBean
+private SecurityQuestionRestClient securityQuestionRestClient;
+
+public RequestPasswordResetModalPage(final ModalWindow window) {
+super();
+setOutputMarkupId(true);
+
+final boolean handleSecurityQuestion = 
userSelfRestClient.isPwdResetRequiringSecurityQuestions();
+
+final StatelessForm form = new StatelessForm(FORM);
+form.setOutputMarkupId(true);
+
+final Label securityQuestionLabel = new Label("securityQuestionLabel", 
getString("securityQuestion"));
+securityQuestionLabel.setOutputMarkupPlaceholderTag(true);
+securityQuestionLabel.setVisible(handleSecurityQuestion);
+form.add(securityQuestionLabel);
+final AjaxTextFieldPanel securityQuestion =
+new AjaxTextFieldPanel("securityQuestion", "securityQuestion", 
new Model());
+securityQuestion.setReadOnly(true);
+securityQuestion.setRequired(true);
+securityQuestion.getField().setOutputMarkupId(true);
+securityQuestion.setOutputMarkupPlaceholderTag(true);
+securityQuestion.setVisible(handleSecurityQuestion);
+form.add(securityQuestion);
+
+final AjaxTextFieldPanel username =
+new AjaxTextFieldPanel("username", "username", new 
Model());
+username.setRequired(true);
+username.getField().setOutputMarkupId(true);
+if (handleSecurityQuestion) {
+username.getField().add(new 
AjaxFormComponentUpdatingBehavior(Constants.ON_BLUR) {
+
+private static final long serialVersionUID = 
-1107858522700306810L;
+
+@Override
+protected void onUpdate(final AjaxRequestTarget target) {
+getFeedbackMessages().clear();
+target.add(feedbackPanel);
+try {
+SecurityQuestionTO read = 
securityQuestionRestClient.readByUser(username.getModelObject());
+securityQuestion.setModelObject(read.getContent());
+} catch (Exception e) {
+LOG.error("While fetching security question for {}", 
username.getModelObject(), e);
+error(getString(Constants.ERROR) + ": " + 
e.getMessage());
+  

[35/51] [partial] syncope git commit: [SYNCOPE-156] Preparing place for new console

2015-04-22 Thread ilgrosso
http://git-wip-us.apache.org/repos/asf/syncope/blob/39f8a069/client/console/src/main/java/org/apache/syncope/client/console/wicket/markup/html/form/ActionLinksPanel.java
--
diff --git 
a/client/console/src/main/java/org/apache/syncope/client/console/wicket/markup/html/form/ActionLinksPanel.java
 
b/client/console/src/main/java/org/apache/syncope/client/console/wicket/markup/html/form/ActionLinksPanel.java
deleted file mode 100644
index 35e4a65..000
--- 
a/client/console/src/main/java/org/apache/syncope/client/console/wicket/markup/html/form/ActionLinksPanel.java
+++ /dev/null
@@ -1,586 +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.client.console.commons.XMLRolesReader;
-import 
org.apache.syncope.client.console.wicket.ajax.markup.html.ClearIndicatingAjaxLink;
-import 
org.apache.syncope.client.console.wicket.ajax.markup.html.IndicatingOnConfirmAjaxLink;
-import org.apache.wicket.PageReference;
-import org.apache.wicket.ajax.AjaxRequestTarget;
-import 
org.apache.wicket.authroles.authorization.strategies.role.metadata.MetaDataRoleAuthorizationStrategy;
-import org.apache.wicket.markup.html.panel.Fragment;
-import org.apache.wicket.markup.html.panel.Panel;
-import org.apache.wicket.model.IModel;
-import org.apache.wicket.spring.injection.annot.SpringBean;
-
-/**
- * This empty class must exist because there not seems to be alternative to 
provide specialized HTML for edit links.
- */
-public class ActionLinksPanel extends Panel {
-
-private static final long serialVersionUID = 322966537010107771L;
-
-/**
- * Role reader for authorizations management.
- */
-@SpringBean
-protected XMLRolesReader xmlRolesReader;
-
-private final PageReference pageRef;
-
-public ActionLinksPanel(final String componentId, final IModel model, 
final PageReference pageRef) {
-super(componentId, model);
-this.pageRef = pageRef;
-
-super.add(new Fragment("panelClaim", "emptyFragment", this));
-super.add(new Fragment("panelManageResources", "emptyFragment", this));
-super.add(new Fragment("panelManageUsers", "emptyFragment", this));
-super.add(new Fragment("panelManageGroups", "emptyFragment", this));
-super.add(new Fragment("panelCreate", "emptyFragment", this));
-super.add(new Fragment("panelEdit", "emptyFragment", this));
-super.add(new Fragment("panelReset", "emptyFragment", this));
-super.add(new Fragment("panelUserTemplate", "emptyFragment", this));
-super.add(new Fragment("panelGroupTemplate", "emptyFragment", this));
-super.add(new Fragment("panelEnable", "emptyFragment", this));
-super.add(new Fragment("panelSearch", "emptyFragment", this));
-super.add(new Fragment("panelDelete", "emptyFragment", this));
-super.add(new Fragment("panelExecute", "emptyFragment", this));
-super.add(new Fragment("panelDryRun", "emptyFragment", this));
-super.add(new Fragment("panelSelect", "emptyFragment", this));
-super.add(new Fragment("panelExport", "emptyFragment", this));
-super.add(new Fragment("panelSuspend", "emptyFragment", this));
-super.add(new Fragment("panelReactivate", "emptyFragment", this));
-super.add(new Fragment("panelReload", "emptyFragment", this));
-super.add(new Fragment("panelChangeView", "emptyFragment", this));
-super.add(new Fragment("panelUnlink", "emptyFragment", this));
-super.add(new Fragment("panelLink", "emptyFragment", this));
-super.add(new Fragment("panelUnassign", "emptyFragment", this));
-super.add(new Fragment("panelAssign", "emptyFragment", this));
-super.add(new Fragment("panelDeprovision", "emptyFragment", this));
-super.add(new Fragment("panelProvision", "emptyFragment", this));
-}
-
-public void add(
-final ActionLink link, final ActionLink.ActionType type, final 
String pageId, final String actionId) {
-
-addWithRoles(link, type, xmlRolesReader.getEntitlement(pageId, 
actionId), true);

[05/51] [partial] syncope git commit: [SYNCOPE-156] Preparing place for new console

2015-04-22 Thread ilgrosso
http://git-wip-us.apache.org/repos/asf/syncope/blob/39f8a069/client/old_console/src/main/resources/org/apache/syncope/client/console/pages/Configuration.html
--
diff --git 
a/client/old_console/src/main/resources/org/apache/syncope/client/console/pages/Configuration.html
 
b/client/old_console/src/main/resources/org/apache/syncope/client/console/pages/Configuration.html
new file mode 100644
index 000..58a0241
--- /dev/null
+++ 
b/client/old_console/src/main/resources/org/apache/syncope/client/console/pages/Configuration.html
@@ -0,0 +1,230 @@
+
+http://www.w3.org/1999/xhtml"; 
xmlns:wicket="http://wicket.apache.org";>
+  
+
+  $(document).ready(function () {
+$("#policies").tabs();
+$("#logs").tabs();
+$("#layouts").tabs();
+  });
+
+  
+
+  
+
+
+  
+
+  
+
+
+
+
+
+
+
+  
+  
+
+  
+
+  
+  
+  
+  
+  
+  
+
+
+  [admin user layout 
panel]
+
+
+  [self user layout panel]
+
+
+  [admin group layout 
panel]
+
+
+  [self group layout 
panel]
+
+
+  [admin membership 
layout panel]
+
+
+  [self membership layout 
panel]
+
+
+  
+
+  
+
+  
+  
+  
+
+
+  [account policies]
+
+
+  [password policies]
+
+
+  [sync policies]
+
+  
+  
+
+  
+
+  
+
+  
+
+  
+  
+
+  
+
+
+[Show modal window for creating 
notification]
+[Show modal window for editing 
notification]
+
+
+  
+
+  
+  
+
+  
+
+  
+
+
+[Show modal window for 
creating security questions]
+[Show modal window for 
editing security questions]
+
+
+  
+
+  
+  
+
+  
+  
+
+  
+
+  
+
+  
+  
+Activiti Modeler
+  
+
+  
+
+
+  
+
+  
+
+  
+
+XML editor
+  
+
+  
+
+
+  
+
+  
+  
+
+  
+Core
+  
+  Console
+
+
+  
+
+  
+
+  
+
+
+  
+
+
+  
+
+
+  
+
+  
+
+  
+
+
+  
+
+  
+
+  
+
+
+  
+
+
+  
+
+
+  
+
+  
+
+  
+
+  
+  
+  
+  
+
+  
+
+  
+
+[Show modal window for conf 
parameters]
+
+
+  
+
+  
+
+  
+

http://git-wip-us.apache.org/repos/asf/syncope/blob/39f8a069/client/old_console/src/main/resources/org/apache/syncope/client/console/pages/Configuration.properties
--
diff --git 
a/client/old_console/src/main/resources/org/apache/syncope/client/console/pages/Configuration.properties
 
b/client/old_console/src/main/resources/org/apache/syncope/client/console/pages/Configuration.properties
new file mode 100644
index 000..dea3e78
--- /dev/null
+++ 
b/client/old_console/src/main/resources/org/apache/syncope/client/console/pages/Configuration.properties
@@ -0,0 +1,48 @@
+# 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

[39/51] [partial] syncope git commit: [SYNCOPE-156] Preparing place for new console

2015-04-22 Thread ilgrosso
http://git-wip-us.apache.org/repos/asf/syncope/blob/39f8a069/client/console/src/main/java/org/apache/syncope/client/console/panels/PoliciesPanel.java
--
diff --git 
a/client/console/src/main/java/org/apache/syncope/client/console/panels/PoliciesPanel.java
 
b/client/console/src/main/java/org/apache/syncope/client/console/panels/PoliciesPanel.java
deleted file mode 100644
index 4d66eda..000
--- 
a/client/console/src/main/java/org/apache/syncope/client/console/panels/PoliciesPanel.java
+++ /dev/null
@@ -1,343 +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.panels;
-
-import java.util.ArrayList;
-import java.util.Collections;
-import java.util.Iterator;
-import java.util.List;
-import org.apache.syncope.client.console.commons.Constants;
-import org.apache.syncope.client.console.commons.PreferenceManager;
-import 
org.apache.syncope.client.console.commons.SortableDataProviderComparator;
-import org.apache.syncope.client.console.commons.XMLRolesReader;
-import org.apache.syncope.client.console.pages.BasePage;
-import org.apache.syncope.client.console.pages.PolicyModalPage;
-import org.apache.syncope.client.console.rest.PolicyRestClient;
-import 
org.apache.syncope.client.console.wicket.ajax.markup.html.ClearIndicatingAjaxLink;
-import org.apache.syncope.client.console.wicket.markup.html.form.ActionLink;
-import 
org.apache.syncope.client.console.wicket.markup.html.form.ActionLinksPanel;
-import org.apache.syncope.common.lib.SyncopeClientException;
-import org.apache.syncope.common.lib.to.AbstractPolicyTO;
-import org.apache.syncope.common.lib.to.AccountPolicyTO;
-import org.apache.syncope.common.lib.to.PasswordPolicyTO;
-import org.apache.syncope.common.lib.to.SyncPolicyTO;
-import org.apache.syncope.common.lib.types.PolicyType;
-import org.apache.wicket.Page;
-import org.apache.wicket.PageReference;
-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.authroles.authorization.strategies.role.metadata.MetaDataRoleAuthorizationStrategy;
-import org.apache.wicket.extensions.ajax.markup.html.modal.ModalWindow;
-import 
org.apache.wicket.extensions.ajax.markup.html.repeater.data.table.AjaxFallbackDefaultDataTable;
-import 
org.apache.wicket.extensions.markup.html.repeater.data.grid.ICellPopulator;
-import org.apache.wicket.extensions.markup.html.repeater.data.sort.SortOrder;
-import 
org.apache.wicket.extensions.markup.html.repeater.data.table.AbstractColumn;
-import org.apache.wicket.extensions.markup.html.repeater.data.table.IColumn;
-import 
org.apache.wicket.extensions.markup.html.repeater.data.table.PropertyColumn;
-import 
org.apache.wicket.extensions.markup.html.repeater.util.SortableDataProvider;
-import org.apache.wicket.markup.html.WebMarkupContainer;
-import org.apache.wicket.markup.html.basic.Label;
-import org.apache.wicket.markup.html.form.DropDownChoice;
-import org.apache.wicket.markup.html.form.Form;
-import org.apache.wicket.markup.html.panel.Panel;
-import org.apache.wicket.markup.repeater.Item;
-import org.apache.wicket.model.CompoundPropertyModel;
-import org.apache.wicket.model.IModel;
-import org.apache.wicket.model.PropertyModel;
-import org.apache.wicket.model.ResourceModel;
-import org.apache.wicket.request.http.WebResponse;
-import org.apache.wicket.spring.injection.annot.SpringBean;
-import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
-
-public class PoliciesPanel extends Panel {
-
-/**
- * Logger.
- */
-private static final Logger LOG = 
LoggerFactory.getLogger(PoliciesPanel.class);
-
-private static final int MODAL_WIN_HEIGHT = 400;
-
-private static final int MODAL_WIN_WIDTH = 1000;
-
-private static final long serialVersionUID = -6804066913177804275L;
-
-@SpringBean
-private PolicyRestClient policyRestClient;
-
-@SpringBean
-protected XMLRolesReader xmlRolesReader;
-
-@SpringBean
-private PreferenceManager prefMan;
-
-private final PageReference pageRef;
-
-private final int paginatorRows = 

[28/51] [partial] syncope git commit: [SYNCOPE-156] Preparing place for new console

2015-04-22 Thread ilgrosso
http://git-wip-us.apache.org/repos/asf/syncope/blob/39f8a069/client/console/src/main/resources/org/apache/syncope/client/console/panels/AbstractSearchResultPanel.html
--
diff --git 
a/client/console/src/main/resources/org/apache/syncope/client/console/panels/AbstractSearchResultPanel.html
 
b/client/console/src/main/resources/org/apache/syncope/client/console/panels/AbstractSearchResultPanel.html
deleted file mode 100644
index 487165b..000
--- 
a/client/console/src/main/resources/org/apache/syncope/client/console/panels/AbstractSearchResultPanel.html
+++ /dev/null
@@ -1,43 +0,0 @@
-
-http://www.w3.org/1999/xhtml"; 
xmlns:wicket="http://wicket.apache.org";>
-  
-
-
-  [Table]
-
-  
-
-  
-  
-
-  
-
-
-
-
-
-
-
-
-
-
-
-  
-

http://git-wip-us.apache.org/repos/asf/syncope/blob/39f8a069/client/console/src/main/resources/org/apache/syncope/client/console/panels/AbstractSearchResultPanel.properties
--
diff --git 
a/client/console/src/main/resources/org/apache/syncope/client/console/panels/AbstractSearchResultPanel.properties
 
b/client/console/src/main/resources/org/apache/syncope/client/console/panels/AbstractSearchResultPanel.properties
deleted file mode 100644
index 6f016a4..000
--- 
a/client/console/src/main/resources/org/apache/syncope/client/console/panels/AbstractSearchResultPanel.properties
+++ /dev/null
@@ -1,30 +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.
-displayRows=Display rows
-
-firstname=Firstname
-surname=Surname
-userId=User Id
-edit=Edit
-delete=Delete
-id=Id
-status=Status
-token=Token
-username=Username
-creationDate=Creation Date
-tokenValued=Valued
-tokenNotValued=Not valued

http://git-wip-us.apache.org/repos/asf/syncope/blob/39f8a069/client/console/src/main/resources/org/apache/syncope/client/console/panels/AbstractSearchResultPanel_it.properties
--
diff --git 
a/client/console/src/main/resources/org/apache/syncope/client/console/panels/AbstractSearchResultPanel_it.properties
 
b/client/console/src/main/resources/org/apache/syncope/client/console/panels/AbstractSearchResultPanel_it.properties
deleted file mode 100644
index 02b3b57..000
--- 
a/client/console/src/main/resources/org/apache/syncope/client/console/panels/AbstractSearchResultPanel_it.properties
+++ /dev/null
@@ -1,30 +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.
-displayRows=display rows
-
-firstname=Nome
-surname=Cognome
-userId=User Id
-edit=Edit
-delete=Rimuovi
-id=Id
-status=Stato
-token=Token
-username=Username
-creationDate=Data Creazione
-tokenValued=Valued
-tokenNotValued=Not valued

http://git-wip-us.apache.org/repos/asf/syncope/blob/39f8a069/client/console/src/main/resources/org/apache/syncope/client/console/panels/AbstractSearchResultPanel_pt_BR.properties
--
diff --git 
a/client/console/src/main/resources/org/apache/syncope/client/console/panels/AbstractSearchResultPanel_pt_BR.properties
 
b/client/console/src/main/resources/org/apache/syncope/client/console/panels/AbstractSearchResultPanel_pt_BR.properties
deleted file mode 100644
index 1591edc..000
--- 
a/client/console/src/main/resources/org/apache/syncope/client/console/panels/AbstractSearchResultPanel_pt

[18/51] [partial] syncope git commit: [SYNCOPE-156] Preparing place for new console

2015-04-22 Thread ilgrosso
http://git-wip-us.apache.org/repos/asf/syncope/blob/39f8a069/client/old_console/src/main/java/org/apache/syncope/client/console/pages/Schema.java
--
diff --git 
a/client/old_console/src/main/java/org/apache/syncope/client/console/pages/Schema.java
 
b/client/old_console/src/main/java/org/apache/syncope/client/console/pages/Schema.java
new file mode 100644
index 000..cffb7cd
--- /dev/null
+++ 
b/client/old_console/src/main/java/org/apache/syncope/client/console/pages/Schema.java
@@ -0,0 +1,468 @@
+/*
+ * 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.pages;
+
+import java.lang.reflect.Field;
+import java.util.ArrayList;
+import java.util.Arrays;
+import java.util.Collection;
+import java.util.Collections;
+import java.util.HashMap;
+import java.util.Iterator;
+import java.util.List;
+import java.util.Map;
+import org.apache.commons.lang3.StringUtils;
+import org.apache.commons.lang3.tuple.ImmutablePair;
+import org.apache.commons.lang3.tuple.Pair;
+import org.apache.syncope.client.console.commons.Constants;
+import org.apache.syncope.client.console.commons.PreferenceManager;
+import org.apache.syncope.client.console.commons.SchemaModalPageFactory;
+import org.apache.syncope.client.console.commons.SelectChoiceRenderer;
+import 
org.apache.syncope.client.console.commons.SortableDataProviderComparator;
+import org.apache.syncope.client.console.panels.JQueryUITabbedPanel;
+import org.apache.syncope.client.console.rest.SchemaRestClient;
+import 
org.apache.syncope.client.console.wicket.ajax.markup.html.ClearIndicatingAjaxLink;
+import org.apache.syncope.client.console.wicket.markup.html.form.ActionLink;
+import 
org.apache.syncope.client.console.wicket.markup.html.form.ActionLink.ActionType;
+import 
org.apache.syncope.client.console.wicket.markup.html.form.ActionLinksPanel;
+import org.apache.syncope.common.lib.to.AbstractSchemaTO;
+import org.apache.syncope.common.lib.types.AttributableType;
+import org.apache.syncope.common.lib.types.SchemaType;
+import org.apache.wicket.AttributeModifier;
+import org.apache.wicket.Page;
+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.authroles.authorization.strategies.role.metadata.MetaDataRoleAuthorizationStrategy;
+import org.apache.wicket.extensions.ajax.markup.html.modal.ModalWindow;
+import 
org.apache.wicket.extensions.ajax.markup.html.repeater.data.table.AjaxFallbackDefaultDataTable;
+import 
org.apache.wicket.extensions.markup.html.repeater.data.grid.ICellPopulator;
+import org.apache.wicket.extensions.markup.html.repeater.data.sort.SortOrder;
+import 
org.apache.wicket.extensions.markup.html.repeater.data.table.AbstractColumn;
+import org.apache.wicket.extensions.markup.html.repeater.data.table.IColumn;
+import 
org.apache.wicket.extensions.markup.html.repeater.data.table.PropertyColumn;
+import 
org.apache.wicket.extensions.markup.html.repeater.util.SortableDataProvider;
+import org.apache.wicket.extensions.markup.html.tabs.AbstractTab;
+import org.apache.wicket.extensions.markup.html.tabs.ITab;
+import org.apache.wicket.markup.html.WebMarkupContainer;
+import org.apache.wicket.markup.html.basic.Label;
+import org.apache.wicket.markup.html.form.DropDownChoice;
+import org.apache.wicket.markup.html.form.Form;
+import org.apache.wicket.markup.html.panel.Panel;
+import org.apache.wicket.markup.repeater.Item;
+import org.apache.wicket.model.CompoundPropertyModel;
+import org.apache.wicket.model.IModel;
+import org.apache.wicket.model.Model;
+import org.apache.wicket.model.PropertyModel;
+import org.apache.wicket.model.ResourceModel;
+import org.apache.wicket.spring.injection.annot.SpringBean;
+import org.springframework.beans.BeanWrapper;
+import org.springframework.beans.BeanWrapperImpl;
+import org.springframework.util.ReflectionUtils;
+
+/**
+ * Schema WebPage.
+ */
+@SuppressWarnings({ "unchecked", "rawtypes" })
+public class Schema extends BasePage {
+
+private static final long serialVersionUID = 8091922398776299403L;
+
+private static 

[04/51] [partial] syncope git commit: [SYNCOPE-156] Preparing place for new console

2015-04-22 Thread ilgrosso
http://git-wip-us.apache.org/repos/asf/syncope/blob/39f8a069/client/old_console/src/main/resources/org/apache/syncope/client/console/pages/Groups_it.properties
--
diff --git 
a/client/old_console/src/main/resources/org/apache/syncope/client/console/pages/Groups_it.properties
 
b/client/old_console/src/main/resources/org/apache/syncope/client/console/pages/Groups_it.properties
new file mode 100644
index 000..76e69f7
--- /dev/null
+++ 
b/client/old_console/src/main/resources/org/apache/syncope/client/console/pages/Groups_it.properties
@@ -0,0 +1,26 @@
+# 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.
+tabs-tree=Albero
+tabs-search=Ricerca
+search=Cerca
+create_user=Crea nuovo utente
+search_results_title=Risultati ricerca:
+search_noResults=Nessuna corrispondenza trovata.
+reset=Reset
+showingFrom=Risultati da
+showingTo=a
+showingOf=di

http://git-wip-us.apache.org/repos/asf/syncope/blob/39f8a069/client/old_console/src/main/resources/org/apache/syncope/client/console/pages/Groups_pt_BR.properties
--
diff --git 
a/client/old_console/src/main/resources/org/apache/syncope/client/console/pages/Groups_pt_BR.properties
 
b/client/old_console/src/main/resources/org/apache/syncope/client/console/pages/Groups_pt_BR.properties
new file mode 100644
index 000..8d80401
--- /dev/null
+++ 
b/client/old_console/src/main/resources/org/apache/syncope/client/console/pages/Groups_pt_BR.properties
@@ -0,0 +1,26 @@
+# 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.
+tabs-tree=\u00C1rvore
+tabs-search=Buscar
+search=Buscar
+create_user=Criar novo usu\u00E1rio
+search_results_title=Resultados da busca
+search_noResults=N\u00E3o foram encontrados resultados
+reset=Resetar
+showingFrom=Mostrando
+showingTo=para
+showingOf=de

http://git-wip-us.apache.org/repos/asf/syncope/blob/39f8a069/client/old_console/src/main/resources/org/apache/syncope/client/console/pages/HomePage.html
--
diff --git 
a/client/old_console/src/main/resources/org/apache/syncope/client/console/pages/HomePage.html
 
b/client/old_console/src/main/resources/org/apache/syncope/client/console/pages/HomePage.html
new file mode 100644
index 000..2849c44
--- /dev/null
+++ 
b/client/old_console/src/main/resources/org/apache/syncope/client/console/pages/HomePage.html
@@ -0,0 +1,34 @@
+http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>
+
+http://www.w3.org/1999/xhtml";>
+
+
+
+
+
+
+Syncope Home-Page!
+
+
+
+
+
+
+

http://git-wip-us.apache.org/repos/asf/syncope/blob/39f8a069/client/old_console/src/main/resources/org/apache/syncope/client/console/pages/InfoModalPage.html
--
diff --git 
a/client/old_console/src/main/resources/org/apache/syncope/client/console/pages/InfoModalPage.html
 
b/client/old_console/src/main/resources/org/apache/syncope/client/console/pages/InfoModalPage.html
new file mode 100644
index 000..1124735
--- /dev/null
+++ 
b/client/old_console/src/main/resources/org/apache/syncope/client/console/pages/InfoModalPage.html
@@ -0,0 +1,42 @@
+
+
+  
+
+  
+
+  
+  Version: 
+
+
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the Li

[06/51] [partial] syncope git commit: [SYNCOPE-156] Preparing place for new console

2015-04-22 Thread ilgrosso
http://git-wip-us.apache.org/repos/asf/syncope/blob/39f8a069/client/old_console/src/main/resources/authorizations.xml
--
diff --git a/client/old_console/src/main/resources/authorizations.xml 
b/client/old_console/src/main/resources/authorizations.xml
new file mode 100644
index 000..8de4a1d
--- /dev/null
+++ b/client/old_console/src/main/resources/authorizations.xml
@@ -0,0 +1,333 @@
+
+
+
+  
+
+  SCHEMA_LIST
+
+
+
+  SCHEMA_CREATE
+
+
+
+  SCHEMA_READ
+
+
+
+  SCHEMA_UPDATE
+
+
+
+  SCHEMA_DELETE
+
+  
+
+  
+
+  USER_LIST
+
+
+
+  USER_CREATE
+
+
+
+  USER_READ
+
+
+
+  USER_UPDATE
+
+
+
+  USER_DELETE
+
+
+
+  USER_VIEW
+
+  
+
+  
+
+  GROUP_LIST
+
+
+
+  GROUP_CREATE
+
+
+
+  GROUP_READ
+
+
+
+  GROUP_UPDATE
+
+
+
+  GROUP_DELETE
+
+  
+
+  
+
+  RESOURCE_LIST
+
+
+
+  RESOURCE_CREATE
+
+
+
+  RESOURCE_READ
+
+
+
+  RESOURCE_UPDATE
+
+
+
+  RESOURCE_DELETE
+
+
+
+  RESOURCE_GETCONNECTOROBJECT
+
+  
+
+  
+
+  REPORT_LIST
+
+
+
+  REPORT_CREATE
+
+
+
+  REPORT_READ
+
+
+
+  REPORT_UPDATE
+
+
+
+  REPORT_DELETE
+
+
+
+  REPORT_EXECUTE
+
+  
+  
+  
+
+  AUDIT_LIST
+
+
+
+  AUDIT_ENABLE
+
+
+
+  AUDIT_DISABLE
+
+  
+
+  
+
+  CONNECTOR_LIST
+
+
+
+  CONNECTOR_CREATE
+
+
+
+  CONNECTOR_READ
+
+
+
+  CONNECTOR_UPDATE
+
+
+
+  CONNECTOR_DELETE
+
+
+
+  CONNECTOR_RELOAD
+
+
+  
+
+  
+
+  WORKFLOW_FORM_LIST
+
+
+  WORKFLOW_FORM_READ
+
+
+  WORKFLOW_FORM_CLAIM
+
+
+  WORKFLOW_FORM_SUBMIT
+
+  
+
+  
+
+  CONFIGURATION_LIST
+
+
+
+  CONFIGURATION_EXPORT
+
+
+
+  CONFIGURATION_SET
+
+
+
+  CONFIGURATION_DELETE
+
+
+
+  LOG_LIST
+
+
+
+  LOG_SET_LEVEL
+
+
+
+  LOG_DELETE
+
+
+
+  WORKFLOW_DEF_READ
+
+
+
+  WORKFLOW_DEF_UPDATE
+
+  
+
+  
+
+  NOTIFICATION_LIST
+
+
+
+  NOTIFICATION_CREATE
+
+
+
+  NOTIFICATION_READ
+
+
+
+  NOTIFICATION_UPDATE
+
+
+
+  NOTIFICATION_DELETE
+
+  
+
+  
+
+  SECURITY_QUESTION_CREATE
+
+
+
+  SECURITY_QUESTION_UPDATE
+
+
+
+  SECURITY_QUESTION_DELETE
+
+  
+  
+  
+
+  TASK_LIST
+
+
+
+  TASK_EXECUTE
+
+
+
+  TASK_READ
+
+
+
+  TASK_DELETE
+
+
+
+  TASK_CREATE
+
+
+
+  TASK_UPDATE
+
+  
+
+  
+
+  POLICY_LIST
+
+
+
+  POLICY_READ
+
+
+
+  POLICY_DELETE
+
+
+
+  POLICY_CREATE
+
+
+
+  POLICY_UPDATE
+
+  
+  
+
+  ROUTE_LIST
+
+
+
+  ROUTE_READ
+
+
+
+  ROUTE_UPDATE
+
+  
+

http://git-wip-us.apache.org/repos/asf/syncope/blob/39f8a069/client/old_console/src/main/resources/console.properties
--
diff --git a/client/old_console/src/main/resources/console.properties 
b/client/old_console/src/main/resources/console.properties
new file mode 100644
index 000..3f2667b
--- /dev/null
+++ b/client/old_console/src/main/resources/console.properties
@@ -0,0 +1,22 @@
+# 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.
+console.directory=${conf.directory}
+scheme=http
+host=localhost
+port=8080
+rootPath=/syncope/rest/
+activitiModelerDirectory=${activiti-modeler.directory}

http://git-wip-us.apache.org/repos/asf/syncope/blob/39f8a069/client/old_console/src/main/resources/consoleContext.xml
--
diff --git a/client/old_console/src/main/resources/consoleContext.xml 
b/client/old_console/src/main/resources/consoleContext.xml
new file mode 100644
index 000.

[46/51] [partial] syncope git commit: [SYNCOPE-156] Preparing place for new console

2015-04-22 Thread ilgrosso
http://git-wip-us.apache.org/repos/asf/syncope/blob/39f8a069/client/console/src/main/java/org/apache/syncope/client/console/pages/PlainSchemaModalPage.java
--
diff --git 
a/client/console/src/main/java/org/apache/syncope/client/console/pages/PlainSchemaModalPage.java
 
b/client/console/src/main/java/org/apache/syncope/client/console/pages/PlainSchemaModalPage.java
deleted file mode 100644
index 3adba7d..000
--- 
a/client/console/src/main/java/org/apache/syncope/client/console/pages/PlainSchemaModalPage.java
+++ /dev/null
@@ -1,456 +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.pages;
-
-import java.util.ArrayList;
-import java.util.Arrays;
-import java.util.Collections;
-import java.util.Iterator;
-import java.util.List;
-import org.apache.commons.lang3.StringUtils;
-import org.apache.syncope.client.console.commons.Constants;
-import org.apache.syncope.client.console.commons.JexlHelpUtils;
-import 
org.apache.syncope.client.console.wicket.markup.html.form.AjaxCheckBoxPanel;
-import 
org.apache.syncope.client.console.wicket.markup.html.form.AjaxDropDownChoicePanel;
-import 
org.apache.syncope.client.console.wicket.markup.html.form.AjaxTextFieldPanel;
-import 
org.apache.syncope.client.console.wicket.markup.html.form.MultiFieldPanel;
-import org.apache.syncope.common.lib.SyncopeClientException;
-import org.apache.syncope.common.lib.SyncopeConstants;
-import org.apache.syncope.common.lib.to.PlainSchemaTO;
-import org.apache.syncope.common.lib.types.AttrSchemaType;
-import org.apache.syncope.common.lib.types.AttributableType;
-import org.apache.syncope.common.lib.types.CipherAlgorithm;
-import org.apache.wicket.PageReference;
-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.ajax.markup.html.form.AjaxButton;
-import 
org.apache.wicket.authroles.authorization.strategies.role.metadata.MetaDataRoleAuthorizationStrategy;
-import org.apache.wicket.extensions.ajax.markup.html.IndicatingAjaxButton;
-import 
org.apache.wicket.extensions.ajax.markup.html.autocomplete.AutoCompleteTextField;
-import org.apache.wicket.extensions.ajax.markup.html.modal.ModalWindow;
-import org.apache.wicket.markup.html.WebMarkupContainer;
-import org.apache.wicket.markup.html.form.DropDownChoice;
-import org.apache.wicket.markup.html.form.Form;
-import org.apache.wicket.model.CompoundPropertyModel;
-import org.apache.wicket.model.IModel;
-import org.apache.wicket.model.LoadableDetachableModel;
-import org.apache.wicket.model.Model;
-import org.apache.wicket.model.PropertyModel;
-import org.apache.wicket.model.ResourceModel;
-import org.apache.wicket.util.string.Strings;
-
-/**
- * Modal window with Schema form.
- */
-public class PlainSchemaModalPage extends 
AbstractSchemaModalPage {
-
-private static final long serialVersionUID = -5991561277287424057L;
-
-public PlainSchemaModalPage(final AttributableType kind) {
-super(kind);
-}
-
-@Override
-public void setSchemaModalPage(final PageReference pageRef, final 
ModalWindow window,
-final PlainSchemaTO schemaTO, final boolean createFlag) {
-
-final PlainSchemaTO schema = schemaTO == null
-? new PlainSchemaTO()
-: schemaTO;
-
-final Form schemaForm = new Form<>(FORM);
-
-schemaForm.setModel(new CompoundPropertyModel<>(schema));
-schemaForm.setOutputMarkupId(true);
-
-final AjaxTextFieldPanel name =
-new AjaxTextFieldPanel("key", getString("key"), new 
PropertyModel(schema, "key"));
-name.addRequiredLabel();
-name.setEnabled(createFlag);
-schemaForm.add(name);
-
-final AjaxDropDownChoicePanel type = new 
AjaxDropDownChoicePanel<>(
-"type", getString("type"), new 
PropertyModel(schema, "type"));
-type.setChoices(Arrays.asList(AttrSchemaType.values()));
-type.addRequiredLabel();
-schemaForm.add(type);
-
-// -- long, double, date
-final AjaxTextFieldPa

[3/3] syncope git commit: [SYNCOPE-661] No more overloaded list / search REST methods + helpers provided for Java client invocation

2015-04-23 Thread ilgrosso
[SYNCOPE-661] No more overloaded list / search REST methods + helpers provided 
for Java client invocation


Project: http://git-wip-us.apache.org/repos/asf/syncope/repo
Commit: http://git-wip-us.apache.org/repos/asf/syncope/commit/bc2afa9a
Tree: http://git-wip-us.apache.org/repos/asf/syncope/tree/bc2afa9a
Diff: http://git-wip-us.apache.org/repos/asf/syncope/diff/bc2afa9a

Branch: refs/heads/master
Commit: bc2afa9a4cc2b9d0935c39d894f791f71bb1ec31
Parents: 39f8a06
Author: Francesco Chicchiriccò 
Authored: Thu Apr 23 10:02:45 2015 +0200
Committer: Francesco Chicchiriccò 
Committed: Thu Apr 23 17:06:17 2015 +0200

--
 .../client/cli/commands/ReportCommand.java  |   3 +-
 .../console/rest/AbstractSubjectRestClient.java |   7 +-
 .../client/console/rest/GroupRestClient.java|  22 +-
 .../client/console/rest/ReportRestClient.java   |  13 +-
 .../client/console/rest/TaskRestClient.java |   9 +-
 .../client/console/rest/UserRestClient.java |  20 +-
 .../syncope/client/lib/SyncopeClient.java   |  84 +++-
 .../client/lib/builders/ListQueryBuilder.java   |  48 ++
 .../lib/builders/SubjectListQueryBuilder.java   |  61 +++
 .../lib/builders/SubjectSearchQueryBuilder.java |  64 +++
 .../syncope/common/lib/to/PagedResult.java  |   2 +-
 .../syncope/common/rest/api/Preference.java |   2 +-
 .../common/rest/api/beans/ListQuery.java|  86 
 .../common/rest/api/beans/SubjectListQuery.java |  41 ++
 .../rest/api/beans/SubjectSearchQuery.java  |  39 ++
 .../common/rest/api/service/GroupService.java   | 126 +
 .../common/rest/api/service/JAXRSService.java   |   8 -
 .../common/rest/api/service/ReportService.java  |  49 +-
 .../common/rest/api/service/TaskService.java|  57 +--
 .../common/rest/api/service/UserService.java| 124 +
 .../jpa/entity/AttributableSearchTest.java  | 471 ---
 .../jpa/entity/SubjectSearchTest.java   | 471 +++
 .../relationship/AttributableSearchTest.java|  72 ---
 .../jpa/relationship/SubjectSearchTest.java |  72 +++
 .../rest/cxf/QueryResourceInfoComparator.java   | 114 -
 .../core/rest/cxf/service/GroupServiceImpl.java |  72 +--
 .../rest/cxf/service/ReportServiceImpl.java |  31 +-
 .../core/rest/cxf/service/TaskServiceImpl.java  |  36 +-
 .../core/rest/cxf/service/UserServiceImpl.java  |  72 +--
 .../src/main/resources/restCXFContext.xml   |   3 -
 .../fit/core/reference/AbstractTaskITCase.java  |   4 +-
 .../core/reference/AuthenticationITCase.java|  10 +-
 .../syncope/fit/core/reference/GroupITCase.java |  10 +-
 .../core/reference/PropagationTaskITCase.java   |  39 +-
 .../fit/core/reference/PushTaskITCase.java  |   3 +-
 .../fit/core/reference/ReportITCase.java|   3 +-
 .../fit/core/reference/SchedTaskITCase.java |   6 +-
 .../fit/core/reference/SearchITCase.java|  86 ++--
 .../fit/core/reference/SyncTaskITCase.java  |  44 +-
 .../syncope/fit/core/reference/UserITCase.java  |  53 ++-
 pom.xml |   2 +-
 41 files changed, 1252 insertions(+), 1287 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/syncope/blob/bc2afa9a/client/cli/src/main/java/org/apache/syncope/client/cli/commands/ReportCommand.java
--
diff --git 
a/client/cli/src/main/java/org/apache/syncope/client/cli/commands/ReportCommand.java
 
b/client/cli/src/main/java/org/apache/syncope/client/cli/commands/ReportCommand.java
index 17f0e14..c2ed1fa 100644
--- 
a/client/cli/src/main/java/org/apache/syncope/client/cli/commands/ReportCommand.java
+++ 
b/client/cli/src/main/java/org/apache/syncope/client/cli/commands/ReportCommand.java
@@ -28,6 +28,7 @@ import javax.xml.transform.TransformerConfigurationException;
 import javax.xml.transform.TransformerException;
 import org.apache.syncope.client.cli.SyncopeServices;
 import org.apache.syncope.client.cli.util.XmlUtils;
+import org.apache.syncope.client.lib.SyncopeClient;
 import org.apache.syncope.common.lib.SyncopeClientException;
 import org.apache.syncope.common.lib.to.ReportExecTO;
 import org.apache.syncope.common.lib.to.ReportTO;
@@ -97,7 +98,7 @@ public class ReportCommand extends AbstractCommand {
 } else if (list) {
 LOG.debug("- report list command");
 try {
-for (final ReportTO reportTO : 
reportService.list().getResult()) {
+for (ReportTO reportTO : 
reportService.list(SyncopeClient.getListQueryBuilder().build()).getResult()) {
 System.out.println(reportTO);
 }
 } catch (final SyncopeClientException ex) {

http://git-wip-us.apache.org/repos/asf/syncope/blob/bc2afa9a/client/console/src/main/java/org/apache/syncope/client/console/rest/AbstractSubjectRestClient.java
--

[1/3] syncope git commit: [SYNCOPE-661] No more overloaded list / search REST methods + helpers provided for Java client invocation

2015-04-23 Thread ilgrosso
Repository: syncope
Updated Branches:
  refs/heads/master 39f8a0696 -> bc2afa9a4


http://git-wip-us.apache.org/repos/asf/syncope/blob/bc2afa9a/pom.xml
--
diff --git a/pom.xml b/pom.xml
index 958496a..a86ca77 100644
--- a/pom.xml
+++ b/pom.xml
@@ -326,7 +326,7 @@ under the License.
 1.4.0
 1.2.2
 
-3.0.4
+3.0.5-SNAPSHOT
 
 2.15.1  
 



[2/3] syncope git commit: [SYNCOPE-661] No more overloaded list / search REST methods + helpers provided for Java client invocation

2015-04-23 Thread ilgrosso
http://git-wip-us.apache.org/repos/asf/syncope/blob/bc2afa9a/core/persistence-jpa/src/test/java/org/apache/syncope/core/persistence/jpa/entity/SubjectSearchTest.java
--
diff --git 
a/core/persistence-jpa/src/test/java/org/apache/syncope/core/persistence/jpa/entity/SubjectSearchTest.java
 
b/core/persistence-jpa/src/test/java/org/apache/syncope/core/persistence/jpa/entity/SubjectSearchTest.java
new file mode 100644
index 000..d0a6d0c
--- /dev/null
+++ 
b/core/persistence-jpa/src/test/java/org/apache/syncope/core/persistence/jpa/entity/SubjectSearchTest.java
@@ -0,0 +1,471 @@
+/*
+ * 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.core.persistence.jpa.entity;
+
+import static org.junit.Assert.assertEquals;
+import static org.junit.Assert.assertFalse;
+import static org.junit.Assert.assertNotNull;
+import static org.junit.Assert.assertTrue;
+
+import java.util.ArrayList;
+import java.util.Collections;
+import java.util.HashSet;
+import java.util.List;
+import java.util.Set;
+import org.apache.commons.collections4.CollectionUtils;
+import org.apache.commons.collections4.Predicate;
+import org.apache.syncope.common.lib.SyncopeConstants;
+import org.apache.syncope.common.lib.types.SubjectType;
+import org.apache.syncope.core.persistence.api.dao.GroupDAO;
+import org.apache.syncope.core.persistence.api.dao.SubjectSearchDAO;
+import org.apache.syncope.core.persistence.api.dao.UserDAO;
+import org.apache.syncope.core.persistence.api.dao.search.AttributeCond;
+import org.apache.syncope.core.persistence.api.dao.search.MembershipCond;
+import org.apache.syncope.core.persistence.api.dao.search.OrderByClause;
+import org.apache.syncope.core.persistence.api.dao.search.ResourceCond;
+import org.apache.syncope.core.persistence.api.dao.search.SearchCond;
+import org.apache.syncope.core.persistence.api.dao.search.SubjectCond;
+import org.apache.syncope.core.persistence.api.entity.group.Group;
+import org.apache.syncope.core.persistence.api.entity.user.User;
+import org.apache.syncope.core.persistence.jpa.AbstractTest;
+import org.junit.Test;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.transaction.annotation.Transactional;
+
+@Transactional
+public class SubjectSearchTest extends AbstractTest {
+
+@Autowired
+private UserDAO userDAO;
+
+@Autowired
+private GroupDAO groupDAO;
+
+@Autowired
+private SubjectSearchDAO searchDAO;
+
+@Test
+public void userMatch() {
+User user = userDAO.find(1L);
+assertNotNull(user);
+
+MembershipCond membershipCond = new MembershipCond();
+membershipCond.setGroupId(5L);
+
+assertFalse(searchDAO.matches(user, 
SearchCond.getLeafCond(membershipCond), SubjectType.USER));
+
+membershipCond.setGroupId(1L);
+
+assertTrue(searchDAO.matches(user, 
SearchCond.getLeafCond(membershipCond), SubjectType.USER));
+}
+
+@Test
+public void groupMatch() {
+Group group = groupDAO.find(1L);
+assertNotNull(group);
+
+AttributeCond attrCond = new AttributeCond();
+attrCond.setSchema("show");
+attrCond.setType(AttributeCond.Type.ISNOTNULL);
+
+assertTrue(searchDAO.matches(group, SearchCond.getLeafCond(attrCond), 
SubjectType.GROUP));
+}
+
+@Test
+public void searchWithLikeCondition() {
+AttributeCond fullnameLeafCond = new 
AttributeCond(AttributeCond.Type.LIKE);
+fullnameLeafCond.setSchema("fullname");
+fullnameLeafCond.setExpression("%o%");
+
+MembershipCond membershipCond = new MembershipCond();
+membershipCond.setGroupId(1L);
+
+AttributeCond loginDateCond = new AttributeCond(AttributeCond.Type.EQ);
+loginDateCond.setSchema("loginDate");
+loginDateCond.setExpression("2009-05-26");
+
+SearchCond subCond = 
SearchCond.getAndCond(SearchCond.getLeafCond(fullnameLeafCond), 
SearchCond.getLeafCond(
+membershipCond));
+
+assertTrue(subCond.isValid());
+
+SearchCond cond = SearchCond.getAndCond(subCond, 
SearchCond.getLeafCond(loginDateCond));
+
+assertTru

[3/3] syncope git commit: Merge branch '1_2_X'

2015-04-23 Thread ilgrosso
Merge branch '1_2_X'


Project: http://git-wip-us.apache.org/repos/asf/syncope/repo
Commit: http://git-wip-us.apache.org/repos/asf/syncope/commit/1ac18d4e
Tree: http://git-wip-us.apache.org/repos/asf/syncope/tree/1ac18d4e
Diff: http://git-wip-us.apache.org/repos/asf/syncope/diff/1ac18d4e

Branch: refs/heads/master
Commit: 1ac18d4ea4b415f35ce22c06e862efd8091c1ecd
Parents: bc2afa9 c0c4e01
Author: Francesco Chicchiriccò 
Authored: Thu Apr 23 17:14:06 2015 +0200
Committer: Francesco Chicchiriccò 
Committed: Thu Apr 23 17:14:06 2015 +0200

--
 pom.xml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
--


http://git-wip-us.apache.org/repos/asf/syncope/blob/1ac18d4e/pom.xml
--



[2/3] syncope git commit: Upgrading maven-release-plugin

2015-04-23 Thread ilgrosso
Upgrading maven-release-plugin


Project: http://git-wip-us.apache.org/repos/asf/syncope/repo
Commit: http://git-wip-us.apache.org/repos/asf/syncope/commit/c0c4e011
Tree: http://git-wip-us.apache.org/repos/asf/syncope/tree/c0c4e011
Diff: http://git-wip-us.apache.org/repos/asf/syncope/diff/c0c4e011

Branch: refs/heads/master
Commit: c0c4e011b9f27d9c0ee57bcfbb6d5f07a8a69a51
Parents: ff60dec
Author: Francesco Chicchiriccò 
Authored: Thu Apr 23 17:13:50 2015 +0200
Committer: Francesco Chicchiriccò 
Committed: Thu Apr 23 17:13:50 2015 +0200

--
 pom.xml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
--


http://git-wip-us.apache.org/repos/asf/syncope/blob/c0c4e011/pom.xml
--
diff --git a/pom.xml b/pom.xml
index e993220..b771181 100644
--- a/pom.xml
+++ b/pom.xml
@@ -1487,7 +1487,7 @@ under the License.
   
 org.apache.maven.plugins
 maven-release-plugin
-2.5.1
+2.5.2
 
   forked-path
   true



[1/3] syncope git commit: Upgrading maven-release-plugin

2015-04-23 Thread ilgrosso
Repository: syncope
Updated Branches:
  refs/heads/1_2_X ff60decbb -> c0c4e011b
  refs/heads/master bc2afa9a4 -> 1ac18d4ea


Upgrading maven-release-plugin


Project: http://git-wip-us.apache.org/repos/asf/syncope/repo
Commit: http://git-wip-us.apache.org/repos/asf/syncope/commit/c0c4e011
Tree: http://git-wip-us.apache.org/repos/asf/syncope/tree/c0c4e011
Diff: http://git-wip-us.apache.org/repos/asf/syncope/diff/c0c4e011

Branch: refs/heads/1_2_X
Commit: c0c4e011b9f27d9c0ee57bcfbb6d5f07a8a69a51
Parents: ff60dec
Author: Francesco Chicchiriccò 
Authored: Thu Apr 23 17:13:50 2015 +0200
Committer: Francesco Chicchiriccò 
Committed: Thu Apr 23 17:13:50 2015 +0200

--
 pom.xml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
--


http://git-wip-us.apache.org/repos/asf/syncope/blob/c0c4e011/pom.xml
--
diff --git a/pom.xml b/pom.xml
index e993220..b771181 100644
--- a/pom.xml
+++ b/pom.xml
@@ -1487,7 +1487,7 @@ under the License.
   
 org.apache.maven.plugins
 maven-release-plugin
-2.5.1
+2.5.2
 
   forked-path
   true



[3/3] syncope git commit: Merge from 1_2_X

2015-04-24 Thread ilgrosso
Merge from 1_2_X


Project: http://git-wip-us.apache.org/repos/asf/syncope/repo
Commit: http://git-wip-us.apache.org/repos/asf/syncope/commit/84c79db8
Tree: http://git-wip-us.apache.org/repos/asf/syncope/tree/84c79db8
Diff: http://git-wip-us.apache.org/repos/asf/syncope/diff/84c79db8

Branch: refs/heads/master
Commit: 84c79db8fccab35c05fabb1c665fef93d421d85b
Parents: 1ac18d4 904e638
Author: Francesco Chicchiriccò 
Authored: Fri Apr 24 16:03:23 2015 +0200
Committer: Francesco Chicchiriccò 
Committed: Fri Apr 24 16:03:23 2015 +0200

--

--




[2/3] syncope git commit: Upgrading Jackson

2015-04-24 Thread ilgrosso
Upgrading Jackson


Project: http://git-wip-us.apache.org/repos/asf/syncope/repo
Commit: http://git-wip-us.apache.org/repos/asf/syncope/commit/904e6380
Tree: http://git-wip-us.apache.org/repos/asf/syncope/tree/904e6380
Diff: http://git-wip-us.apache.org/repos/asf/syncope/diff/904e6380

Branch: refs/heads/master
Commit: 904e6380be80c88a8e7bb855cf82e94c38fc64f7
Parents: c0c4e01
Author: Francesco Chicchiriccò 
Authored: Fri Apr 24 16:02:46 2015 +0200
Committer: Francesco Chicchiriccò 
Committed: Fri Apr 24 16:02:46 2015 +0200

--
 pom.xml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
--


http://git-wip-us.apache.org/repos/asf/syncope/blob/904e6380/pom.xml
--
diff --git a/pom.xml b/pom.xml
index b771181..7192b64 100644
--- a/pom.xml
+++ b/pom.xml
@@ -346,7 +346,7 @@ under the License.
 3.0.4   
 4.0.9.RELEASE
 3.2.7.RELEASE
-2.4.5
+2.4.6
 1.7
 2.0
 2.2.1



[1/3] syncope git commit: Upgrading Jackson

2015-04-24 Thread ilgrosso
Repository: syncope
Updated Branches:
  refs/heads/1_2_X c0c4e011b -> 904e6380b
  refs/heads/master 1ac18d4ea -> 84c79db8f


Upgrading Jackson


Project: http://git-wip-us.apache.org/repos/asf/syncope/repo
Commit: http://git-wip-us.apache.org/repos/asf/syncope/commit/904e6380
Tree: http://git-wip-us.apache.org/repos/asf/syncope/tree/904e6380
Diff: http://git-wip-us.apache.org/repos/asf/syncope/diff/904e6380

Branch: refs/heads/1_2_X
Commit: 904e6380be80c88a8e7bb855cf82e94c38fc64f7
Parents: c0c4e01
Author: Francesco Chicchiriccò 
Authored: Fri Apr 24 16:02:46 2015 +0200
Committer: Francesco Chicchiriccò 
Committed: Fri Apr 24 16:02:46 2015 +0200

--
 pom.xml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
--


http://git-wip-us.apache.org/repos/asf/syncope/blob/904e6380/pom.xml
--
diff --git a/pom.xml b/pom.xml
index b771181..7192b64 100644
--- a/pom.xml
+++ b/pom.xml
@@ -346,7 +346,7 @@ under the License.
 3.0.4   
 4.0.9.RELEASE
 3.2.7.RELEASE
-2.4.5
+2.4.6
 1.7
 2.0
 2.2.1



syncope git commit: Reverting Jackson upgrade: jackson-module-jaxb-annotations 2.4.6 not yet available

2015-04-24 Thread ilgrosso
Repository: syncope
Updated Branches:
  refs/heads/1_2_X 904e6380b -> a43b36d4b


Reverting Jackson upgrade: jackson-module-jaxb-annotations 2.4.6 not yet 
available


Project: http://git-wip-us.apache.org/repos/asf/syncope/repo
Commit: http://git-wip-us.apache.org/repos/asf/syncope/commit/a43b36d4
Tree: http://git-wip-us.apache.org/repos/asf/syncope/tree/a43b36d4
Diff: http://git-wip-us.apache.org/repos/asf/syncope/diff/a43b36d4

Branch: refs/heads/1_2_X
Commit: a43b36d4ba3955048232fd6c06a9448de009624d
Parents: 904e638
Author: Francesco Chicchiriccò 
Authored: Fri Apr 24 16:41:03 2015 +0200
Committer: Francesco Chicchiriccò 
Committed: Fri Apr 24 16:41:03 2015 +0200

--
 pom.xml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
--


http://git-wip-us.apache.org/repos/asf/syncope/blob/a43b36d4/pom.xml
--
diff --git a/pom.xml b/pom.xml
index 7192b64..b771181 100644
--- a/pom.xml
+++ b/pom.xml
@@ -346,7 +346,7 @@ under the License.
 3.0.4   
 4.0.9.RELEASE
 3.2.7.RELEASE
-2.4.6
+2.4.5
 1.7
 2.0
 2.2.1



[1/2] syncope git commit: [SYNCOPE-662] OpenJPA upgraded to 2.4.0 - some minor adjustments to unit tests needed

2015-04-24 Thread ilgrosso
Repository: syncope
Updated Branches:
  refs/heads/master 84c79db8f -> 072abae40


[SYNCOPE-662] OpenJPA upgraded to 2.4.0 - some minor adjustments to unit tests 
needed


Project: http://git-wip-us.apache.org/repos/asf/syncope/repo
Commit: http://git-wip-us.apache.org/repos/asf/syncope/commit/65b4b985
Tree: http://git-wip-us.apache.org/repos/asf/syncope/tree/65b4b985
Diff: http://git-wip-us.apache.org/repos/asf/syncope/diff/65b4b985

Branch: refs/heads/master
Commit: 65b4b985dd55138b2e977db45df7ea20263fc8bf
Parents: 1ac18d4
Author: Francesco Chicchiriccò 
Authored: Fri Apr 24 16:44:00 2015 +0200
Committer: Francesco Chicchiriccò 
Committed: Fri Apr 24 16:44:00 2015 +0200

--
 .../syncope/core/persistence/jpa/entity/TaskTest.java |  4 ++--
 .../persistence/jpa/relationship/ResourceTest.java| 14 +-
 core/persistence-jpa/src/test/resources/content.xml   |  3 +++
 pom.xml   |  2 +-
 4 files changed, 11 insertions(+), 12 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/syncope/blob/65b4b985/core/persistence-jpa/src/test/java/org/apache/syncope/core/persistence/jpa/entity/TaskTest.java
--
diff --git 
a/core/persistence-jpa/src/test/java/org/apache/syncope/core/persistence/jpa/entity/TaskTest.java
 
b/core/persistence-jpa/src/test/java/org/apache/syncope/core/persistence/jpa/entity/TaskTest.java
index f7ebed7..5fc71d2 100644
--- 
a/core/persistence-jpa/src/test/java/org/apache/syncope/core/persistence/jpa/entity/TaskTest.java
+++ 
b/core/persistence-jpa/src/test/java/org/apache/syncope/core/persistence/jpa/entity/TaskTest.java
@@ -59,12 +59,12 @@ public class TaskTest extends AbstractTest {
 public void findWithoutExecs() {
 List tasks = taskDAO.findToExec(TaskType.PROPAGATION);
 assertNotNull(tasks);
-assertEquals(2, tasks.size());
+assertEquals(3, tasks.size());
 }
 
 @Test
 public void findAll() {
-assertEquals(4, taskDAO.findAll(TaskType.PROPAGATION).size());
+assertEquals(5, taskDAO.findAll(TaskType.PROPAGATION).size());
 assertEquals(1, taskDAO.findAll(TaskType.NOTIFICATION).size());
 assertEquals(1, taskDAO.findAll(TaskType.SCHEDULED).size());
 assertEquals(9, taskDAO.findAll(TaskType.SYNCHRONIZATION).size());

http://git-wip-us.apache.org/repos/asf/syncope/blob/65b4b985/core/persistence-jpa/src/test/java/org/apache/syncope/core/persistence/jpa/relationship/ResourceTest.java
--
diff --git 
a/core/persistence-jpa/src/test/java/org/apache/syncope/core/persistence/jpa/relationship/ResourceTest.java
 
b/core/persistence-jpa/src/test/java/org/apache/syncope/core/persistence/jpa/relationship/ResourceTest.java
index 89fe371..d9e1864 100644
--- 
a/core/persistence-jpa/src/test/java/org/apache/syncope/core/persistence/jpa/relationship/ResourceTest.java
+++ 
b/core/persistence-jpa/src/test/java/org/apache/syncope/core/persistence/jpa/relationship/ResourceTest.java
@@ -166,9 +166,7 @@ public class ResourceTest extends AbstractTest {
 // check connector
 connector = connInstanceDAO.find(100L);
 assertNotNull(connector);
-
 assertNotNull(connector.getResources());
-assertTrue(connector.getResources().contains(resource));
 
 assertNotNull(resource.getConnector());
 assertTrue(resource.getConnector().equals(connector));
@@ -187,7 +185,7 @@ public class ResourceTest extends AbstractTest {
 
 @Test
 public void delete() {
-ExternalResource resource = resourceDAO.find("ws-target-resource-2");
+ExternalResource resource = resourceDAO.find("resource-testdb");
 assertNotNull("find to delete did not work", resource);
 
 // -
@@ -195,8 +193,6 @@ public class ResourceTest extends AbstractTest {
 // -
 ConnInstance connector = resource.getConnector();
 assertNotNull(connector);
-
-Long connectorId = connector.getKey();
 // -
 
 // -
@@ -205,7 +201,7 @@ public class ResourceTest extends AbstractTest {
 List users = userDAO.findByResource(resource);
 assertNotNull(users);
 
-Set userIds = new HashSet();
+Set userIds = new HashSet<>();
 for (User user : users) {
 userIds.add(user.getKey());
 }
@@ -222,7 +218,7 @@ public class ResourceTest extends AbstractTest {
 resourceDAO.flush();
 
 // resource must be removed
-ExternalResource actual = resourceDAO.find("ws-target-resource-2");
+ExternalResource actual = resourceDAO.find("resource-test

[2/2] syncope git commit: Merge branch 'master' of https://git-wip-us.apache.org/repos/asf/syncope

2015-04-24 Thread ilgrosso
Merge branch 'master' of https://git-wip-us.apache.org/repos/asf/syncope


Project: http://git-wip-us.apache.org/repos/asf/syncope/repo
Commit: http://git-wip-us.apache.org/repos/asf/syncope/commit/072abae4
Tree: http://git-wip-us.apache.org/repos/asf/syncope/tree/072abae4
Diff: http://git-wip-us.apache.org/repos/asf/syncope/diff/072abae4

Branch: refs/heads/master
Commit: 072abae40552fc84be9079dd9a4a7ec2bda8e298
Parents: 65b4b98 84c79db
Author: Francesco Chicchiriccò 
Authored: Fri Apr 24 16:44:05 2015 +0200
Committer: Francesco Chicchiriccò 
Committed: Fri Apr 24 16:44:05 2015 +0200

--

--




[1/4] syncope git commit: Reverting Jackson upgrade: jackson-module-jaxb-annotations 2.4.6 not yet available

2015-04-27 Thread ilgrosso
Repository: syncope
Updated Branches:
  refs/heads/1_2_X a43b36d4b -> 6d658572c
  refs/heads/master 072abae40 -> 4f20b415c


Reverting Jackson upgrade: jackson-module-jaxb-annotations 2.4.6 not yet 
available


Project: http://git-wip-us.apache.org/repos/asf/syncope/repo
Commit: http://git-wip-us.apache.org/repos/asf/syncope/commit/a43b36d4
Tree: http://git-wip-us.apache.org/repos/asf/syncope/tree/a43b36d4
Diff: http://git-wip-us.apache.org/repos/asf/syncope/diff/a43b36d4

Branch: refs/heads/master
Commit: a43b36d4ba3955048232fd6c06a9448de009624d
Parents: 904e638
Author: Francesco Chicchiriccò 
Authored: Fri Apr 24 16:41:03 2015 +0200
Committer: Francesco Chicchiriccò 
Committed: Fri Apr 24 16:41:03 2015 +0200

--
 pom.xml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
--


http://git-wip-us.apache.org/repos/asf/syncope/blob/a43b36d4/pom.xml
--
diff --git a/pom.xml b/pom.xml
index 7192b64..b771181 100644
--- a/pom.xml
+++ b/pom.xml
@@ -346,7 +346,7 @@ under the License.
 3.0.4   
 4.0.9.RELEASE
 3.2.7.RELEASE
-2.4.6
+2.4.5
 1.7
 2.0
 2.2.1



[2/4] syncope git commit: Upgrading Jackson (this time for real)

2015-04-27 Thread ilgrosso
Upgrading Jackson (this time for real)


Project: http://git-wip-us.apache.org/repos/asf/syncope/repo
Commit: http://git-wip-us.apache.org/repos/asf/syncope/commit/6d658572
Tree: http://git-wip-us.apache.org/repos/asf/syncope/tree/6d658572
Diff: http://git-wip-us.apache.org/repos/asf/syncope/diff/6d658572

Branch: refs/heads/master
Commit: 6d658572c0724df3db62197c1d1858a20e028669
Parents: a43b36d
Author: Francesco Chicchiriccò 
Authored: Mon Apr 27 08:57:23 2015 +0200
Committer: Francesco Chicchiriccò 
Committed: Mon Apr 27 08:57:23 2015 +0200

--
 installer/src/main/resources/izpack/install.xml | 2 +-
 pom.xml | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/syncope/blob/6d658572/installer/src/main/resources/izpack/install.xml
--
diff --git a/installer/src/main/resources/izpack/install.xml 
b/installer/src/main/resources/izpack/install.xml
index fcd568b..c7795f8 100644
--- a/installer/src/main/resources/izpack/install.xml
+++ b/installer/src/main/resources/izpack/install.xml
@@ -132,7 +132,7 @@ under the License.
   
   
   
-  
+  
   
   
   

http://git-wip-us.apache.org/repos/asf/syncope/blob/6d658572/pom.xml
--
diff --git a/pom.xml b/pom.xml
index b771181..d6cc244 100644
--- a/pom.xml
+++ b/pom.xml
@@ -346,7 +346,7 @@ under the License.
 3.0.4   
 4.0.9.RELEASE
 3.2.7.RELEASE
-2.4.5
+2.4.6
 1.7
 2.0
 2.2.1
@@ -732,7 +732,7 @@ under the License.
   
 com.fasterxml.jackson.core
 jackson-databind
-${jackson.version}.1
+${jackson.version}
   
   
 com.fasterxml.jackson.core



[3/4] syncope git commit: Upgrading Jackson (this time for real)

2015-04-27 Thread ilgrosso
Upgrading Jackson (this time for real)


Project: http://git-wip-us.apache.org/repos/asf/syncope/repo
Commit: http://git-wip-us.apache.org/repos/asf/syncope/commit/6d658572
Tree: http://git-wip-us.apache.org/repos/asf/syncope/tree/6d658572
Diff: http://git-wip-us.apache.org/repos/asf/syncope/diff/6d658572

Branch: refs/heads/1_2_X
Commit: 6d658572c0724df3db62197c1d1858a20e028669
Parents: a43b36d
Author: Francesco Chicchiriccò 
Authored: Mon Apr 27 08:57:23 2015 +0200
Committer: Francesco Chicchiriccò 
Committed: Mon Apr 27 08:57:23 2015 +0200

--
 installer/src/main/resources/izpack/install.xml | 2 +-
 pom.xml | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/syncope/blob/6d658572/installer/src/main/resources/izpack/install.xml
--
diff --git a/installer/src/main/resources/izpack/install.xml 
b/installer/src/main/resources/izpack/install.xml
index fcd568b..c7795f8 100644
--- a/installer/src/main/resources/izpack/install.xml
+++ b/installer/src/main/resources/izpack/install.xml
@@ -132,7 +132,7 @@ under the License.
   
   
   
-  
+  
   
   
   

http://git-wip-us.apache.org/repos/asf/syncope/blob/6d658572/pom.xml
--
diff --git a/pom.xml b/pom.xml
index b771181..d6cc244 100644
--- a/pom.xml
+++ b/pom.xml
@@ -346,7 +346,7 @@ under the License.
 3.0.4   
 4.0.9.RELEASE
 3.2.7.RELEASE
-2.4.5
+2.4.6
 1.7
 2.0
 2.2.1
@@ -732,7 +732,7 @@ under the License.
   
 com.fasterxml.jackson.core
 jackson-databind
-${jackson.version}.1
+${jackson.version}
   
   
 com.fasterxml.jackson.core



[4/4] syncope git commit: Upgrading Jackson and Cargo

2015-04-27 Thread ilgrosso
Upgrading Jackson and Cargo


Project: http://git-wip-us.apache.org/repos/asf/syncope/repo
Commit: http://git-wip-us.apache.org/repos/asf/syncope/commit/4f20b415
Tree: http://git-wip-us.apache.org/repos/asf/syncope/tree/4f20b415
Diff: http://git-wip-us.apache.org/repos/asf/syncope/diff/4f20b415

Branch: refs/heads/master
Commit: 4f20b415c0e7bd9cf338b26c46975f3a349e7b9f
Parents: 072abae 6d65857
Author: Francesco Chicchiriccò 
Authored: Mon Apr 27 09:11:25 2015 +0200
Committer: Francesco Chicchiriccò 
Committed: Mon Apr 27 09:11:25 2015 +0200

--
 pom.xml | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/syncope/blob/4f20b415/pom.xml
--
diff --cc pom.xml
index 8607c9c,d6cc244..0c0eea5
--- a/pom.xml
+++ b/pom.xml
@@@ -326,51 -335,50 +326,51 @@@ under the License
  1.4.0
  1.2.2
  
 -2.1.1
 -3.3.2
 -1.10
 +3.0.5-SNAPSHOT
  
 -5.16.4
 +2.15.1 
  
- 2.5.2
 -1.8.5
++2.5.3
  
 -3.0.4  
 -4.0.9.RELEASE
 +4.1.6.RELEASE
  3.2.7.RELEASE
 -2.4.6
 -1.7
 -2.0
 -2.2.1
  
 -2.3.0
 +2.4.0
 +2.1
  5.1.3.Final
 -1.4
 -1.1.3
  
 -3.0.0-alpha-3
 +1.9.2
  
 -6.19.0
 +2.2.1
  
 -2.3.10
 +3.0.0-alpha-3
  
 -1.4.187
 +2.4.3
 +
 +5.16.4
  
 -2.2
  1.7.12
 +2.2
  3.3.2
  
 -4.11
 -2.45.0
 +2.4
 +1.10
 +2.1.1
 +3.4
 +4.0
 +1.1.3
  
 -1.5.7
 -
 -4.3.6
 +1.4.187
  
 -7.0.61
 +4.12
 +2.45.0
  
 -1.9.2
 - 
 +${project.build.directory}/test-classes
 +${project.build.directory}/bundles
 +file:${bundles.directory}/
 +${project.build.directory}/log
 +
${project.build.directory}/activiti-modeler
 +
  1.11.1
  1.10.4
  8.0
@@@ -1139,12 -1169,12 +1139,12 @@@
  
org.codehaus.cargo
cargo-maven2-plugin
--  1.4.13
++  1.4.14

  
 -  tomcat7x
 +  tomcat8x

 -
http://archive.apache.org/dist/tomcat/tomcat-7/v${tomcat.version}/bin/apache-tomcat-${tomcat.version}.zip
 +
http://archive.apache.org/dist/tomcat/tomcat-8/v${tomcat.version}/bin/apache-tomcat-${tomcat.version}.zip
  
${settings.localRepository}/org/codehaus/cargo/cargo-container-archives
  
${project.build.directory}/cargo/extract




[2/4] syncope git commit: [SYNCOPE-156] Using selected admin template for login and base (empty) dashboard

2015-04-27 Thread ilgrosso
http://git-wip-us.apache.org/repos/asf/syncope/blob/6cdae683/client/console/src/main/resources/META-INF/resources/css/AdminLTE_skins/_all-skins.css
--
diff --git 
a/client/console/src/main/resources/META-INF/resources/css/AdminLTE_skins/_all-skins.css
 
b/client/console/src/main/resources/META-INF/resources/css/AdminLTE_skins/_all-skins.css
new file mode 100644
index 000..0571afd
--- /dev/null
+++ 
b/client/console/src/main/resources/META-INF/resources/css/AdminLTE_skins/_all-skins.css
@@ -0,0 +1,876 @@
+/*
+ * Skin: Blue
+ * --
+ */
+.skin-blue .main-header .navbar {
+  background-color: #3c8dbc;
+}
+.skin-blue .main-header .navbar .nav > li > a {
+  color: #ff;
+}
+.skin-blue .main-header .navbar .nav > li > a:hover,
+.skin-blue .main-header .navbar .nav > li > a:active,
+.skin-blue .main-header .navbar .nav > li > a:focus,
+.skin-blue .main-header .navbar .nav .open > a,
+.skin-blue .main-header .navbar .nav .open > a:hover,
+.skin-blue .main-header .navbar .nav .open > a:focus {
+  background: rgba(0, 0, 0, 0.1);
+  color: #f6f6f6;
+}
+.skin-blue .main-header .navbar .navbar-custom-menu > .nav {
+  margin-right: 10px;
+}
+.skin-blue .main-header .navbar .sidebar-toggle {
+  color: #ff;
+}
+.skin-blue .main-header .navbar .sidebar-toggle:hover {
+  color: #f6f6f6;
+  background: rgba(0, 0, 0, 0.1);
+}
+.skin-blue .main-header .navbar .sidebar-toggle {
+  color: #fff;
+}
+.skin-blue .main-header .navbar .sidebar-toggle:hover {
+  background-color: #367fa9;
+}
+@media (max-width: 767px) {
+  .skin-blue .main-header .navbar .dropdown-menu li.divider {
+background-color: rgba(255, 255, 255, 0.1);
+  }
+  .skin-blue .main-header .navbar .dropdown-menu li a {
+color: #fff;
+  }
+  .skin-blue .main-header .navbar .dropdown-menu li a:hover {
+background: #367fa9;
+  }
+}
+.skin-blue .main-header .logo {
+  background-color: #367fa9;
+  color: #ff;
+  border-bottom: 0px solid transparent;
+}
+.skin-blue .main-header .logo > a {
+  color: #ff;
+}
+.skin-blue .main-header .logo:hover {
+  background: #357ca5;
+}
+.skin-blue .main-header li.user-header {
+  background-color: #3c8dbc;
+}
+.skin-blue .content-header {
+  background: transparent;
+}
+.skin-blue .user-panel > .info,
+.skin-blue .user-panel > .info > a {
+  color: #fff;
+}
+.skin-blue .sidebar-menu > li.header {
+  color: #4b646f;
+  background: #1a2226;
+}
+.skin-blue .sidebar-menu > li > a {
+  border-left: 3px solid transparent;
+  margin-right: 1px;
+}
+.skin-blue .sidebar-menu > li > a:hover,
+.skin-blue .sidebar-menu > li.active > a {
+  color: #ff;
+  background: #1e282c;
+  border-left-color: #3c8dbc;
+}
+.skin-blue .sidebar-menu > li > .treeview-menu {
+  margin: 0 1px;
+  background: #2c3b41;
+}
+.skin-blue .wrapper,
+.skin-blue .main-sidebar,
+.skin-blue .left-side {
+  background: #222d32;
+}
+.skin-blue .sidebar a {
+  color: #b8c7ce;
+}
+.skin-blue .sidebar a:hover {
+  text-decoration: none;
+}
+.skin-blue .treeview-menu > li > a {
+  color: #8aa4af;
+}
+.skin-blue .treeview-menu > li.active > a,
+.skin-blue .treeview-menu > li > a:hover {
+  color: #ff;
+}
+.skin-blue .sidebar-form {
+  border-radius: 3px;
+  border: 1px solid #374850;
+  margin: 10px 10px;
+}
+.skin-blue .sidebar-form input[type="text"],
+.skin-blue .sidebar-form .btn {
+  box-shadow: none;
+  background-color: #374850;
+  border: 1px solid transparent;
+  height: 35px;
+  -webkit-transition: all 0.3s cubic-bezier(0.32, 1.25, 0.375, 1.15);
+  -o-transition: all 0.3s cubic-bezier(0.32, 1.25, 0.375, 1.15);
+  transition: all 0.3s cubic-bezier(0.32, 1.25, 0.375, 1.15);
+}
+.skin-blue .sidebar-form input[type="text"] {
+  color: #666;
+  border-top-left-radius: 2px !important;
+  border-top-right-radius: 0 !important;
+  border-bottom-right-radius: 0 !important;
+  border-bottom-left-radius: 2px !important;
+}
+.skin-blue .sidebar-form input[type="text"]:focus,
+.skin-blue .sidebar-form input[type="text"]:focus + .input-group-btn .btn {
+  background-color: #fff;
+  color: #666;
+}
+.skin-blue .sidebar-form input[type="text"]:focus + .input-group-btn .btn {
+  border-left-color: #fff;
+}
+.skin-blue .sidebar-form .btn {
+  color: #999;
+  border-top-left-radius: 0 !important;
+  border-top-right-radius: 2px !important;
+  border-bottom-right-radius: 2px !important;
+  border-bottom-left-radius: 0 !important;
+}
+.skin-blue.layout-top-nav .main-header > .logo {
+  background-color: #3c8dbc;
+  color: #ff;
+  border-bottom: 0px solid transparent;
+}
+.skin-blue.layout-top-nav .main-header > .logo > a {
+  color: #ff;
+}
+.skin-blue.layout-top-nav .main-header > .logo:hover {
+  background: #3b8ab8;
+}
+/*
+ * Skin: Black
+ * ---
+ */
+/* skin-black navbar */
+.skin-black .main-header {
+  -webkit-box-shadow: 0px 1px 1px rgba(0, 0, 0, 0.05);
+  box-shadow: 0px 1px 1px rgba(0, 0, 0, 0.05);
+}
+.skin-black .main-header .navbar-toggle {
+  color: #33

[3/4] syncope git commit: [SYNCOPE-156] Using selected admin template for login and base (empty) dashboard

2015-04-27 Thread ilgrosso
http://git-wip-us.apache.org/repos/asf/syncope/blob/6cdae683/client/console/src/main/resources/META-INF/resources/css/AdminLTE.css
--
diff --git 
a/client/console/src/main/resources/META-INF/resources/css/AdminLTE.css 
b/client/console/src/main/resources/META-INF/resources/css/AdminLTE.css
new file mode 100644
index 000..06c5bc5
--- /dev/null
+++ b/client/console/src/main/resources/META-INF/resources/css/AdminLTE.css
@@ -0,0 +1,4066 @@
+@import 
url(//fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,600,700,300italic,400italic,600italic);
+/*!
+ *   AdminLTE v2.0.4
+ *   Author: Almsaeed Studio
+ *  Website: Almsaeed Studio 
+ *   License: Open source - MIT
+ *   Please visit http://opensource.org/licenses/MIT for more 
information
+!*/
+/*
+ * Core: Genral Layout Style
+ * -
+ */
+html,
+body {
+  min-height: 100%;
+}
+.layout-boxed html,
+.layout-boxed body {
+  height: 100%;
+}
+body {
+  -webkit-font-smoothing: antialiased;
+  -moz-osx-font-smoothing: grayscale;
+  font-family: 'Source Sans Pro', 'Helvetica Neue', Helvetica, Arial, 
sans-serif;
+  font-weight: 400;
+  overflow-x: hidden;
+  overflow-y: auto;
+}
+/* Layout */
+.wrapper {
+  min-height: 100%;
+  position: static;
+  overflow: hidden;
+}
+.wrapper:before,
+.wrapper:after {
+  content: " ";
+  display: table;
+}
+.wrapper:after {
+  clear: both;
+}
+.layout-boxed .wrapper {
+  max-width: 1250px;
+  margin: 0 auto;
+  min-height: 100%;
+  box-shadow: 0 0 8px rgba(0, 0, 0, 0.5);
+  position: relative;
+}
+.layout-boxed {
+  background: url('../img/boxed-bg.jpg') repeat fixed;
+}
+/*
+ * Content Wrapper - contins main content
+ * ```.right-side has been deprecated as of v2.0.0 in favor of 
.content-wrapper  ```
+ */
+.content-wrapper,
+.right-side,
+.main-footer {
+  -webkit-transition: -webkit-transform 0.3s cubic-bezier(0.32, 1.25, 0.375, 
1.15);
+  -moz-transition: -moz-transform 0.3s cubic-bezier(0.32, 1.25, 0.375, 1.15);
+  -o-transition: -o-transform 0.3s cubic-bezier(0.32, 1.25, 0.375, 1.15);
+  transition: transform 0.3s cubic-bezier(0.32, 1.25, 0.375, 1.15);
+  -webkit-transition: margin-left 0.3s cubic-bezier(0.32, 1.25, 0.375, 1.15);
+  -o-transition: margin-left 0.3s cubic-bezier(0.32, 1.25, 0.375, 1.15);
+  transition: margin-left 0.3s cubic-bezier(0.32, 1.25, 0.375, 1.15);
+  margin-left: 230px;
+  z-index: 820;
+}
+.layout-top-nav .content-wrapper,
+.layout-top-nav .right-side,
+.layout-top-nav .main-footer {
+  margin-left: 0;
+}
+@media (max-width: 767px) {
+  .content-wrapper,
+  .right-side,
+  .main-footer {
+margin-left: 0;
+  }
+}
+@media (min-width: 768px) {
+  .sidebar-collapse .content-wrapper,
+  .sidebar-collapse .right-side,
+  .sidebar-collapse .main-footer {
+margin-left: 0;
+  }
+}
+@media (max-width: 767px) {
+  .sidebar-open .content-wrapper,
+  .sidebar-open .right-side,
+  .sidebar-open .main-footer {
+-webkit-transform: translate(230px, 0);
+-ms-transform: translate(230px, 0);
+-o-transform: translate(230px, 0);
+transform: translate(230px, 0);
+  }
+}
+.content-wrapper,
+.right-side {
+  min-height: 100%;
+  background-color: #ecf0f5;
+  z-index: 800;
+}
+.main-footer {
+  background: #fff;
+  padding: 15px;
+  color: #444;
+  border-top: 1px solid #eee;
+}
+/* Fixed layout */
+.fixed .main-header,
+.fixed .main-sidebar,
+.fixed .left-side {
+  position: fixed;
+}
+.fixed .main-header {
+  top: 0;
+  right: 0;
+  left: 0;
+}
+.fixed .content-wrapper,
+.fixed .right-side {
+  padding-top: 50px;
+}
+@media (max-width: 767px) {
+  .fixed .content-wrapper,
+  .fixed .right-side {
+padding-top: 100px;
+  }
+}
+.fixed.layout-boxed .wrapper {
+  max-width: 100%;
+}
+/* Content */
+.content {
+  min-height: 250px;
+  padding: 15px;
+  margin-right: auto;
+  margin-left: auto;
+  padding-left: 15px;
+  padding-right: 15px;
+}
+/* H1 - H6 font */
+h1,
+h2,
+h3,
+h4,
+h5,
+h6,
+.h1,
+.h2,
+.h3,
+.h4,
+.h5,
+.h6 {
+  font-family: 'Source Sans Pro', sans-serif;
+}
+/* General Links */
+a {
+  color: #3c8dbc;
+}
+a:hover,
+a:active,
+a:focus {
+  outline: none;
+  text-decoration: none;
+  color: #72afd2;
+}
+/* Page Header */
+.page-header {
+  margin: 10px 0 20px 0;
+  font-size: 22px;
+}
+.page-header > small {
+  color: #666;
+  display: block;
+  margin-top: 5px;
+}
+/*
+ * Component: Main Header
+ * --
+ */
+.main-header {
+  position: relative;
+  max-height: 100px;
+  z-index: 1030;
+}
+.main-header > .navbar {
+  margin-bottom: 0;
+  margin-left: 230px;
+  border: none;
+  min-height: 50px;
+  border-radius: 0;
+}
+.layout-top-nav .main-header > .navbar {
+  margin-left: 0!important;
+}
+.main-header #navbar-search-input {
+  background: rgba(255, 255, 255, 0.2);
+  border-color: transparent;
+}
+.main-header #navbar-search-input:focus,
+.main-header #navbar-search-input:active {
+  border-color: rgba(0, 0, 0, 0.1) !importan

[4/4] syncope git commit: [SYNCOPE-156] Using selected admin template for login and base (empty) dashboard

2015-04-27 Thread ilgrosso
[SYNCOPE-156] Using selected admin template for login and base (empty) dashboard


Project: http://git-wip-us.apache.org/repos/asf/syncope/repo
Commit: http://git-wip-us.apache.org/repos/asf/syncope/commit/6cdae683
Tree: http://git-wip-us.apache.org/repos/asf/syncope/tree/6cdae683
Diff: http://git-wip-us.apache.org/repos/asf/syncope/diff/6cdae683

Branch: refs/heads/master
Commit: 6cdae68327a00e8cbc435aeef77a71f7da023756
Parents: 4f20b41
Author: Francesco Chicchiriccò 
Authored: Mon Apr 27 16:57:45 2015 +0200
Committer: Francesco Chicchiriccò 
Committed: Mon Apr 27 16:57:45 2015 +0200

--
 client/console/pom.xml  |   38 +-
 .../console/SyncopeConsoleApplication.java  |   24 +-
 .../client/console/SyncopeConsoleSession.java   |7 -
 .../client/console/pages/AbstractBasePage.java  |4 -
 .../syncope/client/console/pages/BasePage.java  |   35 +
 .../syncope/client/console/pages/Dashboard.java |   30 +
 .../syncope/client/console/pages/HomePage.java  |   34 -
 .../syncope/client/console/pages/Login.java |  160 +
 .../syncope/client/console/pages/Logout.java|   37 +
 .../syncope/client/console/pages/SignOut.java   |   35 -
 .../console/panels/NotificationPanel.java   |   34 +-
 .../META-INF/resources/css/AdminLTE.css | 4066 ++
 .../resources/css/AdminLTE_skins/_all-skins.css |  876 
 .../resources/css/AdminLTE_skins/skin-black.css |  165 +
 .../resources/css/AdminLTE_skins/skin-blue.css  |  151 +
 .../resources/css/AdminLTE_skins/skin-green.css |  140 +
 .../css/AdminLTE_skins/skin-purple.css  |  140 +
 .../resources/css/AdminLTE_skins/skin-red.css   |  140 +
 .../css/AdminLTE_skins/skin-yellow.css  |  140 +
 .../resources/META-INF/resources/css/login.css  |  124 +
 .../META-INF/resources/css/syncopeConsole.css   |   59 +
 .../resources/META-INF/resources/img/busy.gif   |  Bin 0 -> 2834 bytes
 .../META-INF/resources/img/favicon.png  |  Bin 0 -> 641 bytes
 .../META-INF/resources/img/logo-green.png   |  Bin 0 -> 12178 bytes
 .../resources/META-INF/resources/img/logo.png   |  Bin 0 -> 8913 bytes
 .../META-INF/resources/js/AdminLTE-app.min.js   |   13 +
 .../syncope/client/console/pages/BasePage.html  |  202 +-
 .../syncope/client/console/pages/Dashboard.html |   35 +
 .../syncope/client/console/pages/HomePage.html  |   33 -
 .../syncope/client/console/pages/Login.html |   67 +
 .../client/console/pages/Login.properties   |   20 +
 .../client/console/pages/Login_it.properties|   20 +
 .../client/console/pages/Login_pt_BR.properties |   20 +
 .../syncope/client/console/pages/SignOut.html   |   33 -
 deb/console/pom.xml |9 -
 deb/core/pom.xml|   13 -
 fit/console-reference/pom.xml   |9 -
 fit/core-reference/pom.xml  |   13 -
 pom.xml |   48 +-
 39 files changed, 6637 insertions(+), 337 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/syncope/blob/6cdae683/client/console/pom.xml
--
diff --git a/client/console/pom.xml b/client/console/pom.xml
index 35185f1..e95a728 100644
--- a/client/console/pom.xml
+++ b/client/console/pom.xml
@@ -65,19 +65,16 @@ under the License.
 
   org.apache.wicket
   wicket-spring
-  
-  
-
-  org.springframework
-  spring
-
-  
 
 
   org.apache.wicket
   wicket-auth-roles
 
-
+
+  com.googlecode.wicket-jquery-ui
+  wicket-jquery-ui
+
+  
 
   org.apache.logging.log4j
   log4j-core
@@ -88,6 +85,31 @@ under the License.
   syncope-client-lib
   ${project.version}
 
+
+
+  org.webjars
+  bootstrap
+
+
+  org.webjars
+  bootstrap-select
+
+
+  org.webjars
+  font-awesome
+
+
+  org.webjars
+  ionicons
+
+
+  org.webjars
+  highlightjs
+
+
+  org.webjars
+  codemirror
+
   
   
   

http://git-wip-us.apache.org/repos/asf/syncope/blob/6cdae683/client/console/src/main/java/org/apache/syncope/client/console/SyncopeConsoleApplication.java
--
diff --git 
a/client/console/src/main/java/org/apache/syncope/client/console/SyncopeConsoleApplication.java
 
b/client/console/src/main/java/org/apache/syncope/client/console/SyncopeConsoleApplication.java
index d3de8b2..b7b442f 100644
--- 
a/client/console/src/main/java/org/apache/syncope/client/console/SyncopeConsoleApplication.java
+++ 
b/client/console/src/main/java/org/apache/syncope/client/console/SyncopeConsoleApplication.java
@@ -18,28 +18,38 @@
  */
 package org.apache.syncope.client.console;
 
-import org.ap

[1/4] syncope git commit: [SYNCOPE-156] Using selected admin template for login and base (empty) dashboard

2015-04-27 Thread ilgrosso
Repository: syncope
Updated Branches:
  refs/heads/master 4f20b415c -> 6cdae6832


http://git-wip-us.apache.org/repos/asf/syncope/blob/6cdae683/client/console/src/main/resources/org/apache/syncope/client/console/pages/Login_pt_BR.properties
--
diff --git 
a/client/console/src/main/resources/org/apache/syncope/client/console/pages/Login_pt_BR.properties
 
b/client/console/src/main/resources/org/apache/syncope/client/console/pages/Login_pt_BR.properties
new file mode 100644
index 000..d83d4a8
--- /dev/null
+++ 
b/client/console/src/main/resources/org/apache/syncope/client/console/pages/Login_pt_BR.properties
@@ -0,0 +1,20 @@
+# 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.
+username=Usu\u00e1rio
+password=Senha
+submit=Login
+login-error=Usu\u00e1rio ou senha incorretos

http://git-wip-us.apache.org/repos/asf/syncope/blob/6cdae683/client/console/src/main/resources/org/apache/syncope/client/console/pages/SignOut.html
--
diff --git 
a/client/console/src/main/resources/org/apache/syncope/client/console/pages/SignOut.html
 
b/client/console/src/main/resources/org/apache/syncope/client/console/pages/SignOut.html
deleted file mode 100644
index 6ced70a..000
--- 
a/client/console/src/main/resources/org/apache/syncope/client/console/pages/SignOut.html
+++ /dev/null
@@ -1,33 +0,0 @@
-http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";>
-
-http://www.w3.org/1999/xhtml"; 
xmlns:wicket="http://wicket.apache.org";>
-  
-
-
-
-
-Apache Syncope
-  
-  
-Goodbye!
-
-Home
-  
-

http://git-wip-us.apache.org/repos/asf/syncope/blob/6cdae683/deb/console/pom.xml
--
diff --git a/deb/console/pom.xml b/deb/console/pom.xml
index a88f224..aba9210 100644
--- a/deb/console/pom.xml
+++ b/deb/console/pom.xml
@@ -74,15 +74,6 @@ under the License.
   org.slf4j
   jcl-over-slf4j
 
-
-
-  org.webjars
-  jquery-ui
-
-
-  org.webjars
-  codemirror
-
   
 
   

http://git-wip-us.apache.org/repos/asf/syncope/blob/6cdae683/deb/core/pom.xml
--
diff --git a/deb/core/pom.xml b/deb/core/pom.xml
index 45183a4..af667d7 100644
--- a/deb/core/pom.xml
+++ b/deb/core/pom.xml
@@ -101,19 +101,6 @@ under the License.
   org.slf4j
   jcl-over-slf4j
 
-
-
-  org.webjars
-  jquery
-
-
-  org.webjars
-  jquery-ui
-
-
-  org.webjars
-  highlightjs
-
   
 
   

http://git-wip-us.apache.org/repos/asf/syncope/blob/6cdae683/fit/console-reference/pom.xml
--
diff --git a/fit/console-reference/pom.xml b/fit/console-reference/pom.xml
index 88def12..f9710d4 100644
--- a/fit/console-reference/pom.xml
+++ b/fit/console-reference/pom.xml
@@ -92,15 +92,6 @@ under the License.
   jcl-over-slf4j
 
 
-
-  org.webjars
-  jquery-ui
-
-
-  org.webjars
-  codemirror
-
-
 
 
   junit

http://git-wip-us.apache.org/repos/asf/syncope/blob/6cdae683/fit/core-reference/pom.xml
--
diff --git a/fit/core-reference/pom.xml b/fit/core-reference/pom.xml
index 7f83b45..35b2a41 100644
--- a/fit/core-reference/pom.xml
+++ b/fit/core-reference/pom.xml
@@ -100,19 +100,6 @@ under the License.
   jcl-over-slf4j
 
 
-
-  org.webjars
-  jquery
-
-
-  org.webjars
-  jquery-ui
-
-
-  org.webjars
-  highlightjs
-
-
 
 
   org.apache.syncope.fit

http://git-wip-us.apache.org/repos/asf/syncope/blob/6cdae683/pom.xml
--
diff --git a/pom.xml b/pom.xml
index 0c0eea5..de74f3b 100644
--- a/pom.xml
+++ b/pom.xml
@@ -371,12 +371,15 @@ under the License.
 ${project.build.directory}/log
 
${project.build.directory}/activiti-modeler
 
-1.11.1
-1.10.4
-8.0
-3.23
+3.3.4
+1.6.3
+4.3.0
+2.0.1
+8.

syncope git commit: [SYNCOPE-494] Only Wicket 7 was missing

2015-04-28 Thread ilgrosso
Repository: syncope
Updated Branches:
  refs/heads/master 6cdae6832 -> 5da79f727


[SYNCOPE-494] Only Wicket 7 was missing


Project: http://git-wip-us.apache.org/repos/asf/syncope/repo
Commit: http://git-wip-us.apache.org/repos/asf/syncope/commit/5da79f72
Tree: http://git-wip-us.apache.org/repos/asf/syncope/tree/5da79f72
Diff: http://git-wip-us.apache.org/repos/asf/syncope/diff/5da79f72

Branch: refs/heads/master
Commit: 5da79f72756dd6ab23e05243263d98986929d965
Parents: 6cdae68
Author: Francesco Chicchiriccò 
Authored: Tue Apr 28 12:53:28 2015 +0200
Committer: Francesco Chicchiriccò 
Committed: Tue Apr 28 12:53:28 2015 +0200

--
 .../wicket/markup/html/form/NonI18nPalette.java |  5 ++-
 .../markup/html/form/SelectChoiceRenderer.java  | 19 +--
 .../markup/html/form/SelectableRecorder.java| 35 
 pom.xml |  4 +--
 4 files changed, 35 insertions(+), 28 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/syncope/blob/5da79f72/client/console/src/main/java/org/apache/syncope/client/console/wicket/markup/html/form/NonI18nPalette.java
--
diff --git 
a/client/console/src/main/java/org/apache/syncope/client/console/wicket/markup/html/form/NonI18nPalette.java
 
b/client/console/src/main/java/org/apache/syncope/client/console/wicket/markup/html/form/NonI18nPalette.java
index 55038da..3a923d5 100644
--- 
a/client/console/src/main/java/org/apache/syncope/client/console/wicket/markup/html/form/NonI18nPalette.java
+++ 
b/client/console/src/main/java/org/apache/syncope/client/console/wicket/markup/html/form/NonI18nPalette.java
@@ -19,7 +19,6 @@
 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;
@@ -29,9 +28,9 @@ public class NonI18nPalette extends Palette {
 private static final long serialVersionUID = 2659070187837941889L;
 
 public NonI18nPalette(final String id,
-final IModel> model,
+final IModel> model,
 final IModel> choicesModel,
-final IChoiceRenderer choiceRenderer, final int rows,
+final IChoiceRenderer choiceRenderer, final int rows,
 final boolean allowOrder, final boolean allowMoveAll) {
 
 super(id, model, choicesModel, choiceRenderer, rows, allowOrder, 
allowMoveAll);

http://git-wip-us.apache.org/repos/asf/syncope/blob/5da79f72/client/console/src/main/java/org/apache/syncope/client/console/wicket/markup/html/form/SelectChoiceRenderer.java
--
diff --git 
a/client/console/src/main/java/org/apache/syncope/client/console/wicket/markup/html/form/SelectChoiceRenderer.java
 
b/client/console/src/main/java/org/apache/syncope/client/console/wicket/markup/html/form/SelectChoiceRenderer.java
index 0c79e14..250ce19 100644
--- 
a/client/console/src/main/java/org/apache/syncope/client/console/wicket/markup/html/form/SelectChoiceRenderer.java
+++ 
b/client/console/src/main/java/org/apache/syncope/client/console/wicket/markup/html/form/SelectChoiceRenderer.java
@@ -18,14 +18,18 @@
  */
 package org.apache.syncope.client.console.wicket.markup.html.form;
 
+import java.util.List;
+import org.apache.commons.collections4.CollectionUtils;
+import org.apache.commons.collections4.Predicate;
 import org.apache.wicket.markup.html.form.IChoiceRenderer;
+import org.apache.wicket.model.IModel;
 
 public class SelectChoiceRenderer implements IChoiceRenderer {
 
 private static final long serialVersionUID = -3242441544405909243L;
 
 @Override
-public Object getDisplayValue(T obj) {
+public Object getDisplayValue(final T obj) {
 if (obj instanceof SelectOption) {
 return ((SelectOption) obj).getDisplayValue();
 } else {
@@ -34,7 +38,18 @@ public class SelectChoiceRenderer implements 
IChoiceRenderer {
 }
 
 @Override
-public String getIdValue(T obj, int i) {
+public String getIdValue(final T obj, final int i) {
 return obj.toString();
 }
+
+@Override
+public T getObject(final String id, final IModel> choices) {
+return CollectionUtils.find(choices.getObject(), new Predicate() {
+
+@Override
+public boolean evaluate(final T object) {
+return id.equals(getIdValue(object, 0));
+}
+});
+}
 }

http://git-wip-us.apache.org/repos/asf/syncope/blob/5da79f72/client/console/src/main/java/org/apache/syncope/client/console/wicket/markup/html/form/SelectableRecorder.java
--

syncope git commit: [SYNCOPE-653] Upgraded to 4.0.1.RELEASE

2015-04-28 Thread ilgrosso
Repository: syncope
Updated Branches:
  refs/heads/master 5da79f727 -> 5f61d8482


[SYNCOPE-653] Upgraded to 4.0.1.RELEASE


Project: http://git-wip-us.apache.org/repos/asf/syncope/repo
Commit: http://git-wip-us.apache.org/repos/asf/syncope/commit/5f61d848
Tree: http://git-wip-us.apache.org/repos/asf/syncope/tree/5f61d848
Diff: http://git-wip-us.apache.org/repos/asf/syncope/diff/5f61d848

Branch: refs/heads/master
Commit: 5f61d8482322105301ed5561fe64a855602fc214
Parents: 5da79f7
Author: Francesco Chicchiriccò 
Authored: Tue Apr 28 14:06:29 2015 +0200
Committer: Francesco Chicchiriccò 
Committed: Tue Apr 28 14:06:29 2015 +0200

--
 core/misc/pom.xml   | 14 -
 .../spring/DefaultRolesPrefixPostProcessor.java | 66 
 .../misc/src/main/resources/securityContext.xml | 12 +++-
 pom.xml |  2 +-
 4 files changed, 88 insertions(+), 6 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/syncope/blob/5f61d848/core/misc/pom.xml
--
diff --git a/core/misc/pom.xml b/core/misc/pom.xml
index 96ae2d9..449927e 100644
--- a/core/misc/pom.xml
+++ b/core/misc/pom.xml
@@ -37,7 +37,13 @@ under the License.
 ${basedir}/../..
   
 
-  
+  
+ 
+  javax.servlet 
+  javax.servlet-api 
+  provided
+
+
 
   org.apache.commons
   commons-lang3
@@ -90,7 +96,11 @@ under the License.
   org.springframework.security
   spring-security-core
 
-
+
+  org.springframework.security
+  spring-security-web
+
+
 
   org.apache.syncope.core
   syncope-core-provisioning-api

http://git-wip-us.apache.org/repos/asf/syncope/blob/5f61d848/core/misc/src/main/java/org/apache/syncope/core/misc/spring/DefaultRolesPrefixPostProcessor.java
--
diff --git 
a/core/misc/src/main/java/org/apache/syncope/core/misc/spring/DefaultRolesPrefixPostProcessor.java
 
b/core/misc/src/main/java/org/apache/syncope/core/misc/spring/DefaultRolesPrefixPostProcessor.java
new file mode 100644
index 000..15c6259
--- /dev/null
+++ 
b/core/misc/src/main/java/org/apache/syncope/core/misc/spring/DefaultRolesPrefixPostProcessor.java
@@ -0,0 +1,66 @@
+/*
+ * 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.core.misc.spring;
+
+import javax.servlet.ServletException;
+import org.apache.commons.lang3.StringUtils;
+import org.springframework.beans.BeansException;
+import org.springframework.beans.FatalBeanException;
+import org.springframework.beans.factory.config.BeanPostProcessor;
+import org.springframework.core.PriorityOrdered;
+import 
org.springframework.security.access.expression.method.DefaultMethodSecurityExpressionHandler;
+import 
org.springframework.security.web.access.expression.DefaultWebSecurityExpressionHandler;
+import 
org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter;
+
+/**
+ * Removes the limitation of having Spring security roles to be prefixed with 
'ROLE_'.
+ */
+public class DefaultRolesPrefixPostProcessor implements BeanPostProcessor, 
PriorityOrdered {
+
+@Override
+public Object postProcessAfterInitialization(final Object bean, final 
String beanName) throws BeansException {
+if (bean instanceof DefaultMethodSecurityExpressionHandler) {
+((DefaultMethodSecurityExpressionHandler) 
bean).setDefaultRolePrefix(null);
+}
+if (bean instanceof DefaultWebSecurityExpressionHandler) {
+((DefaultWebSecurityExpressionHandler) 
bean).setDefaultRolePrefix(null);
+}
+if (bean instanceof SecurityContextHolderAwareRequestFilter) {
+SecurityContextHolderAwareRequestFilter filter = 
(SecurityContextHolderAwareRequestFilter) bean;
+filter.setRolePrefix(StringUtils.EMPTY);
+try {
+filter.afterPropertiesSet();
+} catch (ServletException e) {
+throw new FatalBeanExc

[4/5] syncope git commit: Updating parent POM

2015-04-28 Thread ilgrosso
Updating parent POM


Project: http://git-wip-us.apache.org/repos/asf/syncope/repo
Commit: http://git-wip-us.apache.org/repos/asf/syncope/commit/fa3223fa
Tree: http://git-wip-us.apache.org/repos/asf/syncope/tree/fa3223fa
Diff: http://git-wip-us.apache.org/repos/asf/syncope/diff/fa3223fa

Branch: refs/heads/1_2_X
Commit: fa3223faf3038f5346377025b125728ca11f0d3f
Parents: a59bc42
Author: Francesco Chicchiriccò 
Authored: Tue Apr 28 16:00:02 2015 +0200
Committer: Francesco Chicchiriccò 
Committed: Tue Apr 28 16:00:02 2015 +0200

--
 pom.xml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
--


http://git-wip-us.apache.org/repos/asf/syncope/blob/fa3223fa/pom.xml
--
diff --git a/pom.xml b/pom.xml
index 6c1f396..1276c86 100644
--- a/pom.xml
+++ b/pom.xml
@@ -32,7 +32,7 @@ under the License.
   
 org.apache
 apache
-16
+17
 
   
 



[3/5] syncope git commit: Updating parent POM

2015-04-28 Thread ilgrosso
Updating parent POM


Project: http://git-wip-us.apache.org/repos/asf/syncope/repo
Commit: http://git-wip-us.apache.org/repos/asf/syncope/commit/fa3223fa
Tree: http://git-wip-us.apache.org/repos/asf/syncope/tree/fa3223fa
Diff: http://git-wip-us.apache.org/repos/asf/syncope/diff/fa3223fa

Branch: refs/heads/master
Commit: fa3223faf3038f5346377025b125728ca11f0d3f
Parents: a59bc42
Author: Francesco Chicchiriccò 
Authored: Tue Apr 28 16:00:02 2015 +0200
Committer: Francesco Chicchiriccò 
Committed: Tue Apr 28 16:00:02 2015 +0200

--
 pom.xml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
--


http://git-wip-us.apache.org/repos/asf/syncope/blob/fa3223fa/pom.xml
--
diff --git a/pom.xml b/pom.xml
index 6c1f396..1276c86 100644
--- a/pom.xml
+++ b/pom.xml
@@ -32,7 +32,7 @@ under the License.
   
 org.apache
 apache
-16
+17
 
   
 



[5/5] syncope git commit: Merge from 1_2_X

2015-04-28 Thread ilgrosso
Merge from 1_2_X


Project: http://git-wip-us.apache.org/repos/asf/syncope/repo
Commit: http://git-wip-us.apache.org/repos/asf/syncope/commit/d289e639
Tree: http://git-wip-us.apache.org/repos/asf/syncope/tree/d289e639
Diff: http://git-wip-us.apache.org/repos/asf/syncope/diff/d289e639

Branch: refs/heads/master
Commit: d289e6397faa9b7d5c2ee54ef40248f81454cb67
Parents: 5f61d84 fa3223f
Author: Francesco Chicchiriccò 
Authored: Tue Apr 28 16:12:30 2015 +0200
Committer: Francesco Chicchiriccò 
Committed: Tue Apr 28 16:12:30 2015 +0200

--
 pom.xml | 12 +---
 1 file changed, 9 insertions(+), 3 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/syncope/blob/d289e639/pom.xml
--
diff --cc pom.xml
index cd006d5,1276c86..fee6498
--- a/pom.xml
+++ b/pom.xml
@@@ -995,11 -968,12 +995,11 @@@ under the License
  test


 -org.seleniumhq.selenium
 -selenium-java
 -${selenium.version}
 +com.icegreen
 +greenmail
- 1.4.0
++1.4.1
  test

 -  

  org.springframework
  spring-test
@@@ -1235,20 -1242,98 +1235,26 @@@
  ${targetJdk}

  
 +
 +
 +  org.vafer
 +  jdeb
 +  1.4
 +
 +
  
org.apache.maven.plugins
 -  maven-assembly-plugin
 -  2.5.4
 +  maven-shade-plugin
 +  2.3
  
 +
  
 -  org.eclipse.m2e
 -  lifecycle-mapping
 -  1.0.0
 -  
 -
 -  
 -
 -  
 -org.apache.maven.plugins
 -maven-antrun-plugin
 -[1.7.0,)
 -
 -  run
 -
 -  
 -  
 -
 -  false
 -
 -  
 -
 -
 -  
 -org.apache.maven.plugins
 -maven-dependency-plugin
 -[2.0.0,)
 -
 -  copy
 -
 -  
 -  
 -
 -  false
 -
 -  
 -
 -
 -  
 -org.codehaus.gmaven
 -gmaven-plugin
 -[1.5.0,)
 -
 -  execute
 -
 -  
 -  
 -
 -  false
 -
 -  
 -
 -
 -  
 -org.apache.openjpa
 -openjpa-maven-plugin
 -[2.0.0,)
 -
 -  enhance
 -
 -  
 -  
 -
 -  false
 -
 -  
 -
 -
 -  
 -org.codehaus.mojo
 -xml-maven-plugin
 -[1.0,)
 -
 -  transform
 -
 -  
 -  
 -
 -  false
 -
 -  
 -
 -  
 -
 -  
++  org.apache.maven.plugins
++  maven-assembly-plugin
++  2.5.4
+ 
++
+ 
org.codehaus.izpack
izpack-maven-plugin
${izpack.version}



[2/5] syncope git commit: Upgrading greenmail and maven-assembly-plugin

2015-04-28 Thread ilgrosso
Upgrading greenmail and maven-assembly-plugin


Project: http://git-wip-us.apache.org/repos/asf/syncope/repo
Commit: http://git-wip-us.apache.org/repos/asf/syncope/commit/a59bc424
Tree: http://git-wip-us.apache.org/repos/asf/syncope/tree/a59bc424
Diff: http://git-wip-us.apache.org/repos/asf/syncope/diff/a59bc424

Branch: refs/heads/master
Commit: a59bc424dabedca236238178a475064dd0db03c6
Parents: 6d65857
Author: Francesco Chicchiriccò 
Authored: Tue Apr 28 15:38:26 2015 +0200
Committer: Francesco Chicchiriccò 
Committed: Tue Apr 28 15:38:26 2015 +0200

--
 pom.xml | 8 
 1 file changed, 4 insertions(+), 4 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/syncope/blob/a59bc424/pom.xml
--
diff --git a/pom.xml b/pom.xml
index d6cc244..6c1f396 100644
--- a/pom.xml
+++ b/pom.xml
@@ -990,7 +990,7 @@ under the License.
   
 com.icegreen
 greenmail
-1.4.0
+1.4.1
 test
   
   
@@ -1169,7 +1169,7 @@ under the License.
 
   org.codehaus.cargo
   cargo-maven2-plugin
-  1.4.13
+  1.4.14
   
 
   tomcat7x
@@ -1245,7 +1245,7 @@ under the License.
 
   org.apache.maven.plugins
   maven-assembly-plugin
-  2.5.3
+  2.5.4
 
 
   org.eclipse.m2e
@@ -1385,7 +1385,7 @@ under the License.
   execute
 
 
-  
+  
 project.properties['licenseUrl'] = 
project.parent.licenses[0].url
   
 



[1/5] syncope git commit: Upgrading greenmail and maven-assembly-plugin

2015-04-28 Thread ilgrosso
Repository: syncope
Updated Branches:
  refs/heads/1_2_X 6d658572c -> fa3223faf
  refs/heads/master 5f61d8482 -> d289e6397


Upgrading greenmail and maven-assembly-plugin


Project: http://git-wip-us.apache.org/repos/asf/syncope/repo
Commit: http://git-wip-us.apache.org/repos/asf/syncope/commit/a59bc424
Tree: http://git-wip-us.apache.org/repos/asf/syncope/tree/a59bc424
Diff: http://git-wip-us.apache.org/repos/asf/syncope/diff/a59bc424

Branch: refs/heads/1_2_X
Commit: a59bc424dabedca236238178a475064dd0db03c6
Parents: 6d65857
Author: Francesco Chicchiriccò 
Authored: Tue Apr 28 15:38:26 2015 +0200
Committer: Francesco Chicchiriccò 
Committed: Tue Apr 28 15:38:26 2015 +0200

--
 pom.xml | 8 
 1 file changed, 4 insertions(+), 4 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/syncope/blob/a59bc424/pom.xml
--
diff --git a/pom.xml b/pom.xml
index d6cc244..6c1f396 100644
--- a/pom.xml
+++ b/pom.xml
@@ -990,7 +990,7 @@ under the License.
   
 com.icegreen
 greenmail
-1.4.0
+1.4.1
 test
   
   
@@ -1169,7 +1169,7 @@ under the License.
 
   org.codehaus.cargo
   cargo-maven2-plugin
-  1.4.13
+  1.4.14
   
 
   tomcat7x
@@ -1245,7 +1245,7 @@ under the License.
 
   org.apache.maven.plugins
   maven-assembly-plugin
-  2.5.3
+  2.5.4
 
 
   org.eclipse.m2e
@@ -1385,7 +1385,7 @@ under the License.
   execute
 
 
-  
+  
 project.properties['licenseUrl'] = 
project.parent.licenses[0].url
   
 



[8/8] syncope git commit: Merge branch '1_2_X'

2015-04-30 Thread ilgrosso
Merge branch '1_2_X'

Conflicts:

core/src/main/java/org/apache/syncope/core/sync/impl/AbstractSyncJob.java


Project: http://git-wip-us.apache.org/repos/asf/syncope/repo
Commit: http://git-wip-us.apache.org/repos/asf/syncope/commit/ace188b4
Tree: http://git-wip-us.apache.org/repos/asf/syncope/tree/ace188b4
Diff: http://git-wip-us.apache.org/repos/asf/syncope/diff/ace188b4

Branch: refs/heads/master
Commit: ace188b402ac8f16ca2830b09e7d4f46e32be57e
Parents: 1a133b7 28275f8
Author: Francesco Chicchiriccò 
Authored: Thu Apr 30 12:54:13 2015 +0200
Committer: Francesco Chicchiriccò 
Committed: Thu Apr 30 12:54:13 2015 +0200

--

--




[3/8] syncope git commit: [SYNCOPE-663] Throwing new IgnoreException from SyncActions' or PushActions's methods will make the related user / role to get ignored by the sync / push process

2015-04-30 Thread ilgrosso
http://git-wip-us.apache.org/repos/asf/syncope/blob/1a133b77/fit/core-reference/src/test/java/org/apache/syncope/fit/core/reference/SyncTaskITCase.java
--
diff --cc 
fit/core-reference/src/test/java/org/apache/syncope/fit/core/reference/SyncTaskITCase.java
index 7fd817a,000..27353f0
mode 100644,00..100644
--- 
a/fit/core-reference/src/test/java/org/apache/syncope/fit/core/reference/SyncTaskITCase.java
+++ 
b/fit/core-reference/src/test/java/org/apache/syncope/fit/core/reference/SyncTaskITCase.java
@@@ -1,720 -1,0 +1,728 @@@
 +/*
 + * 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.fit.core.reference;
 +
 +import static org.junit.Assert.assertEquals;
 +import static org.junit.Assert.assertFalse;
 +import static org.junit.Assert.assertNotNull;
 +import static org.junit.Assert.assertNull;
 +import static org.junit.Assert.assertTrue;
 +import static org.junit.Assert.fail;
 +
 +import java.util.HashSet;
 +import java.util.List;
 +import java.util.Set;
 +import javax.ws.rs.core.Response;
 +import org.apache.commons.collections4.CollectionUtils;
 +import org.apache.commons.collections4.Predicate;
 +import org.apache.syncope.client.lib.SyncopeClient;
++import org.apache.syncope.common.lib.SyncopeClientException;
 +import org.apache.syncope.common.lib.SyncopeConstants;
 +import org.apache.syncope.common.lib.mod.StatusMod;
 +import org.apache.syncope.common.lib.mod.UserMod;
 +import org.apache.syncope.common.lib.to.AbstractTaskTO;
 +import org.apache.syncope.common.lib.to.AttrTO;
 +import org.apache.syncope.common.lib.to.ConnInstanceTO;
 +import org.apache.syncope.common.lib.to.ConnObjectTO;
 +import org.apache.syncope.common.lib.to.MembershipTO;
 +import org.apache.syncope.common.lib.to.PagedResult;
 +import org.apache.syncope.common.lib.to.ResourceTO;
 +import org.apache.syncope.common.lib.to.GroupTO;
 +import org.apache.syncope.common.lib.to.SyncPolicyTO;
 +import org.apache.syncope.common.lib.to.SyncTaskTO;
 +import org.apache.syncope.common.lib.to.TaskExecTO;
 +import org.apache.syncope.common.lib.to.UserTO;
 +import org.apache.syncope.common.lib.types.CipherAlgorithm;
 +import org.apache.syncope.common.lib.types.ConnConfProperty;
 +import org.apache.syncope.common.lib.types.PropagationTaskExecStatus;
 +import org.apache.syncope.common.lib.types.ResourceDeassociationActionType;
 +import org.apache.syncope.common.lib.types.SubjectType;
 +import org.apache.syncope.common.lib.types.TaskType;
 +import org.apache.syncope.common.lib.wrap.ResourceName;
 +import org.apache.syncope.common.rest.api.CollectionWrapper;
 +import org.apache.syncope.common.rest.api.service.TaskService;
 +import org.apache.syncope.core.misc.security.Encryptor;
 +import org.apache.syncope.core.provisioning.java.sync.DBPasswordSyncActions;
 +import org.apache.syncope.core.provisioning.java.sync.LDAPPasswordSyncActions;
 +import org.identityconnectors.framework.common.objects.Name;
 +import org.junit.BeforeClass;
 +import org.junit.FixMethodOrder;
 +import org.junit.Test;
 +import org.junit.runners.MethodSorters;
 +import org.springframework.dao.EmptyResultDataAccessException;
 +import org.springframework.jdbc.core.JdbcTemplate;
 +
 +@FixMethodOrder(MethodSorters.JVM)
 +public class SyncTaskITCase extends AbstractTaskITCase {
 +
 +@BeforeClass
 +public static void testSyncActionsSetup() {
 +SyncTaskTO syncTask = taskService.read(SYNC_TASK_ID);
 +syncTask.getActionsClassNames().add(TestSyncActions.class.getName());
 +taskService.update(SYNC_TASK_ID, syncTask);
 +}
 +
 +@Test
 +public void getSyncActionsClasses() {
 +List actions = syncopeService.info().getSyncActions();
 +assertNotNull(actions);
 +assertFalse(actions.isEmpty());
 +}
 +
 +@Test
 +public void list() {
 +PagedResult tasks =
 +taskService.list(TaskType.SYNCHRONIZATION, 
SyncopeClient.getListQueryBuilder().build());
 +assertFalse(tasks.getResult().isEmpty());
 +for (AbstractTaskTO task : tasks.getResult()) {
 +if (!(task instanceof SyncTaskTO)) {
 +fail();
 +

[4/8] syncope git commit: [SYNCOPE-663] Throwing new IgnoreException from SyncActions' or PushActions's methods will make the related user / role to get ignored by the sync / push process

2015-04-30 Thread ilgrosso
http://git-wip-us.apache.org/repos/asf/syncope/blob/1a133b77/core/provisioning-java/src/main/java/org/apache/syncope/core/provisioning/java/sync/AbstractSyncResultHandler.java
--
diff --cc 
core/provisioning-java/src/main/java/org/apache/syncope/core/provisioning/java/sync/AbstractSyncResultHandler.java
index 5f006d0,000..8241937
mode 100644,00..100644
--- 
a/core/provisioning-java/src/main/java/org/apache/syncope/core/provisioning/java/sync/AbstractSyncResultHandler.java
+++ 
b/core/provisioning-java/src/main/java/org/apache/syncope/core/provisioning/java/sync/AbstractSyncResultHandler.java
@@@ -1,651 -1,0 +1,659 @@@
 +/*
 + * 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.core.provisioning.java.sync;
 +
 +import java.util.ArrayList;
 +import java.util.Collections;
 +import java.util.List;
 +import org.apache.commons.lang3.exception.ExceptionUtils;
 +import org.apache.syncope.common.lib.mod.AbstractSubjectMod;
 +import org.apache.syncope.common.lib.to.AbstractSubjectTO;
 +import org.apache.syncope.common.lib.types.AuditElements;
 +import org.apache.syncope.common.lib.types.AuditElements.Result;
 +import org.apache.syncope.common.lib.types.MatchingRule;
 +import org.apache.syncope.common.lib.types.ResourceOperation;
 +import org.apache.syncope.common.lib.types.UnmatchingRule;
 +import org.apache.syncope.core.persistence.api.dao.NotFoundException;
 +import org.apache.syncope.core.persistence.api.entity.AttributableUtils;
 +import org.apache.syncope.core.persistence.api.entity.task.SyncTask;
 +import org.apache.syncope.core.provisioning.api.AttributableTransformer;
 +import 
org.apache.syncope.core.provisioning.api.propagation.PropagationException;
 +import org.apache.syncope.core.provisioning.api.sync.SyncActions;
 +import org.apache.syncope.core.misc.security.UnauthorizedException;
++import org.apache.syncope.core.provisioning.api.sync.IgnoreProvisionException;
 +import org.apache.syncope.core.provisioning.api.sync.ProvisioningResult;
 +import org.apache.syncope.core.provisioning.api.sync.SyncopeSyncResultHandler;
 +import org.identityconnectors.framework.common.objects.SyncDelta;
 +import org.identityconnectors.framework.common.objects.SyncDeltaType;
 +import org.quartz.JobExecutionException;
 +import org.springframework.beans.factory.annotation.Autowired;
 +
 +public abstract class AbstractSyncResultHandler extends 
AbstractSyncopeResultHandler
 +implements SyncopeSyncResultHandler {
 +
 +@Autowired
 +protected SyncUtils syncUtilities;
 +
 +@Autowired
 +protected AttributableTransformer attrTransformer;
 +
- protected abstract AttributableUtils getAttributableUtils();
- 
 +protected abstract String getName(AbstractSubjectTO subjectTO);
 +
- protected abstract AbstractSubjectTO getSubjectTO(long key);
- 
 +protected abstract AbstractSubjectMod getSubjectMod(AbstractSubjectTO 
subjectTO, SyncDelta delta);
 +
- protected abstract AbstractSubjectTO create(
++protected abstract AbstractSubjectTO doCreate(
 +AbstractSubjectTO subjectTO, SyncDelta _delta, ProvisioningResult 
result);
 +
- protected abstract AbstractSubjectTO link(AbstractSubjectTO before, 
ProvisioningResult result, boolean unlink);
++protected abstract AbstractSubjectTO doLink(AbstractSubjectTO before, 
ProvisioningResult result, boolean unlink);
 +
- protected abstract AbstractSubjectTO update(AbstractSubjectTO before, 
AbstractSubjectMod subjectMod,
++protected abstract AbstractSubjectTO doUpdate(AbstractSubjectTO before, 
AbstractSubjectMod subjectMod,
 +SyncDelta delta, ProvisioningResult result);
 +
- protected abstract void deprovision(Long key, boolean unlink);
++protected abstract void doDeprovision(Long key, boolean unlink);
 +
- protected abstract void delete(Long key);
++protected abstract void doDelete(Long key);
 +
 +@Override
 +public boolean handle(final SyncDelta delta) {
 +try {
 +doHandle(delta);
 +return true;
++} catch (IgnoreProvisionException e) {
++ProvisioningResult result = new Provi

[7/8] syncope git commit: [SYNCOPE-663] Fix typo

2015-04-30 Thread ilgrosso
[SYNCOPE-663] Fix typo


Project: http://git-wip-us.apache.org/repos/asf/syncope/repo
Commit: http://git-wip-us.apache.org/repos/asf/syncope/commit/28275f86
Tree: http://git-wip-us.apache.org/repos/asf/syncope/tree/28275f86
Diff: http://git-wip-us.apache.org/repos/asf/syncope/diff/28275f86

Branch: refs/heads/1_2_X
Commit: 28275f869aa78104cadc4813bac0fdb8f701ecc4
Parents: 857f02a
Author: Francesco Chicchiriccò 
Authored: Thu Apr 30 12:53:45 2015 +0200
Committer: Francesco Chicchiriccò 
Committed: Thu Apr 30 12:53:45 2015 +0200

--
 .../java/org/apache/syncope/core/sync/impl/AbstractSyncJob.java  | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/syncope/blob/28275f86/core/src/main/java/org/apache/syncope/core/sync/impl/AbstractSyncJob.java
--
diff --git 
a/core/src/main/java/org/apache/syncope/core/sync/impl/AbstractSyncJob.java 
b/core/src/main/java/org/apache/syncope/core/sync/impl/AbstractSyncJob.java
index e174971..d66fa83 100644
--- a/core/src/main/java/org/apache/syncope/core/sync/impl/AbstractSyncJob.java
+++ b/core/src/main/java/org/apache/syncope/core/sync/impl/AbstractSyncJob.java
@@ -313,9 +313,9 @@ public abstract class AbstractSyncJob

[6/8] syncope git commit: [SYNCOPE-663] Fix typo

2015-04-30 Thread ilgrosso
[SYNCOPE-663] Fix typo


Project: http://git-wip-us.apache.org/repos/asf/syncope/repo
Commit: http://git-wip-us.apache.org/repos/asf/syncope/commit/28275f86
Tree: http://git-wip-us.apache.org/repos/asf/syncope/tree/28275f86
Diff: http://git-wip-us.apache.org/repos/asf/syncope/diff/28275f86

Branch: refs/heads/master
Commit: 28275f869aa78104cadc4813bac0fdb8f701ecc4
Parents: 857f02a
Author: Francesco Chicchiriccò 
Authored: Thu Apr 30 12:53:45 2015 +0200
Committer: Francesco Chicchiriccò 
Committed: Thu Apr 30 12:53:45 2015 +0200

--
 .../java/org/apache/syncope/core/sync/impl/AbstractSyncJob.java  | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/syncope/blob/28275f86/core/src/main/java/org/apache/syncope/core/sync/impl/AbstractSyncJob.java
--
diff --git 
a/core/src/main/java/org/apache/syncope/core/sync/impl/AbstractSyncJob.java 
b/core/src/main/java/org/apache/syncope/core/sync/impl/AbstractSyncJob.java
index e174971..d66fa83 100644
--- a/core/src/main/java/org/apache/syncope/core/sync/impl/AbstractSyncJob.java
+++ b/core/src/main/java/org/apache/syncope/core/sync/impl/AbstractSyncJob.java
@@ -313,9 +313,9 @@ public abstract class AbstractSyncJob

[1/8] syncope git commit: [SYNCOPE-663] Throwing new IgnoreException from SyncActions' or PushActions's methods will make the related user / role to get ignored by the sync / push process

2015-04-30 Thread ilgrosso
Repository: syncope
Updated Branches:
  refs/heads/1_2_X fa3223faf -> 28275f869
  refs/heads/master d289e6397 -> ace188b40


[SYNCOPE-663] Throwing new IgnoreException from SyncActions' or PushActions's 
methods will make the related user / role to get ignored by the sync / push 
process


Project: http://git-wip-us.apache.org/repos/asf/syncope/repo
Commit: http://git-wip-us.apache.org/repos/asf/syncope/commit/857f02a0
Tree: http://git-wip-us.apache.org/repos/asf/syncope/tree/857f02a0
Diff: http://git-wip-us.apache.org/repos/asf/syncope/diff/857f02a0

Branch: refs/heads/1_2_X
Commit: 857f02a0cbc0d6662ac98bcf3e7934557a761212
Parents: fa3223f
Author: Francesco Chicchiriccò 
Authored: Thu Apr 30 12:11:50 2015 +0200
Committer: Francesco Chicchiriccò 
Committed: Thu Apr 30 12:11:50 2015 +0200

--
 .../pages/SecurityQuestionModalPage.java|  2 -
 .../syncope/console/EditProfileTestITCase.java  | 13 ++--
 .../core/rest/controller/RoleController.java|  2 -
 .../core/sync/IgnoreProvisionException.java | 29 +
 .../apache/syncope/core/sync/PushActions.java   |  5 +-
 .../apache/syncope/core/sync/SyncActions.java   | 64 +++-
 .../apache/syncope/core/sync/SyncResult.java|  8 ++-
 .../impl/AbstractSubjectPushResultHandler.java  | 33 +-
 .../impl/AbstractSubjectSyncResultHandler.java  | 45 --
 .../syncope/core/sync/impl/AbstractSyncJob.java | 57 +++--
 .../sync/impl/AbstractSyncopeResultHandler.java |  9 ++-
 .../core/sync/impl/RoleSyncResultHandler.java   | 11 ++--
 .../core/sync/impl/UserSyncResultHandler.java   | 12 ++--
 .../core/rest/AuthenticationTestITCase.java |  1 -
 .../syncope/core/rest/ResourceTestITCase.java   |  5 +-
 .../syncope/core/rest/TaskTestITCase.java   | 13 +++-
 .../syncope/core/sync/TestSyncActions.java  | 16 -
 17 files changed, 206 insertions(+), 119 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/syncope/blob/857f02a0/console/src/main/java/org/apache/syncope/console/pages/SecurityQuestionModalPage.java
--
diff --git 
a/console/src/main/java/org/apache/syncope/console/pages/SecurityQuestionModalPage.java
 
b/console/src/main/java/org/apache/syncope/console/pages/SecurityQuestionModalPage.java
index c9cd4c7..a6e5442 100644
--- 
a/console/src/main/java/org/apache/syncope/console/pages/SecurityQuestionModalPage.java
+++ 
b/console/src/main/java/org/apache/syncope/console/pages/SecurityQuestionModalPage.java
@@ -18,8 +18,6 @@
  */
 package org.apache.syncope.console.pages;
 
-import static org.apache.syncope.console.pages.AbstractBasePage.FORM;
-
 import org.apache.syncope.common.SyncopeClientException;
 import org.apache.syncope.common.to.SecurityQuestionTO;
 import org.apache.syncope.console.commons.Constants;

http://git-wip-us.apache.org/repos/asf/syncope/blob/857f02a0/console/src/test/java/org/apache/syncope/console/EditProfileTestITCase.java
--
diff --git 
a/console/src/test/java/org/apache/syncope/console/EditProfileTestITCase.java 
b/console/src/test/java/org/apache/syncope/console/EditProfileTestITCase.java
index 484a2a1..4752162 100644
--- 
a/console/src/test/java/org/apache/syncope/console/EditProfileTestITCase.java
+++ 
b/console/src/test/java/org/apache/syncope/console/EditProfileTestITCase.java
@@ -19,7 +19,6 @@
 package org.apache.syncope.console;
 
 import java.util.concurrent.TimeUnit;
-import static org.apache.syncope.console.AbstractTest.ADMIN;
 import org.junit.After;
 import org.junit.Before;
 import org.junit.Test;
@@ -36,21 +35,21 @@ public class EditProfileTestITCase extends AbstractTest {
 public void setUp() throws Exception {
 seleniumDriver = new FirefoxDriver();
 //selenium = new WebDriverBackedSelenium(seleniumDriver, BASE_URL);
-seleniumDriver.get(BASE_URL);
+seleniumDriver.get(BASE_URL);
 wait = new WebDriverWait(seleniumDriver, 6);
-
+
 }
 
 @Test
 public void selfRegistration() {
 
seleniumDriver.findElement(By.xpath("//div/div[2]/div[1]/span/a/span")).click();
-
+
 
wait.until(ExpectedConditions.presenceOfElementLocated(By.xpath("//iframe")));
 seleniumDriver.switchTo().frame(0);
 
 
wait.until(ExpectedConditions.presenceOfElementLocated(By.xpath("//span[contains(text(),'Attributes')]")));
 seleniumDriver.switchTo().defaultContent();
-seleniumDriver.findElement(By.xpath("//a[@class='w_close']")).click(); 
  
+seleniumDriver.findElement(By.xpath("//a[@class='w_close']")).click();
 
 // only to have some "Logout" available for @After
 seleniumDriver.get(BASE_URL);
@@ -62,7 +61,7 @@ public class EditProfileTestITCase extends AbstractTest {

[5/8] syncope git commit: [SYNCOPE-663] Throwing new IgnoreException from SyncActions' or PushActions's methods will make the related user / role to get ignored by the sync / push process

2015-04-30 Thread ilgrosso
[SYNCOPE-663] Throwing new IgnoreException from SyncActions' or PushActions's 
methods will make the related user / role to get ignored by the sync / push 
process


Project: http://git-wip-us.apache.org/repos/asf/syncope/repo
Commit: http://git-wip-us.apache.org/repos/asf/syncope/commit/1a133b77
Tree: http://git-wip-us.apache.org/repos/asf/syncope/tree/1a133b77
Diff: http://git-wip-us.apache.org/repos/asf/syncope/diff/1a133b77

Branch: refs/heads/master
Commit: 1a133b77e359e71561901a713e7b6b4dc4d39bf7
Parents: d289e63 857f02a
Author: Francesco Chicchiriccò 
Authored: Thu Apr 30 12:51:30 2015 +0200
Committer: Francesco Chicchiriccò 
Committed: Thu Apr 30 12:51:30 2015 +0200

--
 .../api/sync/IgnoreProvisionException.java  |  29 ++
 .../api/sync/ProvisioningResult.java|  15 +--
 .../core/provisioning/api/sync/PushActions.java |   2 +
 .../core/provisioning/api/sync/SyncActions.java |  61 +--
 .../java/sync/AbstractProvisioningJob.java  | 103 +++
 .../java/sync/AbstractPushResultHandler.java|  49 +
 .../java/sync/AbstractSyncResultHandler.java|  56 +-
 .../java/sync/AbstractSyncopeResultHandler.java |   6 ++
 .../java/sync/GroupSyncResultHandlerImpl.java   |  12 +--
 .../java/sync/UserSyncResultHandlerImpl.java|  12 +--
 .../fit/core/reference/TestSyncActions.java |  19 +++-
 .../fit/core/reference/ResourceITCase.java  |   5 +-
 .../fit/core/reference/SyncTaskITCase.java  |  14 ++-
 13 files changed, 241 insertions(+), 142 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/syncope/blob/1a133b77/core/provisioning-api/src/main/java/org/apache/syncope/core/provisioning/api/sync/IgnoreProvisionException.java
--
diff --cc 
core/provisioning-api/src/main/java/org/apache/syncope/core/provisioning/api/sync/IgnoreProvisionException.java
index 000,000..5bebeb9
new file mode 100644
--- /dev/null
+++ 
b/core/provisioning-api/src/main/java/org/apache/syncope/core/provisioning/api/sync/IgnoreProvisionException.java
@@@ -1,0 -1,0 +1,29 @@@
++/*
++ * 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.core.provisioning.api.sync;
++
++/**
++ * Raised by {@link SyncActions} or {@link PushActions} methods when the 
given subject is to be ignored for
++ * synchronization / push.
++ */
++public class IgnoreProvisionException extends RuntimeException {
++
++private static final long serialVersionUID = -8803817097998786364L;
++
++}

http://git-wip-us.apache.org/repos/asf/syncope/blob/1a133b77/core/provisioning-api/src/main/java/org/apache/syncope/core/provisioning/api/sync/ProvisioningResult.java
--
diff --cc 
core/provisioning-api/src/main/java/org/apache/syncope/core/provisioning/api/sync/ProvisioningResult.java
index a1ccabe,000..3253bc3
mode 100644,00..100644
--- 
a/core/provisioning-api/src/main/java/org/apache/syncope/core/provisioning/api/sync/ProvisioningResult.java
+++ 
b/core/provisioning-api/src/main/java/org/apache/syncope/core/provisioning/api/sync/ProvisioningResult.java
@@@ -1,140 -1,0 +1,141 @@@
 +/*
 + * 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.ap

[2/8] syncope git commit: [SYNCOPE-663] Throwing new IgnoreException from SyncActions' or PushActions's methods will make the related user / role to get ignored by the sync / push process

2015-04-30 Thread ilgrosso
[SYNCOPE-663] Throwing new IgnoreException from SyncActions' or PushActions's 
methods will make the related user / role to get ignored by the sync / push 
process


Project: http://git-wip-us.apache.org/repos/asf/syncope/repo
Commit: http://git-wip-us.apache.org/repos/asf/syncope/commit/857f02a0
Tree: http://git-wip-us.apache.org/repos/asf/syncope/tree/857f02a0
Diff: http://git-wip-us.apache.org/repos/asf/syncope/diff/857f02a0

Branch: refs/heads/master
Commit: 857f02a0cbc0d6662ac98bcf3e7934557a761212
Parents: fa3223f
Author: Francesco Chicchiriccò 
Authored: Thu Apr 30 12:11:50 2015 +0200
Committer: Francesco Chicchiriccò 
Committed: Thu Apr 30 12:11:50 2015 +0200

--
 .../pages/SecurityQuestionModalPage.java|  2 -
 .../syncope/console/EditProfileTestITCase.java  | 13 ++--
 .../core/rest/controller/RoleController.java|  2 -
 .../core/sync/IgnoreProvisionException.java | 29 +
 .../apache/syncope/core/sync/PushActions.java   |  5 +-
 .../apache/syncope/core/sync/SyncActions.java   | 64 +++-
 .../apache/syncope/core/sync/SyncResult.java|  8 ++-
 .../impl/AbstractSubjectPushResultHandler.java  | 33 +-
 .../impl/AbstractSubjectSyncResultHandler.java  | 45 --
 .../syncope/core/sync/impl/AbstractSyncJob.java | 57 +++--
 .../sync/impl/AbstractSyncopeResultHandler.java |  9 ++-
 .../core/sync/impl/RoleSyncResultHandler.java   | 11 ++--
 .../core/sync/impl/UserSyncResultHandler.java   | 12 ++--
 .../core/rest/AuthenticationTestITCase.java |  1 -
 .../syncope/core/rest/ResourceTestITCase.java   |  5 +-
 .../syncope/core/rest/TaskTestITCase.java   | 13 +++-
 .../syncope/core/sync/TestSyncActions.java  | 16 -
 17 files changed, 206 insertions(+), 119 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/syncope/blob/857f02a0/console/src/main/java/org/apache/syncope/console/pages/SecurityQuestionModalPage.java
--
diff --git 
a/console/src/main/java/org/apache/syncope/console/pages/SecurityQuestionModalPage.java
 
b/console/src/main/java/org/apache/syncope/console/pages/SecurityQuestionModalPage.java
index c9cd4c7..a6e5442 100644
--- 
a/console/src/main/java/org/apache/syncope/console/pages/SecurityQuestionModalPage.java
+++ 
b/console/src/main/java/org/apache/syncope/console/pages/SecurityQuestionModalPage.java
@@ -18,8 +18,6 @@
  */
 package org.apache.syncope.console.pages;
 
-import static org.apache.syncope.console.pages.AbstractBasePage.FORM;
-
 import org.apache.syncope.common.SyncopeClientException;
 import org.apache.syncope.common.to.SecurityQuestionTO;
 import org.apache.syncope.console.commons.Constants;

http://git-wip-us.apache.org/repos/asf/syncope/blob/857f02a0/console/src/test/java/org/apache/syncope/console/EditProfileTestITCase.java
--
diff --git 
a/console/src/test/java/org/apache/syncope/console/EditProfileTestITCase.java 
b/console/src/test/java/org/apache/syncope/console/EditProfileTestITCase.java
index 484a2a1..4752162 100644
--- 
a/console/src/test/java/org/apache/syncope/console/EditProfileTestITCase.java
+++ 
b/console/src/test/java/org/apache/syncope/console/EditProfileTestITCase.java
@@ -19,7 +19,6 @@
 package org.apache.syncope.console;
 
 import java.util.concurrent.TimeUnit;
-import static org.apache.syncope.console.AbstractTest.ADMIN;
 import org.junit.After;
 import org.junit.Before;
 import org.junit.Test;
@@ -36,21 +35,21 @@ public class EditProfileTestITCase extends AbstractTest {
 public void setUp() throws Exception {
 seleniumDriver = new FirefoxDriver();
 //selenium = new WebDriverBackedSelenium(seleniumDriver, BASE_URL);
-seleniumDriver.get(BASE_URL);
+seleniumDriver.get(BASE_URL);
 wait = new WebDriverWait(seleniumDriver, 6);
-
+
 }
 
 @Test
 public void selfRegistration() {
 
seleniumDriver.findElement(By.xpath("//div/div[2]/div[1]/span/a/span")).click();
-
+
 
wait.until(ExpectedConditions.presenceOfElementLocated(By.xpath("//iframe")));
 seleniumDriver.switchTo().frame(0);
 
 
wait.until(ExpectedConditions.presenceOfElementLocated(By.xpath("//span[contains(text(),'Attributes')]")));
 seleniumDriver.switchTo().defaultContent();
-seleniumDriver.findElement(By.xpath("//a[@class='w_close']")).click(); 
  
+seleniumDriver.findElement(By.xpath("//a[@class='w_close']")).click();
 
 // only to have some "Logout" available for @After
 seleniumDriver.get(BASE_URL);
@@ -62,7 +61,7 @@ public class EditProfileTestITCase extends AbstractTest {
 seleniumDriver.findElement(By.name("p::submit")).click();
 seleniumDriver.manage().timeouts().pageLoadTime

[2/2] syncope git commit: [SYNCOPE-618] Upgraded to 5.17 with new Activiti Modeler

2015-04-30 Thread ilgrosso
[SYNCOPE-618] Upgraded to 5.17 with new Activiti Modeler


Project: http://git-wip-us.apache.org/repos/asf/syncope/repo
Commit: http://git-wip-us.apache.org/repos/asf/syncope/commit/04415543
Tree: http://git-wip-us.apache.org/repos/asf/syncope/tree/04415543
Diff: http://git-wip-us.apache.org/repos/asf/syncope/diff/04415543

Branch: refs/heads/master
Commit: 04415543cc7728e7cd915638ed8f4f98b0e8822d
Parents: 5d45494
Author: Francesco Chicchiriccò 
Authored: Thu Apr 30 18:16:40 2015 +0200
Committer: Francesco Chicchiriccò 
Committed: Thu Apr 30 18:16:40 2015 +0200

--
 archetype/pom.xml   |   7 +-
 .../archetype-resources/console/pom.xml |  77 ++---
 .../console/SyncopeConsoleApplication.java  |  70 +++-
 .../SyncopeConsoleRequestCycleListener.java |  84 +++
 .../client/console/SyncopeConsoleSession.java   |  17 ++-
 .../init/ImplementationClassNamesLoader.java|   4 -
 .../console/pages/ActivitiModelerPopupPage.java |  27 +
 .../syncope/client/console/pages/BasePage.java  |  76 -
 .../syncope/client/console/pages/ErrorPage.java |  42 
 .../syncope/client/console/pages/Workflow.java  | 107 +++
 .../console/pages/XMLEditorPopupPage.java   |  90 
 .../console/resources/FilesystemResource.java   |  83 ++
 .../resources/WorkflowDefGETResource.java   |  59 ++
 .../resources/WorkflowDefPUTResource.java   |  74 +
 .../markup/html/link/VeilPopupSettings.java |  32 ++
 .../console/pages/ActivitiModelerPopupPage.html |  28 +
 .../syncope/client/console/pages/BasePage.html  |   8 +-
 .../syncope/client/console/pages/ErrorPage.html |  37 +++
 .../syncope/client/console/pages/Workflow.html  |  57 ++
 .../console/pages/XMLEditorPopupPage.html   |  80 ++
 .../console/pages/XMLEditorPopupPage.properties |  19 
 .../pages/XMLEditorPopupPage_it.properties  |  19 
 .../pages/XMLEditorPopupPage_pt_BR.properties   |  19 
 core/logic/pom.xml  |   9 --
 .../provisioning/java/sync/SyncJobImpl.java |   6 +-
 fit/console-reference/pom.xml   |  78 +++---
 .../oryx.debug.js-tokenValueMap.properties  |  35 --
 .../src/main/resources/save-model.html  |  59 ++
 .../src/main/resources/url-config.js|  34 ++
 .../syncope/installer/files/ModelerPom.java |  80 --
 .../installer/files/ModelerTokenValueMap.java   |  58 --
 .../installer/processes/ArchetypeProcess.java   |  13 ++-
 .../src/main/resources/installer.properties |   3 +-
 installer/src/main/resources/modelerPom.xml |  85 +++
 pom.xml |  23 +---
 35 files changed, 1253 insertions(+), 346 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/syncope/blob/04415543/archetype/pom.xml
--
diff --git a/archetype/pom.xml b/archetype/pom.xml
index 94e7e0d..0d33034 100644
--- a/archetype/pom.xml
+++ b/archetype/pom.xml
@@ -38,7 +38,7 @@ under the License.
   
 org.apache.maven.archetype
 archetype-packaging
-2.2
+2.3
   
 
 
@@ -47,7 +47,7 @@ under the License.
 
   org.apache.maven.plugins
   maven-archetype-plugin
-  2.2
+  2.3
   true
 
   
@@ -199,7 +199,8 @@ under the License.
 
${project.build.outputDirectory}/archetype-resources/console/src/main/resources
 
   log4j2.xml
-  oryx.debug.js-tokenValueMap.properties
+  save-model.html
+  url-config.js
 
   
   

http://git-wip-us.apache.org/repos/asf/syncope/blob/04415543/archetype/src/main/resources/archetype-resources/console/pom.xml
--
diff --git a/archetype/src/main/resources/archetype-resources/console/pom.xml 
b/archetype/src/main/resources/archetype-resources/console/pom.xml
index 0344a40..77f873d 100644
--- a/archetype/src/main/resources/archetype-resources/console/pom.xml
+++ b/archetype/src/main/resources/archetype-resources/console/pom.xml
@@ -106,28 +106,48 @@ under the License.
 process-resources
 
   
-
+
 
 
-
-
-
-  
-
-  
-
-
-
-
-
-
-  
-
-
-
-
-  
+
+
+

[1/2] syncope git commit: [SYNCOPE-618] Upgraded to 5.17 with new Activiti Modeler

2015-04-30 Thread ilgrosso
Repository: syncope
Updated Branches:
  refs/heads/master 5d45494f0 -> 04415543c


http://git-wip-us.apache.org/repos/asf/syncope/blob/04415543/fit/console-reference/src/main/resources/url-config.js
--
diff --git a/fit/console-reference/src/main/resources/url-config.js 
b/fit/console-reference/src/main/resources/url-config.js
new file mode 100644
index 000..89a91d7
--- /dev/null
+++ b/fit/console-reference/src/main/resources/url-config.js
@@ -0,0 +1,34 @@
+/*
+ * 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.
+ */
+var KISBPM = KISBPM || {};
+
+KISBPM.URL = {
+  getModel: function (modelId) {
+return window.location.toString().substr(0, 
window.location.toString().indexOf('/activiti-modeler')) 
++ "/workflowDefGET";
+  },
+  getStencilSet: function () {
+return window.location.toString().substr(0, 
window.location.toString().indexOf('/activiti-modeler')) 
++ "/activiti-modeler/stencilset.json";
+  },
+  putModel: function (modelId) {
+return window.location.toString().substr(0, 
window.location.toString().indexOf('/activiti-modeler')) 
++ "/workflowDefPUT";
+  }
+};

http://git-wip-us.apache.org/repos/asf/syncope/blob/04415543/installer/src/main/java/org/apache/syncope/installer/files/ModelerPom.java
--
diff --git 
a/installer/src/main/java/org/apache/syncope/installer/files/ModelerPom.java 
b/installer/src/main/java/org/apache/syncope/installer/files/ModelerPom.java
deleted file mode 100644
index 143d849..000
--- a/installer/src/main/java/org/apache/syncope/installer/files/ModelerPom.java
+++ /dev/null
@@ -1,80 +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.installer.files;
-
-public class ModelerPom {
-
-public static final String PATH = "/pom.xml";
-
-public static final String FILE = "\n"
-+ "http://maven.apache.org/POM/4.0.0\"\n";
-+ " 
xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"\n";
-+ " 
xsi:schemaLocation=\"http://maven.apache.org/POM/4.0.0\n";
-+ " 
http://maven.apache.org/xsd/maven-4.0.0.xsd\";>\n"
-+ "  4.0.0\n" + "   \n" + "  
org.apache.syncope\n"
-+ "  activitiModelerSetup\n" + "  
1.0-SNAPSHOT\n"
-+ "  jar\n" + "   \n" + "  \n"
-+ "5.16.2\n"
-+ "
%s\n"
-+ "
%s/oryx.debug.js-tokenValueMap.properties\n" + " 
\n"
-+ "
UTF-8\n" + "  
\n" + "   \n"
-+ "  \n" + "\n" + "  
org.activiti\n"
-+ "  activiti-webapp-explorer2
   \n"
-+ "  ${activiti.version}\n" + "  
war\n"
-+ "  test\n" + "   \n" + "  
\n" + "   \n"
-+ " \n" + "\n" + "  \n"
-+ "org.apache.maven.plugins\n"
-+ "maven-antrun-plugin\n" + " 
   1.7\n"
-+ "\n" + "  \n" + " 
   setupActivitiModeler\n"
-+ "process-resources\n" + "
\n"
-+ "  \n"
-+ "\n"
-+ " \n" + "\n"
-+ " \n" + "\n"
-+ "\n"
-+ "  

syncope git commit: Upgrading ApacheDS

2015-05-04 Thread ilgrosso
Repository: syncope
Updated Branches:
  refs/heads/master 04415543c -> c53e17c54


Upgrading ApacheDS


Project: http://git-wip-us.apache.org/repos/asf/syncope/repo
Commit: http://git-wip-us.apache.org/repos/asf/syncope/commit/c53e17c5
Tree: http://git-wip-us.apache.org/repos/asf/syncope/tree/c53e17c5
Diff: http://git-wip-us.apache.org/repos/asf/syncope/diff/c53e17c5

Branch: refs/heads/master
Commit: c53e17c5465684df26f721f223eb54ea499e701b
Parents: 0441554
Author: Francesco Chicchiriccò 
Authored: Mon May 4 09:21:16 2015 +0200
Committer: Francesco Chicchiriccò 
Committed: Mon May 4 09:21:16 2015 +0200

--
 .../syncope/fit/buildtools/ApacheDSStartStopListener.java| 8 
 pom.xml  | 2 +-
 2 files changed, 5 insertions(+), 5 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/syncope/blob/c53e17c5/fit/build-tools/src/main/java/org/apache/syncope/fit/buildtools/ApacheDSStartStopListener.java
--
diff --git 
a/fit/build-tools/src/main/java/org/apache/syncope/fit/buildtools/ApacheDSStartStopListener.java
 
b/fit/build-tools/src/main/java/org/apache/syncope/fit/buildtools/ApacheDSStartStopListener.java
index 6c2b7b2..061007a 100644
--- 
a/fit/build-tools/src/main/java/org/apache/syncope/fit/buildtools/ApacheDSStartStopListener.java
+++ 
b/fit/build-tools/src/main/java/org/apache/syncope/fit/buildtools/ApacheDSStartStopListener.java
@@ -29,10 +29,10 @@ import org.apache.directory.api.ldap.model.entry.Entry;
 import org.apache.directory.api.ldap.model.name.Dn;
 import org.apache.directory.api.ldap.model.schema.SchemaManager;
 import org.apache.directory.api.ldap.model.schema.registries.SchemaLoader;
-import org.apache.directory.api.ldap.schemaextractor.SchemaLdifExtractor;
-import 
org.apache.directory.api.ldap.schemaextractor.impl.DefaultSchemaLdifExtractor;
-import org.apache.directory.api.ldap.schemaloader.LdifSchemaLoader;
-import org.apache.directory.api.ldap.schemamanager.impl.DefaultSchemaManager;
+import org.apache.directory.api.ldap.schema.extractor.SchemaLdifExtractor;
+import 
org.apache.directory.api.ldap.schema.extractor.impl.DefaultSchemaLdifExtractor;
+import org.apache.directory.api.ldap.schema.loader.LdifSchemaLoader;
+import org.apache.directory.api.ldap.schema.manager.impl.DefaultSchemaManager;
 import org.apache.directory.api.util.exception.Exceptions;
 import org.apache.directory.server.constants.ServerDNConstants;
 import org.apache.directory.server.core.DefaultDirectoryService;

http://git-wip-us.apache.org/repos/asf/syncope/blob/c53e17c5/pom.xml
--
diff --git a/pom.xml b/pom.xml
index 08bbfa9..722071f 100644
--- a/pom.xml
+++ b/pom.xml
@@ -692,7 +692,7 @@ under the License.
   
 org.apache.directory.server
 apacheds-all
-2.0.0-M19
+2.0.0-M20
   
   
   



syncope git commit: Upgrading Camel to 2.15.2 and CXF to 3.0.1-SNAPSHOT + fixing WADL generation

2015-05-04 Thread ilgrosso
Repository: syncope
Updated Branches:
  refs/heads/master c53e17c54 -> c910a7a66


Upgrading Camel to 2.15.2 and CXF to 3.0.1-SNAPSHOT + fixing WADL generation


Project: http://git-wip-us.apache.org/repos/asf/syncope/repo
Commit: http://git-wip-us.apache.org/repos/asf/syncope/commit/c910a7a6
Tree: http://git-wip-us.apache.org/repos/asf/syncope/tree/c910a7a6
Diff: http://git-wip-us.apache.org/repos/asf/syncope/diff/c910a7a6

Branch: refs/heads/master
Commit: c910a7a66370164e86524b3e470626865ad4ee68
Parents: c53e17c
Author: Francesco Chicchiriccò 
Authored: Mon May 4 16:11:19 2015 +0200
Committer: Francesco Chicchiriccò 
Committed: Mon May 4 16:11:19 2015 +0200

--
 .../syncope/common/lib/to/AbstractPolicyTO.java |  4 ++
 .../syncope/common/lib/to/AccountPolicyTO.java  |  4 --
 .../apache/syncope/common/lib/to/ErrorTO.java   |  4 +-
 .../syncope/common/lib/to/PasswordPolicyTO.java |  2 +-
 core/rest-cxf/pom.xml   | 13 
 .../rest/cxf/RestServiceExceptionMapper.java| 72 +++
 .../src/main/resources/wadl2html/index.xsl  | 76 ++--
 fit/core-reference/pom.xml  |  2 +-
 .../fit/core/reference/PolicyITCase.java|  2 +-
 .../syncope/fit/core/reference/RealmITCase.java |  2 +-
 pom.xml | 11 ++-
 11 files changed, 81 insertions(+), 111 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/syncope/blob/c910a7a6/common/lib/src/main/java/org/apache/syncope/common/lib/to/AbstractPolicyTO.java
--
diff --git 
a/common/lib/src/main/java/org/apache/syncope/common/lib/to/AbstractPolicyTO.java
 
b/common/lib/src/main/java/org/apache/syncope/common/lib/to/AbstractPolicyTO.java
index 5f3027b..aadb0d0 100644
--- 
a/common/lib/src/main/java/org/apache/syncope/common/lib/to/AbstractPolicyTO.java
+++ 
b/common/lib/src/main/java/org/apache/syncope/common/lib/to/AbstractPolicyTO.java
@@ -48,6 +48,10 @@ public abstract class AbstractPolicyTO extends 
AbstractBaseBean {
 
 private final List usedByRealms = new ArrayList<>();
 
+private AbstractPolicyTO() {
+throw new UnsupportedOperationException("No-arg constructor is just to 
keep JAXB from complaining");
+}
+
 protected AbstractPolicyTO(final PolicyType type) {
 this.type = type;
 }

http://git-wip-us.apache.org/repos/asf/syncope/blob/c910a7a6/common/lib/src/main/java/org/apache/syncope/common/lib/to/AccountPolicyTO.java
--
diff --git 
a/common/lib/src/main/java/org/apache/syncope/common/lib/to/AccountPolicyTO.java
 
b/common/lib/src/main/java/org/apache/syncope/common/lib/to/AccountPolicyTO.java
index 460bc20..a701899 100644
--- 
a/common/lib/src/main/java/org/apache/syncope/common/lib/to/AccountPolicyTO.java
+++ 
b/common/lib/src/main/java/org/apache/syncope/common/lib/to/AccountPolicyTO.java
@@ -39,10 +39,6 @@ public class AccountPolicyTO extends AbstractPolicyTO {
 private final List resources = new ArrayList<>();
 
 public AccountPolicyTO() {
-this(false);
-}
-
-public AccountPolicyTO(final boolean global) {
 super(PolicyType.ACCOUNT);
 }
 

http://git-wip-us.apache.org/repos/asf/syncope/blob/c910a7a6/common/lib/src/main/java/org/apache/syncope/common/lib/to/ErrorTO.java
--
diff --git 
a/common/lib/src/main/java/org/apache/syncope/common/lib/to/ErrorTO.java 
b/common/lib/src/main/java/org/apache/syncope/common/lib/to/ErrorTO.java
index e0f14ad..f643b88 100644
--- a/common/lib/src/main/java/org/apache/syncope/common/lib/to/ErrorTO.java
+++ b/common/lib/src/main/java/org/apache/syncope/common/lib/to/ErrorTO.java
@@ -38,7 +38,7 @@ public class ErrorTO extends AbstractBaseBean {
 
 private ClientExceptionType type;
 
-private final List elements = new ArrayList<>();
+private final List elements = new ArrayList<>();
 
 public int getStatus() {
 return status;
@@ -59,7 +59,7 @@ public class ErrorTO extends AbstractBaseBean {
 @XmlElementWrapper(name = "elements")
 @XmlElement(name = "element")
 @JsonProperty("elements")
-public List getElements() {
+public List getElements() {
 return elements;
 }
 

http://git-wip-us.apache.org/repos/asf/syncope/blob/c910a7a6/common/lib/src/main/java/org/apache/syncope/common/lib/to/PasswordPolicyTO.java
--
diff --git 
a/common/lib/src/main/java/org/apache/syncope/common/lib/to/PasswordPolicyTO.java
 
b/common/lib/src/main/java/org/apache/syncope/common/lib/to/PasswordPolicyTO.java
index 621ab26..a0a21ea 100644
--- 
a/common/lib/src/main/java/org/apache/syncope/common/lib/to/PasswordPolic

[2/5] syncope git commit: [SYNCOPE-664] Hiding Oracle behavior in AbstractAttrValue#getStringValue

2015-05-04 Thread ilgrosso
[SYNCOPE-664] Hiding Oracle behavior in AbstractAttrValue#getStringValue


Project: http://git-wip-us.apache.org/repos/asf/syncope/repo
Commit: http://git-wip-us.apache.org/repos/asf/syncope/commit/b81cea71
Tree: http://git-wip-us.apache.org/repos/asf/syncope/tree/b81cea71
Diff: http://git-wip-us.apache.org/repos/asf/syncope/diff/b81cea71

Branch: refs/heads/master
Commit: b81cea711945ea7e5133371d9f06c42c398650b2
Parents: b97eb56
Author: Francesco Chicchiriccò 
Authored: Mon May 4 17:50:01 2015 +0200
Committer: Francesco Chicchiriccò 
Committed: Mon May 4 17:50:01 2015 +0200

--
 .../persistence/beans/AbstractAttrValue.java| 46 
 core/src/test/resources/content.xml |  4 +-
 2 files changed, 32 insertions(+), 18 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/syncope/blob/b81cea71/core/src/main/java/org/apache/syncope/core/persistence/beans/AbstractAttrValue.java
--
diff --git 
a/core/src/main/java/org/apache/syncope/core/persistence/beans/AbstractAttrValue.java
 
b/core/src/main/java/org/apache/syncope/core/persistence/beans/AbstractAttrValue.java
index 6ee527e..d88fba0 100644
--- 
a/core/src/main/java/org/apache/syncope/core/persistence/beans/AbstractAttrValue.java
+++ 
b/core/src/main/java/org/apache/syncope/core/persistence/beans/AbstractAttrValue.java
@@ -28,6 +28,7 @@ import javax.persistence.TemporalType;
 import javax.validation.constraints.Max;
 import javax.validation.constraints.Min;
 import org.apache.commons.lang3.ArrayUtils;
+import org.apache.commons.lang3.StringUtils;
 import org.apache.commons.lang3.builder.ReflectionToStringBuilder;
 import org.apache.commons.lang3.builder.ToStringStyle;
 import org.apache.syncope.common.SyncopeConstants;
@@ -105,7 +106,15 @@ public abstract class AbstractAttrValue extends 
AbstractBaseBean {
 }
 
 public String getStringValue() {
-return stringValue;
+// workaround for Oracle DB considering empty string values as NULL 
(SYNCOPE-664)
+return dateValue == null
+&& booleanValue == null
+&& longValue == null
+&& doubleValue == null
+&& binaryValue == null
+&& stringValue == null
+? StringUtils.EMPTY
+: stringValue;
 }
 
 public void setStringValue(final String stringValue) {
@@ -195,21 +204,21 @@ public abstract class AbstractAttrValue extends 
AbstractBaseBean {
 return (T) (booleanValue != null
 ? getBooleanValue()
 : dateValue != null
-? getDateValue()
-: doubleValue != null
-? getDoubleValue()
-: longValue != null
-? getLongValue()
-: binaryValue != null
-? getBinaryValue()
-: stringValue);
+? getDateValue()
+: doubleValue != null
+? getDoubleValue()
+: longValue != null
+? getLongValue()
+: binaryValue != null
+? getBinaryValue()
+: getStringValue());
 }
 
 public String getValueAsString() {
 final AttributeSchemaType type = getAttribute() == null || 
getAttribute().getSchema() == null
 || getAttribute().getSchema().getType() == null
-? AttributeSchemaType.String
-: getAttribute().getSchema().getType();
+? AttributeSchemaType.String
+: getAttribute().getSchema().getType();
 
 return getValueAsString(type);
 }
@@ -228,22 +237,25 @@ public abstract class AbstractAttrValue extends 
AbstractBaseBean {
 case Long:
 result = getAttribute() == null || getAttribute().getSchema() 
== null
 || getAttribute().getSchema().getConversionPattern() 
== null
-? getLongValue().toString()
-: DataFormat.format(getLongValue(), 
getAttribute().getSchema().getConversionPattern());
+? getLongValue().toString()
+: DataFormat.format(getLongValue(),
+
getAttribute().getSchema().getConversionPattern());
 break;
 
 case Double:
 result = getAttribute() == null || getAttribute().getSchema() 
== null
 || getAttribute().getSchema().getConversionPattern() 
== null
-? getDoubleValue().toString()
- 

[1/5] syncope git commit: Merge branch '1_2_X' of https://git-wip-us.apache.org/repos/asf/syncope into 1_2_X

2015-05-04 Thread ilgrosso
Repository: syncope
Updated Branches:
  refs/heads/1_2_X b97eb56e4 -> b81cea711
  refs/heads/master c910a7a66 -> 496a02a51


Merge branch '1_2_X' of https://git-wip-us.apache.org/repos/asf/syncope into 
1_2_X


Project: http://git-wip-us.apache.org/repos/asf/syncope/repo
Commit: http://git-wip-us.apache.org/repos/asf/syncope/commit/b97eb56e
Tree: http://git-wip-us.apache.org/repos/asf/syncope/tree/b97eb56e
Diff: http://git-wip-us.apache.org/repos/asf/syncope/diff/b97eb56e

Branch: refs/heads/master
Commit: b97eb56e4dff32c077b1bfe2181b93dff5fa5d3f
Parents: dda37dc d5f3410
Author: Marco Di Sabatino Di Diodoro 
Authored: Thu Apr 30 18:05:52 2015 +0200
Committer: Marco Di Sabatino Di Diodoro 
Committed: Thu Apr 30 18:05:52 2015 +0200

--
 pom.xml | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
--




[3/5] syncope git commit: [SYNCOPE-664] Hiding Oracle behavior in AbstractAttrValue#getStringValue

2015-05-04 Thread ilgrosso
[SYNCOPE-664] Hiding Oracle behavior in AbstractAttrValue#getStringValue


Project: http://git-wip-us.apache.org/repos/asf/syncope/repo
Commit: http://git-wip-us.apache.org/repos/asf/syncope/commit/b81cea71
Tree: http://git-wip-us.apache.org/repos/asf/syncope/tree/b81cea71
Diff: http://git-wip-us.apache.org/repos/asf/syncope/diff/b81cea71

Branch: refs/heads/1_2_X
Commit: b81cea711945ea7e5133371d9f06c42c398650b2
Parents: b97eb56
Author: Francesco Chicchiriccò 
Authored: Mon May 4 17:50:01 2015 +0200
Committer: Francesco Chicchiriccò 
Committed: Mon May 4 17:50:01 2015 +0200

--
 .../persistence/beans/AbstractAttrValue.java| 46 
 core/src/test/resources/content.xml |  4 +-
 2 files changed, 32 insertions(+), 18 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/syncope/blob/b81cea71/core/src/main/java/org/apache/syncope/core/persistence/beans/AbstractAttrValue.java
--
diff --git 
a/core/src/main/java/org/apache/syncope/core/persistence/beans/AbstractAttrValue.java
 
b/core/src/main/java/org/apache/syncope/core/persistence/beans/AbstractAttrValue.java
index 6ee527e..d88fba0 100644
--- 
a/core/src/main/java/org/apache/syncope/core/persistence/beans/AbstractAttrValue.java
+++ 
b/core/src/main/java/org/apache/syncope/core/persistence/beans/AbstractAttrValue.java
@@ -28,6 +28,7 @@ import javax.persistence.TemporalType;
 import javax.validation.constraints.Max;
 import javax.validation.constraints.Min;
 import org.apache.commons.lang3.ArrayUtils;
+import org.apache.commons.lang3.StringUtils;
 import org.apache.commons.lang3.builder.ReflectionToStringBuilder;
 import org.apache.commons.lang3.builder.ToStringStyle;
 import org.apache.syncope.common.SyncopeConstants;
@@ -105,7 +106,15 @@ public abstract class AbstractAttrValue extends 
AbstractBaseBean {
 }
 
 public String getStringValue() {
-return stringValue;
+// workaround for Oracle DB considering empty string values as NULL 
(SYNCOPE-664)
+return dateValue == null
+&& booleanValue == null
+&& longValue == null
+&& doubleValue == null
+&& binaryValue == null
+&& stringValue == null
+? StringUtils.EMPTY
+: stringValue;
 }
 
 public void setStringValue(final String stringValue) {
@@ -195,21 +204,21 @@ public abstract class AbstractAttrValue extends 
AbstractBaseBean {
 return (T) (booleanValue != null
 ? getBooleanValue()
 : dateValue != null
-? getDateValue()
-: doubleValue != null
-? getDoubleValue()
-: longValue != null
-? getLongValue()
-: binaryValue != null
-? getBinaryValue()
-: stringValue);
+? getDateValue()
+: doubleValue != null
+? getDoubleValue()
+: longValue != null
+? getLongValue()
+: binaryValue != null
+? getBinaryValue()
+: getStringValue());
 }
 
 public String getValueAsString() {
 final AttributeSchemaType type = getAttribute() == null || 
getAttribute().getSchema() == null
 || getAttribute().getSchema().getType() == null
-? AttributeSchemaType.String
-: getAttribute().getSchema().getType();
+? AttributeSchemaType.String
+: getAttribute().getSchema().getType();
 
 return getValueAsString(type);
 }
@@ -228,22 +237,25 @@ public abstract class AbstractAttrValue extends 
AbstractBaseBean {
 case Long:
 result = getAttribute() == null || getAttribute().getSchema() 
== null
 || getAttribute().getSchema().getConversionPattern() 
== null
-? getLongValue().toString()
-: DataFormat.format(getLongValue(), 
getAttribute().getSchema().getConversionPattern());
+? getLongValue().toString()
+: DataFormat.format(getLongValue(),
+
getAttribute().getSchema().getConversionPattern());
 break;
 
 case Double:
 result = getAttribute() == null || getAttribute().getSchema() 
== null
 || getAttribute().getSchema().getConversionPattern() 
== null
-? getDoubleValue().toString()
-  

[4/5] syncope git commit: [SYNCOPE-664] Merge from 1_2_X

2015-05-04 Thread ilgrosso
http://git-wip-us.apache.org/repos/asf/syncope/blob/496a02a5/core/persistence-jpa/src/test/resources/content.xml
--
diff --cc core/persistence-jpa/src/test/resources/content.xml
index 8ac9007,000..7436f45
mode 100644,00..100644
--- a/core/persistence-jpa/src/test/resources/content.xml
+++ b/core/persistence-jpa/src/test/resources/content.xml
@@@ -1,1052 -1,0 +1,1054 @@@
 +
 +
 +
 +  
 +
 +  
 +  
 +  
 +
 +  
 +  
- 
++  
++  
++  
 +  
 +  
 +  
 +
 +  
 +  
 +  
 +
 +  
 +  
 +  
 +
 +  
 +  
 +  
 +
 +  
 +  
 +  
 +
 +  
 +  
 +  
 +
 +  
 +  
 +  
 +  
 +
 +  
 +  
 +  
 +  
 +
 +  
 +  
 +  
 +  
 +  
 +  
 +  
 +  
 +  
 +  
 +  
 +  
 +  
 +  
 +  
 +  
 +  
 +  
 +
 +  
 +  
 +  
 +  
 +  
 +  
 +  
 +  
 +  
 +  
 +  
 +  
 +  
 +  
 +  
 +  
 +  
 +  
 +  
 +
 +  
 +  
 +  
 +  
 +  
 +  
 +  
 +  
 +  
 +  
 +  
 +  
 +  
 +  
 +  
 +  
 +  
 +  
 +  
 +  
 +  
 +  
 +  
 +  
 +  
 +  
 +  
 +  
 +  
 +
 +  
 +  
 +  
 +  
 +  
 +  
 +  
 +
 +  
 +  
 +  
 +  
 +  
 +  
 +  
 +  
 +  
 +  
 +  
 +  
 +  
 +  
 +  
 +
 +  
 +  
 +  
 +
 +  
 +
 +  
 +  
 +  
 + 
 +  
 +
 +  
 +  
 +  
 +
 +  
 +
 +  
 +  
 +
 +  
 +  
 +
 +  
 +
 +  
 +  
 +
 +  
 +  
 +  
 +  
 +  
 +  
 +  
 +  
 +  
 +  
 +  
 +  
 +  
 +  
 +  
 +
 +  
 +  
 +  
 +  
 +  
 +  
 +  
 +  
 +
 +  
 +  
 +  
 +  
 +  
 +  
 +  
 +  
 +
 +  
 +  
 +  
 +  
 +  
 +  
 +  
 +  
 +  
 +  
 +  
 +  
 +  
 +  
 +  
 +  
 +  
 +  
 +  
 +  
 +  
 +  
 +  
 +  
 +  
 +  
 +  
 +  
 +  
 +  
 +
 +  
 +
 +  
 +  
 +  
 +  
 +
 +  
 +  
 +  
 +
 +  
 +  
 +  
 +
 +  
 +  
 +  
 +
 +  
 +  
 +  
 +
 +  
 +  
 +  
 +
 +  
 +  
 +  
 +
 +  
 +  
 +  
 +
 +  
 +  
 +  
 +  
 +  
 +  
 +  
 +
 +  
 +  
 +
 +  
 +  
 +  
 +  
 +  
 +
 +   
   
 +  
 +
 +  
 +  
 +
 +  
 +
 +  
 +  
 +  
 +
 +  
 +  
 +  
 +  
 +
 +  
 +
 +  
 +  
 +  
 +
 +  
 +  
 +  
 +
 +  
 +
 +  
 +  
 +  
 +
 +
 +  
 +
 +  
 +  
 +  
 +  
 +  
 +  
 +  
 +  
 +
 +  
 +  
 +  
 +  
 +  
 +  
 +  
 +  
 +  
 +  
 +
 +  
 +  
 +  
 +  
 +  
 +  
 +  
 +  
 +
 +  
 +
 +  
 +  
 +  
 +  
 +  
 +  
 +  
 +  
 +  
 +
 +  
 +  
 +  
 +  
 +  
 +  
 +  
 +  
 +  
 +  
 +  
 +  
 +  
 +  
 +  
 +  
 +  
 +  
 +  
 +  
 +  
 +  
 +  
 +  
 +  
 +  
 +  
 +  
 +  
 +  
 +  
 +  
 +  
 +  
 +  
 +  
 +  
 +  
 +  
 +  
 +
 +  
 +  
 +
 +  
 +  
 +
 +  
 +  
 +
 +  
 +  
 +  
 +  
 +  
 +  
 +  
 +  
 +  
 +  
 +  
 +  
 +
 +  
 +  
 +  
 +  
 +  
 +  
 +  
 +  
 +  
 +  
 +  
 +  
 +
 +  
 +  
 +
 +  
 +  
 +  
 +  
 +  
 +  
 +  
 +
 +  
 +  
 +  
 +  
 +
 + 




[5/5] syncope git commit: [SYNCOPE-664] Merge from 1_2_X

2015-05-04 Thread ilgrosso
[SYNCOPE-664] Merge from 1_2_X


Project: http://git-wip-us.apache.org/repos/asf/syncope/repo
Commit: http://git-wip-us.apache.org/repos/asf/syncope/commit/496a02a5
Tree: http://git-wip-us.apache.org/repos/asf/syncope/tree/496a02a5
Diff: http://git-wip-us.apache.org/repos/asf/syncope/diff/496a02a5

Branch: refs/heads/master
Commit: 496a02a51547f2ba4a48d54bee7a8a4de48df076
Parents: c910a7a b81cea7
Author: Francesco Chicchiriccò 
Authored: Mon May 4 17:57:09 2015 +0200
Committer: Francesco Chicchiriccò 
Committed: Mon May 4 17:57:09 2015 +0200

--
 .../persistence/jpa/entity/AbstractPlainAttrValue.java | 13 +++--
 core/persistence-jpa/src/test/resources/content.xml|  4 +++-
 2 files changed, 14 insertions(+), 3 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/syncope/blob/496a02a5/core/persistence-jpa/src/main/java/org/apache/syncope/core/persistence/jpa/entity/AbstractPlainAttrValue.java
--
diff --cc 
core/persistence-jpa/src/main/java/org/apache/syncope/core/persistence/jpa/entity/AbstractPlainAttrValue.java
index c3469b1,000..c6a3bd7
mode 100644,00..100644
--- 
a/core/persistence-jpa/src/main/java/org/apache/syncope/core/persistence/jpa/entity/AbstractPlainAttrValue.java
+++ 
b/core/persistence-jpa/src/main/java/org/apache/syncope/core/persistence/jpa/entity/AbstractPlainAttrValue.java
@@@ -1,282 -1,0 +1,291 @@@
 +/*
 + * 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.core.persistence.jpa.entity;
 +
 +import java.util.Date;
 +import javax.persistence.Basic;
 +import javax.persistence.Lob;
 +import javax.persistence.MappedSuperclass;
 +import javax.persistence.Temporal;
 +import javax.persistence.TemporalType;
 +import javax.validation.constraints.Max;
 +import javax.validation.constraints.Min;
 +import org.apache.commons.codec.binary.Base64;
 +import org.apache.commons.lang3.ArrayUtils;
++import org.apache.commons.lang3.StringUtils;
 +import org.apache.commons.lang3.builder.ReflectionToStringBuilder;
 +import org.apache.commons.lang3.builder.ToStringStyle;
 +import org.apache.syncope.common.lib.types.AttrSchemaType;
 +import 
org.apache.syncope.core.persistence.api.attrvalue.validation.InvalidPlainAttrValueException;
 +import 
org.apache.syncope.core.persistence.api.attrvalue.validation.ParsingValidationException;
 +import org.apache.syncope.core.persistence.api.entity.PlainAttrValue;
 +import org.apache.syncope.core.persistence.api.entity.PlainSchema;
 +import org.apache.syncope.core.misc.DataFormat;
 +import 
org.apache.syncope.core.persistence.jpa.validation.entity.PlainAttrValueCheck;
 +import org.apache.syncope.core.misc.security.Encryptor;
 +
 +@MappedSuperclass
 +@PlainAttrValueCheck
 +public abstract class AbstractPlainAttrValue extends AbstractEntity 
implements PlainAttrValue {
 +
 +private static final long serialVersionUID = -9141923816611244785L;
 +
 +private String stringValue;
 +
 +@Temporal(TemporalType.TIMESTAMP)
 +private Date dateValue;
 +
 +@Basic
 +@Min(0)
 +@Max(1)
 +private Integer booleanValue;
 +
 +private Long longValue;
 +
 +private Double doubleValue;
 +
 +@Lob
 +private byte[] binaryValue;
 +
 +@Override
 +public Boolean getBooleanValue() {
 +return booleanValue == null
 +? null
 +: isBooleanAsInteger(booleanValue);
 +}
 +
 +@Override
 +public void setBooleanValue(final Boolean booleanValue) {
 +this.booleanValue = booleanValue == null
 +? null
 +: getBooleanAsInteger(booleanValue);
 +}
 +
 +@Override
 +public Date getDateValue() {
 +return dateValue == null
 +? null
 +: new Date(dateValue.getTime());
 +}
 +
 +@Override
 +public void setDateValue(final Date dateValue) {
 +this.dateValue = dateValue == null
 +? null
 +: new Date(dateValue.getTime());
 +}
 +
 +@Override
 +public Double getD

syncope git commit: [SYNCOPE-156] Updating relevant LICENSE / NOTICE files

2015-05-05 Thread ilgrosso
Repository: syncope
Updated Branches:
  refs/heads/master 496a02a51 -> 66a119333


[SYNCOPE-156] Updating relevant LICENSE / NOTICE files


Project: http://git-wip-us.apache.org/repos/asf/syncope/repo
Commit: http://git-wip-us.apache.org/repos/asf/syncope/commit/66a11933
Tree: http://git-wip-us.apache.org/repos/asf/syncope/tree/66a11933
Diff: http://git-wip-us.apache.org/repos/asf/syncope/diff/66a11933

Branch: refs/heads/master
Commit: 66a119333ebbc3f3f35267377f05504efa5c17dd
Parents: 496a02a
Author: Francesco Chicchiriccò 
Authored: Tue May 5 11:59:30 2015 +0200
Committer: Francesco Chicchiriccò 
Committed: Tue May 5 11:59:30 2015 +0200

--
 deb/console/LICENSE | 25 +
 deb/console/NOTICE  | 38 ++
 standalone/LICENSE  | 27 ++-
 standalone/NOTICE   | 35 ---
 4 files changed, 117 insertions(+), 8 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/syncope/blob/66a11933/deb/console/LICENSE
--
diff --git a/deb/console/LICENSE b/deb/console/LICENSE
index b0d70b0..384add2 100644
--- a/deb/console/LICENSE
+++ b/deb/console/LICENSE
@@ -684,6 +684,31 @@ This is licensed under the terms of the MIT license, see 
above.
 
 ==
 
+For Admin LTE (https://github.com/almasaeed2010/AdminLTE/):
+This is licensed under the terms of the MIT license, see above.
+
+==
+
+For Bootstrap (http://getbootstrap.com/):
+This is licensed under the terms of the MIT license, see above.
+
+==
+
+For Bootstrap-select (https://silviomoreto.github.io/bootstrap-select/):
+This is licensed under the terms of the MIT license, see above.
+
+==
+
+For Font Awesome (https://fortawesome.github.io/Font-Awesome/icons/):
+This is licensed under the terms of the MIT license, see above.
+
+==
+
+For ionicons (http://ionicons.com/):
+This is licensed under the terms of the MIT license, see above.
+
+==
+
 For Simple Logging Facade for Java - SLF4J (http://www.slf4j.org/):
 This is licensed under the MIT license, see above.
 

http://git-wip-us.apache.org/repos/asf/syncope/blob/66a11933/deb/console/NOTICE
--
diff --git a/deb/console/NOTICE b/deb/console/NOTICE
index 356cdb9..7b559f7 100644
--- a/deb/console/NOTICE
+++ b/deb/console/NOTICE
@@ -36,11 +36,13 @@ All rights reserved.
 
 ==
 
-This product includes software developed by the Jackson project 
(http://wiki.fasterxml.com/JacksonHome).
+This product includes software developed by the Jackson project.
+http://wiki.fasterxml.com/JacksonHome
 
 ==
 
-This product includes software developed by the Joda Time project 
(http://www.joda.org/joda-time/).
+This product includes software developed by the Joda Time project.
+http://www.joda.org/joda-time
 
 ==
 
@@ -56,12 +58,40 @@ https://jquery.org/
 
 ==
 
-This products includes software developed by SLF4J (http://www.slf4j.org)
+This product includes software developed by Almsaeed Studio.
+Copyright 2014-2015 Almsaeed Studio. All rights reserved.
+https://almsaeedstudio.com/
+
+==
+
+This products includes software developed by Twitter Bootstrap.
+http://twitter.github.com/bootstrap/
+
+==
+
+This products includes software developed by bootstrap-select.
+Copyright (C) 2013-2015 bootstrap-select.
+https://silviomoreto.github.io/bootstrap-select/
+
+==
+
+This products includes software developed by Font Awesome.
+https://fortawesome.github.io/Font-Awesome/icons/
+
+==
+
+This products includes software developed by ionicons.
+http://ionicons.com/
+
+==
+
+This products includes software developed by SLF4J.
 Copyright (c) 2004-2013 QOS.ch.
+http://www.slf4j.org
 
 ==
 
-This product includes software developed by SpringSource
+This product includes software developed by SpringSource.
 Copyright (c) 2004-2015 SpringSource
 All rights reserved.
 

http://git-wip-us.apache.org/repos/asf/syncope/blob/66a11933/standalone/LICENSE
--
diff --git a/standalone/LICENSE b/standalone/LICENSE
index d9d9568..2e16fbf 100644
--- a/standalone/LICENSE
+++ b/standalone/LICENSE
@@ -826,6 +826,31 @@ This is licensed under the terms of the MIT license, see 
above.
 
 ==
 
+For Admin LTE (https://github.com/almasaeed2010/AdminLTE/):
+This is licensed under the terms of the MIT license, see above.
+
+==
+
+For Bootstrap (http://getbootstrap.com/):
+This is licensed under the terms of the MIT license, see above.
+
+==
+
+For Bootstrap-select (https://silviomoreto.github.io/bootstrap-select/):
+This is licensed under the terms of the MIT license, see above.
+
+==
+
+For Font Awesome (https://fortawesome.github.io/Font-Awesome/icons/):
+This is licensed under the terms of the MIT license, see above.
+
+==
+
+For ionicons (http://

syncope git commit: [SYNCOPE-156] Sample notification area for TODOs

2015-05-05 Thread ilgrosso
Repository: syncope
Updated Branches:
  refs/heads/master 66a119333 -> 3fc2f962b


[SYNCOPE-156] Sample notification area for TODOs


Project: http://git-wip-us.apache.org/repos/asf/syncope/repo
Commit: http://git-wip-us.apache.org/repos/asf/syncope/commit/3fc2f962
Tree: http://git-wip-us.apache.org/repos/asf/syncope/tree/3fc2f962
Diff: http://git-wip-us.apache.org/repos/asf/syncope/diff/3fc2f962

Branch: refs/heads/master
Commit: 3fc2f962b2ef8c511dc4defa585e3614730ad69c
Parents: 66a1193
Author: Francesco Chicchiriccò 
Authored: Tue May 5 12:58:31 2015 +0200
Committer: Francesco Chicchiriccò 
Committed: Tue May 5 12:58:31 2015 +0200

--
 .../client/console/SyncopeConsoleSession.java   |  4 ++
 .../syncope/client/console/pages/BasePage.java  | 15 +++
 .../client/console/rest/ApprovalRestClient.java | 45 
 .../console/rest/UserWorkflowRestClient.java| 42 ++
 .../syncope/client/console/pages/BasePage.html  | 13 ++
 .../client/console/pages/Workflow.properties| 17 
 .../client/console/pages/Workflow_it.properties | 17 
 .../console/pages/Workflow_pt_BR.properties | 17 
 8 files changed, 125 insertions(+), 45 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/syncope/blob/3fc2f962/client/console/src/main/java/org/apache/syncope/client/console/SyncopeConsoleSession.java
--
diff --git 
a/client/console/src/main/java/org/apache/syncope/client/console/SyncopeConsoleSession.java
 
b/client/console/src/main/java/org/apache/syncope/client/console/SyncopeConsoleSession.java
index 8a5add1..f162357 100644
--- 
a/client/console/src/main/java/org/apache/syncope/client/console/SyncopeConsoleSession.java
+++ 
b/client/console/src/main/java/org/apache/syncope/client/console/SyncopeConsoleSession.java
@@ -124,6 +124,10 @@ public class SyncopeConsoleSession extends 
AuthenticatedWebSession {
 return selfTO;
 }
 
+public boolean owns(final String entitlement) {
+return auth.containsKey(entitlement);
+}
+
 @Override
 public Roles getRoles() {
 if (isSignedIn() && roles == null && auth != null) {

http://git-wip-us.apache.org/repos/asf/syncope/blob/3fc2f962/client/console/src/main/java/org/apache/syncope/client/console/pages/BasePage.java
--
diff --git 
a/client/console/src/main/java/org/apache/syncope/client/console/pages/BasePage.java
 
b/client/console/src/main/java/org/apache/syncope/client/console/pages/BasePage.java
index 434a620..7855813 100644
--- 
a/client/console/src/main/java/org/apache/syncope/client/console/pages/BasePage.java
+++ 
b/client/console/src/main/java/org/apache/syncope/client/console/pages/BasePage.java
@@ -20,6 +20,7 @@ package org.apache.syncope.client.console.pages;
 
 import org.apache.syncope.client.console.SyncopeConsoleSession;
 import org.apache.syncope.client.console.commons.Constants;
+import org.apache.syncope.client.console.rest.UserWorkflowRestClient;
 import org.apache.syncope.common.lib.types.Entitlement;
 import org.apache.wicket.Component;
 import org.apache.wicket.Page;
@@ -34,11 +35,15 @@ import org.apache.wicket.markup.html.WebPage;
 import org.apache.wicket.markup.html.basic.Label;
 import org.apache.wicket.markup.html.link.BookmarkablePageLink;
 import org.apache.wicket.request.mapper.parameter.PageParameters;
+import org.apache.wicket.spring.injection.annot.SpringBean;
 
 public class BasePage extends AbstractBasePage implements IAjaxIndicatorAware {
 
 private static final long serialVersionUID = 1571997737305598502L;
 
+@SpringBean
+private UserWorkflowRestClient userWorkflowRestClient;
+
 public BasePage() {
 this(null);
 }
@@ -54,9 +59,19 @@ public class BasePage extends AbstractBasePage implements 
IAjaxIndicatorAware {
 public BasePage(final PageParameters parameters) {
 super(parameters);
 
+// header, footer
 add(new Label("version", SyncopeConsoleSession.get().getVersion()));
 add(new Label("username", 
SyncopeConsoleSession.get().getSelfTO().getUsername()));
 
+WebMarkupContainer todosContainer = new 
WebMarkupContainer("todosContainer");
+add(todosContainer);
+Label todos = new Label("todos", "0");
+todosContainer.add(todos);
+if (SyncopeConsoleSession.get().owns(Entitlement.WORKFLOW_FORM_LIST)) {
+
todos.setDefaultModelObject(userWorkflowRestClient.getForms().size());
+}
+MetaDataRoleAuthorizationStrategy.authorize(todosContainer, 
WebPage.RENDER, Entitlement.WORKFLOW_FORM_LIST);
+
 // menu
 WebMarkupContainer liContainer = new 
WebMarkupContainer(getLIContainerId("dashboard"));
 add(liContainer);

http://git-wip-us.apache

[4/4] syncope git commit: [SYNCOPE-657] Checkstyle enabled in all profiles but skipTests

2015-05-06 Thread ilgrosso
[SYNCOPE-657] Checkstyle enabled in all profiles but skipTests


Project: http://git-wip-us.apache.org/repos/asf/syncope/repo
Commit: http://git-wip-us.apache.org/repos/asf/syncope/commit/62193429
Tree: http://git-wip-us.apache.org/repos/asf/syncope/tree/62193429
Diff: http://git-wip-us.apache.org/repos/asf/syncope/diff/62193429

Branch: refs/heads/master
Commit: 62193429f899535bbd55490f1d38a41e4ffbb7ac
Parents: 3fc2f96
Author: Francesco Chicchiriccò 
Authored: Wed May 6 10:37:42 2015 +0200
Committer: Francesco Chicchiriccò 
Committed: Wed May 6 10:37:42 2015 +0200

--
 archetype/pom.xml   | 11 ++-
 client/cli/pom.xml  | 11 ++-
 .../apache/syncope/client/cli/SyncopeAdm.java   | 58 +++---
 .../syncope/client/cli/SyncopeServices.java |  2 +-
 .../cli/commands/ConfigurationCommand.java  | 18 ++---
 .../client/cli/commands/LoggerCommand.java  |  6 +-
 .../cli/commands/NotificationCommand.java   |  4 +-
 .../client/cli/commands/PolicyCommand.java  |  8 +-
 .../client/cli/commands/ReportCommand.java  | 18 ++---
 .../syncope/client/cli/util/XMLUtils.java   | 49 
 .../syncope/client/cli/util/XmlUtils.java   | 47 
 .../cli/validators/DebugLevelValidator.java |  3 +-
 client/console/pom.xml  |  4 -
 .../console/annotations/BinaryPreview.java  |  2 +-
 .../console/annotations/ExtensionPanel.java |  2 +-
 .../SortableAttributableProviderComparator.java |  2 +-
 .../console/commons/status/StatusBean.java  |  2 +-
 .../client/console/init/ConsoleInitializer.java |  3 +-
 .../client/console/panels/ImagePanel.java   |  2 +-
 .../html/form/AjaxDropDownChoicePanel.java  |  8 +-
 .../wicket/markup/html/form/FieldPanel.java |  6 +-
 .../markup/html/form/MultiFieldPanel.java   | 18 ++---
 .../console/pages/BaseModalPage.properties  |  2 +-
 .../console/pages/BaseModalPage_it.properties   |  2 +-
 .../pages/BaseModalPage_pt_BR.properties|  2 +-
 .../pages/XMLEditorPopupPage_pt_BR.properties   |  2 +-
 client/lib/pom.xml  |  6 +-
 .../client/lib/RestClientExceptionMapper.java   | 14 ++--
 client/old_console/pom.xml  |  4 -
 .../client/console/commons/JexlHelpUtils.java   |  2 -
 client/pom.xml  |  4 +
 common/lib/pom.xml  |  4 -
 .../syncope/common/lib/to/AbstractPolicyTO.java |  2 +
 .../syncope/common/lib/types/Entitlement.java   |  9 ++-
 common/rest-api/pom.xml |  4 -
 .../rest/api/service/UserSelfService.java   |  4 +-
 core/logic/pom.xml  |  4 -
 .../syncope/core/logic/ConnectorLogic.java  |  2 +-
 .../apache/syncope/core/logic/GroupLogic.java   |  2 +-
 .../apache/syncope/core/logic/LoggerLogic.java  |  7 +-
 .../apache/syncope/core/logic/ReportLogic.java  |  2 +-
 .../syncope/core/logic/WorkflowLogic.java   | 24 ++
 .../logic/audit/AuditConnectionFactory.java | 16 ++--
 .../init/ImplementationClassNamesLoader.java|  4 +-
 .../core/logic/init/LogicInitializer.java   |  3 +-
 .../core/logic/report/AbstractReportlet.java|  8 +-
 .../core/logic/report/GroupReportlet.java   |  6 +-
 .../syncope/core/logic/report/Reportlet.java|  3 +-
 .../core/logic/report/StaticReportlet.java  |  3 +-
 .../core/logic/report/TextSerializer.java   | 18 -
 .../core/logic/report/UserReportlet.java|  6 +-
 core/misc/pom.xml   |  4 -
 .../apache/syncope/core/misc/AuditManager.java  |  5 +-
 .../syncope/core/misc/ConnObjectUtils.java  |  1 -
 .../core/misc/security/PasswordGenerator.java   |  7 +-
 .../spring/DefaultRolesPrefixPostProcessor.java |  5 +-
 core/persistence-api/pom.xml|  4 -
 core/persistence-jpa/pom.xml|  4 -
 .../attrvalue/validation/AbstractValidator.java | 11 +--
 .../validation/AlwaysTrueValidator.java |  2 +-
 .../attrvalue/validation/BasicValidator.java|  2 +-
 .../validation/EmailAddressValidator.java   |  2 +-
 .../jpa/content/ContentLoaderHandler.java   |  4 +-
 .../jpa/content/MultiParentNodeOp.java  |  2 +-
 .../jpa/content/XMLContentExporter.java |  6 +-
 .../persistence/jpa/dao/AbstractSubjectDAO.java |  5 +-
 .../persistence/jpa/dao/JPANotificationDAO.java |  3 +-
 .../core/persistence/jpa/dao/JPAReportDAO.java  |  3 +-
 .../persistence/jpa/dao/JPAReportExecDAO.java   |  4 +-
 .../jpa/dao/JPASecurityQuestionDAO.java |  3 +-
 .../persistence/jpa/dao/JPATaskExecDAO.java |  6 +-
 .../core/persistence/jpa/dao/SearchSupport.java | 12 +--
 .../persistence/jpa/entity/AbstractExec.java| 12 +--
 .../jpa/entity/AbstractPlainAttr.java   |  6 +-
 .../jpa/entity/AbstractPlainAttrValue.java  |  2 +-
 .../jpa/entity/JPAExternalResou

[2/4] syncope git commit: [SYNCOPE-657] Checkstyle enabled in all profiles but skipTests

2015-05-06 Thread ilgrosso
http://git-wip-us.apache.org/repos/asf/syncope/blob/62193429/core/workflow-activiti/src/main/java/org/apache/syncope/core/workflow/activiti/ActivitiUserWorkflowAdapter.java
--
diff --git 
a/core/workflow-activiti/src/main/java/org/apache/syncope/core/workflow/activiti/ActivitiUserWorkflowAdapter.java
 
b/core/workflow-activiti/src/main/java/org/apache/syncope/core/workflow/activiti/ActivitiUserWorkflowAdapter.java
index a9e2276..a356ad8 100644
--- 
a/core/workflow-activiti/src/main/java/org/apache/syncope/core/workflow/activiti/ActivitiUserWorkflowAdapter.java
+++ 
b/core/workflow-activiti/src/main/java/org/apache/syncope/core/workflow/activiti/ActivitiUserWorkflowAdapter.java
@@ -69,7 +69,6 @@ import 
org.apache.syncope.common.lib.types.PropagationByResource;
 import org.apache.syncope.common.lib.types.ResourceOperation;
 import org.apache.syncope.common.lib.types.WorkflowFormPropertyType;
 import org.apache.syncope.core.misc.security.AuthContextUtils;
-import org.apache.syncope.core.misc.security.UnauthorizedException;
 import org.apache.syncope.core.misc.spring.BeanUtils;
 import 
org.apache.syncope.core.persistence.api.attrvalue.validation.InvalidEntityException;
 import 
org.apache.syncope.core.persistence.api.attrvalue.validation.ParsingValidationException;
@@ -85,7 +84,9 @@ import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.transaction.annotation.Transactional;
 
 /**
- * Activiti (http://www.activiti.org/) based implementation.
+ * Activiti {
+ *
+ * @see http://www.activiti.org/} based implementation.
  */
 public class ActivitiUserWorkflowAdapter extends AbstractUserWorkflowAdapter {
 
@@ -243,21 +244,19 @@ public class ActivitiUserWorkflowAdapter extends 
AbstractUserWorkflowAdapter {
 
 @Override
 public WorkflowResult> create(final UserTO userTO, 
final boolean disablePwdPolicyCheck,
-final boolean storePassword) throws WorkflowException {
+final boolean storePassword) {
 
 return create(userTO, disablePwdPolicyCheck, null, storePassword);
 }
 
 @Override
-public WorkflowResult> create(UserTO userTO, boolean 
storePassword) throws
-UnauthorizedException, WorkflowException {
-
+public WorkflowResult> create(final UserTO userTO, 
final boolean storePassword) {
 return create(userTO, false, storePassword);
 }
 
 @Override
 public WorkflowResult> create(final UserTO userTO, 
final boolean disablePwdPolicyCheck,
-final Boolean enabled, final boolean storePassword) throws 
WorkflowException {
+final Boolean enabled, final boolean storePassword) {
 
 final Map variables = new HashMap<>();
 variables.put(WF_EXECUTOR, 
AuthContextUtils.getAuthenticatedUsername());
@@ -304,9 +303,7 @@ public class ActivitiUserWorkflowAdapter extends 
AbstractUserWorkflowAdapter {
 new ImmutablePair<>(user.getKey(), propagateEnable), 
propByRes, getPerformedTasks(user));
 }
 
-private Set doExecuteTask(final User user, final String task,
-final Map moreVariables) throws WorkflowException {
-
+private Set doExecuteTask(final User user, final String task, 
final Map moreVariables) {
 Set preTasks = getPerformedTasks(user);
 
 final Map variables = new HashMap<>();
@@ -344,9 +341,7 @@ public class ActivitiUserWorkflowAdapter extends 
AbstractUserWorkflowAdapter {
 }
 
 @Override
-protected WorkflowResult doActivate(final User user, final String 
token)
-throws WorkflowException {
-
+protected WorkflowResult doActivate(final User user, final String 
token) {
 Set tasks = doExecuteTask(user, "activate", 
Collections.singletonMap(TOKEN, (Object) token));
 
 updateStatus(user);
@@ -356,9 +351,7 @@ public class ActivitiUserWorkflowAdapter extends 
AbstractUserWorkflowAdapter {
 }
 
 @Override
-protected WorkflowResult> doUpdate(final User user, 
final UserMod userMod)
-throws WorkflowException {
-
+protected WorkflowResult> doUpdate(final User user, 
final UserMod userMod) {
 Set tasks = doExecuteTask(user, "update", 
Collections.singletonMap(USER_MOD, (Object) userMod));
 
 updateStatus(user);
@@ -377,7 +370,7 @@ public class ActivitiUserWorkflowAdapter extends 
AbstractUserWorkflowAdapter {
 
 @Override
 @Transactional(rollbackFor = { Throwable.class })
-protected WorkflowResult doSuspend(final User user) throws 
WorkflowException {
+protected WorkflowResult doSuspend(final User user) {
 Set performedTasks = doExecuteTask(user, "suspend", null);
 updateStatus(user);
 User updated = userDAO.save(user);
@@ -386,7 +379,7 @@ public class ActivitiUserWorkflowAdapter extends 
AbstractUserWorkflowAdapter {
 }
 
 @Override
-protected WorkflowResult doReactivate(final User user) throws 
WorkflowException {
+

[1/4] syncope git commit: [SYNCOPE-657] Checkstyle enabled in all profiles but skipTests

2015-05-06 Thread ilgrosso
Repository: syncope
Updated Branches:
  refs/heads/master 3fc2f962b -> 62193429f


http://git-wip-us.apache.org/repos/asf/syncope/blob/62193429/installer/src/main/java/org/apache/syncope/installer/processes/ContainerProcess.java
--
diff --git 
a/installer/src/main/java/org/apache/syncope/installer/processes/ContainerProcess.java
 
b/installer/src/main/java/org/apache/syncope/installer/processes/ContainerProcess.java
index 4ccc0d2..77391c3 100644
--- 
a/installer/src/main/java/org/apache/syncope/installer/processes/ContainerProcess.java
+++ 
b/installer/src/main/java/org/apache/syncope/installer/processes/ContainerProcess.java
@@ -36,15 +36,15 @@ import org.apache.syncope.installer.utilities.InstallLog;
 import org.apache.syncope.installer.utilities.MavenUtils;
 import org.xml.sax.SAXException;
 
-public class ContainerProcess extends BaseProcess {
+public final class ContainerProcess extends BaseProcess {
 
-private final static String HTTP = "http";
+private static final String HTTP = "http";
 
-private final static String HTTPS = "https";
+private static final String HTTPS = "https";
 
-private final static String DEFAULT_HOST = "localhost";
+private static final String DEFAULT_HOST = "localhost";
 
-private final static String DEFAULT_PORT = "8080";
+private static final String DEFAULT_PORT = "8080";
 
 private String installPath;
 
@@ -148,7 +148,7 @@ public class ContainerProcess extends BaseProcess {
 switch (selectedContainer) {
 case GLASSFISH:
 final File glassfishCoreWebXmlFile =
-new File(syncopeInstallDir + 
properties.getProperty("glassfishCoreWebXmlFile"));
+new File(syncopeInstallDir + 
PROPERTIES.getProperty("glassfishCoreWebXmlFile"));
 final String contentGlassfishWebXmlFile = 
fileSystemUtils.readFile(glassfishCoreWebXmlFile);
 fileSystemUtils.writeToFile(glassfishCoreWebXmlFile,
 
contentGlassfishWebXmlFile.replace(GlassfishCoreWebXml.PLACEHOLDER,
@@ -160,8 +160,8 @@ public class ContainerProcess extends BaseProcess {
 }
 
 final File consolePropertiesFile = new File(syncopeInstallDir
-+ properties.getProperty("consoleResDirectory")
-+ File.separator + 
properties.getProperty("consolePropertiesFile"));
++ PROPERTIES.getProperty("consoleResDirectory")
++ File.separator + 
PROPERTIES.getProperty("consolePropertiesFile"));
 final String contentConsolePropertiesFile = 
fileSystemUtils.readFile(consolePropertiesFile);
 
 final String scheme;
@@ -267,6 +267,7 @@ public class ContainerProcess extends BaseProcess {
 InstallLog.getInstance().error(messageError);
 }
 break;
+
 case JBOSS:
 final JBoss jBoss = new JBoss(
 jbossSsl, jbossHost, jbossManagementPort, 
jbossAdminUsername,
@@ -292,6 +293,7 @@ public class ContainerProcess extends BaseProcess {
 InstallLog.getInstance().error(messageError);
 }
 break;
+
 case GLASSFISH:
 final String createJavaOptCommand = "sh " + glassfishDir + 
Glassfish.CREATE_JAVA_OPT_COMMAND;
 fileSystemUtils.exec(createJavaOptCommand, null);
@@ -303,6 +305,8 @@ public class ContainerProcess extends BaseProcess {
 fileSystemUtils.exec("sh " + glassfishDir
 + Glassfish.DEPLOY_COMMAND + 
glassfish.deployConsole(), null);
 break;
+
+default:
 }
 }
 
@@ -310,13 +314,18 @@ public class ContainerProcess extends BaseProcess {
 final FileSystemUtils fileSystemUtils, final 
AbstractUIProcessHandler handler) {
 
fileSystemUtils.copyFileFromResources("/jboss/persistenceContextEMFactory.xml",
 syncopeInstallDir
-+ properties.getProperty("persistenceContextEMFactoryFile"), 
handler);
++ PROPERTIES.getProperty("persistenceContextEMFactoryFile"), 
handler);
 final File persistenceContextEMFactoryFile = new File(
-syncopeInstallDir + 
properties.getProperty("persistenceContextEMFactoryFile"));
+syncopeInstallDir + 
PROPERTIES.getProperty("persistenceContextEMFactoryFile"));
 final String contentPersistenceContextEMFactory = 
fileSystemUtils.readFile(persistenceContextEMFactoryFile);
 fileSystemUtils.writeToFile(
 persistenceContextEMFactoryFile,
 
contentPersistenceContextEMFactory.replace(PersistenceContextEMFactoryXml.PLACEHOLDER,
 PersistenceContextEMFactoryXml.JBOSS));
 }
+
+private ContainerProcess() {
+super();
+// private constructor f

[3/4] syncope git commit: [SYNCOPE-657] Checkstyle enabled in all profiles but skipTests

2015-05-06 Thread ilgrosso
http://git-wip-us.apache.org/repos/asf/syncope/blob/62193429/core/misc/src/main/java/org/apache/syncope/core/misc/spring/DefaultRolesPrefixPostProcessor.java
--
diff --git 
a/core/misc/src/main/java/org/apache/syncope/core/misc/spring/DefaultRolesPrefixPostProcessor.java
 
b/core/misc/src/main/java/org/apache/syncope/core/misc/spring/DefaultRolesPrefixPostProcessor.java
index 15c6259..d91a60f 100644
--- 
a/core/misc/src/main/java/org/apache/syncope/core/misc/spring/DefaultRolesPrefixPostProcessor.java
+++ 
b/core/misc/src/main/java/org/apache/syncope/core/misc/spring/DefaultRolesPrefixPostProcessor.java
@@ -20,7 +20,6 @@ package org.apache.syncope.core.misc.spring;
 
 import javax.servlet.ServletException;
 import org.apache.commons.lang3.StringUtils;
-import org.springframework.beans.BeansException;
 import org.springframework.beans.FatalBeanException;
 import org.springframework.beans.factory.config.BeanPostProcessor;
 import org.springframework.core.PriorityOrdered;
@@ -34,7 +33,7 @@ import 
org.springframework.security.web.servletapi.SecurityContextHolderAwareReq
 public class DefaultRolesPrefixPostProcessor implements BeanPostProcessor, 
PriorityOrdered {
 
 @Override
-public Object postProcessAfterInitialization(final Object bean, final 
String beanName) throws BeansException {
+public Object postProcessAfterInitialization(final Object bean, final 
String beanName) {
 if (bean instanceof DefaultMethodSecurityExpressionHandler) {
 ((DefaultMethodSecurityExpressionHandler) 
bean).setDefaultRolePrefix(null);
 }
@@ -55,7 +54,7 @@ public class DefaultRolesPrefixPostProcessor implements 
BeanPostProcessor, Prior
 }
 
 @Override
-public Object postProcessBeforeInitialization(final Object bean, final 
String beanName) throws BeansException {
+public Object postProcessBeforeInitialization(final Object bean, final 
String beanName) {
 return bean;
 }
 

http://git-wip-us.apache.org/repos/asf/syncope/blob/62193429/core/persistence-api/pom.xml
--
diff --git a/core/persistence-api/pom.xml b/core/persistence-api/pom.xml
index 48ceb63..10745e7 100644
--- a/core/persistence-api/pom.xml
+++ b/core/persistence-api/pom.xml
@@ -69,10 +69,6 @@ under the License.
 org.apache.maven.plugins
 maven-checkstyle-plugin
   
-  
-org.apache.maven.plugins
-maven-pmd-plugin
-  
 
   
 

http://git-wip-us.apache.org/repos/asf/syncope/blob/62193429/core/persistence-jpa/pom.xml
--
diff --git a/core/persistence-jpa/pom.xml b/core/persistence-jpa/pom.xml
index 26422f6..d48ef77 100644
--- a/core/persistence-jpa/pom.xml
+++ b/core/persistence-jpa/pom.xml
@@ -172,10 +172,6 @@ under the License.
 org.apache.maven.plugins
 maven-checkstyle-plugin
   
-  
-org.apache.maven.plugins
-maven-pmd-plugin
-  
 
 
 

http://git-wip-us.apache.org/repos/asf/syncope/blob/62193429/core/persistence-jpa/src/main/java/org/apache/syncope/core/persistence/jpa/attrvalue/validation/AbstractValidator.java
--
diff --git 
a/core/persistence-jpa/src/main/java/org/apache/syncope/core/persistence/jpa/attrvalue/validation/AbstractValidator.java
 
b/core/persistence-jpa/src/main/java/org/apache/syncope/core/persistence/jpa/attrvalue/validation/AbstractValidator.java
index 27e2dc8..af1c9b8 100644
--- 
a/core/persistence-jpa/src/main/java/org/apache/syncope/core/persistence/jpa/attrvalue/validation/AbstractValidator.java
+++ 
b/core/persistence-jpa/src/main/java/org/apache/syncope/core/persistence/jpa/attrvalue/validation/AbstractValidator.java
@@ -19,8 +19,6 @@
 package org.apache.syncope.core.persistence.jpa.attrvalue.validation;
 
 import java.io.Serializable;
-import 
org.apache.syncope.core.persistence.api.attrvalue.validation.InvalidPlainAttrValueException;
-import 
org.apache.syncope.core.persistence.api.attrvalue.validation.ParsingValidationException;
 import org.apache.syncope.core.persistence.api.attrvalue.validation.Validator;
 import org.apache.syncope.core.persistence.api.entity.PlainAttrValue;
 import org.apache.syncope.core.persistence.api.entity.PlainSchema;
@@ -31,9 +29,6 @@ public abstract class AbstractValidator implements Validator, 
Serializable {
 
 private static final long serialVersionUID = -543934519502493L;
 
-/*
- * Logger
- */
 protected static final Logger LOG = 
LoggerFactory.getLogger(AbstractValidator.class);
 
 protected final PlainSchema schema;
@@ -43,12 +38,10 @@ public abstract class AbstractValidator implements 
Validator, Serializable {
 }
 
 @Override
-public void validate(String value, PlainAttrValue attrValue)
-throws ParsingValidationException, 

syncope git commit: [SYNCOPE-650] onError() methods added

2015-05-06 Thread ilgrosso
Repository: syncope
Updated Branches:
  refs/heads/master 62193429f -> e080c7306


[SYNCOPE-650] onError() methods added


Project: http://git-wip-us.apache.org/repos/asf/syncope/repo
Commit: http://git-wip-us.apache.org/repos/asf/syncope/commit/e080c730
Tree: http://git-wip-us.apache.org/repos/asf/syncope/tree/e080c730
Diff: http://git-wip-us.apache.org/repos/asf/syncope/diff/e080c730

Branch: refs/heads/master
Commit: e080c73064c69c3e04240f2eed3efdde5ac17ecd
Parents: 6219342
Author: Francesco Chicchiriccò 
Authored: Wed May 6 12:04:14 2015 +0200
Committer: Francesco Chicchiriccò 
Committed: Wed May 6 12:04:14 2015 +0200

--
 .../api/propagation/PropagationActions.java |  2 +
 .../core/provisioning/api/sync/PushActions.java | 73 
 .../core/provisioning/api/sync/SyncActions.java | 16 +
 .../AbstractPropagationTaskExecutor.java| 12 ++--
 .../propagation/DefaultPropagationActions.java  |  7 ++
 .../java/sync/AbstractPushResultHandler.java|  5 ++
 .../java/sync/AbstractSyncResultHandler.java| 63 +
 .../java/sync/DefaultPushActions.java   | 12 
 .../java/sync/DefaultSyncActions.java   |  6 ++
 9 files changed, 149 insertions(+), 47 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/syncope/blob/e080c730/core/provisioning-api/src/main/java/org/apache/syncope/core/provisioning/api/propagation/PropagationActions.java
--
diff --git 
a/core/provisioning-api/src/main/java/org/apache/syncope/core/provisioning/api/propagation/PropagationActions.java
 
b/core/provisioning-api/src/main/java/org/apache/syncope/core/provisioning/api/propagation/PropagationActions.java
index 864ec4b..cb6d643 100644
--- 
a/core/provisioning-api/src/main/java/org/apache/syncope/core/provisioning/api/propagation/PropagationActions.java
+++ 
b/core/provisioning-api/src/main/java/org/apache/syncope/core/provisioning/api/propagation/PropagationActions.java
@@ -26,5 +26,7 @@ public interface PropagationActions {
 
 void before(PropagationTask task, ConnectorObject beforeObj);
 
+void onError(PropagationTask task, TaskExec execution, Exception error);
+
 void after(PropagationTask task, TaskExec execution, ConnectorObject 
afterObj);
 }

http://git-wip-us.apache.org/repos/asf/syncope/blob/e080c730/core/provisioning-api/src/main/java/org/apache/syncope/core/provisioning/api/sync/PushActions.java
--
diff --git 
a/core/provisioning-api/src/main/java/org/apache/syncope/core/provisioning/api/sync/PushActions.java
 
b/core/provisioning-api/src/main/java/org/apache/syncope/core/provisioning/api/sync/PushActions.java
index 6dacc76..f66acde 100644
--- 
a/core/provisioning-api/src/main/java/org/apache/syncope/core/provisioning/api/sync/PushActions.java
+++ 
b/core/provisioning-api/src/main/java/org/apache/syncope/core/provisioning/api/sync/PushActions.java
@@ -31,109 +31,124 @@ public interface PushActions extends ProvisioningActions {
 /**
  * Action to be executed before to assign (link & provision) a 
synchronized user / group to the resource.
  *
- * @param profile profile of the synchronization being executed.
+ * @param profile profile of the push being executed.
  * @param subject user / group to be created.
  * @return subject.
  * @throws JobExecutionException in case of generic failure
  */
 > T beforeAssign(
-final ProvisioningProfile profile,
-final T subject) throws JobExecutionException;
+ProvisioningProfile profile,
+T subject) throws JobExecutionException;
 
 /**
  * Action to be executed before to provision a synchronized user / group 
to the resource.
  *
- * @param profile profile of the synchronization being executed.
+ * @param profile profile of the push being executed.
  * @param subject user / group to be created.
  * @return subject.
  * @throws JobExecutionException in case of generic failure
  */
 > T beforeProvision(
-final ProvisioningProfile profile,
-final T subject) throws JobExecutionException;
+ProvisioningProfile profile,
+T subject) throws JobExecutionException;
 
 /**
  * Action to be executed before to update a synchronized user / group on 
the resource.
  *
- * @param profile profile of the synchronization being executed.
+ * @param profile profile of the push being executed.
  * @param subject user / group to be updated.
  * @return subject.
  * @throws JobExecutionException in case of generic failure
  */
 > T beforeUpdate(
-final ProvisioningProfile profile,
-final T subject) throws JobExecutionException;
+ 

[8/9] syncope git commit: Merge from 1_2_X

2015-05-08 Thread ilgrosso
Merge from 1_2_X


Project: http://git-wip-us.apache.org/repos/asf/syncope/repo
Commit: http://git-wip-us.apache.org/repos/asf/syncope/commit/bc3cc301
Tree: http://git-wip-us.apache.org/repos/asf/syncope/tree/bc3cc301
Diff: http://git-wip-us.apache.org/repos/asf/syncope/diff/bc3cc301

Branch: refs/heads/master
Commit: bc3cc30153c94f1b209dba54acea87932f977475
Parents: e080c73 2f2e67f
Author: Francesco Chicchiriccò 
Authored: Fri May 8 16:08:09 2015 +0200
Committer: Francesco Chicchiriccò 
Committed: Fri May 8 16:08:09 2015 +0200

--
 CHANGES | 14 +++
 src/site/xdoc/downloads.xml | 88 
 2 files changed, 58 insertions(+), 44 deletions(-)
--




[4/9] syncope git commit: [maven-release-plugin] prepare release syncope-1.2.4

2015-05-08 Thread ilgrosso
[maven-release-plugin] prepare release syncope-1.2.4


Project: http://git-wip-us.apache.org/repos/asf/syncope/repo
Commit: http://git-wip-us.apache.org/repos/asf/syncope/commit/cc52c3f4
Tree: http://git-wip-us.apache.org/repos/asf/syncope/tree/cc52c3f4
Diff: http://git-wip-us.apache.org/repos/asf/syncope/diff/cc52c3f4

Branch: refs/heads/master
Commit: cc52c3f4e8aca661c96b0f1a26e1ae7754be38ce
Parents: 6eb2f91
Author: fmartelli 
Authored: Tue May 5 11:28:42 2015 +0200
Committer: fmartelli 
Committed: Tue May 5 11:28:42 2015 +0200

--
 archetype/pom.xml | 2 +-
 build-tools/pom.xml   | 2 +-
 client/pom.xml| 2 +-
 common/pom.xml| 2 +-
 console/pom.xml   | 2 +-
 core-upgrader/pom.xml | 2 +-
 core/pom.xml  | 2 +-
 deb/console/pom.xml   | 2 +-
 deb/core/pom.xml  | 2 +-
 deb/pom.xml   | 2 +-
 installer/pom.xml | 2 +-
 pom.xml   | 4 ++--
 standalone/pom.xml| 2 +-
 13 files changed, 14 insertions(+), 14 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/syncope/blob/cc52c3f4/archetype/pom.xml
--
diff --git a/archetype/pom.xml b/archetype/pom.xml
index 3e79ae2..b627f17 100644
--- a/archetype/pom.xml
+++ b/archetype/pom.xml
@@ -24,7 +24,7 @@ under the License.
   
 org.apache.syncope
 syncope
-1.2.4-SNAPSHOT
+1.2.4
   
 
   Apache Syncope Archetype

http://git-wip-us.apache.org/repos/asf/syncope/blob/cc52c3f4/build-tools/pom.xml
--
diff --git a/build-tools/pom.xml b/build-tools/pom.xml
index 62fd74b..82a9b69 100644
--- a/build-tools/pom.xml
+++ b/build-tools/pom.xml
@@ -24,7 +24,7 @@ under the License.
   
 org.apache.syncope
 syncope
-1.2.4-SNAPSHOT
+1.2.4
   
 
   Apache Syncope Build Tools

http://git-wip-us.apache.org/repos/asf/syncope/blob/cc52c3f4/client/pom.xml
--
diff --git a/client/pom.xml b/client/pom.xml
index 7dba413..d743fa3 100644
--- a/client/pom.xml
+++ b/client/pom.xml
@@ -24,7 +24,7 @@ under the License.
   
 org.apache.syncope
 syncope
-1.2.4-SNAPSHOT
+1.2.4
   
 
   Apache Syncope Client

http://git-wip-us.apache.org/repos/asf/syncope/blob/cc52c3f4/common/pom.xml
--
diff --git a/common/pom.xml b/common/pom.xml
index 247af7b..819b9f1 100644
--- a/common/pom.xml
+++ b/common/pom.xml
@@ -24,7 +24,7 @@ under the License.
   
 org.apache.syncope
 syncope
-1.2.4-SNAPSHOT
+1.2.4
   
 
   Apache Syncope Common

http://git-wip-us.apache.org/repos/asf/syncope/blob/cc52c3f4/console/pom.xml
--
diff --git a/console/pom.xml b/console/pom.xml
index dbd693a..64dc61d 100644
--- a/console/pom.xml
+++ b/console/pom.xml
@@ -24,7 +24,7 @@ under the License.
   
 org.apache.syncope
 syncope
-1.2.4-SNAPSHOT
+1.2.4
   
 
   Apache Syncope Console

http://git-wip-us.apache.org/repos/asf/syncope/blob/cc52c3f4/core-upgrader/pom.xml
--
diff --git a/core-upgrader/pom.xml b/core-upgrader/pom.xml
index 7456ec6..49cc14d 100644
--- a/core-upgrader/pom.xml
+++ b/core-upgrader/pom.xml
@@ -23,7 +23,7 @@ under the License.
   
 org.apache.syncope
 syncope
-1.2.4-SNAPSHOT
+1.2.4
   
  
   org.apache.syncope

http://git-wip-us.apache.org/repos/asf/syncope/blob/cc52c3f4/core/pom.xml
--
diff --git a/core/pom.xml b/core/pom.xml
index 1345f2c..ea809f8 100644
--- a/core/pom.xml
+++ b/core/pom.xml
@@ -24,7 +24,7 @@ under the License.
   
 org.apache.syncope
 syncope
-1.2.4-SNAPSHOT
+1.2.4
   
 
   Apache Syncope Core

http://git-wip-us.apache.org/repos/asf/syncope/blob/cc52c3f4/deb/console/pom.xml
--
diff --git a/deb/console/pom.xml b/deb/console/pom.xml
index cf793a5..32bfec8 100644
--- a/deb/console/pom.xml
+++ b/deb/console/pom.xml
@@ -24,7 +24,7 @@ under the License.
   
 org.apache.syncope
 syncope-deb
-1.2.4-SNAPSHOT
+1.2.4
   
 
   Apache Syncope Deb Console

http://git-wip-us.apache.org/repos/asf/syncope/blob/cc52c3f4/deb/core/pom.xml
--
diff --git a/deb/core/pom.xml b/deb/core/pom.xml
index c0b2c7b..d2841a7 100644
--- a/deb/core/pom.xml
+++ b/deb/core/pom.xml
@@ -24,7 +24,7 @@ under the License.
   
 org.apache.syncope
 syncope-deb
-1.2.4-SNAPSHOT
+1.2.4
   
 
   Apache Syncope Deb Core

http://git-wip-us.apache.org/repos/asf/syncope/blob/cc52c3f4/deb/pom.xml
--

[2/9] syncope git commit: Updating downloads site page for release

2015-05-08 Thread ilgrosso
Updating downloads site page for release


Project: http://git-wip-us.apache.org/repos/asf/syncope/repo
Commit: http://git-wip-us.apache.org/repos/asf/syncope/commit/ed0e176b
Tree: http://git-wip-us.apache.org/repos/asf/syncope/tree/ed0e176b
Diff: http://git-wip-us.apache.org/repos/asf/syncope/diff/ed0e176b

Branch: refs/heads/master
Commit: ed0e176b7c7a84447bda9f7fc4443eea452844c5
Parents: 6abbacd
Author: fmartelli 
Authored: Tue May 5 10:39:54 2015 +0200
Committer: fmartelli 
Committed: Tue May 5 10:39:54 2015 +0200

--
 src/site/xdoc/downloads.xml | 86 
 1 file changed, 43 insertions(+), 43 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/syncope/blob/ed0e176b/src/site/xdoc/downloads.xml
--
diff --git a/src/site/xdoc/downloads.xml b/src/site/xdoc/downloads.xml
index e12da41..6446cb5 100644
--- a/src/site/xdoc/downloads.xml
+++ b/src/site/xdoc/downloads.xml
@@ -60,8 +60,8 @@ under the License.
 
 
 
-  
-Release date: Mar 20th, 2015
+  
+Release date: May 5th, 2015
 
   https://cwiki.apache.org/confluence/display/SYNCOPE/Intermezzo";>Release 
notes
 
@@ -75,52 +75,52 @@ under the License.
   
 
   
-http://www.apache.org/dyn/closer.cgi/syncope/1.2.3/syncope-1.2.3-source-release.zip";>syncope-1.2.3-source-release.zip
+http://www.apache.org/dyn/closer.cgi/syncope/1.2.4/syncope-1.2.4-source-release.zip";>syncope-1.2.4-source-release.zip
   
   
-http://www.apache.org/dist/syncope/1.2.3/syncope-1.2.3-source-release.zip.asc";>asc
 
-http://www.apache.org/dist/syncope/1.2.3/syncope-1.2.3-source-release.zip.md5";>md5
 
-http://www.apache.org/dist/syncope/1.2.3/syncope-1.2.3-source-release.zip.sha1";>sha1
+http://www.apache.org/dist/syncope/1.2.4/syncope-1.2.4-source-release.zip.asc";>asc
 
+http://www.apache.org/dist/syncope/1.2.4/syncope-1.2.4-source-release.zip.md5";>md5
 
+http://www.apache.org/dist/syncope/1.2.4/syncope-1.2.4-source-release.zip.sha1";>sha1
   
 
 
   
-http://www.apache.org/dyn/closer.cgi/syncope/1.2.3/syncope-standalone-1.2.3-distribution.zip";>syncope-standalone-1.2.3-distribution.zip
+http://www.apache.org/dyn/closer.cgi/syncope/1.2.4/syncope-standalone-1.2.4-distribution.zip";>syncope-standalone-1.2.4-distribution.zip
   
   
-http://www.apache.org/dist/syncope/1.2.3/syncope-standalone-1.2.3-distribution.zip.asc";>asc
 
-http://www.apache.org/dist/syncope/1.2.3/syncope-standalone-1.2.3-distribution.zip.md5";>md5
 
-http://www.apache.org/dist/syncope/1.2.3/syncope-standalone-1.2.3-distribution.zip.sha1";>sha1
+http://www.apache.org/dist/syncope/1.2.4/syncope-standalone-1.2.4-distribution.zip.asc";>asc
 
+http://www.apache.org/dist/syncope/1.2.4/syncope-standalone-1.2.4-distribution.zip.md5";>md5
 
+http://www.apache.org/dist/syncope/1.2.4/syncope-standalone-1.2.4-distribution.zip.sha1";>sha1
   
 
 
   
-http://www.apache.org/dyn/closer.cgi/syncope/1.2.3/syncope-installer-1.2.3-uber.jar";>syncope-installer-1.2.3.jar
+http://www.apache.org/dyn/closer.cgi/syncope/1.2.4/syncope-installer-1.2.4-uber.jar";>syncope-installer-1.2.4.jar
   
   
-http://www.apache.org/dist/syncope/1.2.3/syncope-installer-1.2.3-uber.jar.asc";>asc
 
-http://www.apache.org/dist/syncope/1.2.3/syncope-installer-1.2.3-uber.jar.md5";>md5
 
-http://www.apache.org/dist/syncope/1.2.3/syncope-installer-1.2.3-uber.jar.sha1";>sha1
+http://www.apache.org/dist/syncope/1.2.4/syncope-installer-1.2.4-uber.jar.asc";>asc
 
+http://www.apache.org/dist/syncope/1.2.4/syncope-installer-1.2.4-uber.jar.md5";>md5
 
+http://www.apache.org/dist/syncope/1.2.4/syncope-installer-1.2.4-uber.jar.sha1";>sha1
   
 
 
   
-http://www.apache.org/dyn/closer.cgi/syncope/1.2.3/apache-syncope-1.2.3.deb";>apache-syncope-1.2.3.deb
+http://www.apache.org/dyn/closer.cgi/syncope/1.2.4/apache-syncope-1.2.4.deb";>apache-syncope-1.2.4.deb
   
   
-http://www.apache.org/dist/syncope/1.2.3/apache-syncope-1.2.3.deb.asc";>asc
 
-http://www.apache.org/dist/syncope/1.2.3/apache-syncope-1.2.3.deb.md5";>md5
 
-http://www.apache.org/dist/syncope/1

[7/9] syncope git commit: Upgrading CXF to 3.0.5

2015-05-08 Thread ilgrosso
Upgrading CXF to 3.0.5


Project: http://git-wip-us.apache.org/repos/asf/syncope/repo
Commit: http://git-wip-us.apache.org/repos/asf/syncope/commit/2f2e67fd
Tree: http://git-wip-us.apache.org/repos/asf/syncope/tree/2f2e67fd
Diff: http://git-wip-us.apache.org/repos/asf/syncope/diff/2f2e67fd

Branch: refs/heads/1_2_X
Commit: 2f2e67fdcc5bfe3bc3fd43200eb151788ee19095
Parents: 76af41f
Author: Francesco Chicchiriccò 
Authored: Fri May 8 16:05:59 2015 +0200
Committer: Francesco Chicchiriccò 
Committed: Fri May 8 16:05:59 2015 +0200

--
 pom.xml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
--


http://git-wip-us.apache.org/repos/asf/syncope/blob/2f2e67fd/pom.xml
--
diff --git a/pom.xml b/pom.xml
index 0e084ad..50fa6f3 100644
--- a/pom.xml
+++ b/pom.xml
@@ -343,7 +343,7 @@ under the License.
 
 1.8.5
 
-3.0.4   
+3.0.5   
 4.0.9.RELEASE
 3.2.7.RELEASE
 2.4.6



[5/9] syncope git commit: [maven-release-plugin] prepare for next development iteration

2015-05-08 Thread ilgrosso
[maven-release-plugin] prepare for next development iteration


Project: http://git-wip-us.apache.org/repos/asf/syncope/repo
Commit: http://git-wip-us.apache.org/repos/asf/syncope/commit/76af41f4
Tree: http://git-wip-us.apache.org/repos/asf/syncope/tree/76af41f4
Diff: http://git-wip-us.apache.org/repos/asf/syncope/diff/76af41f4

Branch: refs/heads/master
Commit: 76af41f44e43354223ca6ed3309f6ff1553532a4
Parents: cc52c3f
Author: fmartelli 
Authored: Tue May 5 11:29:41 2015 +0200
Committer: fmartelli 
Committed: Tue May 5 11:29:41 2015 +0200

--
 archetype/pom.xml | 2 +-
 build-tools/pom.xml   | 2 +-
 client/pom.xml| 2 +-
 common/pom.xml| 2 +-
 console/pom.xml   | 2 +-
 core-upgrader/pom.xml | 2 +-
 core/pom.xml  | 2 +-
 deb/console/pom.xml   | 2 +-
 deb/core/pom.xml  | 2 +-
 deb/pom.xml   | 2 +-
 installer/pom.xml | 2 +-
 pom.xml   | 4 ++--
 standalone/pom.xml| 2 +-
 13 files changed, 14 insertions(+), 14 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/syncope/blob/76af41f4/archetype/pom.xml
--
diff --git a/archetype/pom.xml b/archetype/pom.xml
index b627f17..928ec73 100644
--- a/archetype/pom.xml
+++ b/archetype/pom.xml
@@ -24,7 +24,7 @@ under the License.
   
 org.apache.syncope
 syncope
-1.2.4
+1.2.5-SNAPSHOT
   
 
   Apache Syncope Archetype

http://git-wip-us.apache.org/repos/asf/syncope/blob/76af41f4/build-tools/pom.xml
--
diff --git a/build-tools/pom.xml b/build-tools/pom.xml
index 82a9b69..c6f5da6 100644
--- a/build-tools/pom.xml
+++ b/build-tools/pom.xml
@@ -24,7 +24,7 @@ under the License.
   
 org.apache.syncope
 syncope
-1.2.4
+1.2.5-SNAPSHOT
   
 
   Apache Syncope Build Tools

http://git-wip-us.apache.org/repos/asf/syncope/blob/76af41f4/client/pom.xml
--
diff --git a/client/pom.xml b/client/pom.xml
index d743fa3..44856a3 100644
--- a/client/pom.xml
+++ b/client/pom.xml
@@ -24,7 +24,7 @@ under the License.
   
 org.apache.syncope
 syncope
-1.2.4
+1.2.5-SNAPSHOT
   
 
   Apache Syncope Client

http://git-wip-us.apache.org/repos/asf/syncope/blob/76af41f4/common/pom.xml
--
diff --git a/common/pom.xml b/common/pom.xml
index 819b9f1..2674801 100644
--- a/common/pom.xml
+++ b/common/pom.xml
@@ -24,7 +24,7 @@ under the License.
   
 org.apache.syncope
 syncope
-1.2.4
+1.2.5-SNAPSHOT
   
 
   Apache Syncope Common

http://git-wip-us.apache.org/repos/asf/syncope/blob/76af41f4/console/pom.xml
--
diff --git a/console/pom.xml b/console/pom.xml
index 64dc61d..7958c2c 100644
--- a/console/pom.xml
+++ b/console/pom.xml
@@ -24,7 +24,7 @@ under the License.
   
 org.apache.syncope
 syncope
-1.2.4
+1.2.5-SNAPSHOT
   
 
   Apache Syncope Console

http://git-wip-us.apache.org/repos/asf/syncope/blob/76af41f4/core-upgrader/pom.xml
--
diff --git a/core-upgrader/pom.xml b/core-upgrader/pom.xml
index 49cc14d..115d78b 100644
--- a/core-upgrader/pom.xml
+++ b/core-upgrader/pom.xml
@@ -23,7 +23,7 @@ under the License.
   
 org.apache.syncope
 syncope
-1.2.4
+1.2.5-SNAPSHOT
   
  
   org.apache.syncope

http://git-wip-us.apache.org/repos/asf/syncope/blob/76af41f4/core/pom.xml
--
diff --git a/core/pom.xml b/core/pom.xml
index ea809f8..aa136c5 100644
--- a/core/pom.xml
+++ b/core/pom.xml
@@ -24,7 +24,7 @@ under the License.
   
 org.apache.syncope
 syncope
-1.2.4
+1.2.5-SNAPSHOT
   
 
   Apache Syncope Core

http://git-wip-us.apache.org/repos/asf/syncope/blob/76af41f4/deb/console/pom.xml
--
diff --git a/deb/console/pom.xml b/deb/console/pom.xml
index 32bfec8..217e80d 100644
--- a/deb/console/pom.xml
+++ b/deb/console/pom.xml
@@ -24,7 +24,7 @@ under the License.
   
 org.apache.syncope
 syncope-deb
-1.2.4
+1.2.5-SNAPSHOT
   
 
   Apache Syncope Deb Console

http://git-wip-us.apache.org/repos/asf/syncope/blob/76af41f4/deb/core/pom.xml
--
diff --git a/deb/core/pom.xml b/deb/core/pom.xml
index d2841a7..cb56bc1 100644
--- a/deb/core/pom.xml
+++ b/deb/core/pom.xml
@@ -24,7 +24,7 @@ under the License.
   
 org.apache.syncope
 syncope-deb
-1.2.4
+1.2.5-SNAPSHOT
   
 
   Apache Syncope Deb Core

http://git-wip-us.apache.org/repos/asf/syncope/blob/76af41f4/deb/pom.xml
-

[3/9] syncope git commit: Updating downloads site page for release (fix release date for 1.2.3)

2015-05-08 Thread ilgrosso
Updating downloads site page for release (fix release date for 1.2.3)


Project: http://git-wip-us.apache.org/repos/asf/syncope/repo
Commit: http://git-wip-us.apache.org/repos/asf/syncope/commit/6eb2f91e
Tree: http://git-wip-us.apache.org/repos/asf/syncope/tree/6eb2f91e
Diff: http://git-wip-us.apache.org/repos/asf/syncope/diff/6eb2f91e

Branch: refs/heads/master
Commit: 6eb2f91ef5ba7c0bf5237f7287f199edae67906c
Parents: ed0e176
Author: fmartelli 
Authored: Tue May 5 10:41:59 2015 +0200
Committer: fmartelli 
Committed: Tue May 5 10:41:59 2015 +0200

--
 src/site/xdoc/downloads.xml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
--


http://git-wip-us.apache.org/repos/asf/syncope/blob/6eb2f91e/src/site/xdoc/downloads.xml
--
diff --git a/src/site/xdoc/downloads.xml b/src/site/xdoc/downloads.xml
index 6446cb5..5f895ce 100644
--- a/src/site/xdoc/downloads.xml
+++ b/src/site/xdoc/downloads.xml
@@ -192,7 +192,7 @@ under the License.
 
 
   
-Release date: Jan 30th, 2015
+Release date: Mar 20th, 2015
 
   https://cwiki.apache.org/confluence/display/SYNCOPE/Intermezzo";>Release 
notes
 



[6/9] syncope git commit: Upgrading CXF to 3.0.5

2015-05-08 Thread ilgrosso
Upgrading CXF to 3.0.5


Project: http://git-wip-us.apache.org/repos/asf/syncope/repo
Commit: http://git-wip-us.apache.org/repos/asf/syncope/commit/2f2e67fd
Tree: http://git-wip-us.apache.org/repos/asf/syncope/tree/2f2e67fd
Diff: http://git-wip-us.apache.org/repos/asf/syncope/diff/2f2e67fd

Branch: refs/heads/master
Commit: 2f2e67fdcc5bfe3bc3fd43200eb151788ee19095
Parents: 76af41f
Author: Francesco Chicchiriccò 
Authored: Fri May 8 16:05:59 2015 +0200
Committer: Francesco Chicchiriccò 
Committed: Fri May 8 16:05:59 2015 +0200

--
 pom.xml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
--


http://git-wip-us.apache.org/repos/asf/syncope/blob/2f2e67fd/pom.xml
--
diff --git a/pom.xml b/pom.xml
index 0e084ad..50fa6f3 100644
--- a/pom.xml
+++ b/pom.xml
@@ -343,7 +343,7 @@ under the License.
 
 1.8.5
 
-3.0.4   
+3.0.5   
 4.0.9.RELEASE
 3.2.7.RELEASE
 2.4.6



[9/9] syncope git commit: Upgrading Tomcat

2015-05-08 Thread ilgrosso
Upgrading Tomcat


Project: http://git-wip-us.apache.org/repos/asf/syncope/repo
Commit: http://git-wip-us.apache.org/repos/asf/syncope/commit/84028f11
Tree: http://git-wip-us.apache.org/repos/asf/syncope/tree/84028f11
Diff: http://git-wip-us.apache.org/repos/asf/syncope/diff/84028f11

Branch: refs/heads/master
Commit: 84028f11520152cbb2da560c9c241d95d6391019
Parents: bc3cc30
Author: Francesco Chicchiriccò 
Authored: Fri May 8 16:08:29 2015 +0200
Committer: Francesco Chicchiriccò 
Committed: Fri May 8 16:08:29 2015 +0200

--
 pom.xml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
--


http://git-wip-us.apache.org/repos/asf/syncope/blob/84028f11/pom.xml
--
diff --git a/pom.xml b/pom.xml
index fa2e49a..122aec1 100644
--- a/pom.xml
+++ b/pom.xml
@@ -406,7 +406,7 @@ under the License.
 ${log.directory}/cargo.log
 ${log.directory}/cargo-output.log
 
-8.0.21
+8.0.22
 
 anonymous
 



  1   2   3   4   5   6   7   8   9   10   >