org.opencms.ade.publish.shared
Class CmsPublishResourceInfo

java.lang.Object
  extended by org.opencms.ade.publish.shared.CmsPublishResourceInfo
All Implemented Interfaces:
com.google.gwt.user.client.rpc.IsSerializable

public class CmsPublishResourceInfo
extends java.lang.Object
implements com.google.gwt.user.client.rpc.IsSerializable

A publish resource additional information bean.

Since:
7.6

Nested Class Summary
static class CmsPublishResourceInfo.Type
          Reason value constants, when resources can not be published.
 
Constructor Summary
protected CmsPublishResourceInfo()
          For serialization.
  CmsPublishResourceInfo(java.lang.String value, CmsPublishResourceInfo.Type type)
          Creates a new publish resource additional information bean.
 
Method Summary
 java.lang.String getNoPreviewReason()
          Returns the no preview available reason.
 CmsPublishResourceInfo.Type getType()
          Returns the type.
 java.lang.String getValue()
          Returns the value.
 boolean hasNoPreviewReason()
          Returns if the no preview available reason is set.
 boolean hasProblemType()
          Returns if there is a problem type set.
 void setNoPreviewReason(java.lang.String noPreviewReason)
          Sets the no preview available reason.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CmsPublishResourceInfo

public CmsPublishResourceInfo(java.lang.String value,
                              CmsPublishResourceInfo.Type type)
Creates a new publish resource additional information bean.

Parameters:
value - the additional info
type - the additional info type

CmsPublishResourceInfo

protected CmsPublishResourceInfo()
For serialization.

Method Detail

getNoPreviewReason

public java.lang.String getNoPreviewReason()
Returns the no preview available reason.

Returns:
the no preview available reason

getType

public CmsPublishResourceInfo.Type getType()
Returns the type.

Returns:
the type

getValue

public java.lang.String getValue()
Returns the value.

Returns:
the value

hasNoPreviewReason

public boolean hasNoPreviewReason()
Returns if the no preview available reason is set.

Returns:
true if the no preview available reason is not empty

hasProblemType

public boolean hasProblemType()
Returns if there is a problem type set.

Returns:
true if the problem type is set

setNoPreviewReason

public void setNoPreviewReason(java.lang.String noPreviewReason)
Sets the no preview available reason.

Parameters:
noPreviewReason - the no preview available reason