Class DemandType
- java.lang.Object
-
- fr.paris.lutece.plugins.crm.business.demand.DemandType
-
- All Implemented Interfaces:
fr.paris.lutece.portal.service.workgroup.AdminWorkgroupResource
public class DemandType extends Object implements fr.paris.lutece.portal.service.workgroup.AdminWorkgroupResource
DemandType
-
-
Constructor Summary
Constructors Constructor Description DemandType()Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DategetDateBegin()Get the beginning dateDategetDateEnd()Get the closing dateintgetIdCategory()Get the id categoryintgetIdDemandType()Get the id demand typeStringgetLabel()Get the labelintgetOrder()Get the orderStringgetRole()Get the roleTargetEnumgetTarget()Get targetStringgetUrlContact()Get the url of the contactStringgetUrlDelete()Get the url to delete the demandStringgetUrlInfo()Get the url of the informationStringgetUrlResource()Get the url of the resourceStringgetWorkgroup()Get the workgroup keyStringgetXml(javax.servlet.http.HttpServletRequest request, Locale locale)Returns the xml of this Demande TypebooleanisClosed()Check if the demand type is closedbooleanisIncludeIdCrmUser()booleanisNeedAuthentication()booleanisNeedValidation()booleanisOpen()Check if the demand type is open or notvoidsetDateBegin(Date dateBegin)Set the beginning datevoidsetDateEnd(Date dateEnd)Set the closing datevoidsetIdCategory(int nIdCategory)Set the ID categoryvoidsetIdDemandType(int nIdDemandType)Set the id demand typevoidsetIncludeIdCrmUser(boolean _bUseIdCrmUser)voidsetLabel(String strLabel)Set the labelvoidsetNeedAuthentication(boolean _bNeedAuthentication)voidsetNeedValidation(boolean _bNeedValidation)voidsetOrder(int nOrder)Set the ordervoidsetRole(String strRoleKey)Set the rolevoidsetTarget(TargetEnum target)Set targetvoidsetUrlContact(String strUrlContact)Set the url of the contactvoidsetUrlDelete(String strUrlDelete)Set the url to delete the demandvoidsetUrlInfo(String strUrlInfo)Set the url of the informationvoidsetUrlResource(String strUrlResource)Set the url of the formvoidsetWorkgroup(String strWorkgroupKey)Set the workgroup
-
-
-
Field Detail
-
ROLE_NONE
public static final String ROLE_NONE
- See Also:
- Constant Field Values
-
-
Method Detail
-
getIdDemandType
public int getIdDemandType()
Get the id demand type- Returns:
- the id demand type
-
setIdDemandType
public void setIdDemandType(int nIdDemandType)
Set the id demand type- Parameters:
nIdDemandType- the id deman type
-
getLabel
public String getLabel()
Get the label- Returns:
- the label
-
setLabel
public void setLabel(String strLabel)
Set the label- Parameters:
strLabel- the label
-
getUrlResource
public String getUrlResource()
Get the url of the resource- Returns:
- the url of the resource
-
setUrlResource
public void setUrlResource(String strUrlResource)
Set the url of the form- Parameters:
strUrlResource- the url of the form
-
getUrlInfo
public String getUrlInfo()
Get the url of the information- Returns:
- the url of the information
-
setUrlInfo
public void setUrlInfo(String strUrlInfo)
Set the url of the information- Parameters:
strUrlInfo- the url of the information
-
getUrlContact
public String getUrlContact()
Get the url of the contact- Returns:
- the url of the contact
-
setUrlContact
public void setUrlContact(String strUrlContact)
Set the url of the contact- Parameters:
strUrlContact- the url of the contact
-
getOrder
public int getOrder()
Get the order- Returns:
- the order
-
setOrder
public void setOrder(int nOrder)
Set the order- Parameters:
nOrder- the order
-
getIdCategory
public int getIdCategory()
Get the id category- Returns:
- the ID category
-
setIdCategory
public void setIdCategory(int nIdCategory)
Set the ID category- Parameters:
nIdCategory- the id category
-
getDateBegin
public Date getDateBegin()
Get the beginning date- Returns:
- the beginning date
-
setDateBegin
public void setDateBegin(Date dateBegin)
Set the beginning date- Parameters:
dateBegin- the beginning date
-
getDateEnd
public Date getDateEnd()
Get the closing date- Returns:
- the closing date
-
setDateEnd
public void setDateEnd(Date dateEnd)
Set the closing date- Parameters:
dateEnd- the closing date
-
setWorkgroup
public void setWorkgroup(String strWorkgroupKey)
Set the workgroup- Parameters:
strWorkgroupKey- the workgroup key
-
getWorkgroup
public String getWorkgroup()
Get the workgroup key- Specified by:
getWorkgroupin interfacefr.paris.lutece.portal.service.workgroup.AdminWorkgroupResource- Returns:
- the workgroup key
-
setRole
public void setRole(String strRoleKey)
Set the role- Parameters:
strRoleKey- the role key
-
getRole
public String getRole()
Get the role- Returns:
- the role key
-
isOpen
public boolean isOpen()
Check if the demand type is open or not- Returns:
- true if it is open, false otherwise
-
isClosed
public boolean isClosed()
Check if the demand type is closed- Returns:
- true if it is closed, false otherwise
-
setTarget
public void setTarget(TargetEnum target)
Set target- Parameters:
target- the target
-
getTarget
public TargetEnum getTarget()
Get target- Returns:
- the target
-
getUrlDelete
public String getUrlDelete()
Get the url to delete the demand- Returns:
- the url to delete the demand
-
setUrlDelete
public void setUrlDelete(String strUrlDelete)
Set the url to delete the demand- Parameters:
strUrlDelete- the url to delete the demand
-
getXml
public String getXml(javax.servlet.http.HttpServletRequest request, Locale locale)
Returns the xml of this Demande Type- Parameters:
request- The HTTP Servlet requestlocale- the Locale- Returns:
- the xml of this Demande Type
-
isIncludeIdCrmUser
public boolean isIncludeIdCrmUser()
- Returns:
- true if the crm user id must be added to the list of _strUrlResource parameters
-
setIncludeIdCrmUser
public void setIncludeIdCrmUser(boolean _bUseIdCrmUser)
- Parameters:
_bUseIdCrmUser- true if the crm user id must be added to the list of _strUrlResource parameters
-
isNeedAuthentication
public boolean isNeedAuthentication()
- Returns:
- true if the demand type need authentication access
-
setNeedAuthentication
public void setNeedAuthentication(boolean _bNeedAuthentication)
- Parameters:
_bNeedAuthentication- true if the demand type need authentication access
-
isNeedValidation
public boolean isNeedValidation()
- Returns:
- true if the demand type need validation access
-
setNeedValidation
public void setNeedValidation(boolean _bNeedValidation)
- Parameters:
_bNeedAuthentication- true if the demand type need validation access
-
-