You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@syncope.apache.org by il...@apache.org on 2012/03/15 11:17:24 UTC

svn commit: r1300882 [8/22] - in /incubator/syncope/trunk: build-tools/src/main/java/org/syncope/buildtools/ client/src/main/java/org/syncope/annotation/ client/src/main/java/org/syncope/client/ client/src/main/java/org/syncope/client/http/ client/src/...

Modified: incubator/syncope/trunk/console/src/main/java/org/syncope/console/pages/panels/RoleSecurityPanel.java
URL: http://svn.apache.org/viewvc/incubator/syncope/trunk/console/src/main/java/org/syncope/console/pages/panels/RoleSecurityPanel.java?rev=1300882&r1=1300881&r2=1300882&view=diff
==============================================================================
--- incubator/syncope/trunk/console/src/main/java/org/syncope/console/pages/panels/RoleSecurityPanel.java (original)
+++ incubator/syncope/trunk/console/src/main/java/org/syncope/console/pages/panels/RoleSecurityPanel.java Thu Mar 15 10:17:12 2012
@@ -45,8 +45,7 @@ public class RoleSecurityPanel extends P
     /**
      * Logger.
      */
-    protected static final Logger LOG =
-            LoggerFactory.getLogger(RoleSecurityPanel.class);
+    protected static final Logger LOG = LoggerFactory.getLogger(RoleSecurityPanel.class);
 
     private static final long serialVersionUID = -7982691107029848579L;
 
@@ -57,8 +56,7 @@ public class RoleSecurityPanel extends P
 
     IModel<Map<Long, String>> accountPolicies = null;
 
