Class Demand
java.lang.Object
fr.paris.lutece.plugins.grubusiness.business.demand.Demand
Demand Class
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdd an actionvoidaddMetaData(String key, String value) add a meta dataReturns the ActionslongGives the closure datelongGives the creation dateintGives the current stepGives the customergetId()Get the demand idintGives the number of stepsget meta datalongReturns the NotificationsGives the referencebooleanReturn true if details can be shown otherwise false.intGives the status idGves the subtype idgetTitle()Returns the TitleGves the type idintgetUID()Get the primary key idvoidsetActions(List<Action> listActions) Sets the ActionsvoidsetClosureDate(long lClosureDate) Sets the closure datevoidsetCreationDate(long lCreationDate) Sets the creation datevoidsetCurrentStep(int nCurrentStep) Sets the current stepvoidsetCustomer(Customer customer) Sets the customervoidSet the demand idvoidsetMaxSteps(int nMaxSteps) Sets the number of stepsvoidsetMetaData(Map<String, String> _mapMetaData) set meta datavoidsetModifyDate(long lModifyDate) voidsetNotifications(List<Notification> listNotifications) Sets the NotificationsvoidsetReference(String strReference) Sets the referencevoidsetShowDetails(boolean bShowDetails) Set the flag to show or not detailsvoidsetStatusId(int nStatusId) Sets the status idvoidsetSubtypeId(String strSubtypeId) Sets the subtype idvoidSets the TitlevoidSets the type idvoidsetUID(int nUId) Set the primary key id
-
Constructor Details
-
Demand
public Demand()
-
-
Method Details
-
getUID
public int getUID()Get the primary key id- Returns:
- the technical id
-
setUID
public void setUID(int nUId) Set the primary key id- Parameters:
nUId- The technical id
-
getId
Get the demand id- Returns:
- the demand id
-
setId
Set the demand id- Parameters:
strId- The demand id
-
getReference
Gives the reference- Returns:
- The reference
-
setReference
Sets the reference- Parameters:
strReference- The reference
-
getStatusId
public int getStatusId()Gives the status id- Returns:
- The status id
-
setStatusId
public void setStatusId(int nStatusId) Sets the status id- Parameters:
nStatusId- The status id
-
setTypeId
Sets the type id- Parameters:
strTypeId- The type id
-
getTypeId
Gves the type id- Returns:
- The type id
-
setSubtypeId
Sets the subtype id- Parameters:
strSubtypeId- The subtype id
-
getSubtypeId
Gves the subtype id- Returns:
- The subtype id
-
getTitle
Returns the Title- Returns:
- The Title
-
setTitle
Sets the Title- Parameters:
strTitle- The Title
-
getNotifications
Returns the Notifications- Returns:
- The Notifications
-
setNotifications
Sets the Notifications- Parameters:
listNotifications- The Notifications
-
getActions
Returns the Actions- Returns:
- The Actions
-
setActions
Sets the Actions- Parameters:
listActions- The Actions
-
addAction
Add an action- Parameters:
action- the action to add
-
getCustomer
Gives the customer- Returns:
- the customer
-
setCustomer
Sets the customer- Parameters:
customer- the customer to set
-
getCreationDate
public long getCreationDate()Gives the creation date- Returns:
- the creation date
-
setCreationDate
public void setCreationDate(long lCreationDate) Sets the creation date- Parameters:
lCreationDate- the creation date to set
-
getClosureDate
public long getClosureDate()Gives the closure date- Returns:
- the closure date
-
setClosureDate
public void setClosureDate(long lClosureDate) Sets the closure date- Parameters:
lClosureDate- the closure date to set
-
getMaxSteps
public int getMaxSteps()Gives the number of steps- Returns:
- the number of steps
-
setMaxSteps
public void setMaxSteps(int nMaxSteps) Sets the number of steps- Parameters:
nMaxSteps- the number of steps to set
-
getCurrentStep
public int getCurrentStep()Gives the current step- Returns:
- the current step
-
setCurrentStep
public void setCurrentStep(int nCurrentStep) Sets the current step- Parameters:
nCurrentStep- the current step to set
-
setShowDetails
public void setShowDetails(boolean bShowDetails) Set the flag to show or not details- Parameters:
bShowDetails- the flag value
-
getShowDetails
public boolean getShowDetails()Return true if details can be shown otherwise false.- Returns:
- The display details flag
-
getModifyDate
public long getModifyDate()- Returns:
- the _lModifyDate
-
setModifyDate
public void setModifyDate(long lModifyDate) - Parameters:
lModifyDate- the _lModifyDate to set
-
getMetaData
get meta data- Returns:
- the data
-
setMetaData
set meta data- Parameters:
_mapMetaData-
-
addMetaData
add a meta data- Parameters:
key-value-
-