Woonsan Ko pushed to branch feature/CMS-10553 at cms-community / hippo-cms
Commits: e2a28d50 by Woonsan Ko at 2017-05-23T10:02:38-04:00 CMS-10553: Merge branch 'feature/CMS-10553' of https://code.onehippo.org/cms-community/hippo-cms into feature/CMS-10553 - - - - - b64c9268 by Woonsan Ko at 2017-05-23T10:03:28-04:00 CMS-10553: Merge branch 'feature/CMS-10553' of https://code.onehippo.org/cms-community/hippo-cms into feature/CMS-10553 - - - - - 1 changed file: - − api/src/main/java/org/hippoecm/frontend/plugins/standards/tree/JcrFolderTreeNameComparator.java Changes: ===================================== api/src/main/java/org/hippoecm/frontend/plugins/standards/tree/JcrFolderTreeNameComparator.java deleted ===================================== --- a/api/src/main/java/org/hippoecm/frontend/plugins/standards/tree/JcrFolderTreeNameComparator.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright 2017 Hippo B.V. (http://www.onehippo.com) - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package org.hippoecm.frontend.plugins.standards.tree; - -import java.util.Comparator; - -import javax.jcr.Node; - -import org.apache.wicket.util.io.IClusterable; -import org.hippoecm.frontend.model.tree.IJcrTreeNode; -import org.hippoecm.frontend.plugins.standards.list.comparators.NameComparator; - -public class JcrFolderTreeNameComparator implements Comparator<IJcrTreeNode>, IClusterable { - - private Comparator<Node> nameComparator; - - public JcrFolderTreeNameComparator() { - this.nameComparator = NameComparator.getInstance(); - } - - @Override - public int compare(final IJcrTreeNode o1, final IJcrTreeNode o2) { - return nameComparator.compare(o1.getNodeModel().getObject(), o2.getNodeModel().getObject()); - } -} View it on GitLab: https://code.onehippo.org/cms-community/hippo-cms/compare/30f6daec1f7edebaf3dfa5cf03cf36728e9e9cd9...b64c92680675080e385c55ca5db0abae0e0c62c0
_______________________________________________ Hippocms-svn mailing list Hippocms-svn@lists.onehippo.org https://lists.onehippo.org/mailman/listinfo/hippocms-svn