Class Demand
- java.lang.Object
-
- fr.paris.lutece.plugins.grubusiness.business.demand.Demand
-
public class Demand extends Object
Demand 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 actionList<Action>getActions()Returns the ActionslonggetClosureDate()Gives the closure datelonggetCreationDate()Gives the creation dateintgetCurrentStep()Gives the current stepCustomergetCustomer()Gives the customerStringgetId()Get the demand idintgetMaxSteps()Gives the number of stepslonggetModifyDate()List<Notification>getNotifications()Returns the NotificationsStringgetReference()Gives the referencebooleangetShowDetails()Return true if details can be shown otherwise false.intgetStatusId()Gives the status idStringgetSubtypeId()Gves the subtype idStringgetTitle()Returns the TitleStringgetTypeId()Gves 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 customervoidsetId(String strId)Set the demand idvoidsetMaxSteps(int nMaxSteps)Sets the number of stepsvoidsetModifyDate(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 idvoidsetTitle(String strTitle)Sets the TitlevoidsetTypeId(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 String getId()
Get the demand id- Returns:
- the demand id
-
setId
public void setId(String strId)
Set the demand id- Parameters:
strId- The demand id
-
getReference
public String getReference()
Gives the reference- Returns:
- The reference
-
setReference
public void setReference(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(String strTypeId)
Sets the type id- Parameters:
strTypeId- The type id
-
getTypeId
public String getTypeId()
Gves the type id- Returns:
- The type id
-
setSubtypeId
public void setSubtypeId(String strSubtypeId)
Sets the subtype id- Parameters:
strSubtypeId- The subtype id
-
getSubtypeId
public String getSubtypeId()
Gves the subtype id- Returns:
- The subtype id
-
getTitle
public String getTitle()
Returns the Title- Returns:
- The Title
-
setTitle
public void setTitle(String strTitle)
Sets the Title- Parameters:
strTitle- The Title
-
getNotifications
public List<Notification> getNotifications()
Returns the Notifications- Returns:
- The Notifications
-
setNotifications
public void setNotifications(List<Notification> listNotifications)
Sets the Notifications- Parameters:
listNotifications- The Notifications
-
setActions
public void setActions(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
-
-