1 package fr.paris.lutece.plugins.mylutece.business; 2 3 import fr.paris.lutece.portal.business.role.Role; 4 5 /** 6 * The Class LuteceUserRoleDescription. 7 */ 8 /* 9 * Copyright (c) 2002-2022, City of Paris 10 * All rights reserved. 11 * 12 * Redistribution and use in source and binary forms, with or without 13 * modification, are permitted provided that the following conditions 14 * are met: 15 * 16 * 1. Redistributions of source code must retain the above copyright notice 17 * and the following disclaimer. 18 * 19 * 2. Redistributions in binary form must reproduce the above copyright notice 20 * and the following disclaimer in the documentation and/or other materials 21 * provided with the distribution. 22 * 23 * 3. Neither the name of 'Mairie de Paris' nor 'Lutece' nor the names of its 24 * contributors may be used to endorse or promote products derived from 25 * this software without specific prior written permission. 26 * 27 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 28 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 29 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 30 * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE 31 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 32 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 33 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 34 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 35 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 36 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 37 * POSSIBILITY OF SUCH DAMAGE. 38 * 39 * License 1.0 40 */ 41 public class LuteceUserRoleDescription extends Role { 42 43 44 45 46 47 /** The Constant TYPE_MANUAL_ASSIGNMENT. */ 48 public static final String TYPE_MANUAL_ASSIGNMENT = "MANUAL_ASSIGNMENT"; 49 50 /** The Constant TYPE_CONDITIONAL_ASSIGNMENT. */ 51 public static final String TYPE_CONDITIONAL_ASSIGNMENT = "CONDITIONAL_ASSIGNMENT"; 52 53 /** The Constant TYPE_AUTOMATIC_ASSIGNMENT. */ 54 public static final String TYPE_AUTOMATIC_ASSIGNMENT = "AUTOMATIC_ASSIGNMENT"; 55 56 57 /** The str type. */ 58 private String _strType; 59 60 /** The str complementary description. */ 61 private String _strComplementaryDescription; 62 63 64 /** 65 * Instantiates a new lutece user role description. 66 * 67 * @param role the role 68 * @param strType the str type 69 * @param strComplementaryDescription the str complementary description 70 */ 71 public LuteceUserRoleDescription(Role role,String strType,String strComplementaryDescription) { 72 this.setRole(role.getRole()); 73 this.setRoleDescription(role.getRoleDescription()); 74 this.setWorkgroup(role.getWorkgroup()); 75 this.setType(strType); 76 this.setComplementaryDescription(strComplementaryDescription); 77 } 78 79 80 /** 81 * Gets the type. 82 * 83 * @return the type 84 */ 85 public String getType() { 86 return _strType; 87 } 88 89 /** 90 * Sets the type. 91 * 92 * @param _strType the new type 93 */ 94 public void setType(String _strType) { 95 this._strType = _strType; 96 } 97 98 /** 99 * Gets the complementary description. 100 * 101 * @return the complementary description 102 */ 103 public String getComplementaryDescription() { 104 return _strComplementaryDescription; 105 } 106 107 /** 108 * Sets the complementary description. 109 * 110 * @param _strComplementaryDescription the new complementary description 111 */ 112 public void setComplementaryDescription(String _strComplementaryDescription) { 113 this._strComplementaryDescription = _strComplementaryDescription; 114 } 115 }