org.alfresco.service.cmr.thumbnail
Class FailedThumbnailInfo

java.lang.Object
  extended by org.alfresco.service.cmr.thumbnail.FailedThumbnailInfo

public class FailedThumbnailInfo
extends java.lang.Object

A simple pojo to hold data related to a failed thumbnail attempt. A failed thumbnail attempt is when create-thumbnail has been used to produce a thumbnail for content and that action has thrown an exception. If a thumbnail was not attempted (e.g. due to unavailability of transformers) this is not a failure in this context.

Since:
3.5.0

Constructor Summary
FailedThumbnailInfo(java.lang.String thumbnailDefinitionName, java.util.Date failureDate, int failureCount, org.alfresco.service.cmr.repository.NodeRef failedThumbnailNode)
           
 
Method Summary
 org.alfresco.service.cmr.repository.NodeRef getFailedThumbnailNode()
          Get the NodeRef of the failedThumbnail node.
 int getFailureCount()
          Get the total number of failed attempts which have been made to produce a thumbnail.
 java.util.Date getMostRecentFailure()
          Get the time of the most recent failure.
 java.lang.String getThumbnailDefinitionName()
          Get the thumbnail definition name that has failed.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FailedThumbnailInfo

public FailedThumbnailInfo(java.lang.String thumbnailDefinitionName,
                           java.util.Date failureDate,
                           int failureCount,
                           org.alfresco.service.cmr.repository.NodeRef failedThumbnailNode)
Method Detail

getThumbnailDefinitionName

public java.lang.String getThumbnailDefinitionName()
Get the thumbnail definition name that has failed.


getMostRecentFailure

public java.util.Date getMostRecentFailure()
Get the time of the most recent failure.


getFailureCount

public int getFailureCount()
Get the total number of failed attempts which have been made to produce a thumbnail.

Returns:

getFailedThumbnailNode

public org.alfresco.service.cmr.repository.NodeRef getFailedThumbnailNode()
Get the NodeRef of the failedThumbnail node. Note that this is not the NodeRef which was not thumbnailed - that will be the primary parent of this node.



Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.