org.opencms.publish
Class CmsPublishJobBase

java.lang.Object
  extended by org.opencms.publish.CmsPublishJobBase
Direct Known Subclasses:
CmsPublishJobEnqueued, CmsPublishJobFinished, CmsPublishJobRunning, OpenCmsTestPublishJobBase

public class CmsPublishJobBase
extends Object

Defines a read-only publish job.

Since:
6.5.5

Field Summary
protected  CmsPublishJobInfoBean m_publishJob
          The delegate publish job.
 
Constructor Summary
protected CmsPublishJobBase(CmsPublishJobBase job)
          Internal constructor.
protected CmsPublishJobBase(CmsPublishJobInfoBean publishJob)
          Default constructor.
 
Method Summary
 Locale getLocale()
          Returns the locale for this publish job.
 String getProjectName()
          Returns the project name or Messages.GUI_DIRECT_PUBLISH_PROJECT_NAME_0 if it is a direct publish job.
 CmsUUID getPublishHistoryId()
          Returns the publish history id.
 int getSize()
          Returns the number of resources in the publish list.
 CmsUUID getUserId()
          Returns the id of the user who initialized this publish job.
 String getUserName(CmsObject cms)
          Returns the name of the user who initialized this publish job.
 boolean isDirectPublish()
          Returns the direct publish state.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_publishJob

protected CmsPublishJobInfoBean m_publishJob
The delegate publish job.

Constructor Detail

CmsPublishJobBase

protected CmsPublishJobBase(CmsPublishJobBase job)
Internal constructor.

Parameters:
job - the job used to initialize

CmsPublishJobBase

protected CmsPublishJobBase(CmsPublishJobInfoBean publishJob)
Default constructor.

Parameters:
publishJob - the delegate publish job
Method Detail

getLocale

public Locale getLocale()
Returns the locale for this publish job.

Returns:
the locale for this publish job

getProjectName

public String getProjectName()
Returns the project name or Messages.GUI_DIRECT_PUBLISH_PROJECT_NAME_0 if it is a direct publish job.

Returns:
the project name

getPublishHistoryId

public CmsUUID getPublishHistoryId()
Returns the publish history id.

Returns:
the publish history id

getSize

public int getSize()
Returns the number of resources in the publish list.

Returns:
the number of resources in the publish list

getUserId

public CmsUUID getUserId()
Returns the id of the user who initialized this publish job.

Returns:
the id of the user who initialized this publish job

getUserName

public String getUserName(CmsObject cms)
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

public boolean isDirectPublish()
Returns the direct publish state.

Returns:
the direct publish state