Class Demand
- java.lang.Object
-
- fr.paris.lutece.plugins.grubusiness.business.demand.Demand
-
public class Demand extends java.lang.ObjectDemand Class
-
-
Constructor Summary
Constructors Constructor Description Demand()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddAction(Action action)Add an actionvoidaddMetaData(java.lang.String key, java.lang.String value)add a meta datajava.util.List<Action>getActions()Returns the ActionslonggetClosureDate()Gives the closure datelonggetCreationDate()Gives the creation dateintgetCurrentStep()Gives the current stepCustomergetCustomer()Gives the customerjava.lang.StringgetId()Get the demand idintgetMaxSteps()Gives the number of stepsjava.util.Map<java.lang.String,java.lang.String>getMetaData()get meta datalonggetModifyDate()java.util.List<Notification>getNotifications()Returns the Notificationsjava.lang.StringgetReference()Gives the referencebooleangetShowDetails()Return true if details can be shown otherwise false.intgetStatusId()Gives the status idjava.lang.StringgetSubtypeId()Gves the subtype idjava.lang.StringgetTitle()Returns the Titlejava.lang.StringgetTypeId()Gves the type idintgetUID()Get the primary key idvoidsetActions(java.util.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 customervoidsetId(java.lang.String strId)Set the demand idvoidsetMaxSteps(int nMaxSteps)Sets the number of stepsvoidsetMetaData(java.util.Map<java.lang.String,java.lang.String> _mapMetaData)set meta datavoidsetModifyDate(long lModifyDate)voidsetNotifications(java.util.List<Notification> listNotifications)Sets the NotificationsvoidsetReference(java.lang.String strReference)Sets the referencevoidsetShowDetails(boolean bShowDetails)Set the flag to show or not detailsvoidsetStatusId(int nStatusId)Sets the status idvoidsetSubtypeId(java.lang.String strSubtypeId)Sets the subtype idvoidsetTitle(java.lang.String strTitle)Sets the TitlevoidsetTypeId(java.lang.String strTypeId)Sets the type idvoidsetUID(int nUId)Set the primary key id
-
-
-
Method Detail
-
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
public java.lang.String getId()
Get the demand id- Returns:
- the demand id
-
setId
public void setId(java.lang.String strId)
Set the demand id- Parameters:
strId- The demand id
-
getReference
public java.lang.String getReference()
Gives the reference- Returns:
- The reference
-
setReference
public void setReference(java.lang.String strReference)
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
public void setTypeId(java.lang.String strTypeId)
Sets the type id- Parameters:
strTypeId- The type id
-
getTypeId
public java.lang.String getTypeId()
Gves the type id- Returns:
- The type id
-
setSubtypeId
public void setSubtypeId(java.lang.String strSubtypeId)
Sets the subtype id- Parameters:
strSubtypeId- The subtype id
-
getSubtypeId
public java.lang.String getSubtypeId()
Gves the subtype id- Returns:
- The subtype id
-
getTitle
public java.lang.String getTitle()
Returns the Title- Returns:
- The Title
-
setTitle
public void setTitle(java.lang.String strTitle)
Sets the Title- Parameters:
strTitle- The Title
-
getNotifications
public java.util.List<Notification> getNotifications()
Returns the Notifications- Returns:
- The Notifications
-
setNotifications
public void setNotifications(java.util.List<Notification> listNotifications)
Sets the Notifications- Parameters:
listNotifications- The Notifications
-
getActions
public java.util.List<Action> getActions()
Returns the Actions- Returns:
- The Actions
-
setActions
public void setActions(java.util.List<Action> listActions)
Sets the Actions- Parameters:
listActions- The Actions
-
addAction
public void addAction(Action action)
Add an action- Parameters:
action- the action to add
-
getCustomer
public Customer getCustomer()
Gives the customer- Returns:
- the customer
-
setCustomer
public void setCustomer(Customer customer)
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
public java.util.Map<java.lang.String,java.lang.String> getMetaData()
get meta data- Returns:
- the data
-
setMetaData
public void setMetaData(java.util.Map<java.lang.String,java.lang.String> _mapMetaData)
set meta data- Parameters:
_mapMetaData-
-
addMetaData
public void addMetaData(java.lang.String key, java.lang.String value)add a meta data- Parameters:
key-value-
-
-