-    public <T extends AbstractAttributableTO> RoleSecurityPanel(
-            final String id, final T entityTO) {
+    public <T extends AbstractAttributableTO> RoleSecurityPanel(final String id, final T entityTO) {
 
         super(id);
 
@@ -71,8 +69,7 @@ public class RoleSecurityPanel extends P
             @Override
             protected Map<Long, String> load() {
                 Map<Long, String> res = new HashMap<Long, String>();
-                for (PolicyTO policyTO :
-                        policyRestClient.getPolicies(PolicyType.PASSWORD)) {
+                for (PolicyTO policyTO : policyRestClient.getPolicies(PolicyType.PASSWORD)) {
                     res.put(policyTO.getId(), policyTO.getDescription());
                 }
                 return res;
@@ -86,16 +83,14 @@ public class RoleSecurityPanel extends P
             @Override
             protected Map<Long, String> load() {
                 Map<Long, String> res = new HashMap<Long, String>();
-                for (PolicyTO policyTO :
-                        policyRestClient.getPolicies(PolicyType.ACCOUNT)) {
+                for (PolicyTO policyTO : policyRestClient.getPolicies(PolicyType.ACCOUNT)) {
                     res.put(policyTO.getId(), policyTO.getDescription());
                 }
                 return res;
             }
         };
 
-        final WebMarkupContainer securityContainer =
-                new WebMarkupContainer("security");
+        final WebMarkupContainer securityContainer = new WebMarkupContainer("security");
 
         securityContainer.setOutputMarkupId(true);
         add(securityContainer);
@@ -106,11 +101,9 @@ public class RoleSecurityPanel extends P
         final AjaxDropDownChoicePanel<Long> passwordPolicy = new AjaxDropDownChoicePanel<Long>("passwordPolicy",
                 "passwordPolicy", new PropertyModel(entityTO, "passwordPolicy"));
 
-        passwordPolicy.setChoiceRenderer(
-                new PolicyRenderer(PolicyType.PASSWORD));
+        passwordPolicy.setChoiceRenderer(new PolicyRenderer(PolicyType.PASSWORD));
 
-        passwordPolicy.setChoices(
-                new ArrayList<Long>(passwordPolicies.getObject().keySet()));
+        passwordPolicy.setChoices(new ArrayList<Long>(passwordPolicies.getObject().keySet()));
 
         ((DropDownChoice) passwordPolicy.getField()).setNullValid(true);
 
@@ -121,20 +114,16 @@ public class RoleSecurityPanel extends P
 
         passwordPolicy.setReadOnly(inhPasswordPolicy.getModelObject());
 
-        inhPasswordPolicy.getField().add(
-                new AjaxFormComponentUpdatingBehavior("onchange") {
+        inhPasswordPolicy.getField().add(new AjaxFormComponentUpdatingBehavior("onchange") {
 
-                    private static final long serialVersionUID =
-                            -1107858522700306810L;
-
-                    @Override
-                    protected void onUpdate(final AjaxRequestTarget target) {
-                        passwordPolicy.setReadOnly(
-                                inhPasswordPolicy.getModelObject());
-                        target.add(passwordPolicy);
-                    }
-                });
+            private static final long serialVersionUID = -1107858522700306810L;
 
+            @Override
+            protected void onUpdate(final AjaxRequestTarget target) {
+                passwordPolicy.setReadOnly(inhPasswordPolicy.getModelObject());
+                target.add(passwordPolicy);
+            }
+        });
 
         securityContainer.add(inhPasswordPolicy);
         // -------------------------------
@@ -157,18 +146,16 @@ public class RoleSecurityPanel extends P
                 "inheritAccountPolicy", new PropertyModel<Boolean>(entityTO, "inheritAccountPolicy"));
         accountPolicy.setReadOnly(inhAccountPolicy.getModelObject());
 
-        inhAccountPolicy.getField().add(
-                new AjaxFormComponentUpdatingBehavior("onchange") {
+        inhAccountPolicy.getField().add(new AjaxFormComponentUpdatingBehavior("onchange") {
 
-                    private static final long serialVersionUID =
-                            -1107858522700306810L;
+            private static final long serialVersionUID = -1107858522700306810L;
 
-                    @Override
-                    protected void onUpdate(final AjaxRequestTarget target) {
-                        accountPolicy.setReadOnly(inhAccountPolicy.getModelObject());
-                        target.add(accountPolicy);
-                    }
-                });
+            @Override
+            protected void onUpdate(final AjaxRequestTarget target) {
+                accountPolicy.setReadOnly(inhAccountPolicy.getModelObject());
+                target.add(accountPolicy);
+            }
+        });
 
         securityContainer.add(inhAccountPolicy);
         // -------------------------------
@@ -199,7 +186,9 @@ public class RoleSecurityPanel extends P
 
         @Override
         public String getIdValue(Long object, int index) {
-            return String.valueOf(object != null ? object : 0L);
+            return String.valueOf(object != null
+                    ? object
+                    : 0L);
         }
     };
 }

Modified: incubator/syncope/trunk/console/src/main/java/org/syncope/console/pages/panels/RoleSummaryPanel.java
URL: http://svn.apache.org/viewvc/incubator/syncope/trunk/console/src/main/java/org/syncope/console/pages/panels/RoleSummaryPanel.java?rev=1300882&r1=1300881&r2=1300882&view=diff
==============================================================================
--- incubator/syncope/trunk/console/src/main/java/org/syncope/console/pages/panels/RoleSummaryPanel.java (original)
+++ incubator/syncope/trunk/console/src/main/java/org/syncope/console/pages/panels/RoleSummaryPanel.java Thu Mar 15 10:17:12 2012
@@ -49,32 +49,27 @@ public class RoleSummaryPanel extends Pa
 
     private ModalWindow window;
 
-    public RoleSummaryPanel(final String id,
-            final ModalWindow window, final PageReference callerPageRef) {
+    public RoleSummaryPanel(final String id, final ModalWindow window, final PageReference callerPageRef) {
 
         super(id);
 
         this.callerPageRef = callerPageRef;
         this.window = window;
 
-        fragment = new Fragment("rolePanel",
-                this.selectedNode == null
-                ? "fakerootFrag" : (this.selectedNode.getId() != 0
-                ? "roleViewPanel" : "rootPanel"), this);
+        fragment = new Fragment("rolePanel", this.selectedNode == null
+                ? "fakerootFrag"
+                : (this.selectedNode.getId() != 0
+                        ? "roleViewPanel"
+                        : "rootPanel"), this);
 
         if (this.selectedNode != null) {
             if (this.selectedNode.getId() != 0) {
-                roleTabPanel =
-                        new RoleTabPanel("nodeViewPanel",
-                        selectedNode, window, callerPageRef);
+                roleTabPanel = new RoleTabPanel("nodeViewPanel", selectedNode, window, callerPageRef);
                 roleTabPanel.setOutputMarkupId(true);
                 fragment.add(roleTabPanel);
             } else {
-                actionLink =
-                        new TreeActionLinkPanel("actionLink",
-                        this.selectedNode.getId(),
-                        new CompoundPropertyModel(this.selectedNode),
-                        window, callerPageRef);
+                actionLink = new TreeActionLinkPanel("actionLink", this.selectedNode.getId(),
+                        new CompoundPropertyModel(this.selectedNode), window, callerPageRef);
                 fragment.add(actionLink);
             }
         }
@@ -92,29 +87,22 @@ public class RoleSummaryPanel extends Pa
 
         if (event.getPayload() instanceof TreeNodeClickUpdate) {
 
-            final TreeNodeClickUpdate update =
-                    (TreeNodeClickUpdate) event.getPayload();
+            final TreeNodeClickUpdate update = (TreeNodeClickUpdate) event.getPayload();
 
-            this.selectedNode =
-                    restClient.readRole(update.getSelectedNodeId());
+            this.selectedNode = restClient.readRole(update.getSelectedNodeId());
 
-            fragment = new Fragment("rolePanel", (update.getSelectedNodeId()
-                    != 0
-                    ? "roleViewPanel" : "rootPanel"), this);
+            fragment = new Fragment("rolePanel", (update.getSelectedNodeId() != 0
+                    ? "roleViewPanel"
+                    : "rootPanel"), this);
 
             if (update.getSelectedNodeId() != 0) {
 
-                roleTabPanel =
-                        new RoleTabPanel("nodeViewPanel",
-                        this.selectedNode, window, callerPageRef);
+                roleTabPanel = new RoleTabPanel("nodeViewPanel", this.selectedNode, window, callerPageRef);
                 roleTabPanel.setOutputMarkupId(true);
                 fragment.addOrReplace(roleTabPanel);
             } else {
-                actionLink =
-                        new TreeActionLinkPanel("actionLink",
-                        update.getSelectedNodeId(),
-                        new CompoundPropertyModel(this.selectedNode),
-                        window, callerPageRef);
+                actionLink = new TreeActionLinkPanel("actionLink", update.getSelectedNodeId(),
+                        new CompoundPropertyModel(this.selectedNode), window, callerPageRef);
                 actionLink.setOutputMarkupId(true);
                 fragment.addOrReplace(actionLink);
             }
@@ -130,8 +118,7 @@ public class RoleSummaryPanel extends Pa
 
         private Long selectedNodeId;
 
-        public TreeNodeClickUpdate(final AjaxRequestTarget target,
-                final Long selectedNodeId) {
+        public TreeNodeClickUpdate(final AjaxRequestTarget target, final Long selectedNodeId) {
 
             this.target = target;
             this.selectedNodeId = selectedNodeId;

Modified: incubator/syncope/trunk/console/src/main/java/org/syncope/console/pages/panels/RoleTabPanel.java
URL: http://svn.apache.org/viewvc/incubator/syncope/trunk/console/src/main/java/org/syncope/console/pages/panels/RoleTabPanel.java?rev=1300882&r1=1300881&r2=1300882&view=diff
==============================================================================
--- incubator/syncope/trunk/console/src/main/java/org/syncope/console/pages/panels/RoleTabPanel.java (original)
+++ incubator/syncope/trunk/console/src/main/java/org/syncope/console/pages/panels/RoleTabPanel.java Thu Mar 15 10:17:12 2012
@@ -44,8 +44,8 @@ public class RoleTabPanel extends Panel 
 
     private RoleTO roleTO;
 
-    public RoleTabPanel(final String id, final RoleTO roleTO,
-            final ModalWindow window, final PageReference callerPageRef) {
+    public RoleTabPanel(final String id, final RoleTO roleTO, final ModalWindow window,
+            final PageReference callerPageRef) {
 
         super(id);
 
@@ -53,10 +53,8 @@ public class RoleTabPanel extends Panel 
 
         final Form form = new Form("RoleForm");
 
-        final TreeActionLinkPanel actionLink =
-                new TreeActionLinkPanel("actionLink", roleTO.getId(),
-                new CompoundPropertyModel(roleTO),
-                window, callerPageRef);
+        final TreeActionLinkPanel actionLink = new TreeActionLinkPanel("actionLink", roleTO.getId(),
+                new CompoundPropertyModel(roleTO), window, callerPageRef);
 
         this.add(actionLink);
         this.add(new Label("displayName", roleTO.getDisplayName()));
@@ -64,42 +62,35 @@ public class RoleTabPanel extends Panel 
         form.setModel(new CompoundPropertyModel(roleTO));
         form.setOutputMarkupId(true);
 
-        final RoleAttributesPanel attributesPanel =
-                new RoleAttributesPanel("attributesPanel", form, roleTO);
+        final RoleAttributesPanel attributesPanel = new RoleAttributesPanel("attributesPanel", form, roleTO);
 
         attributesPanel.setEnabled(false);
 
         form.add(attributesPanel);
 
-        final WebMarkupContainer userListContainer =
-                new WebMarkupContainer("userListContainer");
+        final WebMarkupContainer userListContainer = new WebMarkupContainer("userListContainer");
 
         userListContainer.setOutputMarkupId(true);
         userListContainer.setEnabled(true);
-        userListContainer.add(new ResultSetPanel("userList",
-                true, null, callerPageRef));
-        userListContainer.add(new IndicatingAjaxButton(
-                "search", new ResourceModel("search")) {
+        userListContainer.add(new ResultSetPanel("userList", true, null, callerPageRef));
+        userListContainer.add(new IndicatingAjaxButton("search", new ResourceModel("search")) {
 
             private static final long serialVersionUID = -958724007591692537L;
 
             @Override
-            protected void onSubmit(final AjaxRequestTarget target,
-                    final Form<?> form) {
+            protected void onSubmit(final AjaxRequestTarget target, final Form<?> form) {
 
                 final MembershipCond membershipCond = new MembershipCond();
                 membershipCond.setRoleName(roleTO.getName());
                 NodeCond cond = NodeCond.getLeafCond(membershipCond);
 
-                userListContainer.replace(new ResultSetPanel("userList",
-                        true, cond, callerPageRef));
+                userListContainer.replace(new ResultSetPanel("userList", true, cond, callerPageRef));
 
                 target.add(userListContainer);
             }
 
             @Override
-            protected void onError(final AjaxRequestTarget target,
-                    final Form form) {
+            protected void onError(final AjaxRequestTarget target, final Form form) {
             }
         });
 

Modified: incubator/syncope/trunk/console/src/main/java/org/syncope/console/pages/panels/RolesPanel.java
URL: http://svn.apache.org/viewvc/incubator/syncope/trunk/console/src/main/java/org/syncope/console/pages/panels/RolesPanel.java?rev=1300882&r1=1300881&r2=1300882&view=diff
==============================================================================
--- incubator/syncope/trunk/console/src/main/java/org/syncope/console/pages/panels/RolesPanel.java (original)
+++ incubator/syncope/trunk/console/src/main/java/org/syncope/console/pages/panels/RolesPanel.java Thu Mar 15 10:17:12 2012
@@ -55,14 +55,12 @@ public class RolesPanel extends Panel {
 
     private UserTO userTO = null;
 
-    public RolesPanel(final String id, final UserTO userTO,
-            final boolean templateMode) {
+    public RolesPanel(final String id, final UserTO userTO, final boolean templateMode) {
 
         super(id);
         this.userTO = userTO;
 
-        final WebMarkupContainer membershipsContainer =
-                new WebMarkupContainer("membershipsContainer");
+        final WebMarkupContainer membershipsContainer = new WebMarkupContainer("membershipsContainer");
         membershipsContainer.setOutputMarkupId(true);
         add(membershipsContainer);
 
@@ -81,98 +79,80 @@ public class RolesPanel extends Panel {
             }
 
             @Override
-            protected void onNodeLinkClicked(final Object node,
-                    final BaseTree tree, final AjaxRequestTarget target) {
+            protected void onNodeLinkClicked(final Object node, final BaseTree tree, final AjaxRequestTarget target) {
 
-                final RoleTO roleTO =
-                        (RoleTO) ((DefaultMutableTreeNode) node).getUserObject();
+                final RoleTO roleTO = (RoleTO) ((DefaultMutableTreeNode) node).getUserObject();
 
                 membershipWin.setPageCreator(new ModalWindow.PageCreator() {
 
-                    private static final long serialVersionUID =
-                            7661763358801821185L;
+                    private static final long serialVersionUID = 7661763358801821185L;
 
                     private MembershipTO membershipTO;
 
                     @Override
                     public Page createPage() {
 
-                        for (MembershipTO memberTO :
-                                membershipsView.getList()) {
+                        for (MembershipTO memberTO : membershipsView.getList()) {
 
                             if (memberTO.getRoleId() == roleTO.getId()) {
-                                return new MembershipModalPage(
-                                        getPage().getPageReference(),
-                                        membershipWin, memberTO, templateMode);
+                                return new MembershipModalPage(getPage().getPageReference(), membershipWin, memberTO,
+                                        templateMode);
                             }
                         }
                         membershipTO = new MembershipTO();
                         membershipTO.setRoleId(roleTO.getId());
                         membershipTO.setRoleName(roleTO.getName());
 
-                        return new MembershipModalPage(
-                                getPage().getPageReference(),
-                                membershipWin, membershipTO, templateMode);
+                        return new MembershipModalPage(getPage().getPageReference(), membershipWin, membershipTO,
+                                templateMode);
                     }
                 });
                 membershipWin.show(target);
             }
         };
 
-        tree.setOutputMarkupId(
-                true);
+        tree.setOutputMarkupId(true);
         tree.getTreeState().expandAll();
 
         add(tree);
 
-        membershipsView = new ListView<MembershipTO>(
-                "memberships", new PropertyModel<List<? extends MembershipTO>>(
+        membershipsView = new ListView<MembershipTO>("memberships", new PropertyModel<List<? extends MembershipTO>>(
                 userTO, "memberships")) {
 
             private static final long serialVersionUID = 9101744072914090143L;
 
             @Override
             protected void populateItem(final ListItem item) {
-                final MembershipTO membershipTO =
-                        (MembershipTO) item.getDefaultModelObject();
+                final MembershipTO membershipTO = (MembershipTO) item.getDefaultModelObject();
 
-                item.add(new Label("roleId", new Model(
-                        membershipTO.getRoleId())));
-                item.add(new Label("roleName", new Model(
-                        membershipTO.getRoleName())));
+                item.add(new Label("roleId", new Model(membershipTO.getRoleId())));
+                item.add(new Label("roleName", new Model(membershipTO.getRoleName())));
 
                 AjaxLink editLink = new IndicatingAjaxLink("editLink") {
 
-                    private static final long serialVersionUID =
-                            -7978723352517770644L;
+                    private static final long serialVersionUID = -7978723352517770644L;
 
                     @Override
                     public void onClick(final AjaxRequestTarget target) {
-                        membershipWin.setPageCreator(
-                                new ModalWindow.PageCreator() {
+                        membershipWin.setPageCreator(new ModalWindow.PageCreator() {
 
-                                    private static final long serialVersionUID =
-                                            -7834632442532690940L;
+                            private static final long serialVersionUID = -7834632442532690940L;
 
-                                    @Override
-                                    public Page createPage() {
-                                        return new MembershipModalPage(
-                                                getPage().getPageReference(),
-                                                membershipWin, membershipTO,
-                                                templateMode);
+                            @Override
+                            public Page createPage() {
+                                return new MembershipModalPage(getPage().getPageReference(), membershipWin,
+                                        membershipTO, templateMode);
 
-                                    }
-                                });
+                            }
+                        });
                         membershipWin.show(target);
                     }
                 };
                 item.add(editLink);
 
-                AjaxLink deleteLink = new IndicatingDeleteOnConfirmAjaxLink(
-                        "deleteLink") {
+                AjaxLink deleteLink = new IndicatingDeleteOnConfirmAjaxLink("deleteLink") {
 
-                    private static final long serialVersionUID =
-                            -7978723352517770644L;
+                    private static final long serialVersionUID = -7978723352517770644L;
 
                     @Override
                     public void onClick(final AjaxRequestTarget target) {
@@ -189,25 +169,19 @@ public class RolesPanel extends Panel {
         setWindowClosedCallback(membershipWin, membershipsContainer);
     }
 
-    private void setWindowClosedCallback(
-            final ModalWindow window,
-            final WebMarkupContainer container) {
+    private void setWindowClosedCallback(final ModalWindow window, final WebMarkupContainer container) {
 
-        window.setWindowClosedCallback(
-                new ModalWindow.WindowClosedCallback() {
+        window.setWindowClosedCallback(new ModalWindow.WindowClosedCallback() {
 
-                    private static final long serialVersionUID =
-                            8804221891699487139L;
+            private static final long serialVersionUID = 8804221891699487139L;
 
-                    @Override
-                    public void onClose(final AjaxRequestTarget target) {
-                        final UserTO updatedUserTO =
-                                ((UserModalPage) getPage()).getUserTO();
-
-                        RolesPanel.this.userTO.setMemberships(
-                                updatedUserTO.getMemberships());
-                        target.add(container);
-                    }
-                });
+            @Override
+            public void onClose(final AjaxRequestTarget target) {
+                final UserTO updatedUserTO = ((UserModalPage) getPage()).getUserTO();
+
+                RolesPanel.this.userTO.setMemberships(updatedUserTO.getMemberships());
+                target.add(container);
+            }
+        });
     }
 }

Modified: incubator/syncope/trunk/console/src/main/java/org/syncope/console/pages/panels/SchedTasks.java
URL: http://svn.apache.org/viewvc/incubator/syncope/trunk/console/src/main/java/org/syncope/console/pages/panels/SchedTasks.java?rev=1300882&r1=1300881&r2=1300882&view=diff
==============================================================================
--- incubator/syncope/trunk/console/src/main/java/org/syncope/console/pages/panels/SchedTasks.java (original)
+++ incubator/syncope/trunk/console/src/main/java/org/syncope/console/pages/panels/SchedTasks.java Thu Mar 15 10:17:12 2012
@@ -80,8 +80,7 @@ public class SchedTasks extends Panel {
     @SpringBean
     protected XMLRolesReader xmlRolesReader;
 
-    public SchedTasks(final String id,
-            final PageReference callerPageRef) {
+    public SchedTasks(final String id, final PageReference callerPageRef) {
 
         super(id);
 
@@ -96,34 +95,23 @@ public class SchedTasks extends Panel {
         window.setCookieName("view-task-win");
         add(window);
 
-        ((Tasks) callerPageRef.getPage()).setWindowClosedCallback(
-                window, container);
+        ((Tasks) callerPageRef.getPage()).setWindowClosedCallback(window, container);
 
-        paginatorRows = prefMan.getPaginatorRows(
-                getWebRequest(),
-                Constants.PREF_SCHED_TASKS_PAGINATOR_ROWS);
+        paginatorRows = prefMan.getPaginatorRows(getWebRequest(), Constants.PREF_SCHED_TASKS_PAGINATOR_ROWS);
 
-        List<IColumn<SchedTaskTO>> columns =
-                new ArrayList<IColumn<SchedTaskTO>>();
+        List<IColumn<SchedTaskTO>> columns = new ArrayList<IColumn<SchedTaskTO>>();
 
-        columns.add(new PropertyColumn(
-                new ResourceModel("id"), "id", "id"));
+        columns.add(new PropertyColumn(new ResourceModel("id"), "id", "id"));
 
-        columns.add(new PropertyColumn(
-                new ResourceModel("class"), "jobClassName", "jobClassName"));
+        columns.add(new PropertyColumn(new ResourceModel("class"), "jobClassName", "jobClassName"));
 
-        columns.add(new DatePropertyColumn(
-                new ResourceModel("lastExec"), "lastExec", "lastExec"));
+        columns.add(new DatePropertyColumn(new ResourceModel("lastExec"), "lastExec", "lastExec"));
 
-        columns.add(new DatePropertyColumn(
-                new ResourceModel("nextExec"), "nextExec", "nextExec"));
+        columns.add(new DatePropertyColumn(new ResourceModel("nextExec"), "nextExec", "nextExec"));
 
-        columns.add(new PropertyColumn(
-                new ResourceModel("latestExecStatus"),
-                "latestExecStatus", "latestExecStatus"));
+        columns.add(new PropertyColumn(new ResourceModel("latestExecStatus"), "latestExecStatus", "latestExecStatus"));
 
-        columns.add(new AbstractColumn<SchedTaskTO>(
-                new ResourceModel("actions", "")) {
+        columns.add(new AbstractColumn<SchedTaskTO>(new ResourceModel("actions", "")) {
 
             private static final long serialVersionUID = 2054811145491901166L;
 
@@ -133,33 +121,27 @@ public class SchedTasks extends Panel {
             }
 
             @Override
-            public void populateItem(
-                    final Item<ICellPopulator<SchedTaskTO>> cellItem,
-                    final String componentId,
+            public void populateItem(final Item<ICellPopulator<SchedTaskTO>> cellItem, final String componentId,
                     final IModel<SchedTaskTO> model) {
 
                 final SchedTaskTO taskTO = model.getObject();
 
-                final ActionLinksPanel panel =
-                        new ActionLinksPanel(componentId, model);
+                final ActionLinksPanel panel = new ActionLinksPanel(componentId, model);
 
                 panel.add(new ActionLink() {
 
-                    private static final long serialVersionUID =
-                            -3722207913631435501L;
+                    private static final long serialVersionUID = -3722207913631435501L;
 
                     @Override
                     public void onClick(final AjaxRequestTarget target) {
 
                         window.setPageCreator(new ModalWindow.PageCreator() {
 
-                            private static final long serialVersionUID =
-                                    -7834632442532690940L;
+                            private static final long serialVersionUID = -7834632442532690940L;
 
                             @Override
                             public Page createPage() {
-                                return new SchedTaskModalPage(
-                                        window, taskTO, callerPageRef);
+                                return new SchedTaskModalPage(window, taskTO, callerPageRef);
                             }
                         });
 
@@ -169,8 +151,7 @@ public class SchedTasks extends Panel {
 
                 panel.add(new ActionLink() {
 
-                    private static final long serialVersionUID =
-                            -3722207913631435501L;
+                    private static final long serialVersionUID = -3722207913631435501L;
 
                     @Override
                     public void onClick(final AjaxRequestTarget target) {
@@ -188,8 +169,7 @@ public class SchedTasks extends Panel {
 
                 panel.add(new ActionLink() {
 
-                    private static final long serialVersionUID =
-                            -3722207913631435501L;
+                    private static final long serialVersionUID = -3722207913631435501L;
 
                     @Override
                     public void onClick(final AjaxRequestTarget target) {
@@ -207,8 +187,7 @@ public class SchedTasks extends Panel {
 
                 panel.add(new ActionLink() {
 
-                    private static final long serialVersionUID =
-                            -3722207913631435501L;
+                    private static final long serialVersionUID = -3722207913631435501L;
 
                     @Override
                     public void onClick(final AjaxRequestTarget target) {
@@ -227,17 +206,14 @@ public class SchedTasks extends Panel {
             }
         });
 
-        final AjaxFallbackDefaultDataTable<SchedTaskTO> table =
-                new AjaxFallbackDefaultDataTable<SchedTaskTO>(
-                "datatable", columns, new TasksProvider(
-                restClient, paginatorRows, getId(), SchedTaskTO.class),
+        final AjaxFallbackDefaultDataTable<SchedTaskTO> table = new AjaxFallbackDefaultDataTable<SchedTaskTO>(
+                "datatable", columns, new TasksProvider(restClient, paginatorRows, getId(), SchedTaskTO.class),
                 paginatorRows);
         container.add(table);
 
         Form paginatorForm = new Form("PaginatorForm");
 
-        final DropDownChoice rowsChooser = new DropDownChoice("rowsChooser",
-                new PropertyModel(this, "paginatorRows"),
+        final DropDownChoice rowsChooser = new DropDownChoice("rowsChooser", new PropertyModel(this, "paginatorRows"),
                 prefMan.getPaginatorChoices());
 
         rowsChooser.add(new AjaxFormComponentUpdatingBehavior("onchange") {
@@ -246,8 +222,7 @@ public class SchedTasks extends Panel {
 
             @Override
             protected void onUpdate(final AjaxRequestTarget target) {
-                prefMan.set(getWebRequest(), (WebResponse) getResponse(),
-                        Constants.PREF_SCHED_TASKS_PAGINATOR_ROWS,
+                prefMan.set(getWebRequest(), (WebResponse) getResponse(), Constants.PREF_SCHED_TASKS_PAGINATOR_ROWS,
                         String.valueOf(paginatorRows));
 
                 table.setItemsPerPage(paginatorRows);
@@ -267,13 +242,11 @@ public class SchedTasks extends Panel {
             public void onClick(final AjaxRequestTarget target) {
                 window.setPageCreator(new ModalWindow.PageCreator() {
 
-                    private static final long serialVersionUID =
-                            -7834632442532690940L;
+                    private static final long serialVersionUID = -7834632442532690940L;
 
                     @Override
                     public Page createPage() {
-                        return new SchedTaskModalPage(window,
-                                new SchedTaskTO(), callerPageRef);
+                        return new SchedTaskModalPage(window, new SchedTaskTO(), callerPageRef);
                     }
                 });
 
@@ -281,8 +254,8 @@ public class SchedTasks extends Panel {
             }
         };
 
-        MetaDataRoleAuthorizationStrategy.authorize(createLink, RENDER,
-                xmlRolesReader.getAllAllowedRoles("Tasks", "create"));
+        MetaDataRoleAuthorizationStrategy.authorize(createLink, RENDER, xmlRolesReader.getAllAllowedRoles("Tasks",
+                "create"));
 
         add(createLink);
     }

Modified: incubator/syncope/trunk/console/src/main/java/org/syncope/console/pages/panels/StatusPanel.java
URL: http://svn.apache.org/viewvc/incubator/syncope/trunk/console/src/main/java/org/syncope/console/pages/panels/StatusPanel.java?rev=1300882&r1=1300881&r2=1300882&view=diff
==============================================================================
--- incubator/syncope/trunk/console/src/main/java/org/syncope/console/pages/panels/StatusPanel.java (original)
+++ incubator/syncope/trunk/console/src/main/java/org/syncope/console/pages/panels/StatusPanel.java Thu Mar 15 10:17:12 2012
@@ -48,24 +48,18 @@ public class StatusPanel extends Panel {
     /**
      * Logger.
      */
-    private static final Logger LOG =
-            LoggerFactory.getLogger(StatusPanel.class);
+    private static final Logger LOG = LoggerFactory.getLogger(StatusPanel.class);
 
     @SpringBean
     private StatusUtils statusUtils;
 
-    public <T extends AbstractAttributableTO> StatusPanel(
-            final String id,
-            final UserTO userTO,
+    public <T extends AbstractAttributableTO> StatusPanel(final String id, final UserTO userTO,
             final List<StatusBean> selectedResources) {
         this(id, userTO, selectedResources, true);
     }
 
-    public <T extends AbstractAttributableTO> StatusPanel(
-            final String id,
-            final UserTO userTO,
-            final List<StatusBean> selectedResources,
-            final boolean enabled) {
+    public <T extends AbstractAttributableTO> StatusPanel(final String id, final UserTO userTO,
+            final List<StatusBean> selectedResources, final boolean enabled) {
 
         super(id);
 
@@ -87,114 +81,91 @@ public class StatusPanel extends Panel {
         final Fragment headerCheckFrag;
 
         if (enabled) {
-            headerCheckFrag = new Fragment(
-                    "headerCheck", "headerCheckFrag", this);
-            headerCheckFrag.add(
-                    new CheckGroupSelector("groupselector", group));
+            headerCheckFrag = new Fragment("headerCheck", "headerCheckFrag", this);
+            headerCheckFrag.add(new CheckGroupSelector("groupselector", group));
         } else {
-            headerCheckFrag = new Fragment(
-                    "headerCheck", "emptyCheckFrag", this);
+            headerCheckFrag = new Fragment("headerCheck", "emptyCheckFrag", this);
         }
 
         add(headerCheckFrag);
 
-        final ListView<StatusBean> resources =
-                new ListView<StatusBean>("resources", statuses) {
+        final ListView<StatusBean> resources = new ListView<StatusBean>("resources", statuses) {
 
-                    private static final long serialVersionUID =
-                            4949588177564901031L;
+            private static final long serialVersionUID = 4949588177564901031L;
 
-                    @Override
-                    protected void populateItem(
-                            final ListItem<StatusBean> item) {
-                        final Image image;
-                        final String alt, title;
-                        boolean checkVisibility = true;
-
-                        switch (item.getModelObject().getStatus()) {
-                            case ACTIVE:
-                                image = new Image(
-                                        "icon", "statuses/active.png");
-                                alt = "active icon";
-                                title = "Enabled";
-                                break;
-                            case UNDEFINED:
-                                image = new Image(
-                                        "icon", "statuses/undefined.png");
-                                checkVisibility = false;
-                                alt = "undefined icon";
-                                title = "Undefined status";
-                                break;
-                            case USER_NOT_FOUND:
-                                image = new Image(
-                                        "icon", "statuses/usernotfound.png");
-                                checkVisibility = false;
-                                alt = "notfound icon";
-                                title = "User not found";
-                                break;
-                            default:
-                                image = new Image(
-                                        "icon", "statuses/inactive.png");
-                                alt = "inactive icon";
-                                title = "Disabled";
-                        }
-
-                        image.add(new Behavior() {
-
-                            private static final long serialVersionUID =
-                                    1469628524240283489L;
-
-                            @Override
-                            public void onComponentTag(
-                                    final Component component,
-                                    final ComponentTag tag) {
-                                tag.put("alt", alt);
-                                tag.put("title", title);
-                            }
-                        });
-
-                        final Fragment checkFrag;
-
-                        if (!enabled) {
-                            checkFrag = new Fragment(
-                                    "rowCheck",
-                                    "emptyCheckFrag",
-                                    group.getParent());
-                        } else {
-                            final Check check = new Check(
-                                    "check", item.getModel(), group);
-
-                            check.setEnabled(checkVisibility);
-                            check.setVisible(checkVisibility);
-
-                            checkFrag = new Fragment(
-                                    "rowCheck",
-                                    "rowCheckFrag",
-                                    getParent());
-
-                            checkFrag.add(check);
-                        }
-
-                        item.add(checkFrag);
-
-                        item.add(new Label("resource", new ResourceModel(
-                                item.getModelObject().getResourceName(),
-                                item.getModelObject().getResourceName())));
-
-                        if (StringUtils.isNotBlank(
-                                item.getModelObject().getAccountLink())) {
-
-                            item.add(new Label("accountLink", new ResourceModel(
-                                    item.getModelObject().getAccountLink(),
-                                    item.getModelObject().getAccountLink())));
-
-                        } else {
-                            item.add(new Label("accountLink", ""));
-                        }
+            @Override
+            protected void populateItem(final ListItem<StatusBean> item) {
+                final Image image;
+                final String alt, title;
+                boolean checkVisibility = true;
+
+                switch (item.getModelObject().getStatus()) {
+                    case ACTIVE:
+                        image = new Image("icon", "statuses/active.png");
+                        alt = "active icon";
+                        title = "Enabled";
+                        break;
+                    case UNDEFINED:
+                        image = new Image("icon", "statuses/undefined.png");
+                        checkVisibility = false;
+                        alt = "undefined icon";
+                        title = "Undefined status";
+                        break;
+                    case USER_NOT_FOUND:
+                        image = new Image("icon", "statuses/usernotfound.png");
+                        checkVisibility = false;
+                        alt = "notfound icon";
+                        title = "User not found";
+                        break;
+                    default:
+                        image = new Image("icon", "statuses/inactive.png");
+                        alt = "inactive icon";
+                        title = "Disabled";
+                }
+
+                image.add(new Behavior() {
 
-                        item.add(image);
+                    private static final long serialVersionUID = 1469628524240283489L;
+
+                    @Override
+                    public void onComponentTag(final Component component, final ComponentTag tag) {
+                        tag.put("alt", alt);
+                        tag.put("title", title);
                     }
-                };
+                });
+
+                final Fragment checkFrag;
+
+                if (!enabled) {
+                    checkFrag = new Fragment("rowCheck", "emptyCheckFrag", group.getParent());
+                } else {
+                    final Check check = new Check("check", item.getModel(), group);
+
+                    check.setEnabled(checkVisibility);
+                    check.setVisible(checkVisibility);
+
+                    checkFrag = new Fragment("rowCheck", "rowCheckFrag", getParent());
+
+                    checkFrag.add(check);
+                }
+
+                item.add(checkFrag);
+
+                item.add(new Label("resource", new ResourceModel(item.getModelObject().getResourceName(), item
+                        .getModelObject().getResourceName())));
+
+                if (StringUtils.isNotBlank(item.getModelObject().getAccountLink())) {
+
+                    item.add(new Label("accountLink", new ResourceModel(item.getModelObject().getAccountLink(), item
+                            .getModelObject().getAccountLink())));
+
+                } else {
+                    item.add(new Label("accountLink", ""));
+                }
+
+                item.add(image);
+            }
+        };
 
         resources.setReuseItems(true);
 

Modified: incubator/syncope/trunk/console/src/main/java/org/syncope/console/pages/panels/SyncTasks.java
URL: http://svn.apache.org/viewvc/incubator/syncope/trunk/console/src/main/java/org/syncope/console/pages/panels/SyncTasks.java?rev=1300882&r1=1300881&r2=1300882&view=diff
==============================================================================
--- incubator/syncope/trunk/console/src/main/java/org/syncope/console/pages/panels/SyncTasks.java (original)
+++ incubator/syncope/trunk/console/src/main/java/org/syncope/console/pages/panels/SyncTasks.java Thu Mar 15 10:17:12 2012
@@ -94,34 +94,23 @@ public class SyncTasks extends Panel {
         window.setCookieName("view-task-win");
         add(window);
 
-        ((Tasks) callerPageRef.getPage()).setWindowClosedCallback(
-                window, container);
+        ((Tasks) callerPageRef.getPage()).setWindowClosedCallback(window, container);
 
-        paginatorRows = prefMan.getPaginatorRows(
-                getWebRequest(),
-                Constants.PREF_SYNC_TASKS_PAGINATOR_ROWS);
+        paginatorRows = prefMan.getPaginatorRows(getWebRequest(), Constants.PREF_SYNC_TASKS_PAGINATOR_ROWS);
 
-        List<IColumn<SyncTaskTO>> columns =
-                new ArrayList<IColumn<SyncTaskTO>>();
+        List<IColumn<SyncTaskTO>> columns = new ArrayList<IColumn<SyncTaskTO>>();
 
-        columns.add(new PropertyColumn(
-                new ResourceModel("id"), "id", "id"));
+        columns.add(new PropertyColumn(new ResourceModel("id"), "id", "id"));
 
-        columns.add(new PropertyColumn(
-                new ResourceModel("resourceName"), "resource", "resource"));
+        columns.add(new PropertyColumn(new ResourceModel("resourceName"), "resource", "resource"));
 
-        columns.add(new DatePropertyColumn(
-                new ResourceModel("lastExec"), "lastExec", "lastExec"));
+        columns.add(new DatePropertyColumn(new ResourceModel("lastExec"), "lastExec", "lastExec"));
 
-        columns.add(new DatePropertyColumn(
-                new ResourceModel("nextExec"), "nextExec", "nextExec"));
+        columns.add(new DatePropertyColumn(new ResourceModel("nextExec"), "nextExec", "nextExec"));
 
-        columns.add(new PropertyColumn(
-                new ResourceModel("latestExecStatus"),
-                "latestExecStatus", "latestExecStatus"));
+        columns.add(new PropertyColumn(new ResourceModel("latestExecStatus"), "latestExecStatus", "latestExecStatus"));
 
-        columns.add(new AbstractColumn<SyncTaskTO>(
-                new ResourceModel("actions", "")) {
+        columns.add(new AbstractColumn<SyncTaskTO>(new ResourceModel("actions", "")) {
 
             private static final long serialVersionUID = 2054811145491901166L;
 
@@ -131,15 +120,12 @@ public class SyncTasks extends Panel {
             }
 
             @Override
-            public void populateItem(
-                    final Item<ICellPopulator<SyncTaskTO>> cellItem,
-                    final String componentId,
+            public void populateItem(final Item<ICellPopulator<SyncTaskTO>> cellItem, final String componentId,
                     final IModel<SyncTaskTO> model) {
 
                 final SyncTaskTO taskTO = model.getObject();
 
-                final ActionLinksPanel panel =
-                        new ActionLinksPanel(componentId, model);
+                final ActionLinksPanel panel = new ActionLinksPanel(componentId, model);
 
                 panel.add(new ActionLink() {
 
@@ -150,13 +136,11 @@ public class SyncTasks extends Panel {
 
                         window.setPageCreator(new ModalWindow.PageCreator() {
 
-                            private static final long serialVersionUID =
-                                    -7834632442532690940L;
+                            private static final long serialVersionUID = -7834632442532690940L;
 
                             @Override
                             public Page createPage() {
-                                return new SyncTaskModalPage(
-                                        window, taskTO, callerPageRef);
+                                return new SyncTaskModalPage(window, taskTO, callerPageRef);
                             }
                         });
 
@@ -173,13 +157,11 @@ public class SyncTasks extends Panel {
 
                         window.setPageCreator(new ModalWindow.PageCreator() {
 
-                            private static final long serialVersionUID =
-                                    -7834632442532690940L;
+                            private static final long serialVersionUID = -7834632442532690940L;
 
                             @Override
                             public Page createPage() {
-                                return new UserTemplateModalPage(
-                                        callerPageRef, window, taskTO);
+                                return new UserTemplateModalPage(callerPageRef, window, taskTO);
                             }
                         });
 
@@ -244,17 +226,13 @@ public class SyncTasks extends Panel {
             }
         });
 
-        final AjaxFallbackDefaultDataTable<SyncTaskTO> table =
-                new AjaxFallbackDefaultDataTable<SyncTaskTO>(
-                "datatable", columns, new TasksProvider(
-                restClient, paginatorRows, id, SyncTaskTO.class),
-                paginatorRows);
+        final AjaxFallbackDefaultDataTable<SyncTaskTO> table = new AjaxFallbackDefaultDataTable<SyncTaskTO>(
+                "datatable", columns, new TasksProvider(restClient, paginatorRows, id, SyncTaskTO.class), paginatorRows);
         container.add(table);
 
         Form paginatorForm = new Form("PaginatorForm");
 
-        final DropDownChoice rowsChooser = new DropDownChoice("rowsChooser",
-                new PropertyModel(this, "paginatorRows"),
+        final DropDownChoice rowsChooser = new DropDownChoice("rowsChooser", new PropertyModel(this, "paginatorRows"),
                 prefMan.getPaginatorChoices());
 
         rowsChooser.add(new AjaxFormComponentUpdatingBehavior("onchange") {
@@ -263,8 +241,7 @@ public class SyncTasks extends Panel {
 
             @Override
             protected void onUpdate(final AjaxRequestTarget target) {
-                prefMan.set(getWebRequest(), (WebResponse) getResponse(),
-                        Constants.PREF_SYNC_TASKS_PAGINATOR_ROWS,
+                prefMan.set(getWebRequest(), (WebResponse) getResponse(), Constants.PREF_SYNC_TASKS_PAGINATOR_ROWS,
                         String.valueOf(paginatorRows));
 
                 table.setItemsPerPage(paginatorRows);
@@ -285,13 +262,11 @@ public class SyncTasks extends Panel {
             public void onClick(final AjaxRequestTarget target) {
                 window.setPageCreator(new ModalWindow.PageCreator() {
 
-                    private static final long serialVersionUID =
-                            -7834632442532690940L;
+                    private static final long serialVersionUID = -7834632442532690940L;
 
                     @Override
                     public Page createPage() {
-                        return new SyncTaskModalPage(
-                                window, new SyncTaskTO(), callerPageRef);
+                        return new SyncTaskModalPage(window, new SyncTaskTO(), callerPageRef);
                     }
                 });
 
@@ -299,8 +274,8 @@ public class SyncTasks extends Panel {
             }
         };
 
-        MetaDataRoleAuthorizationStrategy.authorize(createLink, RENDER,
-                xmlRolesReader.getAllAllowedRoles("Tasks", "create"));
+        MetaDataRoleAuthorizationStrategy.authorize(createLink, RENDER, xmlRolesReader.getAllAllowedRoles("Tasks",
+                "create"));
 
         add(createLink);
     }

Modified: incubator/syncope/trunk/console/src/main/java/org/syncope/console/pages/panels/UserDetailsPanel.java
URL: http://svn.apache.org/viewvc/incubator/syncope/trunk/console/src/main/java/org/syncope/console/pages/panels/UserDetailsPanel.java?rev=1300882&r1=1300881&r2=1300882&view=diff
==============================================================================
--- incubator/syncope/trunk/console/src/main/java/org/syncope/console/pages/panels/UserDetailsPanel.java (original)
+++ incubator/syncope/trunk/console/src/main/java/org/syncope/console/pages/panels/UserDetailsPanel.java Thu Mar 15 10:17:12 2012
@@ -40,20 +40,16 @@ public class UserDetailsPanel extends Pa
 
     private static final long serialVersionUID = 6592027822510220463L;
 
-    public <T extends AbstractAttributableTO> UserDetailsPanel(
-            final String id,
-            final UserTO userTO,
-            final Form form,
-            final boolean resetPassword,
-            final boolean templateMode) {
+    public <T extends AbstractAttributableTO> UserDetailsPanel(final String id, final UserTO userTO, final Form form,
+            final boolean resetPassword, final boolean templateMode) {
 
         super(id);
 
         // ------------------------
         // Username
         // ------------------------
-        final FieldPanel username = new AjaxTextFieldPanel("username", "username",
-                new PropertyModel<String>(userTO, "username"));
+        final FieldPanel username = new AjaxTextFieldPanel("username", "username", new PropertyModel<String>(userTO,
+                "username"));
         if (!templateMode) {
             username.addRequiredLabel();
         }
@@ -64,8 +60,7 @@ public class UserDetailsPanel extends Pa
         // Password
         // ------------------------
         final FieldPanel password;
-        final Label confirmPasswordLabel = new Label("confirmPasswordLabel",
-                new ResourceModel("confirmPassword"));
+        final Label confirmPasswordLabel = new Label("confirmPasswordLabel", new ResourceModel("confirmPassword"));
         final FieldPanel confirmPassword;
         if (templateMode) {
             password = new AjaxTextFieldPanel("password", "password", new PropertyModel<String>(userTO, "password"));
@@ -86,23 +81,19 @@ public class UserDetailsPanel extends Pa
             confirmPassword.setRequired(userTO.getId() == 0);
             ((PasswordTextField) confirmPassword.getField()).setResetPassword(resetPassword);
 
-            form.add(new EqualPasswordInputValidator(
-                    password.getField(), confirmPassword.getField()));
+            form.add(new EqualPasswordInputValidator(password.getField(), confirmPassword.getField()));
         }
         add(password);
         add(confirmPasswordLabel);
         add(confirmPassword);
 
-        final WebMarkupContainer mandatoryPassword =
-                new WebMarkupContainer("mandatory_pwd");
+        final WebMarkupContainer mandatoryPassword = new WebMarkupContainer("mandatory_pwd");
         mandatoryPassword.add(new Behavior() {
 
-            private static final long serialVersionUID =
-                    1469628524240283489L;
+            private static final long serialVersionUID = 1469628524240283489L;
 
             @Override
-            public void onComponentTag(
-                    final Component component, final ComponentTag tag) {
+            public void onComponentTag(final Component component, final ComponentTag tag) {
 
                 if (userTO.getId() > 0) {
                     tag.put("style", "display:none;");

Modified: incubator/syncope/trunk/console/src/main/java/org/syncope/console/pages/panels/UserManagementResultPanel.java
URL: http://svn.apache.org/viewvc/incubator/syncope/trunk/console/src/main/java/org/syncope/console/pages/panels/UserManagementResultPanel.java?rev=1300882&r1=1300881&r2=1300882&view=diff
==============================================================================
--- incubator/syncope/trunk/console/src/main/java/org/syncope/console/pages/panels/UserManagementResultPanel.java (original)
+++ incubator/syncope/trunk/console/src/main/java/org/syncope/console/pages/panels/UserManagementResultPanel.java Thu Mar 15 10:17:12 2012
@@ -64,8 +64,7 @@ public class UserManagementResultPanel e
     /**
      * Logger.
      */
-    private static final Logger LOG =
-            LoggerFactory.getLogger(UserManagementResultPanel.class);
+    private static final Logger LOG = LoggerFactory.getLogger(UserManagementResultPanel.class);
 
     /**
      * Status management utilities.
@@ -81,10 +80,7 @@ public class UserManagementResultPanel e
      * @param mode operation mode.
      * @param userTO User TO.
      */
-    public UserManagementResultPanel(
-            final String id,
-            final ModalWindow window,
-            final UserModalPage.Mode mode,
+    public UserManagementResultPanel(final String id, final ModalWindow window, final UserModalPage.Mode mode,
             final UserTO userTO) {
 
         super(id);
@@ -92,15 +88,13 @@ public class UserManagementResultPanel e
         // shortcut to retrieve fragments inside inner classes
         final Panel panel = this;
 
-        final WebMarkupContainer container =
-                new WebMarkupContainer("container");
+        final WebMarkupContainer container = new WebMarkupContainer("container");
         container.setOutputMarkupId(true);
         add(container);
 
-        final Fragment fragment = new Fragment("userModalResultFrag",
-                mode == UserModalPage.Mode.SELF
-                ? "userModalSelfResultFrag" : "userModalPropagationResultFrag",
-                this);
+        final Fragment fragment = new Fragment("userModalResultFrag", mode == UserModalPage.Mode.SELF
+                ? "userModalSelfResultFrag"
+                : "userModalPropagationResultFrag", this);
 
         fragment.setOutputMarkupId(true);
         container.add(fragment);
@@ -117,30 +111,25 @@ public class UserManagementResultPanel e
             propagations.addAll(userTO.getPropagationTOs());
 
             fragment.add(new Label("userInfo", userTO.getUsername() != null
-                    ? userTO.getUsername() : String.valueOf(userTO.getId())));
+                    ? userTO.getUsername()
+                    : String.valueOf(userTO.getId())));
 
-            final ListView<PropagationTO> propRes = new ListView<PropagationTO>(
-                    "resources", propagations) {
+            final ListView<PropagationTO> propRes = new ListView<PropagationTO>("resources", propagations) {
 
-                private static final long serialVersionUID =
-                        -1020475259727720708L;
+                private static final long serialVersionUID = -1020475259727720708L;
 
                 @Override
                 protected void populateItem(final ListItem item) {
-                    final PropagationTO propTO =
-                            (PropagationTO) item.getDefaultModelObject();
+                    final PropagationTO propTO = (PropagationTO) item.getDefaultModelObject();
 
                     final ListView attributes = getConnObjectView(propTO);
 
                     final Fragment attrhead;
 
-                    if (attributes.getModelObject() != null
-                            && !attributes.getModelObject().isEmpty()) {
-                        attrhead = new Fragment(
-                                "attrhead", "attrHeadFrag", panel);
+                    if (attributes.getModelObject() != null && !attributes.getModelObject().isEmpty()) {
+                        attrhead = new Fragment("attrhead", "attrHeadFrag", panel);
                     } else {
-                        attrhead = new Fragment(
-                                "attrhead", "emptyAttrHeadFrag", panel);
+                        attrhead = new Fragment("attrhead", "emptyAttrHeadFrag", panel);
                     }
 
                     item.add(attrhead);
@@ -148,9 +137,9 @@ public class UserManagementResultPanel e
 
                     attrhead.add(new Label("resource", propTO.getResourceName()));
 
-                    attrhead.add(new Label("propagation",
-                            propTO.getStatus() != null
-                            ? propTO.getStatus().toString() : "UNDEFINED"));
+                    attrhead.add(new Label("propagation", propTO.getStatus() != null
+                            ? propTO.getStatus().toString()
+                            : "UNDEFINED"));
 
                     final Image image;
                     final String alt, title;
@@ -171,13 +160,10 @@ public class UserManagementResultPanel e
 
                     image.add(new Behavior() {
 
-                        private static final long serialVersionUID =
-                                1469628524240283489L;
+                        private static final long serialVersionUID = 1469628524240283489L;
 
                         @Override
-                        public void onComponentTag(
-                                final Component component,
-                                final ComponentTag tag) {
+                        public void onComponentTag(final Component component, final ComponentTag tag) {
                             tag.put("alt", alt);
                             tag.put("title", title);
                         }
@@ -191,8 +177,7 @@ public class UserManagementResultPanel e
 
         final AjaxLink close = new IndicatingAjaxLink("close") {
 
-            private static final long serialVersionUID =
-                    -7978723352517770644L;
+            private static final long serialVersionUID = -7978723352517770644L;
 
             @Override
             public void onClick(final AjaxRequestTarget target) {
@@ -213,8 +198,7 @@ public class UserManagementResultPanel e
         final ConnObjectTO after = propTO.getAfter();
 
         // sorted in reversed presentation order
-        final List<String> head = Arrays.asList(new String[]{
-                    "__PASSWORD__", "__ENABLE__", "__UID__", "__NAME__"});
+        final List<String> head = Arrays.asList(new String[] { "__PASSWORD__", "__ENABLE__", "__UID__", "__NAME__" });
 
         final Map<String, AttributeTO> beforeAttrMap;
 
@@ -262,11 +246,9 @@ public class UserManagementResultPanel e
                     beforeValue = getStatusIcon("beforeValue", before);
                     afterValue = getStatusIcon("afterValue", after);
                 } else {
-                    beforeValue = getLabelValue(
-                            "beforeValue", name, beforeAttrMap);
+                    beforeValue = getLabelValue("beforeValue", name, beforeAttrMap);
 
-                    afterValue = getLabelValue(
-                            "afterValue", name, afterAttrMap);
+                    afterValue = getLabelValue("afterValue", name, afterAttrMap);
                 }
 
                 item.add(new Label("attrName", new ResourceModel(name, name)));
@@ -285,42 +267,34 @@ public class UserManagementResultPanel e
      * @param attrMap remote attributes map.
      * @return fragment.
      */
-    private Fragment getLabelValue(
-            final String id,
-            final String attrName,
-            final Map<String, AttributeTO> attrMap) {
+    private Fragment getLabelValue(final String id, final String attrName, final Map<String, AttributeTO> attrMap) {
         final String value;
 
         final AttributeTO attr = attrMap.get(attrName);
 
-        if (attr != null
-                && attr.getValues() != null
-                && !attr.getValues().isEmpty()) {
+        if (attr != null && attr.getValues() != null && !attr.getValues().isEmpty()) {
 
             if ("__PASSWORD__".equals(attrName)) {
                 value = "********";
             } else {
                 value = attr.getValues().size() > 1
-                        ? attr.getValues().toString() : attr.getValues().get(0);
+                        ? attr.getValues().toString()
+                        : attr.getValues().get(0);
             }
 
         } else {
             value = "";
         }
 
-        Component label = new Label("value", value).add(
-                new Behavior() {
+        Component label = new Label("value", value).add(new Behavior() {
 
-                    private static final long serialVersionUID =
-                            1469628524240283489L;
+            private static final long serialVersionUID = 1469628524240283489L;
 
-                    @Override
-                    public void onComponentTag(
-                            final Component component,
-                            final ComponentTag tag) {
-                        tag.put("title", value);
-                    }
-                });
+            @Override
+            public void onComponentTag(final Component component, final ComponentTag tag) {
+                tag.put("title", value);
+            }
+        });
 
         final Fragment frag = new Fragment(id, "attrValueFrag", this);
         frag.add(label);
@@ -335,9 +309,7 @@ public class UserManagementResultPanel e
      * @param objectTO connector object TO.
      * @return fragment.
      */
-    private Fragment getStatusIcon(
-            final String id,
-            final ConnObjectTO objectTO) {
+    private Fragment getStatusIcon(final String id, final ConnObjectTO objectTO) {
         final Image image;
         final String alt, title;
 
@@ -363,13 +335,10 @@ public class UserManagementResultPanel e
         if (image != null) {
             image.add(new Behavior() {
 
-                private static final long serialVersionUID =
-                        1469628524240283489L;
+                private static final long serialVersionUID = 1469628524240283489L;
 
                 @Override
-                public void onComponentTag(
-                        final Component component,
-                        final ComponentTag tag) {
+                public void onComponentTag(final Component component, final ComponentTag tag) {
                     tag.put("alt", alt);
                     tag.put("title", title);
                     tag.put("width", "12px");

Modified: incubator/syncope/trunk/console/src/main/java/org/syncope/console/pages/panels/UserSearchPanel.java
URL: http://svn.apache.org/viewvc/incubator/syncope/trunk/console/src/main/java/org/syncope/console/pages/panels/UserSearchPanel.java?rev=1300882&r1=1300881&r2=1300882&view=diff
==============================================================================
--- incubator/syncope/trunk/console/src/main/java/org/syncope/console/pages/panels/UserSearchPanel.java (original)
+++ incubator/syncope/trunk/console/src/main/java/org/syncope/console/pages/panels/UserSearchPanel.java Thu Mar 15 10:17:12 2012
@@ -70,12 +70,10 @@ public class UserSearchPanel extends Pan
     /**
      * Logger.
      */
-    private static final Logger LOG =
-            LoggerFactory.getLogger(UserSearchPanel.class);
+    private static final Logger LOG = LoggerFactory.getLogger(UserSearchPanel.class);
 
-    private List<String> ATTRIBUTES_NOTINCLUDED = Arrays.asList(new String[]{
-                "attributes", "derivedAttributes", "virtualAttributes",
-                "serialVersionUID", "memberships", "resources", "password", "propagationStatusMap"});
+    private List<String> ATTRIBUTES_NOTINCLUDED = Arrays.asList(new String[] { "attributes", "derivedAttributes",
+            "virtualAttributes", "serialVersionUID", "memberships", "resources", "password", "propagationStatusMap" });
 
     @SpringBean
     private SchemaRestClient schemaRestClient;
@@ -158,16 +156,15 @@ public class UserSearchPanel extends Pan
         }
     };
 
-    final private IModel<List<AttributeCond.Type>> attributeTypes =
-            new LoadableDetachableModel<List<AttributeCond.Type>>() {
+    final private IModel<List<AttributeCond.Type>> attributeTypes = new LoadableDetachableModel<List<AttributeCond.Type>>() {
 
-                private static final long serialVersionUID = 5275935387613157437L;
+        private static final long serialVersionUID = 5275935387613157437L;
 
-                @Override
-                protected List<AttributeCond.Type> load() {
-                    return Arrays.asList(AttributeCond.Type.values());
-                }
-            };
+        @Override
+        protected List<AttributeCond.Type> load() {
+            return Arrays.asList(AttributeCond.Type.values());
+        }
+    };
 
     final private IModel<List<FilterType>> filterTypes = new LoadableDetachableModel<List<FilterType>>() {
 
@@ -236,8 +233,7 @@ public class UserSearchPanel extends Pan
             private static final long serialVersionUID = -4804368561204623354L;
 
             @Override
-            protected void onSubmit(final AjaxRequestTarget target,
-                    final Form<?> form) {
+            protected void onSubmit(final AjaxRequestTarget target, final Form<?> form) {
 
                 SearchCondWrapper conditionWrapper = new SearchCondWrapper();
                 conditionWrapper.setOperationType(OperationType.AND);
@@ -296,7 +292,8 @@ public class UserSearchPanel extends Pan
                 wrappers.add(getSearchCondWrapper(searchCond.getLeftNodeCond()));
                 SearchCondWrapper wrapper = getSearchCondWrapper(searchCond.getRightNodeCond());
                 wrapper.setOperationType(searchCond.getType() == NodeCond.Type.AND
-                        ? OperationType.AND : OperationType.OR);
+                        ? OperationType.AND
+                        : OperationType.OR);
                 wrappers.add(wrapper);
                 break;
 
@@ -352,14 +349,10 @@ public class UserSearchPanel extends Pan
             return null;
         }
 
-        LOG.debug("Search conditions: fname {}; ftype {}; fvalue {}; OP {}; type {}; isnot {}",
-                new Object[]{
-                    searchConditionWrapper.getFilterName(),
-                    searchConditionWrapper.getFilterType(),
-                    searchConditionWrapper.getFilterValue(),
-                    searchConditionWrapper.getOperationType(),
-                    searchConditionWrapper.getType(),
-                    searchConditionWrapper.isNotOperator()});
+        LOG.debug("Search conditions: fname {}; ftype {}; fvalue {}; OP {}; type {}; isnot {}", new Object[] {
+                searchConditionWrapper.getFilterName(), searchConditionWrapper.getFilterType(),
+                searchConditionWrapper.getFilterValue(), searchConditionWrapper.getOperationType(),
+                searchConditionWrapper.getType(), searchConditionWrapper.isNotOperator() });
 
         NodeCond nodeCond = null;
 
@@ -413,7 +406,7 @@ public class UserSearchPanel extends Pan
                 break;
 
             default:
-            // nothing to do
+                // nothing to do
         }
 
         LOG.debug("Processed condition {}", nodeCond);
@@ -465,8 +458,8 @@ public class UserSearchPanel extends Pan
             });
             item.add(notOperator);
 
-            final DropDownChoice<AttributeCond.Type> type = new DropDownChoice<AttributeCond.Type>(
-                    "type", new PropertyModel<AttributeCond.Type>(searchCondition, "type"), attributeTypes);
+            final DropDownChoice<AttributeCond.Type> type = new DropDownChoice<AttributeCond.Type>("type",
+                    new PropertyModel<AttributeCond.Type>(searchCondition, "type"), attributeTypes);
             type.add(new AjaxFormComponentUpdatingBehavior("onchange") {
 
                 private static final long serialVersionUID = -1107858522700306810L;
@@ -477,8 +470,8 @@ public class UserSearchPanel extends Pan
             });
             item.add(type);
 
-            final DropDownChoice<String> filterNameChooser = new DropDownChoice<String>(
-                    "filterName", new PropertyModel<String>(searchCondition, "filterName"), (IModel) null);
+            final DropDownChoice<String> filterNameChooser = new DropDownChoice<String>("filterName",
+                    new PropertyModel<String>(searchCondition, "filterName"), (IModel) null);
             filterNameChooser.setOutputMarkupId(true);
             filterNameChooser.setRequired(required);
             filterNameChooser.add(new AjaxFormComponentUpdatingBehavior("onchange") {
@@ -491,8 +484,8 @@ public class UserSearchPanel extends Pan
             });
             item.add(filterNameChooser);
 
-            final TextField<String> filterValue = new TextField<String>("filterValue",
-                    new PropertyModel<String>(searchCondition, "filterValue"));
+            final TextField<String> filterValue = new TextField<String>("filterValue", new PropertyModel<String>(
+                    searchCondition, "filterValue"));
             filterValue.add(new AjaxFormComponentUpdatingBehavior("onchange") {
 
                 private static final long serialVersionUID = -1107858522700306810L;

Modified: incubator/syncope/trunk/console/src/main/java/org/syncope/console/pages/panels/VirtualAttributesPanel.java
URL: http://svn.apache.org/viewvc/incubator/syncope/trunk/console/src/main/java/org/syncope/console/pages/panels/VirtualAttributesPanel.java?rev=1300882&r1=1300881&r2=1300882&view=diff
==============================================================================
--- incubator/syncope/trunk/console/src/main/java/org/syncope/console/pages/panels/VirtualAttributesPanel.java (original)
+++ incubator/syncope/trunk/console/src/main/java/org/syncope/console/pages/panels/VirtualAttributesPanel.java Thu Mar 15 10:17:12 2012
@@ -55,53 +55,47 @@ public class VirtualAttributesPanel exte
     @SpringBean
     private SchemaRestClient schemaRestClient;
 
-    public <T extends AbstractAttributableTO> VirtualAttributesPanel(
-            final String id, final T entityTO, final boolean templateMode) {
+    public <T extends AbstractAttributableTO> VirtualAttributesPanel(final String id, final T entityTO,
+            final boolean templateMode) {
 
         super(id);
 
         setOutputMarkupId(true);
 
-        final IModel<List<String>> virtualSchemaNames =
-                new LoadableDetachableModel<List<String>>() {
+        final IModel<List<String>> virtualSchemaNames = new LoadableDetachableModel<List<String>>() {
 
-                    private static final long serialVersionUID =
-                            5275935387613157437L;
+            private static final long serialVersionUID = 5275935387613157437L;
 
-                    @Override
-                    protected List<String> load() {
-                        if (entityTO instanceof RoleTO) {
-                            return schemaRestClient.getVirtualSchemaNames(AttributableType.ROLE);
-                        } else if (entityTO instanceof UserTO) {
-                            return schemaRestClient.getVirtualSchemaNames(AttributableType.USER);
-                        } else {
-                            return schemaRestClient.getVirtualSchemaNames(AttributableType.MEMBERSHIP);
-                        }
-                    }
-                };
+            @Override
+            protected List<String> load() {
+                if (entityTO instanceof RoleTO) {
+                    return schemaRestClient.getVirtualSchemaNames(AttributableType.ROLE);
+                } else if (entityTO instanceof UserTO) {
+                    return schemaRestClient.getVirtualSchemaNames(AttributableType.USER);
+                } else {
+                    return schemaRestClient.getVirtualSchemaNames(AttributableType.MEMBERSHIP);
+                }
+            }
+        };
 
-        final WebMarkupContainer attributesContainer =
-                new WebMarkupContainer("virAttrContainer");
+        final WebMarkupContainer attributesContainer = new WebMarkupContainer("virAttrContainer");
 
         attributesContainer.setOutputMarkupId(true);
         add(attributesContainer);
 
-        AjaxButton addAttributeBtn = new IndicatingAjaxButton(
-                "addAttributeBtn", new ResourceModel("addAttributeBtn")) {
+        AjaxButton addAttributeBtn = new IndicatingAjaxButton("addAttributeBtn", new ResourceModel("addAttributeBtn")) {
 
             private static final long serialVersionUID = -4804368561204623354L;
 
             @Override
-            protected void onSubmit(final AjaxRequestTarget target,
-                    final Form<?> form) {
+            protected void onSubmit(final AjaxRequestTarget target, final Form<?> form) {
 
                 entityTO.addVirtualAttribute(new AttributeTO());
                 target.add(attributesContainer);
             }
 
             @Override
-            protected void onError(final AjaxRequestTarget target,
-                    final Form<?> form) {
+            protected void onError(final AjaxRequestTarget target, final Form<?> form) {
 
                 target.add(attributesContainer);
             }
@@ -109,10 +103,8 @@ public class VirtualAttributesPanel exte
 
         add(addAttributeBtn.setDefaultFormProcessing(Boolean.FALSE));
 
-        ListView<AttributeTO> attributes = new ListView<AttributeTO>(
-                "attributes",
-                new PropertyModel<List<? extends AttributeTO>>(
-                entityTO, "virtualAttributes")) {
+        ListView<AttributeTO> attributes = new ListView<AttributeTO>("attributes",
+                new PropertyModel<List<? extends AttributeTO>>(entityTO, "virtualAttributes")) {
 
             private static final long serialVersionUID = 9101744072914090143L;
 
@@ -120,11 +112,9 @@ public class VirtualAttributesPanel exte
             protected void populateItem(final ListItem<AttributeTO> item) {
                 final AttributeTO attributeTO = item.getModelObject();
 
-                item.add(new AjaxDecoratedCheckbox(
-                        "toRemove", new Model(Boolean.FALSE)) {
+                item.add(new AjaxDecoratedCheckbox("toRemove", new Model(Boolean.FALSE)) {
 
-                    private static final long serialVersionUID =
-                            7170946748485726506L;
+                    private static final long serialVersionUID = 7170946748485726506L;
 
                     @Override
                     protected void onUpdate(final AjaxRequestTarget target) {
@@ -134,34 +124,25 @@ public class VirtualAttributesPanel exte
 
                     @Override
                     protected IAjaxCallDecorator getAjaxCallDecorator() {
-                        return new AjaxPreprocessingCallDecorator(
-                                super.getAjaxCallDecorator()) {
+                        return new AjaxPreprocessingCallDecorator(super.getAjaxCallDecorator()) {
 
-                            private static final long serialVersionUID =
-                                    -7927968187160354605L;
+                            private static final long serialVersionUID = -7927968187160354605L;
 
                             @Override
-                            public CharSequence preDecorateScript(
-                                    final CharSequence script) {
+                            public CharSequence preDecorateScript(final CharSequence script) {
 
-                                return "if (confirm('"
-                                        + getString("confirmDelete") + "'))"
-                                        + "{" + script + "} "
+                                return "if (confirm('" + getString("confirmDelete") + "'))" + "{" + script + "} "
                                         + "else {this.checked = false;}";
                             }
                         };
                     }
                 });
 
-                final DropDownChoice<String> schemaChoice =
-                        new DropDownChoice<String>(
-                        "schema",
-                        new PropertyModel<String>(attributeTO, "schema"),
-                        virtualSchemaNames,
+                final DropDownChoice<String> schemaChoice = new DropDownChoice<String>("schema",
+                        new PropertyModel<String>(attributeTO, "schema"), virtualSchemaNames,
                         new ChoiceRenderer<String>() {
 
-                            private static final long serialVersionUID =
-                                    3109256773218160485L;
+                            private static final long serialVersionUID = 3109256773218160485L;
 
                             @Override
                             public Object getDisplayValue(final String object) {
@@ -171,20 +152,16 @@ public class VirtualAttributesPanel exte
                             }
                         });
 
-                schemaChoice.add(
-                        new AjaxFormComponentUpdatingBehavior("onblur") {
+                schemaChoice.add(new AjaxFormComponentUpdatingBehavior("onblur") {
 
-                            private static final long serialVersionUID =
-                                    -1107858522700306810L;
+                    private static final long serialVersionUID = -1107858522700306810L;
 
-                            @Override
-                            protected void onUpdate(
-                                    final AjaxRequestTarget art) {
+                    @Override
+                    protected void onUpdate(final AjaxRequestTarget art) {
 
-                                attributeTO.setSchema(
-                                        schemaChoice.getModelObject());
-                            }
-                        });
+                        attributeTO.setSchema(schemaChoice.getModelObject());
+                    }
+                });
 
                 schemaChoice.setOutputMarkupId(true);
                 schemaChoice.setRequired(true);
@@ -197,9 +174,8 @@ public class VirtualAttributesPanel exte
                 if (templateMode) {
                     item.add(new AjaxTextFieldPanel("values", "values", new Model()));
                 } else {
-                    item.add(new MultiValueSelectorPanel("values",
-                            new PropertyModel<List<String>>(attributeTO, "values"),
-                            new AjaxTextFieldPanel("panel", "values", new Model(null))));
+                    item.add(new MultiValueSelectorPanel("values", new PropertyModel<List<String>>(attributeTO,
+                            "values"), new AjaxTextFieldPanel("panel", "values", new Model(null))));
                 }
             }
         };

Modified: incubator/syncope/trunk/console/src/main/java/org/syncope/console/rest/AbstractBaseRestClient.java
URL: http://svn.apache.org/viewvc/incubator/syncope/trunk/console/src/main/java/org/syncope/console/rest/AbstractBaseRestClient.java?rev=1300882&r1=1300881&r2=1300882&view=diff
==============================================================================
--- incubator/syncope/trunk/console/src/main/java/org/syncope/console/rest/AbstractBaseRestClient.java (original)
+++ incubator/syncope/trunk/console/src/main/java/org/syncope/console/rest/AbstractBaseRestClient.java Thu Mar 15 10:17:12 2012
@@ -28,8 +28,7 @@ public abstract class AbstractBaseRestCl
     /**
      * Logger.
      */
-    protected static final Logger LOG = LoggerFactory.getLogger(
-            AbstractBaseRestClient.class);
+    protected static final Logger LOG = LoggerFactory.getLogger(AbstractBaseRestClient.class);
 
     @Autowired
     protected RestTemplate restTemplate;

Modified: incubator/syncope/trunk/console/src/main/java/org/syncope/console/rest/ApprovalRestClient.java
URL: http://svn.apache.org/viewvc/incubator/syncope/trunk/console/src/main/java/org/syncope/console/rest/ApprovalRestClient.java?rev=1300882&r1=1300881&r2=1300882&view=diff
==============================================================================
--- incubator/syncope/trunk/console/src/main/java/org/syncope/console/rest/ApprovalRestClient.java (original)
+++ incubator/syncope/trunk/console/src/main/java/org/syncope/console/rest/ApprovalRestClient.java Thu Mar 15 10:17:12 2012
@@ -31,18 +31,14 @@ import org.syncope.client.to.WorkflowFor
 public class ApprovalRestClient extends AbstractBaseRestClient {
 
     public List<WorkflowFormTO> getForms() {
-        return Arrays.asList(restTemplate.getForObject(
-                baseURL + "user/workflow/form/list", WorkflowFormTO[].class));
+        return Arrays.asList(restTemplate.getForObject(baseURL + "user/workflow/form/list", WorkflowFormTO[].class));
     }
 
     public WorkflowFormTO claimForm(final String taskId) {
-        return restTemplate.getForObject(
-                baseURL + "user/workflow/form/claim/{taskId}",
-                WorkflowFormTO.class, taskId);
+        return restTemplate.getForObject(baseURL + "user/workflow/form/claim/{taskId}", WorkflowFormTO.class, taskId);
     }
 
     public void submitForm(final WorkflowFormTO form) {
-        restTemplate.postForObject(baseURL + "user/workflow/form/submit",
-                form, UserTO.class);
+        restTemplate.postForObject(baseURL + "user/workflow/form/submit", form, UserTO.class);
     }
 }

Modified: incubator/syncope/trunk/console/src/main/java/org/syncope/console/rest/ConnectorRestClient.java
URL: http://svn.apache.org/viewvc/incubator/syncope/trunk/console/src/main/java/org/syncope/console/rest/ConnectorRestClient.java?rev=1300882&r1=1300881&r2=1300882&view=diff
==============================================================================
--- incubator/syncope/trunk/console/src/main/java/org/syncope/console/rest/ConnectorRestClient.java (original)
+++ incubator/syncope/trunk/console/src/main/java/org/syncope/console/rest/ConnectorRestClient.java Thu Mar 15 10:17:12 2012
@@ -44,9 +44,8 @@ public class ConnectorRestClient extends
      * @return ConnectorInstanceTOs
      */
     public List<ConnInstanceTO> getAllConnectors() {
-        return Arrays.asList(restTemplate.getForObject(
-                baseURL + "connector/list.json?lang=" + SyncopeSession.get().
-                getLocale(), ConnInstanceTO[].class));
+        return Arrays.asList(restTemplate.getForObject(baseURL + "connector/list.json?lang="
+                + SyncopeSession.get().getLocale(), ConnInstanceTO[].class));
     }
 
     /**
@@ -55,10 +54,8 @@ public class ConnectorRestClient extends
      * @param schemaTO
      */
     public void create(final ConnInstanceTO connectorTO) {
-        connectorTO.setConfiguration(
-                filterProperties(connectorTO.getConfiguration()));
-        restTemplate.postForObject(baseURL
-                + "connector/create.json", connectorTO, ConnInstanceTO.class);
+        connectorTO.setConfiguration(filterProperties(connectorTO.getConfiguration()));
+        restTemplate.postForObject(baseURL + "connector/create.json", connectorTO, ConnInstanceTO.class);
     }
 
     /**
@@ -71,8 +68,7 @@ public class ConnectorRestClient extends
         ConnInstanceTO connectorTO = null;
 
         try {
-            connectorTO = restTemplate.getForObject(
-                    baseURL + "connector/read/" + connectorInstanceId,
+            connectorTO = restTemplate.getForObject(baseURL + "connector/read/" + connectorInstanceId,
                     ConnInstanceTO.class);
         } catch (SyncopeClientCompositeErrorException e) {
             LOG.error("While reading a connector", e);
@@ -82,23 +78,20 @@ public class ConnectorRestClient extends
     }
 
     public void update(final ConnInstanceTO connectorTO) {
-        connectorTO.setConfiguration(
-                filterProperties(connectorTO.getConfiguration()));
-        restTemplate.postForObject(baseURL + "connector/update.json",
-                connectorTO, ConnInstanceTO.class);
+        connectorTO.setConfiguration(filterProperties(connectorTO.getConfiguration()));
+        restTemplate.postForObject(baseURL + "connector/update.json", connectorTO, ConnInstanceTO.class);
     }
 
     public void delete(Long id) {
-        restTemplate.delete(baseURL
-                + "connector/delete/{connectorId}.json", id.toString());
+        restTemplate.delete(baseURL + "connector/delete/{connectorId}.json", id.toString());
     }
 
     public List<ConnBundleTO> getAllBundles() {
         List<ConnBundleTO> bundles = null;
 
         try {
-            bundles = Arrays.asList(restTemplate.getForObject(
-                    baseURL + "connector/bundle/list?lang=" + SyncopeSession.get().getLocale(), ConnBundleTO[].class));
+            bundles = Arrays.asList(restTemplate.getForObject(baseURL + "connector/bundle/list?lang="
+                    + SyncopeSession.get().getLocale(), ConnBundleTO[].class));
         } catch (SyncopeClientCompositeErrorException e) {
             LOG.error("While getting connector bundles", e);
         }
@@ -172,8 +165,8 @@ public class ConnectorRestClient extends
         List<String> schemaNames = null;
 
         try {
-            schemaNames = Arrays.asList(restTemplate.postForObject(
-                    baseURL + "connector/schema/list", connectorTO, String[].class));
+            schemaNames = Arrays.asList(restTemplate.postForObject(baseURL + "connector/schema/list", connectorTO,
+                    String[].class));
 
             // re-order schema names list
             Collections.sort(schemaNames);

Modified: incubator/syncope/trunk/console/src/main/java/org/syncope/console/rest/EntitlementRestClient.java
URL: http://svn.apache.org/viewvc/incubator/syncope/trunk/console/src/main/java/org/syncope/console/rest/EntitlementRestClient.java?rev=1300882&r1=1300881&r2=1300882&view=diff
==============================================================================
--- incubator/syncope/trunk/console/src/main/java/org/syncope/console/rest/EntitlementRestClient.java (original)
+++ incubator/syncope/trunk/console/src/main/java/org/syncope/console/rest/EntitlementRestClient.java Thu Mar 15 10:17:12 2012
@@ -37,9 +37,7 @@ public class EntitlementRestClient exten
         List<String> entitlements = null;
 
         try {
-            entitlements = Arrays.asList(
-                    restTemplate.getForObject(
-                    baseURL + "auth/allentitlements.json",
+            entitlements = Arrays.asList(restTemplate.getForObject(baseURL + "auth/allentitlements.json",
                     String[].class));
         } catch (SyncopeClientCompositeErrorException e) {
             LOG.error("While reading all the entitlements", e);