com.silverpeas.formsonline.model
Class FormInstance

java.lang.Object
  extended by com.silverpeas.formsonline.model.FormInstance
All Implemented Interfaces:
com.silverpeas.SilverpeasContent, Serializable

public class FormInstance
extends Object
implements com.silverpeas.SilverpeasContent

See Also:
Serialized Form

Field Summary
protected  FormDetail form
           
static int STATE_ARCHIVED
           
static int STATE_READ
           
static int STATE_REFUSED
           
static int STATE_UNREAD
           
static int STATE_VALIDATED
           
 
Constructor Summary
FormInstance()
           
 
Method Summary
 boolean canBeAccessedBy(com.stratelia.webactiv.beans.admin.UserDetail user)
           
 String getComments()
           
 String getComponentInstanceId()
           
 String getContributionType()
           
 Date getCreationDate()
           
 com.stratelia.webactiv.beans.admin.UserDetail getCreator()
           
 String getCreatorId()
           
 String getDescription()
           
 FormDetail getForm()
           
 int getFormId()
           
 FormPK getFormPK()
           
 com.silverpeas.form.Form getFormWithData()
           
 String getId()
           
 int getIdAsInt()
           
 String getSilverpeasContentId()
           
 int getState()
           
 String getTitle()
           
 Date getValidationDate()
           
 com.stratelia.webactiv.beans.admin.UserDetail getValidator()
           
 String getValidatorId()
           
 boolean isArchived()
           
 boolean isCanBeValidated()
           
 boolean isDenied()
           
 boolean isRead()
           
 boolean isValidated()
           
 boolean isValidationEnabled()
           
 void setComments(String comments)
           
 void setCreationDate(Date creationDate)
           
 void setCreatorId(String creatorId)
           
 void setForm(FormDetail form)
           
 void setFormId(int formId)
           
 void setFormWithData(com.silverpeas.form.Form formWithData)
           
 void setId(int id)
           
 void setInstanceId(String instanceId)
           
 void setState(int state)
           
 void setValidationDate(Date validationDate)
           
 void setValidationEnabled(boolean validationEnabled)
           
 void setValidatorId(String validatorId)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

STATE_UNREAD

public static final int STATE_UNREAD
See Also:
Constant Field Values

STATE_READ

public static final int STATE_READ
See Also:
Constant Field Values

STATE_VALIDATED

public static final int STATE_VALIDATED
See Also:
Constant Field Values

STATE_REFUSED

public static final int STATE_REFUSED
See Also:
Constant Field Values

STATE_ARCHIVED

public static final int STATE_ARCHIVED
See Also:
Constant Field Values

form

protected FormDetail form
Constructor Detail

FormInstance

public FormInstance()
Method Detail

getId

public String getId()
Specified by:
getId in interface com.silverpeas.SilverpeasContent

getIdAsInt

public int getIdAsInt()

getComponentInstanceId

public String getComponentInstanceId()
Specified by:
getComponentInstanceId in interface com.silverpeas.SilverpeasContent

getSilverpeasContentId

public String getSilverpeasContentId()
Specified by:
getSilverpeasContentId in interface com.silverpeas.SilverpeasContent

setId

public void setId(int id)
Parameters:
id - the id to set

getFormId

public int getFormId()
Returns:
the formId

setFormId

public void setFormId(int formId)
Parameters:
formId - the formId to set

getState

public int getState()
Returns:
the state

setState

public void setState(int state)
Parameters:
state - the state to set

getCreatorId

public String getCreatorId()
Returns:
the creatorId

setCreatorId

public void setCreatorId(String creatorId)
Parameters:
creatorId - the creatorId to set

getCreationDate

public Date getCreationDate()
Specified by:
getCreationDate in interface com.silverpeas.SilverpeasContent
Returns:
the creationDate

getTitle

public String getTitle()
Specified by:
getTitle in interface com.silverpeas.SilverpeasContent

getDescription

public String getDescription()
Specified by:
getDescription in interface com.silverpeas.SilverpeasContent

getContributionType

public String getContributionType()
Specified by:
getContributionType in interface com.silverpeas.SilverpeasContent

canBeAccessedBy

public boolean canBeAccessedBy(com.stratelia.webactiv.beans.admin.UserDetail user)
Specified by:
canBeAccessedBy in interface com.silverpeas.SilverpeasContent

setCreationDate

public void setCreationDate(Date creationDate)
Parameters:
creationDate - the creationDate to set

getValidatorId

public String getValidatorId()
Returns:
the validatorId

setValidatorId

public void setValidatorId(String validatorId)
Parameters:
validatorId - the validatorId to set

getValidationDate

public Date getValidationDate()
Returns:
the validationDate

setValidationDate

public void setValidationDate(Date validationDate)
Parameters:
validationDate - the validationDate to set

getComments

public String getComments()
Returns:
the comments

setComments

public void setComments(String comments)
Parameters:
comments - the comments to set

setInstanceId

public void setInstanceId(String instanceId)
Parameters:
instanceId - the instanceId to set

getForm

public FormDetail getForm()

setForm

public void setForm(FormDetail form)

isRead

public boolean isRead()

isValidated

public boolean isValidated()

isDenied

public boolean isDenied()

isArchived

public boolean isArchived()

isCanBeValidated

public boolean isCanBeValidated()

getCreator

public com.stratelia.webactiv.beans.admin.UserDetail getCreator()
Specified by:
getCreator in interface com.silverpeas.SilverpeasContent

getValidator

public com.stratelia.webactiv.beans.admin.UserDetail getValidator()

getFormPK

public FormPK getFormPK()

isValidationEnabled

public boolean isValidationEnabled()

setValidationEnabled

public void setValidationEnabled(boolean validationEnabled)

getFormWithData

public com.silverpeas.form.Form getFormWithData()

setFormWithData

public void setFormWithData(com.silverpeas.form.Form formWithData)


Copyright © 2016 Silverpeas. All Rights Reserved.