public class Category extends Object implements fr.paris.lutece.portal.service.rbac.RBACResource, Serializable, Cloneable
Modifier and Type | Field and Description |
---|---|
static String |
RESOURCE_TYPE
The resource type of categories
|
Constructor and Description |
---|
Category() |
Modifier and Type | Method and Description |
---|---|
Object |
clone() |
int |
getAnnouncesValidation()
weather or not the announces must be moderated before publishing
|
boolean |
getDisplayCaptcha()
Check if a captcha should be displayed when creating an announce
|
boolean |
getDisplayPrice()
weather or not the category must display the price of announce
|
int |
getId()
gets the id of category
|
int |
getIdMailingList()
Get the id of the mailing list associated with this category
|
int |
getIdSector()
gets the id of category sector
|
int |
getIdWorkflow()
Get the id of the associated workflow
|
String |
getLabel()
gets the label
|
String |
getLabelSector() |
int |
getNumberAnnounces()
gets the number of announces
|
boolean |
getPriceMandatory()
Check if the price attribute is mandatory or not
|
String |
getResourceId() |
String |
getResourceTypeCode() |
String |
getTags()
gets the tags of category
|
void |
setAnnouncesValidation(int nAnnouncesValidation)
sets weather or not the announces must be moderated before publishing
|
void |
setDisplayCaptcha(boolean bDisplayCaptcha)
Set whether a captcha should be displayed when creating an announce
|
void |
setDisplayPrice(boolean displayPrice)
sets weather or not the category must display the price of announce
|
void |
setId(int nId)
sets the id of category
|
void |
setIdMailingList(int nIdMailingList)
Set the id of the mailing list associated with this category
|
void |
setIdSector(int nIdSector)
sets the id of category sector
|
void |
setIdWorkflow(int nIdWorkflow)
Set the id of the associated workflow
|
void |
setLabel(String strLabel)
sets the label
|
void |
setLabelSector(String strLabelSector) |
void |
setNumberAnnounces(int nNumberAnnounces)
sets the number of announces
|
void |
setPriceMandatory(boolean bPriceMandatory)
Set the price attribute mandatory or not
|
void |
setTags(String strTags)
sets the Tags of category
|
public static final String RESOURCE_TYPE
public int getId()
public void setId(int nId)
nId
- the id of categorypublic int getIdSector()
public void setIdSector(int nIdSector)
nIdSector
- the id of category sectorpublic String getLabel()
public void setLabel(String strLabel)
strLabel
- the labelpublic int getNumberAnnounces()
public void setNumberAnnounces(int nNumberAnnounces)
nNumberAnnounces
- the number of announcespublic int getAnnouncesValidation()
public void setAnnouncesValidation(int nAnnouncesValidation)
nAnnouncesValidation
- weather or not the announces must be moderated before publishingpublic String getResourceId()
getResourceId
in interface fr.paris.lutece.portal.service.rbac.RBACResource
public String getResourceTypeCode()
getResourceTypeCode
in interface fr.paris.lutece.portal.service.rbac.RBACResource
public boolean getDisplayPrice()
public void setDisplayPrice(boolean displayPrice)
displayPrice
- weather or not the category must display the price of announcepublic boolean getPriceMandatory()
public void setPriceMandatory(boolean bPriceMandatory)
bPriceMandatory
- True if the price attribute is mandatory, false otherwisepublic int getIdMailingList()
public void setIdMailingList(int nIdMailingList)
nIdMailingList
- The id of the mailing list associated with this categorypublic String getTags()
public void setTags(String strTags)
strTags
- the Tags of categorypublic String getLabelSector()
public void setLabelSector(String strLabelSector)
strLabelSector
- the _strLabelSector to setpublic int getIdWorkflow()
public void setIdWorkflow(int nIdWorkflow)
nIdWorkflow
- The id of the associated workflowpublic boolean getDisplayCaptcha()
public void setDisplayCaptcha(boolean bDisplayCaptcha)
bDisplayCaptcha
- True if a captcha should be displayed when creating an announce, false otherwiseCopyright © 2019 City of Paris. All rights reserved.