Class ThumbnailServiceImpl

    • 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,
                                                                           String mimetype,
                                                                           TransformationOptions transformationOptions,
                                                                           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.