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
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the beginning dateGet the closing dateintGet the id categoryintGet the id demand typegetLabel()Get the labelintgetOrder()Get the ordergetRole()Get the roleGet targetGet the url of the contactGet the url to delete the demandGet the url of the informationGet the url of the resourceGet the workgroup keyReturns the xml of this Demande TypebooleanisClosed()Check if the demand type is closedbooleanbooleanbooleanbooleanisOpen()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) voidSet the labelvoidsetNeedAuthentication(boolean _bNeedAuthentication) voidsetNeedValidation(boolean _bNeedValidation) voidsetOrder(int nOrder) Set the ordervoidSet 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 Details
-
ROLE_NONE
- See Also:
-
-
Constructor Details
-
DemandType
public DemandType()Constructor
-
-
Method Details
-
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
Get the label- Returns:
- the label
-
setLabel
Set the label- Parameters:
strLabel- the label
-
getUrlResource
Get the url of the resource- Returns:
- the url of the resource
-
setUrlResource
Set the url of the form- Parameters:
strUrlResource- the url of the form
-
getUrlInfo
Get the url of the information- Returns:
- the url of the information
-
setUrlInfo
Set the url of the information- Parameters:
strUrlInfo- the url of the information
-
getUrlContact
Get the url of the contact- Returns:
- the url of the contact
-
setUrlContact
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
Get the beginning date- Returns:
- the beginning date
-
setDateBegin
Set the beginning date- Parameters:
dateBegin- the beginning date
-
getDateEnd
Get the closing date- Returns:
- the closing date
-
setDateEnd
Set the closing date- Parameters:
dateEnd- the closing date
-
setWorkgroup
Set the workgroup- Parameters:
strWorkgroupKey- the workgroup key
-
getWorkgroup
Get the workgroup key- Specified by:
getWorkgroupin interfacefr.paris.lutece.portal.service.workgroup.AdminWorkgroupResource- Returns:
- the workgroup key
-
setRole
Set the role- Parameters:
strRoleKey- the role key
-
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
Set target- Parameters:
target- the target
-
getTarget
Get target- Returns:
- the target
-
getUrlDelete
Get the url to delete the demand- Returns:
- the url to delete the demand
-
setUrlDelete
Set the url to delete the demand- Parameters:
strUrlDelete- the url to delete the demand
-
getXml
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
-