Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 129202009F8 for ; Fri, 3 Jun 2016 10:32:32 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 0F94C160A2A; Fri, 3 Jun 2016 08:32:32 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 4E4DD160A25 for ; Fri, 3 Jun 2016 10:32:31 +0200 (CEST) Received: (qmail 51038 invoked by uid 500); 3 Jun 2016 08:32:30 -0000 Mailing-List: contact dev-help@syncope.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@syncope.apache.org Delivered-To: mailing list dev@syncope.apache.org Received: (qmail 51021 invoked by uid 99); 3 Jun 2016 08:32:30 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 03 Jun 2016 08:32:30 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 238BBDFC61; Fri, 3 Jun 2016 08:32:30 +0000 (UTC) From: ilgrosso To: dev@syncope.apache.org Reply-To: dev@syncope.apache.org References: In-Reply-To: Subject: [GitHub] syncope pull request #18: Added Exception for existing key (SYNCOPE-866) Content-Type: text/plain Message-Id: <20160603083230.238BBDFC61@git1-us-west.apache.org> Date: Fri, 3 Jun 2016 08:32:30 +0000 (UTC) archived-at: Fri, 03 Jun 2016 08:32:32 -0000 Github user ilgrosso commented on a diff in the pull request: https://github.com/apache/syncope/pull/18#discussion_r65673143 --- Diff: core/logic/src/main/java/org/apache/syncope/core/logic/ReportTemplateLogic.java --- @@ -84,6 +85,12 @@ public ReportTemplateTO transform(final ReportTemplate input) { @PreAuthorize("hasRole('" + StandardEntitlement.REPORT_TEMPLATE_CREATE + "')") public ReportTemplateTO create(final String key) { + for (ReportTemplateTO reportTemplateTO: list()) { --- End diff -- Take a look at [ResourceLogic](https://github.com/apache/syncope/blob/master/core/logic/src/main/java/org/apache/syncope/core/logic/ResourceLogic.java#L121-L123) and do accodingly. --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastructure@apache.org or file a JIRA ticket with INFRA. ---