1 /* 2 * Copyright (c) 2002-2014, Mairie de 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.notifycrmnoesb.business; 35 36 37 import fr.paris.lutece.plugins.workflowcore.business.config.TaskConfig; 38 import javax.validation.constraints.NotNull; 39 40 41 /** 42 * 43 * TaskNotifyCRMConfig 44 * 45 */ 46 public class TaskNotifyCRMConfig extends TaskConfig 47 { 48 49 @NotNull 50 private String _strStatusText; 51 52 private boolean _bDemandCRMCreation; 53 54 @NotNull 55 private String _strMessage; 56 57 @NotNull 58 private String _strObject; 59 60 @NotNull 61 private String _strSender; 62 63 /** 64 * Set the object 65 * @param strObject the object 66 */ 67 public void setObject( String strObject ) 68 { 69 _strObject = strObject; 70 } 71 72 /** 73 * Get the object 74 * @return the object 75 */ 76 public String getObject( ) 77 { 78 return _strObject; 79 } 80 81 82 /** 83 * Set the sender 84 * @param strSender the sender 85 */ 86 public void setSender( String strSender ) 87 { 88 _strSender = strSender; 89 } 90 91 /** 92 * Get the sender 93 * @return the sender 94 */ 95 public String getSender( ) 96 { 97 return _strSender; 98 } 99 100 /** 101 * Set the message 102 * @param strMessage the message 103 */ 104 public void setMessage( String strMessage ) 105 { 106 _strMessage = strMessage; 107 } 108 109 /** 110 * Get the message 111 * @return the message 112 */ 113 public String getMessage( ) 114 { 115 return _strMessage; 116 } 117 118 119 /** 120 * Set the status 121 * @param strStatusText the status 122 */ 123 public void setStatusText( String strStatusText ) 124 { 125 _strStatusText = strStatusText; 126 } 127 128 /** 129 * Get the status 130 * @return the status 131 */ 132 public String getStatusText( ) 133 { 134 return _strStatusText; 135 } 136 137 138 /** 139 * Set the DemandCRMCreation boolean 140 * @param bDemandCRMCreation the boolean to create CRM demand 141 */ 142 public void setDemandCRMCreation( boolean bDemandCRMCreation ) 143 { 144 _bDemandCRMCreation = bDemandCRMCreation; 145 } 146 147 /** 148 * Get the DemandCRMCreation boolean 149 * @return the DemandCRMCreation boolean 150 */ 151 public boolean getDemandCRMCreation( ) 152 { 153 return _bDemandCRMCreation; 154 } 155 }