/* * Copyright (C) 2016 LibreCCM Foundation. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * MA 02110-1301 USA */ package org.librecms.contentsection; import org.libreccm.cdi.utils.CdiUtil; import org.libreccm.configuration.Configuration; import org.libreccm.configuration.ConfigurationManager; import org.libreccm.configuration.Setting; import java.util.ArrayList; import java.util.Arrays; import java.util.List; /** * Global settings for content sections. Some of these settings control the * initial values for new content sections. * * @author Jens Pelzetter */ @Configuration public class ContentSectionConfig { /** * A list of workflow tasks, and the associated events for which alerts have * to be sent. Parameter name TASK_ALERTS in the old initializer system / * enterprise.init Specifies when to generate email alerts: by default, * generate email alerts on enable, finish, and rollback (happens on * rejection) changes. There are four action types for each task type: * enable, disable, finish, and rollback. Example: (Note that the values * below are based on the task labels, and as such are not globalized.) *
* taskAlerts = {
* { "Authoring",
* { "enable", "finish", "rollback" }
* },
* { "Approval",
* { "enable", "finish", "rollback" }
* },
* { "Deploy",
* { "enable", "finish", "rollback" }
* }
* };
*
*
* In the new Initializer system we use a specifically formatted String
* Array because we have no List parameter. Format: - A string for each task
* to handle, possible values: Authoring, Approval, Deploy - Each Task
* String: [taskName]:[alert_1]:...:[alert_n] The specially formatted string
* is not handled by StringArray parameter, but forwarded untouched to the
* initializer which has the duty to process it!
*
* Currently there is no way to persist taskAlerts section specific. So all
* sections have to treated equally. Default values are provided here.
*/
@Setting
private List