Class ReplacementEntity
- java.lang.Object
-
- org.silverpeas.core.webapi.workflow.ReplacementEntity
-
- All Implemented Interfaces:
Serializable
,WebEntity
public class ReplacementEntity extends Object implements WebEntity
The web entity that is carried by an HTTP request or an HTTP response between a web client and the replacement web resource. The web entity is marshaled into a representation negotiated between the client and the resource. In Silverpeas, usually the supported representation is JSON.- Author:
- mmoquillon
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
ReplacementEntity()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ReplacementEntity
asWebEntity(Replacement<?> replacement, URI uri)
LocalDate
getEndDate()
UserEntity
getIncumbent()
LocalDate
getStartDate()
UserEntity
getSubstitute()
URI
getURI()
Gets the URI at which this web entity is published and can be accessed.String
getWorkflowInstanceId()
void
setEndDate(LocalDate date)
void
setStartDate(LocalDate date)
void
setSubstitute(User substitute)
-
-
-
Method Detail
-
asWebEntity
public static ReplacementEntity asWebEntity(Replacement<?> replacement, URI uri)
-
getURI
public URI getURI()
Description copied from interface:WebEntity
Gets the URI at which this web entity is published and can be accessed.
-
getIncumbent
public UserEntity getIncumbent()
-
getSubstitute
public UserEntity getSubstitute()
-
getStartDate
public LocalDate getStartDate()
-
getEndDate
public LocalDate getEndDate()
-
getWorkflowInstanceId
public String getWorkflowInstanceId()
-
setSubstitute
public void setSubstitute(User substitute)
-
setStartDate
public void setStartDate(LocalDate date)
-
setEndDate
public void setEndDate(LocalDate date)
-
-