|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.alfresco.repo.transaction.TransactionListenerAdapter
org.alfresco.repo.thumbnail.SimpleThumbnailer
public class SimpleThumbnailer
A simplistic policy that generates all applicable thumbnails for content as it is added or updated. As this is done synchronously, this is not recommended for production use.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface org.alfresco.repo.policy.Policy |
---|
Policy.Arg |
Field Summary |
---|
Fields inherited from interface org.alfresco.repo.content.ContentServicePolicies.OnContentUpdatePolicy |
---|
QNAME |
Fields inherited from interface org.alfresco.repo.policy.Policy |
---|
NAMESPACE |
Constructor Summary | |
---|---|
SimpleThumbnailer()
|
Method Summary | |
---|---|
void |
afterCommit()
Invoked after transaction commit. |
void |
afterPropertiesSet()
Registers the policy behaviour methods. |
void |
onContentUpdate(org.alfresco.service.cmr.repository.NodeRef nodeRef,
boolean newContent)
When content changes, thumbnails are (re)generated. |
void |
setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)
Sets the node service. |
void |
setPolicyComponent(PolicyComponent policyComponent)
Sets the policy component. |
void |
setThumbnailService(ThumbnailService thumbnailService)
Sets the thumbnail service. |
void |
setTransactionService(TransactionService transactionService)
Sets the transaction service. |
Methods inherited from class org.alfresco.repo.transaction.TransactionListenerAdapter |
---|
afterRollback, beforeCommit, beforeCompletion, flush |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SimpleThumbnailer()
Method Detail |
---|
public void setPolicyComponent(PolicyComponent policyComponent)
policyComponent
- used for registrationspublic void setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)
nodeService
- the node servicepublic void setTransactionService(TransactionService transactionService)
transactionService
- the transaction servicepublic void setThumbnailService(ThumbnailService thumbnailService)
thumbnailService
- the thumbnail servicepublic void afterPropertiesSet()
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
public void onContentUpdate(org.alfresco.service.cmr.repository.NodeRef nodeRef, boolean newContent)
onContentUpdate
in interface ContentServicePolicies.OnContentUpdatePolicy
nodeRef
- the node refnewContent
- is the content new?public void afterCommit()
TransactionListenerAdapter
Any exceptions generated here will cause the transaction to rollback.
Although all transaction resources are still available, this method should be used only for cleaning up resources after a commit has occured.
afterCommit
in interface TransactionListener
afterCommit
in class TransactionListenerAdapter
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |