Package org.opencms.publish
Class CmsPublishJobBase
java.lang.Object
org.opencms.publish.CmsPublishJobBase
- Direct Known Subclasses:
CmsPublishJobEnqueued
,CmsPublishJobFinished
,CmsPublishJobRunning
Defines a read-only publish job.
- Since:
- 6.5.5
-
Field Summary
-
Constructor Summary
ModifierConstructorDescriptionprotected
Internal constructor.protected
CmsPublishJobBase
(CmsPublishJobInfoBean publishJob) Default constructor. -
Method Summary
Modifier and TypeMethodDescriptionReturns the locale for this publish job.Returns the project name orMessages.GUI_DIRECT_PUBLISH_PROJECT_NAME_0
if it is a direct publish job.Returns the publish history id.int
getSize()
Returns the number of resources in the publish list.Returns the id of the user who initialized this publish job.getUserName
(CmsObject cms) Returns the name of the user who initialized this publish job.boolean
Returns the direct publish state.
-
Field Details
-
m_publishJob
The delegate publish job.
-
-
Constructor Details
-
CmsPublishJobBase
Internal constructor.- Parameters:
job
- the job used to initialize
-
CmsPublishJobBase
Default constructor.- Parameters:
publishJob
- the delegate publish job
-
-
Method Details
-
getLocale
Returns the locale for this publish job.- Returns:
- the locale for this publish job
-
getProjectName
Returns the project name orMessages.GUI_DIRECT_PUBLISH_PROJECT_NAME_0
if it is a direct publish job.- Returns:
- the project name
-
getPublishHistoryId
Returns the publish history id.- Returns:
- the publish history id
-
getSize
Returns the number of resources in the publish list.- Returns:
- the number of resources in the publish list
-
getUserId
Returns the id of the user who initialized this publish job.- Returns:
- the id of the user who initialized this publish job
-
getUserName
Returns the name of the user who initialized this publish job.- Parameters:
cms
- the cms object- Returns:
- the name of the user who initialized this publish job
-
isDirectPublish
Returns the direct publish state.- Returns:
- the direct publish state
-