Class PublishInfoResponse
java.lang.Object
com.gentics.contentnode.rest.model.response.GenericResponse
com.gentics.contentnode.rest.model.response.admin.PublishInfoResponse
- All Implemented Interfaces:
Serializable
Response containing information about the current or last publish process
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionprotected int
protected boolean
protected ObjectCount
protected ObjectCount
protected ObjectCount
protected Boolean
protected ObjectCount
protected String
protected int
protected int
protected int
protected int
protected boolean
protected String
protected int
protected int
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
Estimated remaining duration in seconds.getFiles()
File countsFolder countsgetForms()
Form countsFlag to mark if the previous publish process failed.getPages()
Page countsgetPhase()
Name of the current publish process phaseint
Progress in percentint
Total number of work items of the current publish processint
Number of work items doneboolean
isFailed()
Flag to mark failed publish processboolean
True when the publish process is currently runningvoid
setEstimatedDuration
(int estimatedDuration) Set ETAvoid
setFailed
(boolean failed) Set failed flagvoid
setFiles
(ObjectCount files) Set file countsvoid
setFolders
(ObjectCount folders) Set folder countsvoid
setForms
(ObjectCount forms) Form countsvoid
setLastFailed
(Boolean lastFailed) Set failed flag for the previous publish process.void
setPages
(ObjectCount pages) Page countsvoid
Set name of current publish process phasevoid
setProgress
(int progress) Set progress in percentvoid
setRunning
(boolean running) Set running flagvoid
setTotalWork
(int totalWork) Set total work itemsvoid
setTotalWorkDone
(int totalWorkDone) Get number of work items doneMethods inherited from class com.gentics.contentnode.rest.model.response.GenericResponse
addMessage, getMessages, getResponseInfo, setMessages, setResponseInfo
-
Field Details
-
failed
protected boolean failed -
lastFailed
-
status
-
progress
protected int progress -
estimatedDuration
protected int estimatedDuration -
running
protected boolean running -
totalWork
protected int totalWork -
totalWorkDone
protected int totalWorkDone -
phase
-
phaseNumber
protected int phaseNumber -
phaseCount
protected int phaseCount -
phaseETA
protected int phaseETA -
files
-
folders
-
pages
-
forms
-
-
Constructor Details
-
PublishInfoResponse
public PublishInfoResponse()
-
-
Method Details
-
isFailed
public boolean isFailed()Flag to mark failed publish process- Returns:
- true if publish process failed
-
setFailed
public void setFailed(boolean failed) Set failed flag- Parameters:
failed
- flag
-
getLastFailed
Flag to mark if the previous publish process failed.- Returns:
- true if the previous publish process failed, false if it was successful, and null if the is no previous publish process
-
setLastFailed
Set failed flag for the previous publish process.- Parameters:
lastFailed
- flag
-
getProgress
public int getProgress()Progress in percent- Returns:
- progress
-
setProgress
public void setProgress(int progress) Set progress in percent- Parameters:
progress
- progress
-
getEstimatedDuration
public int getEstimatedDuration()Estimated remaining duration in seconds.- Returns:
- ETA in seconds
-
setEstimatedDuration
public void setEstimatedDuration(int estimatedDuration) Set ETA- Parameters:
estimatedDuration
- ETA in seconds
-
isRunning
public boolean isRunning()True when the publish process is currently running- Returns:
- true for running
-
setRunning
public void setRunning(boolean running) Set running flag- Parameters:
running
- flag
-
getTotalWork
public int getTotalWork()Total number of work items of the current publish process- Returns:
- total work
-
setTotalWork
public void setTotalWork(int totalWork) Set total work items- Parameters:
totalWork
- items
-
getTotalWorkDone
public int getTotalWorkDone()Number of work items done- Returns:
- work done
-
setTotalWorkDone
public void setTotalWorkDone(int totalWorkDone) Get number of work items done- Parameters:
totalWorkDone
- done
-
getPhase
Name of the current publish process phase- Returns:
- phase name
-
setPhase
Set name of current publish process phase- Parameters:
phase
- name
-
getFiles
File counts- Returns:
- file counts
-
setFiles
Set file counts- Parameters:
files
- founts
-
getFolders
Folder counts- Returns:
- folder counts
-
setFolders
Set folder counts- Parameters:
folders
- countes
-
getPages
Page counts- Returns:
- page counts
-
setPages
Page counts- Parameters:
pages
- counts
-
getForms
Form counts- Returns:
- form counts
-
setForms
Form counts- Parameters:
forms
- counts
-