Class ThumbnailServiceImpl

    • Nested Class Summary

      • Nested classes/interfaces inherited from interface org.alfresco.repo.policy.Policy

        Policy.Arg
    • Method Summary

      All Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      void beforeCreateNode​(org.alfresco.service.cmr.repository.NodeRef parentRef, org.alfresco.service.namespace.QName assocTypeQName, org.alfresco.service.namespace.QName assocQName, org.alfresco.service.namespace.QName nodeTypeQName)
      Deprecated.
      Called before a new node is created.
      org.alfresco.service.cmr.repository.NodeRef createThumbnail​(org.alfresco.service.cmr.repository.NodeRef node, org.alfresco.service.namespace.QName contentProperty, java.lang.String mimetype, TransformationOptions transformationOptions, java.lang.String thumbnailName)
      Deprecated.
      Creates a new thumbnail for the given node and content property.
      org.alfresco.service.cmr.repository.NodeRef createThumbnail​(org.alfresco.service.cmr.repository.NodeRef node, org.alfresco.service.namespace.QName contentProperty, java.lang.String mimetype, TransformationOptions transformationOptions, java.lang.String thumbnailName, ThumbnailParentAssociationDetails assocDetails)
      Deprecated.
       
      CopyBehaviourCallback getCopyCallback​(org.alfresco.service.namespace.QName classRef, CopyDetails copyDetails)
      Deprecated.
      See init - eg.
      java.util.Map<java.lang.String,​FailedThumbnailInfo> getFailedThumbnails​(org.alfresco.service.cmr.repository.NodeRef sourceNode)
      Deprecated.
      This method returns a Map of failed thumbnails for the specified source node.
      org.alfresco.service.cmr.repository.NodeRef getThumbnailByName​(org.alfresco.service.cmr.repository.NodeRef node, org.alfresco.service.namespace.QName contentProperty, java.lang.String thumbnailName)
      Deprecated.
      Gets the thumbnail for a given content property with a given name.
      org.alfresco.service.cmr.repository.NodeRef getThumbnailNode​(org.alfresco.service.cmr.repository.ChildAssociationRef thumbnailRef)
      Deprecated.
      This method returns the NodeRef for the thumbnail, using the ChildAssociationRef that links the sourceNode to its associated Thumbnail node.
      ThumbnailRegistry getThumbnailRegistry()
      Deprecated.
      Gets the thumbnail registry
      java.util.List<org.alfresco.service.cmr.repository.NodeRef> getThumbnails​(org.alfresco.service.cmr.repository.NodeRef node, org.alfresco.service.namespace.QName contentProperty, java.lang.String mimetype, TransformationOptions options)
      Deprecated.
      Gets a list of thumbnail nodes for a given content property that match the provided mimetype and transformation options.
      boolean getThumbnailsEnabled()
      Deprecated.
      This method indicates whether thumbnail creation via this service has been globally enabled or disabled.
      void init()
      Deprecated.
      Registers to listen for events of interest.
      void onCreateNode​(org.alfresco.service.cmr.repository.ChildAssociationRef childAssoc)
      Deprecated.
      Called when a new node has been created.
      void onDeleteNode​(org.alfresco.service.cmr.repository.ChildAssociationRef childAssocRef, boolean isNodeArchived)
      Deprecated.
      Called after a node is deleted.
      void setBehaviourFilter​(BehaviourFilter behaviourFilter)
      Deprecated.
      Set the behaviour filter.
      void setNodeService​(org.alfresco.service.cmr.repository.NodeService nodeService)
      Deprecated.
      Set the node service
      void setPolicyComponent​(PolicyComponent policyComponent)
      Deprecated.
      Set the policy component to listen for various events
      void setRenditionService​(RenditionService renditionService)
      Deprecated.
      Set the rendition service.
      void setRuleService​(RuleService ruleService)
      Deprecated.
       
      void setThumbnailRegistry​(ThumbnailRegistry thumbnailRegistry)
      Deprecated.
      Set thumbnail registry
      void setThumbnailsEnabled​(boolean thumbnailsEnabled)
      Deprecated.
      This method enables or disables the creation of all thumbnails by this service.
      void setTransactionService​(TransactionService transactionService)
      Deprecated.
       
      void updateThumbnail​(org.alfresco.service.cmr.repository.NodeRef thumbnail, TransformationOptions transformationOptions)
      Deprecated.
      Updates the content of a thumbnail.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ThumbnailServiceImpl

        public ThumbnailServiceImpl()
        Deprecated.
    • Method Detail

      • setBehaviourFilter

        public void setBehaviourFilter​(BehaviourFilter behaviourFilter)
        Deprecated.
        Set the behaviour filter.
        Parameters:
        behaviourFilter - BehaviourFilter
      • setRenditionService

        public void setRenditionService​(RenditionService renditionService)
        Deprecated.
        Set the rendition service.
        Parameters:
        renditionService - RenditionService
      • setNodeService

        public void setNodeService​(org.alfresco.service.cmr.repository.NodeService nodeService)
        Deprecated.
        Set the node service
        Parameters:
        nodeService - node service
      • setThumbnailRegistry

        public void setThumbnailRegistry​(ThumbnailRegistry thumbnailRegistry)
        Deprecated.
        Set thumbnail registry
        Parameters:
        thumbnailRegistry - thumbnail registry
      • setThumbnailsEnabled

        public void setThumbnailsEnabled​(boolean thumbnailsEnabled)
        Deprecated.
        Description copied from interface: ThumbnailService
        This method enables or disables the creation of all thumbnails by this service.
        Specified by:
        setThumbnailsEnabled in interface ThumbnailService
        Parameters:
        thumbnailsEnabled - true to enable all thumbnail creation (the default setting), or false to disable.
      • getThumbnailsEnabled

        public boolean getThumbnailsEnabled()
        Deprecated.
        Description copied from interface: ThumbnailService
        This method indicates whether thumbnail creation via this service has been globally enabled or disabled.
        Specified by:
        getThumbnailsEnabled in interface ThumbnailService
      • setPolicyComponent

        public void setPolicyComponent​(PolicyComponent policyComponent)
        Deprecated.
        Set the policy component to listen for various events
        Since:
        3.5.0
      • setTransactionService

        public void setTransactionService​(TransactionService transactionService)
        Deprecated.
      • setRuleService

        public void setRuleService​(RuleService ruleService)
        Deprecated.
        Parameters:
        ruleService - rule service
      • init

        public void init()
        Deprecated.
        Registers to listen for events of interest.
        Since:
        3.5.0
      • beforeCreateNode

        public void beforeCreateNode​(org.alfresco.service.cmr.repository.NodeRef parentRef,
                                     org.alfresco.service.namespace.QName assocTypeQName,
                                     org.alfresco.service.namespace.QName assocQName,
                                     org.alfresco.service.namespace.QName nodeTypeQName)
        Deprecated.
        Description copied from interface: NodeServicePolicies.BeforeCreateNodePolicy
        Called before a new node is created.
        Specified by:
        beforeCreateNode in interface NodeServicePolicies.BeforeCreateNodePolicy
        Parameters:
        parentRef - the parent node reference
        assocTypeQName - the association type qualified name
        assocQName - the association qualified name
        nodeTypeQName - the node type qualified name
      • onDeleteNode

        public void onDeleteNode​(org.alfresco.service.cmr.repository.ChildAssociationRef childAssocRef,
                                 boolean isNodeArchived)
        Deprecated.
        Description copied from interface: NodeServicePolicies.OnDeleteNodePolicy
        Called after a node is deleted. The reference given is for an association which has been deleted and cannot be used to retrieve node or associaton information from any of the services.
        Specified by:
        onDeleteNode in interface NodeServicePolicies.OnDeleteNodePolicy
        Parameters:
        childAssocRef - the primary parent-child association of the deleted node
        isNodeArchived - indicates whether the node has been archived rather than purged
      • createThumbnail

        public org.alfresco.service.cmr.repository.NodeRef createThumbnail​(org.alfresco.service.cmr.repository.NodeRef node,
                                                                           org.alfresco.service.namespace.QName contentProperty,
                                                                           java.lang.String mimetype,
                                                                           TransformationOptions transformationOptions,
                                                                           java.lang.String thumbnailName)
        Deprecated.
        Description copied from interface: ThumbnailService
        Creates a new thumbnail for the given node and content property. The mimetype and transformation options are used to determine the content transformer that will be best suited to create the thumbnail. The thumbnail name is optional, but is usually set to provide an easy way to identify a particular 'type' of thumbnail. Once created the source node will have the 'rn:renditioned' aspect applied and an association to the thumbnail node (of type 'rn:rendition') will be created. The returned node reference is to the 'rn:rendition' content node that contains the thumbnail content in the standard 'cm:content' property.
        Specified by:
        createThumbnail in interface ThumbnailService
        Parameters:
        node - the source content node
        contentProperty - the content property
        mimetype - the thumbnail mimetype
        transformationOptions - the thumbnail transformation options
        thumbnailName - the name of the thumbnail (optional, pass null for unnamed thumbnail)
        Returns:
        NodeRef node reference to the newly created thumbnail
        See Also:
        ThumbnailService.createThumbnail(org.alfresco.service.cmr.repository.NodeRef, org.alfresco.service.namespace.QName, java.lang.String, org.alfresco.service.cmr.repository.TransformationOptions, java.lang.String)
      • getThumbnailNode

        public org.alfresco.service.cmr.repository.NodeRef getThumbnailNode​(org.alfresco.service.cmr.repository.ChildAssociationRef thumbnailRef)
        Deprecated.
        This method returns the NodeRef for the thumbnail, using the ChildAssociationRef that links the sourceNode to its associated Thumbnail node.
        Parameters:
        thumbnailRef - the ChildAssociationRef containing the child NodeRef.
        Returns:
        the NodeRef of the thumbnail itself.