public class PartnerDTO
extends fr.paris.lutece.plugins.stock.commons.AbstractDTO<fr.paris.lutece.plugins.stock.business.provider.Provider>
Modifier and Type | Field and Description |
---|---|
static String |
ATTR_ACCESSIBLE_COMMENT |
static String |
ATTR_CONTACT_ID |
static String |
ATTR_CONTACT_MAIL |
static String |
ATTR_CONTACT_NAME |
static String |
ATTR_CONTACT_PHONE |
static String |
ATTR_DISTRICT |
static String |
ATTR_IS_ACCESSIBLE |
static String |
ATTR_METRO_COMMENT |
static String |
STRING_FALSE |
static String |
STRING_TRUE |
Constructor and Description |
---|
PartnerDTO() |
Modifier and Type | Method and Description |
---|---|
void |
addEmptyContact()
Add an empty contact to the partner
|
fr.paris.lutece.plugins.stock.business.provider.Provider |
convert() |
static PartnerDTO |
convertEntity(fr.paris.lutece.plugins.stock.business.provider.Provider source)
Return DTO converted from entity bean
|
static fr.paris.lutece.plugins.stock.commons.ResultList<PartnerDTO> |
convertEntityList(Collection<fr.paris.lutece.plugins.stock.business.provider.Provider> listSource)
Convert entity list to dto list.
|
String |
getAccessibleComment() |
String |
getAddress() |
String |
getComment()
Gets the comment.
|
Contact |
getContactForm(int index)
Prestation form
|
int |
getContactId(int idContact) |
List<Contact> |
getContactList() |
String |
getContactMail(int idContact) |
String |
getContactName(int idContact) |
String |
getContactPhoneNumber(int idContact) |
Integer |
getDistrict() |
Integer |
getId() |
String |
getMetroComment() |
String |
getName() |
boolean |
isAccessible() |
void |
removeContact(int idContact)
Remove contact from partner with id
|
void |
setAccessible(boolean accessible) |
void |
setAccessibleComment(String accessibleComment) |
void |
setAddress(String address) |
void |
setComment(String comment)
Sets the comment.
|
void |
setContactForm(int index,
Contact contact)
Setter prestation pour le form
|
void |
setContactId(int idContact,
int id) |
void |
setContactList(List<Contact> classeList) |
void |
setContactMail(int idContact,
String mail) |
void |
setContactName(int idContact,
String contactName) |
void |
setContactPhoneNumber(int idContact,
String phoneNumber) |
void |
setDistrict(Integer district) |
void |
setId(Integer idProvider) |
void |
setMetroComment(String metroComment) |
void |
setName(String name) |
public static final String STRING_TRUE
public static final String STRING_FALSE
public static final String ATTR_CONTACT_NAME
public static final String ATTR_CONTACT_ID
public static final String ATTR_CONTACT_PHONE
public static final String ATTR_CONTACT_MAIL
public static final String ATTR_IS_ACCESSIBLE
public static final String ATTR_ACCESSIBLE_COMMENT
public static final String ATTR_METRO_COMMENT
public static final String ATTR_DISTRICT
public void addEmptyContact()
public Integer getId()
getId
in class fr.paris.lutece.plugins.stock.commons.AbstractDTO<fr.paris.lutece.plugins.stock.business.provider.Provider>
public void setId(Integer idProvider)
idProvider
- the idProvider to setpublic String getName()
public void setName(String name)
name
- the name to setpublic String getAddress()
public void setAddress(String address)
address
- the address to setpublic String getContactName(int idContact)
public void setContactName(int idContact, String contactName)
contactName
- the contactName to setpublic String getContactPhoneNumber(int idContact)
public void setContactPhoneNumber(int idContact, String phoneNumber)
phoneNumber
- the phoneNumber to setpublic String getContactMail(int idContact)
public void setContactMail(int idContact, String mail)
mail
- the mail to setpublic int getContactId(int idContact)
public void setContactId(int idContact, int id)
id
- the id to setpublic String getComment()
public void setComment(String comment)
comment
- the comment to setpublic boolean isAccessible()
public void setAccessible(boolean accessible)
accessible
- true or falsepublic String getAccessibleComment()
public void setAccessibleComment(String accessibleComment)
accessibleComment
- the new comment for accessibilitypublic String getMetroComment()
public void setMetroComment(String metroComment)
metroComment
- public fr.paris.lutece.plugins.stock.business.provider.Provider convert()
convert
in class fr.paris.lutece.plugins.stock.commons.AbstractDTO<fr.paris.lutece.plugins.stock.business.provider.Provider>
public static PartnerDTO convertEntity(fr.paris.lutece.plugins.stock.business.provider.Provider source)
source
- entity beanpublic static fr.paris.lutece.plugins.stock.commons.ResultList<PartnerDTO> convertEntityList(Collection<fr.paris.lutece.plugins.stock.business.provider.Provider> listSource)
listSource
- the list sourcepublic void setContactList(List<Contact> classeList)
classeList
- the classeList to setpublic void setContactForm(int index, Contact contact)
index
- indexclasse
- classepublic Contact getContactForm(int index)
index
- indexpublic void removeContact(int idContact)
idContact
- the id of the contact which will be deletedpublic Integer getDistrict()
public void setDistrict(Integer district)
district
- the district to setCopyright © 2020 City of Paris. All rights reserved.