You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@syncope.apache.org by mm...@apache.org on 2020/01/16 16:15:34 UTC

[syncope] branch 2_1_X updated: Allow MembershipTO to use the group name for toString().

This is an automated email from the ASF dual-hosted git repository.

mmoayyed pushed a commit to branch 2_1_X
in repository https://gitbox.apache.org/repos/asf/syncope.git


The following commit(s) were added to refs/heads/2_1_X by this push:
     new f9a5775  Allow MembershipTO to use the group name for toString().
f9a5775 is described below

commit f9a57757723e4e388f49a3a09257822f1a1357ce
Author: Misagh Moayyed <mm...@gmail.com>
AuthorDate: Thu Jan 16 20:15:06 2020 +0400

    Allow MembershipTO to use the group name for toString().
    
    This is mainly used by choice renderers that might display
    membership objects and the toString() is used as the tooltip
    or the title attribute of the entry in the list.
---
 .../src/main/java/org/apache/syncope/common/lib/to/MembershipTO.java | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/common/lib/src/main/java/org/apache/syncope/common/lib/to/MembershipTO.java b/common/lib/src/main/java/org/apache/syncope/common/lib/to/MembershipTO.java
index 7696c08..5bd5158 100644
--- a/common/lib/src/main/java/org/apache/syncope/common/lib/to/MembershipTO.java
+++ b/common/lib/src/main/java/org/apache/syncope/common/lib/to/MembershipTO.java
@@ -156,4 +156,9 @@ public class MembershipTO implements Serializable, AttributableTO {
                 append(virAttrs, other.virAttrs).
                 build();
     }
+
+    @Override
+    public String toString() {
+        return this.groupName;
+    }
 }