1 /* 2 * Copyright (c) 2002-2022, City of Paris 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 9 * 1. Redistributions of source code must retain the above copyright notice 10 * and the following disclaimer. 11 * 12 * 2. Redistributions in binary form must reproduce the above copyright notice 13 * and the following disclaimer in the documentation and/or other materials 14 * provided with the distribution. 15 * 16 * 3. Neither the name of 'Mairie de Paris' nor 'Lutece' nor the names of its 17 * contributors may be used to endorse or promote products derived from 18 * this software without specific prior written permission. 19 * 20 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 21 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 22 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 23 * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE 24 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 25 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 26 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 27 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 28 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 29 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 30 * POSSIBILITY OF SUCH DAMAGE. 31 * 32 * License 1.0 33 */ 34 package fr.paris.lutece.plugins.workflow.modules.assignment.business; 35 36 import fr.paris.lutece.plugins.workflowcore.business.config.TaskConfig; 37 38 import java.util.List; 39 40 /** 41 * 42 * TaskCommentConfig 43 * 44 */ 45 public class TaskAssignmentConfig extends TaskConfig 46 { 47 public static final String ASSIGMENT_TYPE_ADMIN_USER = "TYPE_ADMIN_USER"; 48 public static final String ASSIGMENT_TYPE_WORKGROUP = "TYPE_WORKGROUP"; 49 private boolean _bMultipleOwner; 50 private String _strTitle; 51 private List<WorkgroupConfig> _workgroups; 52 private String _strMessage; 53 private boolean _bNotify; 54 private String _strSubject; 55 private boolean _bUseUserName; 56 57 /** 58 * @return the _bUseUserName 59 */ 60 public boolean isUseUserName( ) 61 { 62 return _bUseUserName; 63 } 64 65 /** 66 * @param useUserName 67 * the _bUseUserName to set 68 */ 69 public void setUseUserName( boolean useUserName ) 70 { 71 _bUseUserName = useUserName; 72 } 73 74 /** 75 * @return the _strSubject 76 */ 77 public String getSubject( ) 78 { 79 return _strSubject; 80 } 81 82 /** 83 * @param subject 84 * the _strSubject to set 85 */ 86 public void setSubject( String subject ) 87 { 88 _strSubject = subject; 89 } 90 91 /** 92 * @return the _bNotification 93 */ 94 public boolean isNotify( ) 95 { 96 return _bNotify; 97 } 98 99 /** 100 * @param bNotify 101 * the _bNotify to set 102 */ 103 public void setNotify( boolean bNotify ) 104 { 105 _bNotify = bNotify; 106 } 107 108 /** 109 * @return the _strMessage 110 */ 111 public String getMessage( ) 112 { 113 return _strMessage; 114 } 115 116 /** 117 * @param message 118 * the _strMessage to set 119 */ 120 public void setMessage( String message ) 121 { 122 _strMessage = message; 123 } 124 125 /** 126 * 127 * @return the title of the field insert in tasks form 128 */ 129 public String getTitle( ) 130 { 131 return _strTitle; 132 } 133 134 /** 135 * set the title of the field insert in tasks form 136 * 137 * @param title 138 * the title of the field insert in tasks form 139 */ 140 public void setTitle( String title ) 141 { 142 _strTitle = title; 143 } 144 145 /** 146 * @return a list wich contains the differents workgroups to displayed in task form 147 */ 148 public List<WorkgroupConfig> getWorkgroups( ) 149 { 150 return _workgroups; 151 } 152 153 /** 154 * Set a list wich contains the differents workgroups to displayed in task form 155 * 156 * @param worgroups 157 * the list of workgroups 158 */ 159 public void setWorkgroups( List<WorkgroupConfig> worgroups ) 160 { 161 _workgroups = worgroups; 162 } 163 164 /** 165 * @return true if the user can choose multiple entity 166 */ 167 public boolean isMultipleOwner( ) 168 { 169 return _bMultipleOwner; 170 } 171 172 /** 173 * set true if the user can choose multiple entity 174 * 175 * @param multipleOwner 176 * true if the user can choose multiple entity 177 */ 178 public void setMultipleOwner( boolean multipleOwner ) 179 { 180 _bMultipleOwner = multipleOwner; 181 } 182 }