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 2018/03/15 14:07:08 UTC
[1/4] syncope git commit: [SYNCOPE-1282] Fixing size calculation in
for PLAIN schemas (excluding conf)
Repository: syncope
Updated Branches:
refs/heads/2_0_X cfd03fc4a -> b67641176
refs/heads/master 425f9b9ed -> 8032c6e04
[SYNCOPE-1282] Fixing size calculation in for PLAIN schemas (excluding conf)
Project: http://git-wip-us.apache.org/repos/asf/syncope/repo
Commit: http://git-wip-us.apache.org/repos/asf/syncope/commit/d52636ba
Tree: http://git-wip-us.apache.org/repos/asf/syncope/tree/d52636ba
Diff: http://git-wip-us.apache.org/repos/asf/syncope/diff/d52636ba
Branch: refs/heads/master
Commit: d52636ba8e64426a32e23a88d2072c29e4ec1307
Parents: 425f9b9
Author: Francesco Chicchiriccò <il...@apache.org>
Authored: Thu Mar 15 15:01:11 2018 +0100
Committer: Francesco Chicchiriccò <il...@apache.org>
Committed: Thu Mar 15 15:01:11 2018 +0100
----------------------------------------------------------------------
.../client/console/panels/SchemaTypePanel.java | 30 +++++++++-----------
1 file changed, 14 insertions(+), 16 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/syncope/blob/d52636ba/client/console/src/main/java/org/apache/syncope/client/console/panels/SchemaTypePanel.java
----------------------------------------------------------------------
diff --git a/client/console/src/main/java/org/apache/syncope/client/console/panels/SchemaTypePanel.java b/client/console/src/main/java/org/apache/syncope/client/console/panels/SchemaTypePanel.java
index 079086d..6e8ec76 100644
--- a/client/console/src/main/java/org/apache/syncope/client/console/panels/SchemaTypePanel.java
+++ b/client/console/src/main/java/org/apache/syncope/client/console/panels/SchemaTypePanel.java
@@ -251,32 +251,30 @@ public class SchemaTypePanel extends TypesDirectoryPanel<SchemaTO, SchemaProvide
comparator = new SortableDataProviderComparator<>(this);
}
- @Override
- public Iterator<SchemaTO> iterator(final long first, final long count) {
+ private List<SchemaTO> getSchemas() {
List<SchemaTO> schemas = restClient.getSchemas(this.schemaType, keyword);
- Collections.sort(schemas, comparator);
if (SchemaType.PLAIN == this.schemaType) {
- final List<String> configurations = confRestClient.list().stream().
+ List<String> configurations = confRestClient.list().stream().
map(AttrTO::getSchema).collect(Collectors.toList());
- final List<SchemaTO> res = schemas.stream().
- filter(item -> !configurations.contains(item.getKey())).
- collect(Collectors.toList());
- return res.subList((int) first, (int) first + (int) count).iterator();
- } else {
- return schemas.subList((int) first, (int) first + (int) count).iterator();
+ schemas.removeIf(schema -> configurations.contains(schema.getKey()));
}
+
+ return schemas;
+ }
+
+ @Override
+ public Iterator<SchemaTO> iterator(final long first, final long count) {
+ List<SchemaTO> schemas = getSchemas();
+ Collections.sort(schemas, comparator);
+
+ return schemas.subList((int) first, (int) first + (int) count).iterator();
}
@Override
public long size() {
- int size = restClient.getSchemas(this.schemaType, keyword).size();
- return size > confRestClient.list().size()
- ? (SchemaType.PLAIN == this.schemaType
- ? size - confRestClient.list().size()
- : size)
- : size;
+ return getSchemas().size();
}
@Override
[4/4] syncope git commit: Upgrading angular-ui-select
Posted by il...@apache.org.
Upgrading angular-ui-select
Project: http://git-wip-us.apache.org/repos/asf/syncope/repo
Commit: http://git-wip-us.apache.org/repos/asf/syncope/commit/8032c6e0
Tree: http://git-wip-us.apache.org/repos/asf/syncope/tree/8032c6e0
Diff: http://git-wip-us.apache.org/repos/asf/syncope/diff/8032c6e0
Branch: refs/heads/master
Commit: 8032c6e0438160badde52adbaceefd0a641920cc
Parents: d52636b
Author: Francesco Chicchiriccò <il...@apache.org>
Authored: Thu Mar 15 15:03:47 2018 +0100
Committer: Francesco Chicchiriccò <il...@apache.org>
Committed: Thu Mar 15 15:06:59 2018 +0100
----------------------------------------------------------------------
pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/syncope/blob/8032c6e0/pom.xml
----------------------------------------------------------------------
diff --git a/pom.xml b/pom.xml
index ad22a27..d2a711d 100644
--- a/pom.xml
+++ b/pom.xml
@@ -445,7 +445,7 @@ under the License.
<angular.version>1.6.9</angular.version>
<angular-ui-router.version>0.3.2</angular-ui-router.version>
<angular-ui-bootstrap.version>1.3.3</angular-ui-bootstrap.version>
- <angular-ui-select.version>0.19.6</angular-ui-select.version>
+ <angular-ui-select.version>0.19.8</angular-ui-select.version>
<angular-treasure-overlay-spinner.version>1.1.0</angular-treasure-overlay-spinner.version>
<angular-translate.version>2.17.0</angular-translate.version>
[2/4] syncope git commit: [SYNCOPE-1282] Fixing size calculation in
for PLAIN schemas (excluding conf)
Posted by il...@apache.org.
[SYNCOPE-1282] Fixing size calculation in for PLAIN schemas (excluding conf)
Project: http://git-wip-us.apache.org/repos/asf/syncope/repo
Commit: http://git-wip-us.apache.org/repos/asf/syncope/commit/f8fbf2b4
Tree: http://git-wip-us.apache.org/repos/asf/syncope/tree/f8fbf2b4
Diff: http://git-wip-us.apache.org/repos/asf/syncope/diff/f8fbf2b4
Branch: refs/heads/2_0_X
Commit: f8fbf2b4086c1a2ae8adf3a7b36537065157f415
Parents: cfd03fc
Author: Francesco Chicchiriccò <il...@apache.org>
Authored: Thu Mar 15 14:57:47 2018 +0100
Committer: Francesco Chicchiriccò <il...@apache.org>
Committed: Thu Mar 15 15:02:55 2018 +0100
----------------------------------------------------------------------
.../client/console/panels/SchemaTypePanel.java | 49 +++++++++++---------
1 file changed, 26 insertions(+), 23 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/syncope/blob/f8fbf2b4/client/console/src/main/java/org/apache/syncope/client/console/panels/SchemaTypePanel.java
----------------------------------------------------------------------
diff --git a/client/console/src/main/java/org/apache/syncope/client/console/panels/SchemaTypePanel.java b/client/console/src/main/java/org/apache/syncope/client/console/panels/SchemaTypePanel.java
index 0243122..180d73c 100644
--- a/client/console/src/main/java/org/apache/syncope/client/console/panels/SchemaTypePanel.java
+++ b/client/console/src/main/java/org/apache/syncope/client/console/panels/SchemaTypePanel.java
@@ -29,6 +29,7 @@ import java.util.Iterator;
import java.util.List;
import java.util.Map;
import org.apache.commons.collections4.CollectionUtils;
+import org.apache.commons.collections4.Predicate;
import org.apache.commons.collections4.Transformer;
import org.apache.commons.lang3.StringUtils;
import org.apache.syncope.client.console.SyncopeConsoleSession;
@@ -252,14 +253,11 @@ public class SchemaTypePanel extends TypesDirectoryPanel<SchemaTO, SchemaProvide
comparator = new SortableDataProviderComparator<>(this);
}
- @Override
- public Iterator<SchemaTO> iterator(final long first, final long count) {
+ private List<SchemaTO> getSchemas() {
List<SchemaTO> schemas = restClient.getSchemas(this.schemaType, keyword);
- Collections.sort(schemas, comparator);
if (SchemaType.PLAIN == this.schemaType) {
final List<String> configurations = new ArrayList<>();
-
CollectionUtils.collect(confRestClient.list(), new Transformer<AttrTO, String>() {
@Override
@@ -268,26 +266,29 @@ public class SchemaTypePanel extends TypesDirectoryPanel<SchemaTO, SchemaProvide
}
}, configurations);
- final List<SchemaTO> res = new ArrayList<>();
- for (SchemaTO schema : schemas) {
- if (!configurations.contains(schema.getKey())) {
- res.add(schema);
+ CollectionUtils.filterInverse(schemas, new Predicate<SchemaTO>() {
+
+ @Override
+ public boolean evaluate(final SchemaTO schema) {
+ return configurations.contains(schema.getKey());
}
- }
- return res.subList((int) first, (int) first + (int) count).iterator();
- } else {
- return schemas.subList((int) first, (int) first + (int) count).iterator();
+ });
}
+
+ return schemas;
+ }
+
+ @Override
+ public Iterator<SchemaTO> iterator(final long first, final long count) {
+ List<SchemaTO> schemas = getSchemas();
+ Collections.sort(schemas, comparator);
+
+ return schemas.subList((int) first, (int) first + (int) count).iterator();
}
@Override
public long size() {
- int size = restClient.getSchemas(this.schemaType, keyword).size();
- return size > confRestClient.list().size()
- ? (SchemaType.PLAIN == this.schemaType
- ? size - confRestClient.list().size()
- : size)
- : size;
+ return getSchemas().size();
}
@Override
@@ -303,11 +304,13 @@ public class SchemaTypePanel extends TypesDirectoryPanel<SchemaTO, SchemaProvide
AjaxRequestTarget target = payload.getTarget();
keyword = payload.getKeyword();
- if (!keyword.startsWith("*")) {
- keyword = "*" + keyword;
- }
- if (!keyword.endsWith("*")) {
- keyword = keyword + "*";
+ if (keyword != null) {
+ if (!keyword.startsWith("*")) {
+ keyword = "*" + keyword;
+ }
+ if (!keyword.endsWith("*")) {
+ keyword = keyword + "*";
+ }
}
updateResultTable(target);
[3/4] syncope git commit: Upgrading angular-ui-select
Posted by il...@apache.org.
Upgrading angular-ui-select
Project: http://git-wip-us.apache.org/repos/asf/syncope/repo
Commit: http://git-wip-us.apache.org/repos/asf/syncope/commit/b6764117
Tree: http://git-wip-us.apache.org/repos/asf/syncope/tree/b6764117
Diff: http://git-wip-us.apache.org/repos/asf/syncope/diff/b6764117
Branch: refs/heads/2_0_X
Commit: b6764117606ae49af762d62ab90fc9d9383b4ef2
Parents: f8fbf2b
Author: Francesco Chicchiriccò <il...@apache.org>
Authored: Thu Mar 15 15:03:47 2018 +0100
Committer: Francesco Chicchiriccò <il...@apache.org>
Committed: Thu Mar 15 15:03:47 2018 +0100
----------------------------------------------------------------------
pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/syncope/blob/b6764117/pom.xml
----------------------------------------------------------------------
diff --git a/pom.xml b/pom.xml
index 3118bca..07d3018 100644
--- a/pom.xml
+++ b/pom.xml
@@ -449,7 +449,7 @@ under the License.
<angular.version>1.6.9</angular.version>
<angular-ui-router.version>0.3.2</angular-ui-router.version>
<angular-ui-bootstrap.version>1.3.3</angular-ui-bootstrap.version>
- <angular-ui-select.version>0.19.6</angular-ui-select.version>
+ <angular-ui-select.version>0.19.8</angular-ui-select.version>
<angular-treasure-overlay-spinner.version>1.1.0</angular-treasure-overlay-spinner.version>
<angular-translate.version>2.17.0</angular-translate.version>