|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.alfresco.repo.thumbnail.ThumbnailRegistry
public class ThumbnailRegistry
Registry of all the thumbnail details available
Constructor Summary | |
---|---|
ThumbnailRegistry()
|
Method Summary | |
---|---|
void |
addThumbnailDefinition(ThumbnailDefinition thumbnailDetails)
Add a thumbnail details |
ThumbnailDefinition |
getThumbnailDefinition(java.lang.String thumbnailName)
Get the definition of a named thumbnail |
java.util.List |
getThumbnailDefinitions()
Get a list of all the thumbnail definitions |
java.util.List |
getThumbnailDefinitions(java.lang.String mimetype)
|
ThumbnailRenditionConvertor |
getThumbnailRenditionConvertor()
|
java.util.List |
getThumnailDefintions(java.lang.String mimetype)
Deprecated. Use ThumbnailRegistry.getThumbnailDefinitions(String) instead. |
boolean |
isThumbnailDefinitionAvailable(java.lang.String sourceMimeType,
ThumbnailDefinition thumbnailDefinition)
Checks to see if at this moment in time, the specified ThumbnailDefinition
is able to thumbnail the source mimetype. |
void |
onApplicationEvent(org.springframework.context.event.ApplicationContextEvent event)
|
void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
|
void |
setContentService(ContentService contentService)
Content service |
void |
setRenditionService(RenditionService renditionService)
Rendition service |
void |
setThumbnailDefinitions(java.util.List thumbnailDefinitions)
This method is used to inject the thumbnail definitions. |
void |
setThumbnailRenditionConvertor(ThumbnailRenditionConvertor thumbnailRenditionConvertor)
|
void |
setTransactionService(TransactionService transactionService)
Transaction service |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ThumbnailRegistry()
Method Detail |
---|
public void setThumbnailRenditionConvertor(ThumbnailRenditionConvertor thumbnailRenditionConvertor)
public ThumbnailRenditionConvertor getThumbnailRenditionConvertor()
public void setContentService(ContentService contentService)
contentService
- content servicepublic void setTransactionService(TransactionService transactionService)
transactionService
- transaction servicepublic void setRenditionService(RenditionService renditionService)
renditionService
- rendition servicepublic void setThumbnailDefinitions(java.util.List thumbnailDefinitions)
thumbnailDefinitions
- public java.util.List getThumbnailDefinitions()
public java.util.List getThumbnailDefinitions(java.lang.String mimetype)
@Deprecated public java.util.List getThumnailDefintions(java.lang.String mimetype)
ThumbnailRegistry.getThumbnailDefinitions(String)
instead.
mimetype
-
public boolean isThumbnailDefinitionAvailable(java.lang.String sourceMimeType, ThumbnailDefinition thumbnailDefinition)
ThumbnailDefinition
is able to thumbnail the source mimetype. Typically used with Thumbnail Definitions
retrieved by name, and/or when dealing with transient ContentTransformer
s.
thumbnailDefinition
- The ThumbnailDefinition
to check forsourceMimeType
- The source mimetypepublic void addThumbnailDefinition(ThumbnailDefinition thumbnailDetails)
thumbnailDetails
- thumbnail detailspublic ThumbnailDefinition getThumbnailDefinition(java.lang.String thumbnailName)
thumbnailNam
- the thumbnail name
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException
setApplicationContext
in interface org.springframework.context.ApplicationContextAware
org.springframework.beans.BeansException
public void onApplicationEvent(org.springframework.context.event.ApplicationContextEvent event)
onApplicationEvent
in interface org.springframework.context.ApplicationListener
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |