Class PictureViewsGenerationWork

    • Field Detail

      • PICTURE_VIEWS_GENERATION_DONE_EVENT

        public static final String PICTURE_VIEWS_GENERATION_DONE_EVENT
        Deprecated.
        See Also:
        Constant Field Values
      • xpath

        protected final String xpath
        Deprecated.
    • Constructor Detail

      • PictureViewsGenerationWork

        public PictureViewsGenerationWork​(String repositoryName,
                                          String docId,
                                          String xpath)
        Deprecated.
    • Method Detail

      • getCategory

        public String getCategory()
        Deprecated.
        Description copied from interface: Work
        Gets the category for this work.

        Used to choose an execution queue.

        Specified by:
        getCategory in interface Work
        Overrides:
        getCategory in class AbstractWork
        Returns:
        the category, or null for the default
      • getTitle

        public String getTitle()
        Deprecated.
        Description copied from interface: Work
        Gets a human-readable name for this work instance.
        Returns:
        a human-readable name
      • getRetryCount

        public int getRetryCount()
        Deprecated.
        Description copied from class: AbstractWork
        Gets the number of times that this Work instance can be retried in case of concurrent update exceptions.
        Overrides:
        getRetryCount in class AbstractWork
        Returns:
        0 for no retry, or more if some retries are possible
        See Also:
        AbstractWork.work()
      • isIdempotent

        public boolean isIdempotent()
        Deprecated.
        Description copied from interface: Work
        Returns true if a work with a given Work.getId() should always produce the same result. The WorkManager implementation can safely skip duplicate executions of idempotent work.
      • isGroupJoin

        public boolean isGroupJoin()
        Deprecated.
        Description copied from interface: Work
        When true the Work is part of a group, Works of the group have the same Work.getPartitionKey(). When all Works of the group are done the Work.onGroupJoinCompletion() hook is called.
      • getPartitionKey

        public String getPartitionKey()
        Deprecated.
        Description copied from interface: Work
        Returns a key that can be used by the WorkManager implementation to guarantee that works with the same partition key will be executed in the order they are submitted.
        Specified by:
        getPartitionKey in interface Work
        Overrides:
        getPartitionKey in class AbstractWork
      • onGroupJoinCompletion

        public void onGroupJoinCompletion()
        Deprecated.
        Description copied from interface: Work
        Called when Work.isGroupJoin() returns true and after the last Work of the group.
      • firePictureViewsGenerationDoneEvent

        protected void firePictureViewsGenerationDoneEvent​(DocumentModel doc)
        Deprecated.
        Fire a PICTURE_VIEWS_GENERATION_DONE_EVENT
        Since:
        5.8