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 73B67200B71 for ; Tue, 16 Aug 2016 09:21:22 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 72701160AA8; Tue, 16 Aug 2016 07:21:22 +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 C5899160ABC for ; Tue, 16 Aug 2016 09:21:21 +0200 (CEST) Received: (qmail 3437 invoked by uid 500); 16 Aug 2016 07:21:21 -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 3405 invoked by uid 99); 16 Aug 2016 07:21:20 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 16 Aug 2016 07:21:20 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 989D92C02A6 for ; Tue, 16 Aug 2016 07:21:20 +0000 (UTC) Date: Tue, 16 Aug 2016 07:21:20 +0000 (UTC) From: "ASF GitHub Bot (JIRA)" To: dev@syncope.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (SYNCOPE-880) Identity Recertification MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Tue, 16 Aug 2016 07:21:22 -0000 [ https://issues.apache.org/jira/browse/SYNCOPE-880?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15422340#comment-15422340 ] ASF GitHub Bot commented on SYNCOPE-880: ---------------------------------------- Github user ilgrosso commented on a diff in the pull request: https://github.com/apache/syncope/pull/26#discussion_r74886344 --- Diff: fit/core-reference/src/main/java/org/apache/syncope/fit/core/reference/TestIdentityRecertification.java --- @@ -0,0 +1,100 @@ +/* + * Copyright 2016 The Apache Software Foundation. + * + * 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.apache.syncope.fit.core.reference; + +import java.util.Date; +import org.apache.syncope.core.persistence.api.dao.ConfDAO; +import org.apache.syncope.core.persistence.api.dao.UserDAO; +import org.apache.syncope.core.persistence.api.entity.conf.CPlainAttr; +import org.apache.syncope.core.persistence.api.entity.user.UPlainAttr; +import org.apache.syncope.core.persistence.api.entity.user.UPlainAttrUniqueValue; +import org.apache.syncope.core.persistence.api.entity.user.User; +import org.apache.syncope.core.provisioning.java.job.AbstractSchedTaskJobDelegate; +import org.apache.syncope.core.workflow.activiti.task.Recertify; +import org.apache.syncope.core.workflow.api.UserWorkflowAdapter; +import org.quartz.JobExecutionException; +import org.springframework.beans.factory.annotation.Autowired; + +public class TestIdentityRecertification extends AbstractSchedTaskJobDelegate { --- End diff -- You could always add it to both `MasterContent.xml`, but without schedule, so that it is not run automatically. WDYT? Finally, extending `AbstractSchedTaskJobDelegate` and putting all logic into `doExecute` is considered best-practice, as other things are performed as well (conditionally saving execution, notification and audit, ..). > Identity Recertification > ------------------------ > > Key: SYNCOPE-880 > URL: https://issues.apache.org/jira/browse/SYNCOPE-880 > Project: Syncope > Issue Type: New Feature > Components: core > Reporter: Nicola Scendoni > Assignee: Nicola Scendoni > Priority: Minor > Fix For: 2.0.0 > > > Identify Re-certification is required for many national and international standards like SOX, GxP, etc. > The idea is to implement one scheduled task that filter users basing on some attributes (example: last recertification date, role,...) and move then on one state "to be certified" and assign one task to some group that has the responsibility to recertified the user, or delete it from the system. > Some report should report evidence about when the users have been recertified and who was the certifier. > > This feature would be also the starting point to create account, role and groups re-certifications. -- This message was sent by Atlassian JIRA (v6.3.4#6332)